.home-page {
  background:
    radial-gradient(circle at top left, rgba(12, 142, 191, 0.18), transparent 28rem),
    linear-gradient(180deg, #f3fbff 0%, #ffffff 24%, #f7fbfc 100%);
  color: #17324d;
}

.home-page .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
}

.home-main {
  padding-bottom: 32px;
}

.home-section {
  padding: 28px 0;
}

.home-section--tint {
  background: rgba(220, 243, 250, 0.5);
}

.home-section--accent {
  background:
    linear-gradient(135deg, rgba(5, 90, 135, 0.95), rgba(19, 128, 173, 0.88)),
    #0f709f;
  color: #fff;
}

.home-section--accent .home-eyebrow,
.home-section--accent .section-link,
.home-section--accent > .container > .section-heading p,
.home-section--accent > .container > .section-heading span {
  color: rgba(255, 255, 255, 0.84);
}

.home-section--accent h2,
.home-section--accent h3,
.home-section--accent strong,
.home-section--accent blockquote {
  color: #fff;
}

.home-section--accent .testimonial-card,
.home-section--accent .testimonial-card h3,
.home-section--accent .testimonial-card strong,
.home-section--accent .testimonial-card blockquote,
.home-section--accent .testimonial-card span,
.home-section--accent .testimonial-card p {
  color: #17324d;
}

.home-section--accent .testimonial-card__author span {
  color: #587286;
}

.home-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b6aa2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading--centered {
  display: block;
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-link {
  font-weight: 700;
  color: #0b6aa2;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-btn:hover {
  transform: translateY(-1px);
}

.home-btn--primary {
  box-shadow: 0 14px 30px rgba(11, 106, 162, 0.22);
}

.home-btn--secondary {
  border: 1px solid rgba(11, 106, 162, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #0b6aa2;
}

.home-btn--small {
  min-height: 40px;
  padding: 0 16px;
  background: #e8f4fb;
  color: #0b6aa2;
}

.home-btn--block {
  width: 100%;
}

.home-hero {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(231, 246, 252, 0.94)),
    #fff;
  box-shadow: 0 24px 60px rgba(13, 74, 109, 0.1);
  overflow: hidden;
}

.home-hero__content {
  position: relative;
  z-index: 1;
}

.home-hero__title {
  margin: 0 0 12px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.02;
}

.home-hero__text {
  margin: 0;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.7;
  color: #49657d;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.home-hero__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.home-highlight {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 106, 162, 0.08);
}

.home-highlight strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.home-highlight span,
.home-hero__notice {
  color: #587286;
}

.home-hero__notice {
  margin: 16px 0 0;
}

.home-hero__media {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #9cd6ed 0%, #146b95 100%);
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero__media--placeholder {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 12rem),
    linear-gradient(160deg, #7cc6e6 0%, #115f88 100%);
}

.home-hero__placeholder-card,
.home-hero__badge {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(6, 45, 67, 0.18);
}

.home-hero__placeholder-card span,
.home-hero__badge span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #4c6880;
}

.home-hero__placeholder-card strong,
.home-hero__badge strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.home-hero__placeholder-card--alt {
  margin-left: auto;
  max-width: 250px;
}

.home-hero__badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: 220px;
}

.benefits-grid,
.testimonials-grid,
.posts-grid,
.faq-grid,
.commitment-grid,
.process-grid,
.home-contact-grid {
  display: grid;
  gap: 16px;
}

.testimonials-grid {
  align-items: stretch;
}

.testimonials-grid > * {
  min-width: 0;
}

.benefit-card,
.post-card,
.testimonial-card,
.course-card,
.final-cta__form,
.faq-card,
.commitment-card,
.process-card,
.home-contact-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 106, 162, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(14, 58, 83, 0.08);
}

.benefit-card {
  padding: 22px;
}

.benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0b6aa2, #1696c5);
  color: #fff;
}

.benefit-card__icon svg {
  width: 26px;
  height: 26px;
}

.benefit-card h3,
.course-card h3,
.post-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.benefit-card p,
.post-card p,
.course-card p {
  margin: 0;
  line-height: 1.65;
  color: #587286;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.course-card {
  overflow: hidden;
}

.course-card__media,
.course-card__media img,
.gallery-card img {
  display: block;
  width: 100%;
}

.course-card__media {
  aspect-ratio: 4 / 3;
  background: #dbeef7;
}

.course-card__media img,
.gallery-card img {
  height: 100%;
  object-fit: cover;
}

.course-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(11, 106, 162, 0.18), rgba(22, 150, 197, 0.3)),
    #e8f6fc;
  color: #0b6aa2;
  font-weight: 700;
}

.course-card__body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-card__meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7fc;
  color: #0b6aa2;
  font-size: 12px;
  font-weight: 700;
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-card__footer strong {
  font-size: 18px;
}

.video-frame {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(16, 65, 92, 0.1);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
}

.testimonial-card__rating {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
}

.home-section:not(.home-section--accent) .testimonial-card__rating {
  color: rgba(11, 106, 162, 0.18);
}

.testimonial-card__rating .is-active {
  color: #ffc84a;
}

.testimonial-card blockquote {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  flex: 1;
  overflow-wrap: anywhere;
}

.testimonial-card__author strong,
.testimonial-card__author span {
  display: block;
}

.testimonial-card__author span {
  margin-top: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-card {
  position: relative;
  margin: 0;
  min-height: 240px;
  overflow: hidden;
  border-radius: 22px;
  background: #d8eef8;
  box-shadow: 0 18px 36px rgba(18, 64, 92, 0.1);
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.gallery-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 34, 52, 0.82) 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.post-card {
  padding: 22px;
}

.post-card__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
}

.faq-card,
.commitment-card,
.process-card,
.home-contact-card {
  padding: 22px;
}

.faq-card details + details {
  margin-top: 12px;
}

.faq-card summary {
  cursor: pointer;
  font-weight: 700;
  color: #17324d;
}

.faq-card p {
  margin: 12px 0 0;
  color: #587286;
  line-height: 1.7;
}

.commitment-card h3,
.process-card h3,
.home-contact-card h3 {
  margin-top: 0;
}

.commitment-card ul,
.home-contact-card ul {
  margin: 0;
  padding-left: 18px;
  color: #587286;
  line-height: 1.7;
}

.home-contact-card a,
.home-highlight a {
  color: #0b6aa2;
  font-weight: 700;
}

.process-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b6aa2, #16a5d1);
  color: #fff;
  font-weight: 700;
}

.home-map {
  overflow: hidden;
  border-radius: 24px;
  min-height: 320px;
  background: #dff2fa;
  box-shadow: 0 18px 36px rgba(18, 64, 92, 0.1);
}

.home-map iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.final-cta {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(8, 102, 154, 0.95), rgba(20, 142, 183, 0.92)),
    #0b6aa2;
  color: #fff;
  box-shadow: 0 28px 56px rgba(8, 67, 103, 0.2);
}

.final-cta .home-eyebrow,
.final-cta p {
  color: rgba(255, 255, 255, 0.84);
}

.final-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
}

.final-cta__form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.final-cta__form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #17324d;
}

.final-cta__form input {
  background: #fff;
}

.empty-state {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: #587286;
  text-align: center;
}

@media (min-width: 768px) {
  .home-section {
    padding: 42px 0;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    padding: 36px;
  }

  .benefits-grid,
  .testimonials-grid,
  .posts-grid,
  .faq-grid,
  .process-grid,
  .home-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 120px;
  }

  .gallery-card--1,
  .gallery-card--5 {
    grid-column: span 2;
    grid-row: span 3;
  }

  .gallery-card--2,
  .gallery-card--3,
  .gallery-card--4 {
    grid-row: span 2;
  }

  .final-cta {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    padding: 32px;
  }
}

@media (min-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .commitment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .home-hero__highlights {
    grid-template-columns: 1fr;
  }

  .course-card__footer {
    flex-direction: column;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 320px;
  }
}
