@media (max-width: 1199px) {
  .calc-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .calc-nav button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .calc-cat {
    display: none;
  }

  .hero-inner,
  .why-grid,
  .about-grid,
  .tedx-block,
  .women-grid,
  .calc-layout,
  .blog-feature,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
    order: 2;
    margin-top: 32px;
  }

  .float-1 {
    left: 0;
  }

  .float-2,
  .float-3 {
    right: 0;
  }

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

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

/* ---- Header responsive cascade ---- */

/* Large desktop: slight tightening for comfortable fit */
@media (max-width: 1280px) {
  .header-inner {
    gap: 10px;
  }

  .nav-desktop {
    gap: 10px;
  }

  .nav-link {
    font-size: 12.5px;
  }

  .header-contact {
    font-size: 11.5px;
    gap: 5px;
  }

  .header-contact-link span {
    /* Show phone/email text on desktop */
    display: inline;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-ms {
    padding: 0 14px;
    font-size: 12px;
    min-height: 36px;
  }
}

/* Medium tablet: collapse nav + contact into hamburger */
@media (max-width: 1050px) {

  .nav-desktop,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .btn-ms {
    display: inline-flex;
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }
}

@media (max-width: 991px) {

  .counter-grid,
  .path-grid,
  .resource-grid,
  .blog-grid,
  .gallery-grid,
  .workshop-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-card:first-child {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .counter-item:not(:last-child)::after {
    display: none;
  }

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

  .ba-arrow {
    transform: rotate(90deg);
  }

  .women-points,
  .women-program-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 576px) {
    .women-program-steps {
      grid-template-columns: 1fr;
    }
  }

  .progress-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .progress-row::before {
    left: 18px;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 1px;
    height: auto;
  }

  .progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .progress-step i {
    margin: 0;
  }

  .fab-stack,
  .floating-contacts {
    display: none;
  }

  .mobile-cta-bar {
    display: grid;
  }

  body {
    padding-bottom: 64px;
  }

  .section {
    padding: 80px 0;
  }

  .tedx-block {
    margin-top: 56px;
    padding: 36px 28px;
    gap: 32px;
  }
}

@media (max-width: 767px) {

  .container-ms,
  .header-inner {
    width: min(calc(100% - 20px), var(--container));
  }

  .tedx-block {
    margin-top: 40px;
    padding: 24px 18px;
    gap: 24px;
    border-radius: 20px;
  }

  .tedx-block h2 {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 12px;
  }

  .tedx-block p {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .tedx-block .video-thumb {
    width: 100%;
    border-radius: 14px;
  }

  .tedx-block .play-btn {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .brand-logo img {
    height: 46px;
  }

  /* Hide header Enroll Now button on mobile to keep top header clean and spacious */
  .header-actions .btn-enroll,
  .header-actions .btn-ms {
    display: none !important;
  }

  /* Floating Social Media Buttons on Mobile */
  .floating-socials {
    right: 10px;
    gap: 10px;
    width: auto;
    padding: 0;
  }

  .floating-social-link {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .floating-social-link i {
    font-size: 16px;
  }

  /* Mobile toggle button */
  .menu-toggle {
    width: 38px;
    height: 38px;
    gap: 4.5px;
    border-radius: 8px;
  }

  .menu-toggle span {
    width: 19px;
    height: 2px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-actions,
  .final-cta .actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ms {
    width: 100%;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .learner-marquee-track img {
    height: 180px;
  }

  .learner-marquee-label {
    font-size: 22px;
  }

  .cert-button-prev,
  .cert-button-next {
    display: none;
  }

  .women-grid {
    gap: 40px;
  }

  .women-program-steps {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .women-visual-wrap {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    padding: 10px 10px 16px 0;
  }

  .women-visual-wrap::before {
    left: 14px;
    bottom: 20px;
  }

  .program-row {
    grid-template-columns: 1fr;
  }

  .ticker-label {
    font-size: 10px;
    padding: 0 10px;
  }

  .hero-visual {
    min-height: 320px;
    margin-top: 20px;
  }

  .portrait-wrap {
    width: min(100%, 270px);
    margin: 0 auto;
  }

  .float-card {
    min-width: 90px;
    padding: 6px 9px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  }

  .float-card strong {
    font-size: 12px;
    line-height: 1.1;
  }

  .float-card span {
    font-size: 9.5px;
  }

  .float-1 {
    left: -18px;
    top: 38%;
  }

  .float-2 {
    right: -18px;
    top: 8%;
  }

  .float-3 {
    right: -18px;
    bottom: 4%;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .scroll-reveal {
    transform: translateY(12px);
  }
}

@media (max-width: 640px) {
  .about-roles {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0 20px;
  }

  .role-chip {
    padding: 8px 10px;
    font-size: 12px;
    gap: 7px;
    border-radius: 10px;
  }

  .role-chip i {
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 6px;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 16px;
  }

  .counter-num {
    font-size: 32px;
  }

  .why-item {
    grid-template-columns: 48px 1fr;
  }

  .about-roles {
    gap: 8px 6px;
    margin: 14px 0 18px;
  }

  .role-chip {
    padding: 7px 7px;
    font-size: 11px;
    gap: 5px;
    border-radius: 8px;
  }

  .role-chip i {
    width: 20px;
    height: 20px;
    font-size: 11px;
    border-radius: 5px;
  }

  .tedx-block {
    margin-top: 32px;
    padding: 18px 14px;
    gap: 18px;
    border-radius: 16px;
  }

  .tedx-block h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .tedx-block p {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  .tedx-block .play-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .floating-socials {
    right: 7px;
    gap: 8px;
    width: auto;
    padding: 0;
  }

  .floating-social-link {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .floating-social-link i {
    font-size: 14px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1240px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1320px;
  }
}
@media (max-width: 575.98px) {
  .float-name {
    left: -18px;
    bottom: 4%;
  }

  .mission-band {
    padding: 40px 0;
  }
}
