/* ============================================================
   NCM Theme – Responsive Styles
   ============================================================ */

/* ==========================
   Large Desktop (max-width: 1200px)
   ========================== */
@media (max-width: 1200px) {

  /* --- Hero --- */
  .hero-swiper {
    height: 75vh;
    min-height: 460px;
    max-height: 660px;
  }
  .hero-title {
    font-size: 46px;
  }

  /* --- Inner Hero --- */
  .ncm-hero-inner .hero-inner-title {
    font-size: 38px;
  }

  /* --- Stats Bar --- */
  .hero-stats-bar .stats-card {
    gap: 28px;
    padding: 24px 16px;
  }
  .hero-stats-bar .stat-value {
    font-size: 22px;
  }

  /* --- Section Titles --- */
  .section-title {
    font-size: 36px;
  }

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

  /* --- Navigation --- */
  .navbar-nav .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ==========================
   Tablet (max-width: 992px)
   ========================== */
@media (max-width: 991px) {

  /* --- Mobile Slide Menu --- */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    padding: 24px;
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column;
  }
  .navbar-collapse.show {
    left: 0;
  }

  /* Mobile menu overlay */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 36, 64, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile menu close button */
  .mobile-menu-close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: var(--navy);
    cursor: pointer;
    margin-bottom: 16px;
    transition: all var(--transition);
  }
  .mobile-menu-close:hover {
    background: var(--navy);
    color: var(--white);
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .navbar-nav .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .navbar-nav .nav-link::after {
    display: none;
  }

  /* Mobile menu brand */
  .mobile-menu-brand {
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--gold);
  }

  /* Mobile menu CTA */
  .mobile-menu-cta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  /* Hamburger */
  .navbar-toggler {
    border: none;
    padding: 8px;
    font-size: 24px;
    color: var(--navy);
    background: none;
    cursor: pointer;
  }
  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }

  /* --- Hero --- */
  .hero-swiper {
    height: 500px;
    min-height: 400px;
    max-height: 600px;
  }
  .hero-slide-content {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-text {
    font-size: 15px;
  }
  .hero-nav-arrows {
    right: 32px;
    bottom: 24px;
  }
  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .hero-swiper .swiper-pagination {
    left: 32px !important;
  }

  /* --- Inner Hero --- */
  .ncm-hero-inner {
    padding: 80px 0 48px;
    min-height: 220px;
  }
  .ncm-hero-inner .hero-inner-title {
    font-size: 34px;
  }
  .ncm-hero-inner .hero-inner-subtitle {
    font-size: 15px;
  }

  /* --- Stats Bar --- */
  .hero-stats-bar .stats-card {
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 20px;
    justify-content: space-around;
  }
  .hero-stats-bar .stat-divider {
    display: none;
  }
  .hero-stats-bar .stat-item {
    min-width: 140px;
  }

  /* --- Sections --- */
  .section-padding {
    padding: 60px 0;
  }
  .section-title {
    font-size: 32px;
  }

  /* --- CTA --- */
  .cta-section {
    padding: 60px 0;
  }
  .cta-title {
    font-size: 28px;
  }

  /* --- Footer --- */
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }

  /* --- Floating Form --- */
  .floating-form-card {
    position: static;
    margin-top: 32px;
  }

  /* --- Hero Enquiry Overlay --- */
  .hero-enquiry-overlay .row {
    flex-direction: column;
  }
  .hero-enquiry-overlay .col-lg-5 {
    max-width: 100%;
  }

  /* --- Campus Swiper --- */
  .campus-swiper .swiper-slide img {
    height: 260px;
  }

  /* --- Tab Navigation Scroll --- */
  .ncm-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
  .ncm-tabs::-webkit-scrollbar {
    display: none;
  }
  .ncm-tabs .nav-link,
  .ncm-tabs .tab-link {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* --- Sidebar below content --- */
  .sidebar-column {
    order: 2;
    margin-top: 40px;
  }
  .content-column {
    order: 1;
  }

  /* --- Card Grid --- */
  .card-grid-3 > .col-lg-4,
  .card-grid-3 > [class*="col-lg-4"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ==========================
   Mobile (max-width: 768px)
   ========================== */
@media (max-width: 767px) {

  /* --- Typography Scale --- */
  body {
    font-size: 15px;
    line-height: 1.65;
  }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }

  .content-body h2 {
    font-size: 22px;
    margin-top: 28px;
  }
  .content-body h3 {
    font-size: 18px;
    margin-top: 24px;
  }

  /* --- Hero --- */
  .hero-swiper {
    height: 440px;
    min-height: 360px;
    max-height: 500px;
  }
  .hero-slide-content {
    padding: 48px 0;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .hero-text {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .hero-btn-primary,
  .hero-btn-outline {
    padding: 12px 24px;
    font-size: 14px;
  }
  .hero-nav-arrows {
    display: none;
  }
  .hero-swiper .swiper-pagination {
    left: 50% !important;
    transform: translateX(-50%);
    text-align: center;
    bottom: 24px !important;
  }

  /* --- Inner Hero --- */
  .ncm-hero-inner {
    padding: 70px 0 40px;
    min-height: 200px;
  }
  .ncm-hero-inner .hero-inner-title {
    font-size: 28px;
  }
  .ncm-hero-inner .hero-inner-subtitle {
    font-size: 14px;
  }

  /* --- Breadcrumb --- */
  .ncm-breadcrumb {
    padding: 10px 0;
  }
  .ncm-breadcrumb .breadcrumb-list {
    font-size: 12px;
    flex-wrap: wrap;
  }

  /* --- Stats Bar --- */
  .hero-stats-bar {
    margin-top: -24px;
  }
  .hero-stats-bar .stats-card {
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
    align-items: stretch;
  }
  .hero-stats-bar .stat-item {
    min-width: auto;
    justify-content: flex-start;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border);
  }
  .hero-stats-bar .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* --- Section Spacing --- */
  .section-padding {
    padding: 48px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .section-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .section-eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  /* --- CTA Section --- */
  .cta-section {
    padding: 48px 0;
    text-align: center;
  }
  .cta-title {
    font-size: 24px;
  }
  .cta-text {
    font-size: 15px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-cta-white,
  .btn-cta-outline {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 48px 0 0;
  }
  .footer-heading {
    margin-top: 32px;
    margin-bottom: 14px;
  }
  .footer-bottom-bar {
    font-size: 12px;
    gap: 8px;
    padding: 16px 0;
    margin-top: 32px;
  }

  /* --- Cards --- */
  .pillar-card {
    padding: 24px 20px;
  }
  .pillar-card .pillar-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .pillar-card .pillar-title {
    font-size: 18px;
  }

  .why-card {
    padding: 22px 18px;
  }

  .course-card .course-thumb {
    height: 180px;
  }
  .course-card .course-body {
    padding: 18px;
  }
  .course-card .course-title {
    font-size: 16px;
  }

  .program-card {
    padding: 24px 20px;
  }

  .info-card {
    padding: 18px;
  }

  /* --- Card Grid 1 Column --- */
  .card-grid-3 > .col-lg-4,
  .card-grid-3 > [class*="col-lg-4"],
  .card-grid-3 > [class*="col-md-6"],
  .card-grid-2 > .col-lg-6,
  .card-grid-2 > [class*="col-lg-6"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* --- Campus Swiper --- */
  .campus-swiper .swiper-slide img {
    height: 200px;
  }
  .campus-swiper .swiper-slide {
    opacity: 1;
    transform: scale(1);
  }

  /* --- Testimonials --- */
  .testimonial-card {
    padding: 24px 20px;
  }
  .testimonial-card .testimonial-quote {
    font-size: 14px;
  }

  /* --- Tables (responsive scroll) --- */
  .table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .premium-table {
    display: block;
    overflow-x: auto;
    min-width: 600px;
  }

  /* --- Forms --- */
  .ncm-form .form-control {
    font-size: 16px; /* prevent iOS zoom */
  }
  .floating-form-card {
    padding: 24px 18px;
  }
  .floating-form-card .form-title {
    font-size: 20px;
  }

  /* --- FAQ --- */
  .faq-accordion .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }
  .faq-accordion .faq-answer-inner {
    padding: 0 16px 16px;
    font-size: 14px;
  }

  /* --- Popup Full Width --- */
  .news-popup-overlay {
    padding: 16px;
    align-items: flex-end;
  }
  .news-popup {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .news-popup-header {
    padding: 22px 20px 18px;
  }
  .news-popup-header h3 {
    font-size: 20px;
  }
  .news-popup-body {
    padding: 18px 20px;
    max-height: 50vh;
  }
  .news-popup-footer {
    padding: 14px 20px 20px;
    flex-direction: column;
    gap: 8px;
  }
  .news-popup-footer a,
  .news-popup-footer button {
    width: 100%;
  }
  .news-popup-footer a:only-child {
    min-width: auto;
  }

  /* --- Callout Card --- */
  .callout-card {
    padding: 28px 20px;
  }
  .callout-card .callout-title {
    font-size: 20px;
  }
  .callout-card .callout-text {
    font-size: 14px;
  }

  /* --- Buttons --- */
  .btn-navy,
  .btn-gold,
  .btn-outline-navy {
    padding: 10px 22px;
    font-size: 14px;
  }

  /* --- Sidebar Card --- */
  .sidebar-card {
    padding: 22px 18px;
    margin-bottom: 18px;
  }
  .sidebar-card .sidebar-card-title {
    font-size: 16px;
  }

  /* --- Check Items --- */
  .check-item {
    font-size: 14px;
    gap: 10px;
  }

  /* --- Note Box --- */
  .note-box {
    padding: 16px 18px;
    font-size: 14px;
  }

  /* --- Search Overlay --- */
  .search-input {
    font-size: 24px;
    padding: 12px 0;
  }
  .search-close {
    top: 36px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
  .search-overlay .search-inner {
    padding: 36px 16px;
  }

  /* --- Hide marquee action buttons on mobile --- */
  .marquee-btn,
  .top-header .marquee-actions,
  .top-header-actions {
    display: none !important;
  }

  /* --- Search overlay inner --- */
  .search-overlay .search-overlay-inner {
    padding: 36px 16px;
  }
}

/* ==========================
   Small (max-width: 576px)
   ========================== */
@media (max-width: 575px) {

  /* --- Hero --- */
  .hero-swiper {
    height: 380px;
    min-height: 320px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
  }
  .hero-text {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .hero-buttons,
  .d-flex.gap-3.flex-wrap {
    flex-direction: column;
    gap: 8px;
  }
  .hero-btn-primary,
  .hero-btn-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* --- Inner Hero --- */
  .ncm-hero-inner {
    padding: 60px 0 32px;
    min-height: 160px;
  }
  .ncm-hero-inner .hero-inner-title {
    font-size: 24px;
  }
  .ncm-hero-inner .hero-inner-subtitle {
    font-size: 13px;
  }

  /* --- Sections --- */
  .section-padding {
    padding: 32px 0;
  }
  .section-title {
    font-size: 22px;
  }
  .section-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .section-eyebrow {
    font-size: 11px;
    letter-spacing: 1px;
  }

  /* --- Header Brand --- */
  .header-brand-text {
    font-size: 17px;
  }
  .header-brand-sub {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .header-logo-img {
    height: 40px;
  }

  /* --- Top Header --- */
  .top-header {
    height: 28px;
  }
  .marquee-text {
    font-size: 11px;
    gap: 20px;
    padding: 0 20px;
  }

  /* --- CTA Section --- */
  .cta-title {
    font-size: 22px;
  }
  .cta-text {
    font-size: 14px;
  }

  /* --- Footer --- */
  .footer-brand-text-footer {
    font-size: 20px;
  }
  .footer-brand-sub-footer {
    font-size: 11px;
  }
  .footer-links a {
    font-size: 13px;
  }

  /* --- Cards --- */
  .pillar-card .pillar-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 12px;
  }
  .pillar-card .pillar-title {
    font-size: 17px;
  }
  .pillar-card .pillar-text {
    font-size: 13px;
  }

  .why-card .why-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 10px;
  }
  .why-card .why-title {
    font-size: 16px;
  }

  .program-card .program-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 12px;
  }
  .program-card .program-title {
    font-size: 18px;
  }

  .course-card .course-thumb {
    height: 160px;
  }
  .course-card .course-body {
    padding: 16px;
  }

  /* --- Floating Form --- */
  .floating-form-card {
    padding: 20px 16px;
  }
  .floating-form-card .form-title {
    font-size: 18px;
  }
  .floating-form-card .form-subtitle {
    font-size: 13px;
  }

  /* --- Table --- */
  .premium-table thead th {
    padding: 10px 14px;
    font-size: 12px;
  }
  .premium-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
  }

  /* --- FAQ --- */
  .faq-accordion .faq-question {
    padding: 12px 14px;
    font-size: 14px;
  }
  .faq-accordion .faq-answer-inner {
    padding: 0 14px 14px;
    font-size: 13px;
  }

  /* --- Popup --- */
  .news-popup-header {
    padding: 20px 16px 16px;
  }
  .news-popup-header h3 {
    font-size: 18px;
  }
  .news-popup-header p {
    font-size: 13px;
  }
  .news-popup-body {
    padding: 14px 16px;
  }
  .news-popup-footer {
    padding: 12px 16px 16px;
  }
  .news-item p {
    font-size: 13px;
  }
  .news-item p strong {
    font-size: 14px;
  }

  /* --- Search --- */
  .search-input {
    font-size: 20px;
  }
  .search-overlay .search-inner {
    padding: 28px 12px;
  }

  /* --- Testimonials --- */
  .testimonial-card {
    padding: 20px 16px;
  }
  .testimonial-card .testimonial-quote::before {
    font-size: 36px;
    vertical-align: -12px;
  }

  /* --- Campus Carousel --- */
  .campus-swiper .swiper-slide img {
    height: 180px;
  }

  /* --- Callout Card --- */
  .callout-card {
    padding: 22px 16px;
  }
  .callout-card .callout-title {
    font-size: 18px;
  }

  /* --- Content Body --- */
  .content-body h2 {
    font-size: 20px;
    margin-top: 24px;
  }
  .content-body h3 {
    font-size: 17px;
    margin-top: 20px;
  }
  .content-body {
    font-size: 14px;
  }

  /* --- Link Arrow --- */
  .link-arrow {
    font-size: 14px;
  }

  /* --- Buttons Full Width --- */
  .btn-navy,
  .btn-gold,
  .btn-outline-navy {
    width: 100%;
    justify-content: center;
  }

  /* --- Breadcrumb --- */
  .ncm-breadcrumb .breadcrumb-list {
    font-size: 11px;
    gap: 6px;
  }

  /* --- Note Box --- */
  .note-box {
    padding: 14px 16px;
    font-size: 13px;
    margin: 16px 0;
  }
}

/* ==========================
   Tablet: Prefooter CTA stacking
   ========================== */
@media (max-width: 991px) {
  .prefooter-cta-section .cta-title,
  .prefooter-cta-section .cta-text {
    text-align: center;
  }
  .prefooter-cta-section .text-lg-end {
    text-align: center !important;
  }

  /* --- Still Questions CTA --- */
  .still-questions-cta {
    padding: 36px 24px;
  }
  .still-questions-cta h3 {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  /* --- Prefooter CTA buttons stack --- */
  .prefooter-cta-section .btn-cta-white,
  .prefooter-cta-section .btn-cta-outline {
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
    margin: 0 auto 8px;
  }

  /* --- Stats bar colored cards --- */
  .stats-bar-section .row {
    gap: 0;
  }

  /* --- Gallery grid smaller --- */
  .gallery-grid-section .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* --- Still Questions CTA --- */
  .still-questions-cta {
    padding: 28px 20px;
  }
  .still-questions-cta h3 {
    font-size: 22px;
  }

  /* --- Timeline on mobile --- */
  .timeline-section .timeline {
    padding-left: 36px !important;
  }
  .timeline-item > div:first-child {
    left: -36px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 575px) {
  /* --- Enquiry form sidebar --- */
  .enquiry-form-section .col-md-4 {
    order: 2;
  }
  .enquiry-form-section .col-md-8 {
    order: 1;
  }

  /* --- Guidance sidebar --- */
  .guidance-sidebar {
    margin-bottom: 32px;
  }

  /* --- Fee highlight cards --- */
  .fee-highlight-card {
    padding: 24px 18px;
  }
  .fee-highlight-card .fee-card-value {
    font-size: 24px;
  }

  /* --- Gallery grid full width on very small --- */
  .gallery-grid-section .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ==========================
   Print Styles
   ========================== */
@media print {
  .top-header,
  .site-header,
  .hero-slider-section,
  .hero-nav-arrows,
  .search-overlay,
  .news-popup-overlay,
  .cta-section,
  .campus-section,
  .mobile-menu-overlay,
  .navbar-toggler {
    display: none !important;
  }
  .site-footer {
    background: none;
    color: #333;
    padding: 20px 0;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .section-padding {
    padding: 20px 0;
  }
}
