/*
 * Content-driven spacing and typography informed by leading education sites.
 * The homepage hero remains intentionally cinematic; supporting sections
 * use natural heights and a consistent editorial rhythm.
 */
:root {
  --container: 1200px;
  --section-space: 80px;
  --section-space-tight: 64px;
  --section-space-compact: 48px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* The LMS handoff makes Inter the single UI typeface, including display text. */
.placement-logo-heading span,
.placement-logo-heading p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header .brand,
.site-footer .footer-brand,
.brand-logo-full,
.admin-brand .admin-brand-logo {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.brand-logo-full,
.admin-brand .admin-brand-logo {
  padding: 0 !important;
}

html[data-theme="light"] body,
html[data-theme="light"] main {
  background: #f6f7f6;
  color: #172b3a;
}

html[data-theme="light"] body main > section:not(.hero):not(.dark-section):not(.demo-section):not(.contact-section):nth-of-type(odd) {
  background: #f7f8f7 !important;
}

html[data-theme="light"] body main > section:not(.hero):not(.dark-section):not(.demo-section):not(.contact-section):nth-of-type(even) {
  background: #e7eeeb !important;
}

html[data-theme="light"] body main > section.partner-section {
  background: #f7f8f7 !important;
}

html[data-theme="light"] body main > section.contact-section {
  background: #102f4a !important;
  color: #ffffff;
}

html[data-theme="light"] :is(
  .home-benefit-card,
  .course-card,
  .feature-card,
  .service-grid article,
  .curriculum-preview-card,
  .blog-card,
  .testimonial-card,
  .page-hero-panel,
  .faq-list details,
  .course-detail-panel,
  .detail-list-card,
  .syllabus-card,
  .contact-form
) {
  border-color: #dce4e1;
  background: #ffffff;
}

html[data-theme="light"] :is(
  .section h2,
  .section h3,
  .page-hero h1,
  .course-catalog-copy h1,
  .course-program-copy h1,
  .faq-list summary
) {
  color: #0b2d46;
}

html[data-theme="light"] :is(
  .section-heading > p:not(.eyebrow),
  .rich-text p,
  .home-benefit-card p,
  .course-card p,
  .feature-card p,
  .service-grid p,
  .blog-card p,
  .testimonial-card blockquote,
  .page-hero p,
  .faq-list p
) {
  color: #526978;
}

main > section {
  min-height: 0 !important;
}

main > section:not(.hero):not(.partner-section),
.course-catalog-hero,
.course-program-hero,
.page-hero {
  display: block;
}

main > section > .container,
.course-catalog-hero > .container,
.course-program-hero > .container,
.page-hero > .container {
  width: min(var(--container), calc(100% - var(--page-gutter)));
  margin-right: auto;
  margin-left: auto;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

@media (min-width: 761px) {
  .hero,
  html[data-theme="dark"] .hero {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

.partner-section.section-compact {
  padding: 0 0 96px;
}

.partner-section .partner-showcase,
html[data-theme="dark"] .partner-section .partner-showcase {
  padding-top: 0;
}

.partner-section .partner-metrics-ribbon {
  position: relative;
  z-index: 4;
  min-height: 124px;
  margin-top: 0;
  margin-bottom: -62px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(11, 45, 70, 0.1);
  transform: translateY(-62px);
}

.partner-section .partner-intro {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 96px;
  text-align: center;
}

.partner-section .partner-intro h2,
html[data-theme="dark"] .partner-section .partner-intro h2 {
  max-width: 900px;
  font-size: clamp(2rem, 2.8vw, 2.4rem);
  line-height: 1.18;
}

.partner-section .partner-content {
  padding-top: 48px;
}

.partner-section .company-track {
  gap: 56px;
}

.partner-section .company-tile,
html[data-theme="dark"] .partner-section .company-tile {
  width: 200px;
  min-width: 200px;
  min-height: 58px;
}

.partner-section .company-logo-wrap {
  height: 58px;
}

.partner-section .company-tile img {
  width: 150px;
  height: 46px;
  max-width: 160px;
  max-height: 46px;
  object-fit: contain;
}

.partner-section .company-tile.is-wordmark > strong,
.partner-section .company-tile.logo-failed > strong {
  font-size: 1.05rem;
}

.placement-proof-cta {
  margin-top: 48px;
}

.partner-section + .home-benefits-section {
  padding-top: var(--section-space);
}

html[data-theme="light"] body main > section.contact-section#contact-form {
  background: #102f4a !important;
  color: #ffffff;
}

html[data-theme="light"] .contact-section :is(h2, address) {
  color: #ffffff;
}

html[data-theme="light"] .contact-section .eyebrow,
html[data-theme="light"] .contact-section .contact-links a {
  color: #73d9bd;
}

html[data-theme="light"] .contact-section .contact-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(115, 217, 189, 0.3);
  border-radius: 999px;
  background: rgba(115, 217, 189, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Contrast-safe dark surfaces. These intentionally outrank generic section text. */
html[data-theme="light"] body main > section.section.demo-section:not(.hero):not(.dark-section):nth-of-type(n),
html[data-theme="light"] body main > section.section.contact-section:not(.hero):not(.dark-section):nth-of-type(n) {
  background: #102f4a !important;
  color: #ffffff;
}

html[data-theme="light"] .dark-section :is(h1, h2, h3, h4),
html[data-theme="light"] .demo-section :is(h1, h2, h3, h4),
html[data-theme="light"] .contact-section :is(h1, h2, h3, h4),
html[data-theme="light"] .consult-band :is(h1, h2, h3, h4) {
  color: #ffffff;
}

html[data-theme="light"] .dark-section :is(p:not(.eyebrow), li),
html[data-theme="light"] .demo-section :is(p:not(.eyebrow), li),
html[data-theme="light"] .contact-section .contact-copy > p:not(.eyebrow),
html[data-theme="light"] .consult-band p {
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] :is(.dark-section, .demo-section, .contact-section, .consult-band) .eyebrow,
html[data-theme="light"] .demo-section .award-pill,
html[data-theme="light"] .contact-section .contact-links a {
  color: #73d9bd;
}

html[data-theme="light"] .demo-section .award-pill {
  border-color: rgba(115, 217, 189, 0.28);
  background: rgba(115, 217, 189, 0.1);
}

html[data-theme="light"] .demo-section .demo-metrics :is(strong, span),
html[data-theme="light"] .contact-section address {
  color: #ffffff;
}

html[data-theme="light"] .contact-section .contact-form,
html[data-theme="light"] .demo-section .demo-form {
  color: #172b3a;
}

html[data-theme="light"] .contact-section .contact-form :is(h2, h3, label),
html[data-theme="light"] .demo-section .demo-form :is(h2, h3, label) {
  color: #0b2d46;
}

html[data-theme="light"] .demo-section .demo-form p {
  color: #526978;
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-tight {
  padding-top: var(--section-space-tight);
  padding-bottom: var(--section-space-tight);
}

.section-compact {
  padding-top: var(--section-space-compact);
  padding-bottom: var(--section-space-compact);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section h2,
.section-heading h2 {
  font-size: clamp(2rem, 2.6vw, 2.25rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-heading > p:not(.eyebrow),
.rich-text p,
.feature-card p,
.course-card p,
.service-grid p,
.blog-card p {
  font-size: 0.96rem;
  line-height: 1.65;
}

.home-benefits-grid,
.course-grid,
.curriculum-preview-grid,
.feature-grid,
.service-grid,
.blog-grid,
.testimonial-grid,
.syllabus-grid,
.detail-columns {
  gap: 24px;
}

.home-benefit-card,
.feature-card,
.service-grid article,
.curriculum-preview-card,
.blog-card,
.testimonial-card,
.detail-list-card {
  padding: 26px;
}

.course-card {
  padding: 28px;
}

.page-hero-panel.page-proof-panel,
html[data-theme="light"] .page-hero-panel.page-proof-panel {
  justify-items: stretch;
  gap: 20px;
  max-width: 480px;
  margin-left: auto;
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 18px 45px rgba(11, 45, 70, 0.08);
}

.page-proof-badge {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e6f7f2;
  color: #04735e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero-panel.page-proof-panel h2 {
  margin: 0;
  color: #0b2d46;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.page-proof-steps {
  display: grid;
  gap: 12px;
}

.page-proof-steps div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e1e9e6;
  border-radius: 12px;
  background: #f7f9f8;
}

.page-proof-steps span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d9f7ed;
  color: #04735e;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 850;
}

.page-proof-steps p {
  margin: 0 !important;
  color: #253f50 !important;
  font-size: 0.9rem !important;
  font-weight: 650;
  line-height: 1.35 !important;
}

.page-proof-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}

.page-proof-metrics div {
  padding: 16px;
  border-radius: 12px;
  background: #0b2d46;
  color: #ffffff;
}

.page-proof-metrics strong {
  display: block;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.page-proof-metrics small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
}

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

.feature-card {
  min-height: 0;
}

.feature-card .feature-number {
  margin-bottom: 20px;
}

/* Newton-inspired programme architecture, adapted to Ziffy's content. */
@media (min-width: 861px) {
  .hero-grid,
  .split,
  .contact-grid,
  .premium-band,
  .page-hero-grid,
  .course-catalog-hero-grid,
  .course-program-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-grid {
  gap: clamp(48px, 5vw, 72px);
  align-items: start;
}

.hero-copy {
  padding-top: 28px;
}

.hero-proofline {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.hero-proofline span {
  position: relative;
  padding-left: 15px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.83rem;
  font-weight: 500;
}

.hero-proofline span::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00bf8e;
}

.hero-proofline strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.course-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.newton-course-card,
html[data-theme="light"] .newton-course-card {
  --course-accent: #04735e;
  --course-accent-soft: #edf8f3;
  min-height: 0;
  height: 100%;
  padding: 32px;
  border: 1px solid #d9e2df;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(11, 45, 70, 0.05);
  display: flex;
  flex-direction: column;
}

.newton-course-card.course-accent-green,
.newton-course-card.course-accent-blue,
html[data-theme="light"] .newton-course-card.course-accent-green,
html[data-theme="light"] .newton-course-card.course-accent-blue {
  --course-accent: #04735e;
  --course-accent-soft: #edf8f3;
}

.newton-course-card.featured,
html[data-theme="light"] .newton-course-card.featured {
  border-color: color-mix(in srgb, var(--course-accent) 48%, #d9e2df);
  background: #ffffff;
  box-shadow: inset 0 4px 0 var(--course-accent), 0 14px 36px rgba(0, 110, 87, 0.08);
}

.newton-course-card.is-hidden,
html[data-theme="light"] .newton-course-card.is-hidden {
  display: none;
}

.newton-course-card .course-card-heading {
  min-height: 142px;
}

.newton-course-card .course-card-topline {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.newton-course-card .course-card-topline span,
.newton-course-card .course-card-topline em {
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--course-accent-soft);
  color: var(--course-accent);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.newton-course-card .course-card-topline em {
  margin-left: auto;
  background: #0b2d46;
  color: #ffffff;
}

.newton-course-card h3 {
  margin-top: 18px;
  color: var(--course-accent);
  font-size: clamp(1.45rem, 1.9vw, 1.75rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.newton-course-card .course-card-heading > p {
  margin-top: 10px;
  color: #526978;
  font-size: 0.9rem;
  line-height: 1.58;
}

.course-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.course-fact-grid > div {
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid #e3e9e7;
  border-radius: 10px;
  background: #f5f7f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-fact-grid small {
  color: #4f6572;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.course-fact-grid strong {
  margin-top: 5px;
  color: #0b2d46;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.course-benefits {
  margin-top: 24px;
}

.course-benefits h4 {
  color: #0b2d46;
  font-size: 0.94rem;
  font-weight: 700;
}

.course-benefits ul {
  margin-top: 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.course-benefits li {
  position: relative;
  padding-left: 30px;
  color: #3f5665;
  font-size: 0.9rem;
  line-height: 1.48;
}

.course-benefits li > span {
  position: absolute;
  top: 0.08em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--course-accent);
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.course-card-actions {
  margin-top: auto;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.course-card-actions .btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  padding-right: 14px;
  padding-left: 14px;
  text-align: center;
  text-decoration: none;
}

.newton-course-card .course-card-actions .btn-primary,
.newton-course-card .course-card-actions .btn-primary:hover,
.newton-course-card .course-card-actions .btn-primary:focus-visible {
  border-color: var(--course-accent);
  background: var(--course-accent);
  color: #ffffff;
  text-decoration: none;
}

.newton-course-card .course-card-actions .btn-dark-outline,
.newton-course-card .course-card-actions .btn-dark-outline:hover,
.newton-course-card .course-card-actions .btn-dark-outline:focus-visible {
  color: #0b2d46;
  text-decoration: none;
}

.course-card-proof {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e3e9e7;
  color: #607481 !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  line-height: 1.4 !important;
  text-align: center;
}

.course-card-proof span {
  color: #009b78;
}

.page-hero,
.course-catalog-hero,
.course-program-hero {
  padding-top: 76px;
  padding-bottom: 76px;
}

.page-hero h1,
.course-catalog-copy h1,
.course-program-copy h1 {
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.center-actions {
  margin-top: 32px;
}

.footer-main-grid {
  padding-top: 64px;
  padding-bottom: 58px;
}

@media (max-width: 860px) {
  :root {
    --section-space: 60px;
    --section-space-tight: 52px;
    --section-space-compact: 42px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .page-hero,
  .course-catalog-hero,
  .course-program-hero {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .partner-section.section-compact {
    padding-bottom: 64px;
  }

  .partner-section .partner-intro {
    padding-top: 64px;
  }

  .partner-section .partner-metrics-ribbon {
    margin-bottom: -62px;
    transform: translateY(-62px);
  }

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

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

  .newton-course-card .course-card-heading {
    min-height: 0;
  }

  .hero-copy {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .partner-section .partner-metrics-ribbon {
    margin-bottom: -88px;
    transform: translateY(-88px);
  }

  .partner-section .partner-intro {
    padding-top: 88px;
  }
}

@media (max-width: 560px) {
  :root {
    --section-space: 48px;
    --section-space-tight: 44px;
    --section-space-compact: 36px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section h2,
  .section-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }

  .home-benefit-card,
  .feature-card,
  .service-grid article,
  .course-card,
  .curriculum-preview-card,
  .blog-card,
  .testimonial-card,
  .detail-list-card {
    padding: 22px;
  }

  .page-hero,
  .course-catalog-hero,
  .course-program-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }


  .partner-section.section-compact {
    padding-bottom: 48px;
  }

  .partner-section .partner-intro {
    padding-top: 48px;
  }

  .partner-section .partner-metrics-ribbon {
    margin-bottom: -88px;
    transform: translateY(-88px);
  }

  .partner-section .company-track {
    gap: 32px;
  }

  .partner-section .company-tile {
    width: 160px;
    min-width: 160px;
  }

  .partner-section .company-tile img {
    width: 128px;
    height: 40px;
    max-width: 132px;
    max-height: 40px;
  }

  .course-fact-grid,
  .course-card-actions {
    grid-template-columns: 1fr;
  }

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

  .course-fact-grid > div {
    min-height: 0;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    font-size: 0;
  }

  .floating-whatsapp::before {
    content: none;
  }

  .floating-whatsapp img {
    width: 25px;
    height: 25px;
  }
}

/* Professional motion layer: visible by default, animated only when JS enables it. */
.partner-section .partner-metrics-ribbon {
  --reveal-final-transform: translateY(-62px);
}

@media (max-width: 760px) {
  .partner-section .partner-metrics-ribbon {
    --reveal-final-transform: translateY(-88px);
  }
}

.reveal {
  --reveal-delay: 0ms;
  --reveal-final-transform: none;
  opacity: 1;
  transform: var(--reveal-final-transform);
  filter: none;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(2px);
    transition:
      opacity 0.72s cubic-bezier(0.2, 0.72, 0.18, 1),
      transform 0.72s cubic-bezier(0.2, 0.72, 0.18, 1),
      filter 0.72s cubic-bezier(0.2, 0.72, 0.18, 1);
    transition-delay: var(--reveal-delay);
    will-change: opacity, transform, filter;
  }

  .motion-ready .reveal.is-visible {
    opacity: 1;
    transform: var(--reveal-final-transform);
    filter: blur(0);
  }

  .motion-ready .hero-copy.reveal {
    transform: translate3d(-18px, 18px, 0);
  }

  .motion-ready .hero-enquiry-card.reveal,
  .motion-ready .catalog-guide-card.reveal,
  .motion-ready .course-lead-card.reveal,
  .motion-ready .page-hero-panel.reveal {
    transform: translate3d(18px, 18px, 0) scale(0.985);
  }

  .motion-ready .hero-copy.reveal.is-visible,
  .motion-ready .hero-enquiry-card.reveal.is-visible,
  .motion-ready .catalog-guide-card.reveal.is-visible,
  .motion-ready .course-lead-card.reveal.is-visible,
  .motion-ready .page-hero-panel.reveal.is-visible {
    transform: var(--reveal-final-transform);
  }

  .motion-ready .partner-section .partner-metrics-ribbon.reveal {
    transform: translateY(-42px) scale(0.985);
  }

  .motion-ready .partner-section .partner-metrics-ribbon.reveal.is-visible {
    transform: var(--reveal-final-transform);
  }

  .motion-ready .section-heading.reveal.is-visible .eyebrow::before {
    animation: ziffyPulseDot 1.9s ease-in-out 0.35s 2;
  }

  .hero h1 span {
    animation: ziffyTextGlow 4.8s ease-in-out infinite;
  }

  .partner-section .partner-metrics-ribbon div,
  .partner-section .company-tile,
  .newton-course-card,
  .home-benefit-card,
  .feature-card,
  .service-grid article,
  .curriculum-preview-card,
  .blog-card,
  .testimonial-card,
  .detail-list-card,
  .syllabus-card,
  .faq-list details {
    transition:
      transform 0.28s cubic-bezier(0.2, 0.72, 0.18, 1),
      box-shadow 0.28s ease,
      border-color 0.28s ease,
      background-color 0.28s ease;
  }

  .newton-course-card,
  .home-benefit-card,
  .feature-card,
  .service-grid article,
  .curriculum-preview-card,
  .blog-card,
  .testimonial-card,
  .detail-list-card,
  .syllabus-card,
  .faq-list details {
    position: relative;
    overflow: hidden;
  }

  .newton-course-card::after,
  .home-benefit-card::after,
  .feature-card::after,
  .service-grid article::after,
  .curriculum-preview-card::after,
  .blog-card::after,
  .testimonial-card::after,
  .detail-list-card::after,
  .syllabus-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(0, 191, 142, 0.08) 45%, transparent 70%);
    opacity: 0;
    transform: translateX(-35%);
    transition: opacity 0.32s ease, transform 0.56s ease;
  }

  .newton-course-card:hover,
  .home-benefit-card:hover,
  .feature-card:hover,
  .service-grid article:hover,
  .curriculum-preview-card:hover,
  .blog-card:hover,
  .testimonial-card:hover,
  .detail-list-card:hover,
  .syllabus-card:hover,
  .faq-list details:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 154, 117, 0.34);
    box-shadow: 0 18px 42px rgba(11, 45, 70, 0.1);
  }

  .newton-course-card:hover::after,
  .home-benefit-card:hover::after,
  .feature-card:hover::after,
  .service-grid article:hover::after,
  .curriculum-preview-card:hover::after,
  .blog-card:hover::after,
  .testimonial-card:hover::after,
  .detail-list-card:hover::after,
  .syllabus-card:hover::after {
    opacity: 1;
    transform: translateX(35%);
  }

  .partner-section .partner-metrics-ribbon div:hover,
  .partner-section .company-tile:hover {
    transform: translateY(-4px);
  }

  .btn,
  .nav-links a,
  .floating-whatsapp {
    transition:
      transform 0.22s cubic-bezier(0.2, 0.72, 0.18, 1),
      box-shadow 0.22s ease,
      background-color 0.22s ease,
      color 0.22s ease,
      border-color 0.22s ease;
  }

  .btn:hover,
  .floating-whatsapp:hover {
    transform: translateY(-2px);
  }
}

@keyframes ziffyPulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 191, 142, 0);
  }

  45% {
    box-shadow: 0 0 0 9px rgba(0, 191, 142, 0.16);
  }
}

@keyframes ziffyTextGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(0, 191, 142, 0);
  }

  50% {
    text-shadow: 0 0 24px rgba(0, 191, 142, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: var(--reveal-final-transform) !important;
    filter: none !important;
  }
}
