/* ---------- Common ---------- */
*{
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  background-color: white;
  height: 100%;
}

html.lenis{
  height:auto;
}

.lenis.lenis-smooth{
  scroll-behavior:auto;
}

body {
  margin: 0;
}

#page { 
  position: relative;
  z-index: 0;
}

.bi {
  font-size: 48px;
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
}

/* ---------- Hero ---------- */
#hero {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  background-color: white;
}

#hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.01);
}

#hero h1 {
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 80px;
  font-size: 100px;
  letter-spacing: 3px;
  font-weight: 700;
  z-index: inherit;
  display: flex;
  align-items: baseline;
}

.main-title {
  -webkit-text-stroke: 3px;
  -webkit-text-stroke-color: white;
  color: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

#first-hero-title {
  padding-top: 0px;
}

#sub-title {
  color: white;
}

#sr-only {
  position: absolute !important; 
  width: 1px;
  height: 1px; 
  padding: 0;
  margin: -1px; 
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

#hero-description {
  font-size: 25px;
  margin-bottom: 40px;
  font-weight: 600;
  color: white;
  z-index: inherit;
}

.primary-link {
  background-color: white;
  color: black;
  border: 1px solid white;
  padding: 14px 32px;
  width: fit-content;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#hero-button {
  z-index: inherit;
}

#hero-button:hover {
  background-color: #481366;
  border-color: #481366;
  color: white;
}

@media (max-width: 1292px) {
  #hero h1 {
    font-size: clamp(32px, 9vw, 64px);
    line-height: 1.1;
  }
  
  .main-title{
    -webkit-text-stroke: 2px;
    -webkit-text-stroke-color: white;
  }

  #hero video{
    transform: none;
  }

  #hero-description {
    font-size: clamp(20px, 4vw, 35px);
    padding: 0 10px;
  }

  .primary-link {
    padding: 7px 14px;
    font-size: clamp(18px, 2vw, 16px);
  }
}

/* ---------- Shapes ---------- */
.right-side-shape {
  position: absolute;
  right: -160vw;
  top: auto;
  width: 1750px;
  height: auto;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  transform: scaleY(-1);
}

.left-side-shape {
  position: absolute;
  left: -45vw;
  top: auto;
  width: 1600px;
  height: auto;
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

@media (min-width: 320px) {
  .right-side-shape {
    right: -495vw;
    width: 2150px;
  }
}

@media (min-width: 400px) {
  .right-side-shape {
    right: -350vw;
    width: 1950px;
  }
}

@media (min-width: 500px) {
  .right-side-shape {
    right: -245vw;
    width: 1750px;
  }
}

@media (min-width: 556px) {
  .right-side-shape {
    right: -220vw;
  }
}

@media (min-width: 662px) {
  .right-side-shape {
    right: -180vw;
  }
}

@media (min-width: 768px) {
  .right-side-shape {
    right: -140vw;
    width: 1650px;
  }
}

@media (min-width: 900px) {
  .right-side-shape {
    right: -110vw;
    width: 1650px;
  }
}

@media (min-width: 1000px) {
  .right-side-shape {
    right: -100vw;
    width: 1675px;
  }
}

@media (min-width: 1100px) {
  .right-side-shape {
    right: -85vw;
    width: 1750px;
  }
}

@media (min-width: 1200px) {
  .right-side-shape {
    right: -77vw;
    width: 1700px;
  }
}

@media (min-width: 1340px) {
  .right-side-shape {
    right: -60vw;
    width: 1725px;
  }
}

@media (min-width: 1536px) {
  .right-side-shape {
    right: -40vw;
    width: 1550px;
  }
}

@media (min-width: 1710px) {
  .right-side-shape {
    right: -30vw;
    width: 1550px;
  }
}

@media (min-width: 2200px) {
  .right-side-shape {
    right: -20vw;
    width: 1550px;
  }
}

@media (min-width: 2500px) {
  .right-side-shape {
    right: -15vw;
    width: 1550px;
  }
}

@media (min-width: 320px) {
  .left-side-shape {
    left: -500vw;
    width: 2800px;
  }
}

@media (min-width: 400px) {
  .left-side-shape {
    left: -400vw;
  }
}

@media (min-width: 500px) {
  .left-side-shape {
    left: -350vw;
  }
}

@media (min-width: 556px) {
  .left-side-shape {
    left: -250vw;
  }
}

@media (min-width: 662px) {
  .left-side-shape {
    left: -250vw;
  }
}

@media (min-width: 768px) {
  .left-side-shape {
    left: -250vw;
    width: 2500px;
  }
}

@media (min-width: 800px) {
  .left-side-shape {
    left: -155vw;
    width: 1750px;
  }
}

@media (min-width: 900px) {
  .left-side-shape {
    left: -125vw;
  }
}

@media (min-width: 1000px) {
  .left-side-shape {
    left: -115vw;
  }
}

@media (min-width: 1100px) {
  .left-side-shape {
    left: -125vw;
  }
}

@media (min-width: 1200px) {
  .left-side-shape {
    left: -80vw;
  }
}

@media (min-width: 1340px) {
  .left-side-shape {
    left: -80vw;
  }
}

@media (min-width: 1536px) {
  .left-side-shape {
    left: -50vw;
    width: 1350px;
  }
}

@media (min-width: 1710px) {
  .left-side-shape {
    left: -50vw;
    width: 1350px;
  }
}

@media (min-width: 2200px) {
  .left-side-shape {
    left: -40vw;
  }
}

@media (min-width: 2500px) {
  .left-side-shape {
    left: -20vw;
  }
}

/* ---------- Blog ---------- */
#blog {
  padding: 80px 20px;
  text-align: center;
}

#blog h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 80px;
  color: #231F20;
}

.blog-wrapper .card-list {
  display: flex;
  align-items: stretch !important;
}

.blog-wrapper .swiper-slide {
  height: auto;
}

.blog-wrapper .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 25px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  border: 2px solid #0B00CF;
}

.blog-wrapper .card:hover {
  border: 2px solid #EE3732;
}

.card-list {
  margin-bottom: 50px;
}

.card .card-image {
  position: relative;
}

.card .card-image img {
  width: 100%;
  padding: 10px;
  border-radius: 30px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card .card-image .card-tag {
  position: absolute;
  left: 25px;
  top: 25px;
  color: #0B00CF;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.90rem;
  padding: 5px 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.blog-wrapper .card-tag a,
.blog-wrapper .card-title a {
  text-decoration: none;
  transition: color 0.3s;
}

.blog-wrapper .card-tag a:hover,
.blog-wrapper .card-title a:hover {
  color: #EE3732;
}

.blog-wrapper .card:hover .card-tag a,
.blog-wrapper .card:hover .card-title a {
  color: #EE3732;
}

.card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 5px 25px 25px;
}

.card .card-content .card-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  min-height: calc(1.2em * 2);
  max-height: calc(1.2em * 2);
  color: #0B00CF;
}

.card .card-content .card-text {
  color: #747474;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: calc(2em * 3);
  max-height: calc(2em * 3);
}

.card .card-content .card-footer {
  display: flex;
  align-items: center;
  padding-top: 15px;
  margin-top: auto;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.card .card-footer .card-button {
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
  background-color: #0B00CF;
  transition: background-color 0.3s;
}

.blog-wrapper .card:hover .card-button {
  background-color: #EE3732;
}

.card .card-footer .card-button:hover {
  background-color: #EE3732;
}

.blog-wrapper .swiper-pagination-bullet {
  height: 10px;
  width: 10px;
  background-color: royalblue;
}

@media (min-width: 344px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3.8);
    max-height: calc(2em * 3.8);
  }
}

@media (min-width: 390px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3);
    max-height: calc(2em * 3);
  }
}

@media (min-width: 414px) {
  .card .card-content .card-text {
    min-height: calc(2em * 2.5);
    max-height: calc(2em * 2.5);
  }
}

@media (min-width: 768px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3);
    max-height: calc(2em * 3);
  }
}

@media (min-width: 820px) {
  .card .card-content .card-text {
    min-height: calc(2em * 2.5);
    max-height: calc(2em * 2.5);
  }
}

@media (min-width: 1280px) {
  .card .card-content .card-text {
    min-height: calc(2em * 2);
    max-height: calc(2em * 2);
  }
}

@media (min-width: 1536px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3.5);
    max-height: calc(2em * 3.5);
  }
}

@media (min-width: 1722px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3);
    max-height: calc(2em * 3);
  }
}

/* ---------- About ---------- */
#about {
  padding: 80px 20px;
  display: flex;
  justify-content: flex-start; /* <-- fontos! */
}

#about-container {
  max-width: 1200px;
  width: 100%;
  text-align: left;
  margin: 0 auto;
}

@media (max-width: 1300px) {
  #about-container {
      max-width: 550px;
  }
}

#about h2 {
  font-size: 100px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 1200px;
  color: #231F20;
}

#about p {
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 50px;
  max-width: 700px;
  text-align: justify;
}

#about-button {
  background-color: #0B00CF;
  color: white;
  padding: 15px 20px;
  font-size: 18px;
  border-radius: 40px;
  text-decoration: none;
}

#about-button:hover {
  background-color: #EE3732;
}

@media (max-width: 1079px) {
  #about h2 {
    font-size: clamp(36px, 16vw, 56px);
  }
}

/* ---------- Numbers ---------- */
.numbers {
  background-color: #ee383210;
  margin: 80px -20px;
  padding: 90px;
  position: relative;
  z-index: 1;
}

.numbers .items {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.numbers .items .item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.numbers .items .item h3 {
  font-size: 80px;
  line-height: 100px;
  font-weight: 800;
  color: red;
  margin-bottom: 0;
  text-transform: uppercase;
}

.numbers .items .item p {
  font-size: 20px;
  line-height: 28px;
  color: red;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0;
}

@media (max-width: 1079px) {
  .numbers {
    padding: 40px;
    margin: 60px -20px;
  }

  .numbers .items {
    flex-direction: column;
    gap: 40px;
  }

  .numbers .items .item {
    align-items: center;
    text-align: center;
  }

  .numbers .items .item h3 {
    font-size: 60px;
    line-height: 80px;
  }
}

/* ---------- Services ---------- */
#services {
  padding: 80px 20px;
  text-align: center;
  scroll-margin-top: 100px;
}

#services h2 {
  font-size: 70px;
  margin-bottom: 80px;
  font-weight: 700;
  text-transform: uppercase;
  color: #231F20;
}

.blog-wrapper {
  min-width: 450px;
  padding: 20px 10px;
  margin: 0 auto;
  overflow: hidden;
  max-width: 1820px;
  width: 100%; 
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 30px 30px;
  max-width: 350px;
  text-align: left;
  border: 2px solid #0B00CF;
  transition: border 0.3s;
  background-color: white;
}

.service-card:hover {
  border: 2px solid #EE3732;
}

.card-header {
  display: flex;
  flex-direction: column;
}

.card-header .bi {
  color: #0B00CF;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.service-card:hover .card-header .bi {
  color: #EE3732;
}

.card-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: #0B00CF;
  margin-top: 16px;
  margin-bottom: 16px;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.service-card:hover .card-header h3 {
  color: #EE3732;
}

.card-description {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-description p {
  font-size: 18px;
  color: black;
  line-height: 1.2;
}

.service-about {
  padding-top: 30px;
}

.service-about a {
  background-color: #0B00CF;
  color: white;
  padding: 15px 20px;
  font-size: 18px;
  border-radius: 40px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.service-card:hover .service-about a {
  background-color: #EE3732;
}

.service-about a:hover {
  background-color: #EE3732;
}

@media (max-width: 1079px) {
  #services h2 {
    font-size: clamp(16px, 13vw, 32px);
  }
}

/* ---------- Partners ---------- */
#partners {
  padding: 80px 20px 120px 20px;
  text-align: center;
}

#partners h2 {
  font-size: 70px;
  margin-bottom: 80px;
  font-weight: 700;
  text-transform: uppercase;
  color: #231F20;
}

.partners-overlay {
  border-radius: 12px;
}

#partners p {
  font-size: 18px;
  margin-bottom: 40px;
}

.partner-logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.partner-logos-container .swiper {
  width: 90%;
}

.partner-logos-container .swiper-slide {
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logos-container .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: filter .3s;
}

.partners-wrapper .swiper-wrapper{
  transition-timing-function: linear;
}

@media (max-width: 1079px) {
  #partners h2 {
    font-size: clamp(16px, 13vw, 46px);
  }
}

/* ---------- Modal ---------- */
.offer-modal {
  margin: 0px;
  padding: 0px;
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  z-index: 998;
  display: flex;
  justify-content: center;
}

.offer-modal #wrapper {
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  width: calc(100% - 40px);
  max-width: 1200px;
  transition: background-color 0.5s linear;
}

.offer-modal.active #wrapper {
  background-color: white;
}

.offer-modal #modal-header {
  background-image: url(/themes/images/modal/modalbg.png);
  background-size: cover;
  background-position: center;
  border-radius: 47px;
  padding: 25px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s;
  cursor: pointer;
}

.offer-modal #modal-header #title-text {
  display: flex;
  align-items: center;
}

.offer-modal #modal-header h3 {
  text-transform: uppercase;
  font-size: 20px;
  color: white;
  padding-right: 20px;
  margin-bottom: 0 !important;
  font-weight: normal;
}

.offer-modal #modal-header p {
  color: white;
  font-weight: bold;
  padding-left: 20px;
  margin-bottom: 0 !important;
}

.offer-modal #modal-header .bi {
  font-size: 25px;
  color: white;
  transform: rotate(0deg);
  transition: transform 0.5s ease-out;
}

.offer-modal.active #modal-header .bi {
  transform: rotate(180deg);
}

.offer-modal #body {
  max-height: 0;
  overflow: hidden;
  overflow-y: hidden;
  transition: max-height 0.5s ease-out;
  overscroll-behavior: contain;
  position: relative;
  z-index: 1;
}

.offer-modal.active #body {
  overflow-y: auto;
  scrollbar-color: black transparent;
}

.offer-modal #content {
  padding: 30px 40px 40px;
}

.offer-modal #content .message {
  font-size: 20px;
  transition: color 0.3s;
  cursor: pointer;
  line-height: 30px;
}

.offer-modal #content a {
  color: #0B00CF;
  text-decoration: none;
  font-weight: 600;
}

.offer-modal #content a:hover {
  color: #EE3732;
}

@media (max-width: 1079px) {
  .offer-modal #header h3 {
    font-size: 16px;
    border-right: none;
  }

  .offer-modal #header p {
    display: none;
  }
}