/* ==========================================================================
   RESPONSIVE.CSS — Mulan Neurodiversity School (MNS)
   Responsive styles for Tablet & Mobile breakpoints
   ========================================================================== */

/* --- Tablet: 768px – 1023px --- */
@media (max-width: 1023px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .main-nav {
    gap: 20px;
  }

  .nav-list {
    gap: 20px;
  }

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

  .about-text-col {
    grid-column: span 2;
  }

  .about-center-col {
    grid-column: span 1;
  }

  .about-right-col {
    grid-column: span 1;
  }

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

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

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

  .programmes-carousel-wrapper {
    height: 360px;
    padding: 0 40px;
    overflow: hidden;
  }

  .programme-card {
    width: 300px;
    height: 270px;
    border-radius: 30px;
  }

  .programme-card.active-card {
    transform: translate(-50%, -50%) scale(1.06);
  }

  .programme-card.card-prev {
    left: calc(50% - 290px);
  }

  .programme-card.card-next {
    left: calc(50% + 290px);
  }

  .programme-card.card-hidden-left {
    left: calc(50% - 600px);
  }

  .programme-card.card-hidden-right {
    left: calc(50% + 600px);
  }

  .testimonials-carousel-wrapper {
    height: 400px;
    padding: 0 40px;
    overflow: hidden;
  }

  .testimonial-card {
    width: 280px;
    min-height: 290px;
    padding: 24px 20px;
    border-radius: 26px;
  }

  .testimonial-card.active-test-card {
    transform: translate(-50%, -50%) scale(1.06);
  }

  .testimonial-card.test-prev {
    left: calc(50% - 270px);
  }

  .testimonial-card.test-next {
    left: calc(50% + 270px);
  }

  .testimonial-card.test-hidden-left {
    left: calc(50% - 580px);
  }

  .testimonial-card.test-hidden-right {
    left: calc(50% + 580px);
  }

  /* --- Hero Section (Tablet) --- */
  .hero-section {
    min-height: 100vh;
    padding-top: 120px;
  }

  .hero-gradient-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(23, 36, 99, 0.2) 100%);
  }
}

/* --- Mobile: Below 768px --- */
@media (max-width: 767px) {
  .site-header {
    top: 40px;
    padding: 0 16px;
  }

  .nav-container {
    height: 64px;
    padding: 0 16px;
  }

  .site-logo img {
    height: 36px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 104px;
    left: 16px;
    right: 16px;
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-link {
    padding: 8px 0;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 10px 0 10px 16px;
    width: 100%;
  }

  .btn-nav-cta {
    text-align: center;
    width: 100%;
  }

  /* --- Hero Section (Mobile) --- */
  .hero-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 30px;
  }

  .hero-gradient-overlay {
    background: linear-gradient(360deg, rgba(23, 36, 99, 0.95) 0%, rgba(23, 36, 99, 0.7) 60%, rgba(23, 36, 99, 0.3) 100%);
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-eyebrow {
    display: none;
  }

  .hero-subtitle {
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn-hero, .btn-link-hero {
    width: 100%;
    justify-content: center;
  }

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

  .about-text-col,
  .about-center-col,
  .about-right-col {
    grid-column: span 1;
  }

  .support-card-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-thumb-wrap {
    width: 100%;
    height: 200px;
  }

  .programmes-carousel-wrapper {
    height: 320px;
    padding: 0 16px;
    overflow: hidden;
  }

  .programme-card {
    width: calc(100vw - 80px);
    max-width: 320px;
    height: 260px;
    border-radius: 24px;
  }

  .programme-card.active-card {
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
  }

  .programme-card.card-prev {
    left: -70%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    pointer-events: none;
  }

  .programme-card.card-next {
    left: 170%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    pointer-events: none;
  }

  .programme-card.card-hidden-left {
    left: -120%;
    opacity: 0;
    pointer-events: none;
  }

  .programme-card.card-hidden-right {
    left: 220%;
    opacity: 0;
    pointer-events: none;
  }

  .programme-info {
    padding: 20px 22px;
  }

  .programme-title {
    font-size: 1.15rem;
  }

  .programme-desc {
    font-size: 0.85rem;
  }

  .video-container {
    height: 320px;
    border-radius: 28px;
  }

  .video-play-btn {
    width: 64px;
    height: 64px;
  }

  .video-play-btn img {
    width: 24px;
    height: 24px;
  }

  .partners-banner {
    padding: 32px 16px;
  }

  .partners-underline {
    width: 180px;
  }

  .partners-logos-group {
    gap: 36px;
    padding-right: 36px;
  }

  .partner-logo-item img {
    max-height: 44px;
    max-width: 160px;
  }

  .testimonials-carousel-wrapper {
    height: 350px;
    padding: 0 16px;
    overflow: hidden;
  }

  .testimonial-card {
    width: calc(100vw - 80px);
    max-width: 320px;
    min-height: 280px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .testimonial-card.active-test-card {
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
  }

  .testimonial-card.test-prev {
    left: -70%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    pointer-events: none;
  }

  .testimonial-card.test-next {
    left: 170%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    pointer-events: none;
  }

  .testimonial-card.test-hidden-left {
    left: -120%;
    opacity: 0;
    pointer-events: none;
  }

  .testimonial-card.test-hidden-right {
    left: 220%;
    opacity: 0;
    pointer-events: none;
  }

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

  .posts-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .tour-card {
    width: 290px;
    height: 200px;
    border-radius: 24px;
  }

  .tour-card.active-tour-card {
    transform: scale(1.04);
  }

  /* Contact Us Responsive */
  .contact-hero-section {
    min-height: 440px;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-card {
    padding: 32px 20px;
  }

  .form-header-title {
    font-size: var(--font-size-h3);
  }

  .form-input {
    height: 56px;
    font-size: var(--font-size-body-main);
  }

  .form-textarea {
    font-size: var(--font-size-body-main);
  }

  .btn-submit-message {
    height: 60px;
    font-size: var(--font-size-button-1);
  }

  .parent-enquiry-banner {
    padding: 40px 20px;
  }

  .btn-enquiry-submit {
    width: 100%;
    height: 60px;
    font-size: var(--font-size-button-1);
  }

  .map-container {
    height: 340px;
    border-radius: 28px;
  }

  /* FAQ Page Responsive */
  .faq-header-section {
    padding-top: 120px;
    padding-bottom: 32px;
  }

  .faq-search-wrapper {
    height: 60px;
    padding: 0 18px;
    border-radius: 18px;
    margin-top: 24px;
  }

  .faq-search-input {
    font-size: var(--font-size-body-main);
  }

  .faq-group-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .faq-group-icon-box img {
    width: 24px;
    height: 24px;
  }

  .faq-group-title {
    font-size: var(--font-size-h4);
  }

  .faq-accordion-header {
    padding: 16px 18px;
  }

  .faq-accordion-question {
    font-size: var(--font-size-body-lead);
  }

  .faq-accordion-body p {
    font-size: var(--font-size-body-main);
  }

  .faq-cta-banner {
    padding: 40px 20px;
  }

  .btn-faq-cta {
    width: 100%;
    height: 56px;
    font-size: var(--font-size-button-1);
  }

  /* Blog & Updates Responsive */
  .blog-header-section {
    padding-top: 120px;
    padding-bottom: 24px;
  }

  .blog-filter-container {
    height: auto;
    padding: 12px;
    border-radius: 20px;
    margin-top: 24px;
  }

  .blog-filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .blog-tab {
    padding: 10px 18px;
    font-size: var(--font-size-meta);
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Photo Gallery Responsive */
  .gallery-header-section {
    padding-top: 120px;
    padding-bottom: 24px;
  }

  .gallery-bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 16px;
  }

  .gallery-item {
    border-radius: 20px;
  }

  .gallery-item.item-2x2,
  .gallery-item.item-2x1,
  .gallery-item.item-1x2,
  .gallery-item.item-1x1 {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Video Highlights Responsive */
  .video-header-section {
    padding-top: 120px;
    padding-bottom: 24px;
  }

  .video-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .video-card {
    height: 260px;
    border-radius: 18px;
  }

  .video-play-overlay-btn {
    width: 48px;
    height: 48px;
  }

  .video-play-overlay-btn img {
    width: 18px;
    height: 18px;
  }

  .video-player-container {
    height: 240px;
  }

  /* Programmes Page Responsive */
  .programmes-hero-section {
    padding-top: 130px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .programmes-hero-title {
    font-size: var(--font-size-h2);
  }

  .programmes-list-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .programmes-rows-wrapper {
    gap: 60px;
  }

  .programme-detail-row,
  .programme-detail-row-reverse {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
  }

  .programme-detail-content {
    max-width: 100%;
    width: 100%;
  }

  .programme-number-badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 18px;
  }

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

  .programme-detail-title {
    font-size: var(--font-size-h3);
    margin-bottom: 14px;
  }

  .programme-detail-desc {
    font-size: var(--font-size-body-main);
    margin-bottom: 24px;
  }

  .btn-explore-more {
    width: 100%;
    max-width: 240px;
    height: 52px;
  }

  .programme-detail-media {
    width: 100%;
    height: 340px;
    border-radius: 24px;
  }

  /* Single Programme / Sensory Support Responsive */
  .programme-single-hero {
    padding-top: 130px;
    padding-bottom: 70px;
    min-height: auto;
  }

  .programme-single-hero-title {
    font-size: var(--font-size-h2);
  }

  .programme-overview-section {
    margin-top: -30px;
    padding-bottom: 50px;
  }

  .programme-overview-card {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .programme-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .overview-main-heading {
    font-size: var(--font-size-h3);
  }

  .overview-quote-box {
    padding: 20px;
    border-radius: 18px;
    gap: 14px;
  }

  .overview-benefits-heading {
    font-size: var(--font-size-h4);
  }

  .other-expertise-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .other-expertise-title {
    font-size: var(--font-size-h2);
  }

  .other-expertise-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .expertise-card {
    min-height: auto;
    padding: 32px 24px;
  }
}







