/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 988px;
  overflow: hidden;
  background:
    linear-gradient(270deg, #224E7E 0%, rgba(34, 78, 126, 0.00) 133.66%),
    url('../images/herosection-bg.png') lightgray -83px -77px / 116.586% 113.36% no-repeat;
  background-blend-mode: normal, multiply;
  clip-path: polygon(0 0, 100% 0, 100% 87%, 0% 100%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #224E7E;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

/* ===== UPM HEADER (inside hero) ===== */
.upm-header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 24px;
}

.upm-header {
  position: relative;
  width: 100%;
}

.upm-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: scaleX(-1);
}

.upm-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 34px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Navigation Styles */
.header-nav .nav-list {
  list-style: none;
  padding: 0;
}

.header-nav .nav-item {
  position: relative;
}

.header-nav .nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 20px;
}

.header-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.header-button {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ===== HERO CONTENT ===== */
.hero-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: calc(100% - 130px);
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 635px;
}

.hero-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  max-width: 593px;
}

.hero-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.hero-cta-row {
  gap: 0;
  margin-top: 8px;
}

/* Section header gap */
.section-header-gap {
  margin-bottom: 64px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  position: relative;
  background-color: #163250;
  padding: 180px 0 120px;
  margin-top: -130px;
}

.about-gradient {
  position: absolute;
  inset: 112px 0 0 0;
  background:
    linear-gradient(180deg, rgba(22, 50, 80, 0) 0%, rgba(255, 255, 255, 0.8) 100%),
    linear-gradient(180deg, rgba(22, 50, 80, 0) 78%, rgb(255, 255, 255) 98%);
  pointer-events: none;
}

.about-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  max-width: 388px;
}

.about-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: #fff;
}

.about-mission-vision {
  max-width: 470px;
}

.about-block-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}

.about-block-text {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

.about-divider {
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
  margin: 32px 0;
}

.about-card {
  height: 432px;
}

.about-card-text {
  font-size: 18px;
  line-height: 1.5;
  color: #00293D;
  margin: 0;
}

.discover-btn-icon {
  width: 56px;
  height: 56px;
  background-color: #62B8A4;
  transition: background-color 0.3s ease;
}

.discover-btn:hover .discover-btn-icon {
  background-color: #4fa08c;
}

.discover-btn-text {
  font-size: 14px;
  color: #00293D;
}

/* ===== PROGRAMS SECTION ===== */
.programs-section {
  background: #fff;
  padding: 100px 0 120px;
}

.programs-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #00293D;
  margin: 0;
}

.programs-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: #00293D;
}

.programsSwiper {
  background: none;
  box-shadow: none;
}

.programsSwiper .swiper-slide {
  width: 400px;
  height: auto;
}

.programs-scrollbar {
  position: relative !important;
  margin: 40px auto 0 !important;
  max-width: 600px;
  width: 600px;
  height: 4px !important;
  background: #E3E5E8;
  border-radius: 1px;
  left: auto !important;
  right: auto !important;
}

.programs-scrollbar .swiper-scrollbar-drag {
  background: #62B8A4;
  border-radius: 1px;
}

/* ===== STATISTICS SECTION ===== */
.stats-section {
  position: relative;
  background-color: #62B8A4;
  padding: 100px 0;
  overflow: hidden;
}

.stats-vector {
  position: absolute;
  pointer-events: none;
  opacity: 1;
}

.stats-vector-1 {
  top: 41px;
  right: auto;
  left: -5px;
  height: 120%;
}

.stats-vector-2 {
  top: 208px;
  right: auto;
  left: 113px;
  height: 130%;
}

.stats-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  text-align: right;
}

.stats-number {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stats-label {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  line-height: 24px;
}

.stats-text-block {
  display: flex;
  flex-direction: column;
  gap: 34px;
  text-align: right;
}

.stats-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  max-width: 363px;
  margin-left: 0;
}

.stats-title-accent {
  color: #224E7E;
}

.stats-description {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  margin-right: auto;
  margin-left: 0;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: #fff;
  padding: 100px 0 120px;
}

.features-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #00293D;
  margin: 0;
}

.features-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: #00293D;
}

.feature-card {
  background-image: url('../svg/feature-card-bg.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 32px 36px;
  height: 272px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-end;
  text-align: right;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  border: 1px solid rgba(98, 184, 164, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: #00293D;
  margin: 0;
}

.feature-card-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  color: #00293D;
  margin: 0;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-section {
  background-color: #224E7E;
  overflow: hidden;
}

.why-content {
  padding: 68px 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  text-align: right;
}

.why-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.why-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  opacity: 0.7;
  margin: 0;
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.why-item {
  display: flex;
  align-items: stretch;
  max-width: 525px;
  height: 112px;
  position: relative;
}

.why-item-vector {
  width: 40px;
  height: 112px;
  flex-shrink: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
}

.why-item-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.why-item-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin: 0;
}

.why-item-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #fff;
  margin: 0;
}

.why-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 600px;
}

.why-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.why-image-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #62B8A4;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-banner-text {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-align: right;
  max-width: 365px;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== STEPS SECTION ===== */
.steps-section {
  background: #fff;
  padding: 100px 0;
}

.steps-header {
  text-align: center;
  max-width: 562px;
  margin: 0 auto 64px;
}

.steps-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #00293D;
  margin: 0 0 16px;
}

.steps-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #6E7686;
  margin: 0;
}

.steps-timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(180deg,
      rgba(98, 184, 164, 0) 0%,
      #62B8A4 20%,
      #62B8A4 80%,
      rgba(98, 184, 164, 0) 100%);
}

.step-row {
  display: flex;
  align-items: center;
  margin-bottom: 56px;
}

.step-row:last-child {
  margin-bottom: 0;
}

.step-side {
  flex: 1;
  min-width: 0;
}

.step-circle-col {
  padding: 0 24px;
  flex-shrink: 0;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.step-circle-green {
  background-color: #62B8A4;
}

.step-circle-dark {
  background-color: #224E7E;
  border: 2px solid #62B8A4;
}

.step-card {
  background: #fff;
  border: 1px solid #E3E5E8;
  border-radius: 16px;
  padding: 32px;
  box-shadow:
    0px 60px 80px 0px rgba(0, 0, 0, 0.02),
    0px 20px 47px 0px rgba(0, 0, 0, 0.02),
    0px 10px 25px 0px rgba(0, 0, 0, 0.01);
}

.step-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #00293D;
  margin: 0 0 12px;
}

.step-card-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #535965;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
}

.cta-banner {
  background-color: #224E7E;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
}

.cta-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 601px;
  margin: 0 auto;
}

.cta-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.cta-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  opacity: 0.7;
  margin: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #62B8A4;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 17px 32px;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #4fa08c;
  color: #fff;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: #fff;
  padding: 100px 0;
}

.faq-header {
  text-align: center;
  max-width: 562px;
  margin: 0 auto 64px;
}

.faq-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #00293D;
  margin: 0 0 16px;
}

.faq-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #6E7686;
  margin: 0;
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-accordion .accordion-item {
  background: #fff;
  border: 1px solid #E3E5E8;
  border-radius: 16px !important;
  transition: box-shadow 0.3s ease;
}

.faq-accordion .accordion-item:has(.accordion-collapse.show) {
  box-shadow:
    0px 60px 80px 0px rgba(0, 0, 0, 0.02),
    0px 20px 47px 0px rgba(0, 0, 0, 0.02),
    0px 10px 25px 0px rgba(0, 0, 0, 0.01);
}

.faq-accordion .accordion-button {
  background: none;
  border: none;
  box-shadow: none;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #00293D;
  border-radius: 16px !important;
  justify-content: space-between;
}

.faq-accordion .accordion-button:not(.collapsed) {
  padding: 32px 32px 0;
  background: none;
  color: #00293D;
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  display: none;
}

.faq-accordion .accordion-button svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-accordion .accordion-button.collapsed svg {
  transform: rotate(180deg);
}

.faq-accordion .accordion-body {
  padding: 12px 32px 32px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #535965;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero {
    height: auto;
    min-height: 800px;
  }

  .hero-content-wrapper {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-description {
    font-size: 16px;
  }

  .about-title {
    font-size: 34px;
  }

  .about-subtitle {
    font-size: 18px;
  }

  .programs-title {
    font-size: 34px;
  }

  .programs-subtitle {
    font-size: 18px;
  }

  .stats-title {
    font-size: 34px;
  }

  .stats-description {
    font-size: 18px;
  }

  .features-title {
    font-size: 34px;
  }

  .why-title {
    font-size: 34px;
  }

  .why-content {
    padding: 60px 50px;
  }

  .why-banner-text {
    font-size: 30px;
  }

  /* Steps */
  .steps-title {
    font-size: 34px;
  }

  /* CTA */
  .cta-title {
    font-size: 34px;
  }

  /* FAQ */
  .faq-title {
    font-size: 34px;
  }
}

@media (max-width: 991px) {

  /* Header hidden on tablet - mobile menu used instead */

  .section-header-gap {
    margin-bottom: 40px;
  }

  /* Hero */
  .hero {
    min-height: 700px;
    height: auto;
  }

  .hero-content-wrapper {
    padding-top: 80px;
    justify-content: center;
  }

  .hero-text-block {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 36px;
    max-width: 100%;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-cta-row {
    justify-content: center;
  }

  /* About */
  .about-section {
    padding: 80px 0 100px;
    margin-top: -80px;
  }

  .about-card {
    height: auto;
    min-height: auto;
  }

  .about-card .col-md-5 img {
    height: 250px;
  }

  .about-title {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .about-mission-vision {
    max-width: 100%;
  }

  .about-card {
    height: auto;
    min-height: 360px;
  }

  /* Programs */
  .programs-section {
    padding: 80px 0 100px;
  }

  .programs-title {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .programsSwiper .swiper-slide {
    width: 320px;
  }

  /* Stats */
  .stats-section {
    padding: 80px 0;
  }

  .stats-title {
    font-size: 30px;
    max-width: 100%;
  }

  .stats-description {
    font-size: 16px;
  }

  .stats-number {
    font-size: 32px;
  }

  .stats-vector {
    display: none;
  }

  /* Features */
  .features-section {
    padding: 80px 0 100px;
  }

  .features-title {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .feature-card {
    height: auto;
    min-height: 240px;
  }

  /* Why Choose Us */
  .why-content {
    padding: 50px 30px;
    gap: 40px;
  }

  .why-title {
    font-size: 30px;
  }

  .why-image-wrapper {
    min-height: 400px;
  }

  .why-banner-text {
    font-size: 26px;
    max-width: 100%;
  }

  .why-image-banner {
    padding: 30px;
  }

  /* Steps */
  .steps-section {
    padding: 80px 0;
  }

  .steps-title {
    font-size: 30px;
  }

  .steps-timeline::before {
    display: none;
  }

  .step-row {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
  }

  .step-side:empty {
    display: none;
  }

  .step-side {
    flex: 0 0 100%;
  }

  .step-circle-col {
    padding: 0;
  }

  /* CTA */
  .cta-section {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 30px;
  }

  .cta-banner {
    padding: 60px 30px;
  }

  /* FAQ */
  .faq-section {
    padding: 80px 0;
  }

  .faq-title {
    font-size: 30px;
  }
}

@media (max-width: 576px) {

  .section-header-gap {
    margin-bottom: 32px;
  }

  /* Hero */
  .hero {
    min-height: 600px;
  }

  .hero-content-wrapper {
    padding-top: 80px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 14px;
  }

  /* About */
  .about-section {
    padding: 60px 0 80px;
    margin-top: -50px;
  }

  .about-title {
    font-size: 26px;
  }

  .about-subtitle {
    font-size: 15px;
  }

  .about-block-title {
    font-size: 22px;
  }

  .about-card-text {
    font-size: 15px;
  }

  .about-card .col-md-5 img {
    height: 200px;
  }

  /* Programs */
  .programs-section {
    padding: 60px 0 80px;
  }

  .programs-title {
    font-size: 26px;
  }

  .programs-subtitle {
    font-size: 15px;
  }

  .programsSwiper .swiper-slide {
    width: 280px;
  }

  .programs-scrollbar {
    max-width: 100%;
  }

  /* Stats */
  .stats-section {
    padding: 60px 0;
  }

  .stats-title {
    font-size: 26px;
  }

  .stats-description {
    font-size: 15px;
  }

  .stats-number {
    font-size: 28px;
  }

  .stats-card {
    padding: 24px 16px;
    gap: 12px;
  }

  .stats-label {
    font-size: 14px;
  }

  /* Features */
  .features-section {
    padding: 60px 0 80px;
  }

  .features-title {
    font-size: 26px;
  }

  .features-subtitle {
    font-size: 15px;
  }

  .feature-card {
    padding: 24px 20px;
    gap: 16px;
    height: auto;
    min-height: auto;
  }

  .feature-card-title {
    font-size: 20px;
  }

  .feature-card-text {
    font-size: 14px;
  }

  /* Why Choose Us */
  .why-content {
    padding: 40px 20px;
    gap: 32px;
  }

  .why-title {
    font-size: 26px;
  }

  .why-description {
    font-size: 14px;
  }

  .why-item-title {
    font-size: 16px;
  }

  .why-item-desc {
    font-size: 14px;
  }

  .why-image-wrapper {
    min-height: 300px;
  }

  .why-banner-text {
    font-size: 22px;
  }

  .why-image-banner {
    padding: 24px 20px;
  }

  /* Steps */
  .steps-section {
    padding: 60px 0;
  }

  .steps-title {
    font-size: 26px;
  }

  .steps-header {
    margin-bottom: 40px;
  }

  .step-card {
    padding: 24px;
  }

  .step-card-title {
    font-size: 16px;
  }

  .step-card-desc {
    font-size: 14px;
  }

  /* CTA */
  .cta-section {
    padding: 60px 0;
  }

  .cta-banner {
    padding: 50px 20px;
    border-radius: 12px;
  }

  .cta-title {
    font-size: 26px;
  }

  .cta-subtitle {
    font-size: 15px;
  }

  /* FAQ */
  .faq-section {
    padding: 60px 0;
  }

  .faq-title {
    font-size: 26px;
  }

  .faq-header {
    margin-bottom: 40px;
  }

  .faq-accordion .accordion-button {
    padding: 20px 24px;
    font-size: 16px;
  }

  .faq-accordion .accordion-button:not(.collapsed) {
    padding: 24px 24px 0;
  }

  .faq-accordion .accordion-body {
    padding: 12px 24px 24px;
    font-size: 14px;
  }
}