/* ======================================================
   MOBILE.CSS — A.G. Public School  (v6 – FINAL)
   Companion to style.css
====================================================== */


/* ======================================================
   1. SAFE GLOBAL RULES
   IMPORTANT:
   - No global img height override (breaks desktop circles)
   - .wipe-line is NOT hidden globally (facilities animation)
   - Vanta canvas is NOT touched (NET background)
   - overflow-x is NOT set globally (breaks position:sticky on desktop)
====================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

iframe { max-width: 100%; }

/* Only things that genuinely bleed out with no animation value */



/* ======================================================
   2. HAMBURGER BUTTON
====================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #4b2e1e;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ======================================================
   3.  ≤ 768px
====================================================== */

@media (max-width: 768px) {

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

.school-footer::after { display: none !important; }
.floating-icons       { display: none !important; }
  img { max-width: 100%; }

  /* Hide admission button on admission page since user is already there */
  .admission-page .mobile-admission-btn { display: none !important; }
  .admission-page .mobile-action-bar { justify-content: center; }

  /* ── TOP BAR ────────────────────────── */
  .top-bar {
    z-index: 1001 !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 14px;
    font-size: 10.5px;
    padding: 4px 12px;
    line-height: 1.3;
  }


  

  header nav.nav-open { display: flex; }

  header nav > a {
    padding: 13px 22px;
    margin: 0;
    border-bottom: 1px solid #f5ede3;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    display: block;
    color: #4b2e1e;
    text-decoration: none;
    letter-spacing: 0.2px;
  }

  header nav > a:last-child { border-bottom: none; }

  .dropdown { width: 100%; position: static; }

  .dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f5ede3;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4b2e1e;
  }

  .dropdown:hover .dropdown-content {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    max-height: 0 !important;
  }

  .dropdown-content {
    position: static !important;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    box-shadow: none !important;
    transform: none !important;
    transition: max-height 0.35s ease, opacity 0.25s ease !important;
    background: #faf6f2;
    padding: 0 !important;
    width: 100%;
    border-radius: 0;
  }

  .dropdown.dropdown-open .dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 300px !important;
    transform: none !important;
  }

  .dropdown-content a {
    padding: 11px 22px 11px 38px;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #f0e8e0;
    width: 100%;
    display: block;
    color: #5a3a22;
    margin: 0 !important;
  }

  .dropdown-content a:last-child { border-bottom: none; }



  .section { padding: 36px 16px; }


  /* ======================================================
     WELCOME
  ====================================================== */

.welcome-section {
margin: 0px 10px 12px;
padding: 22px 18px;
border-radius: 14px;
overflow: hidden !important;
}
.welcome-section{
margin:8px 10px 12px !important;
}
  .welcome-section .welcome-box {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }

  .welcome-animation { flex: none; }

  #welcome-lottie {
    width: 155px !important;
    height: 155px !important;
    animation: none !important;
    transform: none !important;
  }

  .welcome-content h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
  }

  .welcome-content p {
    font-size: 0.88rem;
    line-height: 1.78;
    max-width: 100%;
    text-align: left;
  }

/* Pentagons — GPU-accelerated, smaller on mobile for smooth animation */
.pentagon {
  will-change: transform;        /* promotes to GPU layer — eliminates lag */
  width: 160px !important;       /* smaller = less paint area */
  height: 160px !important;
  opacity: 0.18 !important;      /* subtler on small screen */
}

/* Hide only the last 2 — keep 3 for visual effect without overloading */
.pentagon.p4,
.pentagon.p5 {
  display: none !important;
}
  /* ======================================================
     SCHOOL LIFE — 2 PER ROW
  ====================================================== */

  .school-life-section { padding: 46px 14px; overflow: hidden; }

  .life-header h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 10px; }
  .life-header p  { font-size: 13px; margin-bottom: 24px; }

  .life-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  .life-card         { border-radius: 14px; }
  .life-card img     { height: 130px; }

  .life-overlay {
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  }

  .life-overlay h4 { font-size: 12px; font-weight: 600; line-height: 1.3; }


  /* ======================================================
     EDUCATION WITH VALUES
  ====================================================== */

  .values-section { padding: 46px 16px; overflow: hidden; }

  .values-section .section-title.fancy-title,
  .values-section h2.fancy-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 1.45rem;
    font-weight: 700;
    flex-wrap: nowrap;
  }

  .values-section .fancy-title span {
    white-space: normal;
    text-align: center;
    font-size: 1.45rem;
  }

  .values-section .fancy-title::before,
  .values-section .fancy-title::after {
    display: inline-block !important;
    content: "" !important;
    height: 2px;
    background: linear-gradient(to right, transparent, #c49a6c, transparent);
    opacity: 0;
    animation: growLineMobile 1.4s ease-out forwards !important;
    flex-shrink: 0;
    min-width: 0;
  }

  .values-section .fancy-title::before { animation-delay: 0.1s !important; }
  .values-section .fancy-title::after  { animation-delay: 0.1s !important; }

  @keyframes growLineMobile {
    0%   { width: 0;    opacity: 0; }
    100% { width: 54px; opacity: 1; }
  }

  .values-subtitle {
    font-size: 13px;
    text-align: center;
    margin-bottom: 22px !important;
    line-height: 1.6;
    padding: 0 4px;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    max-width: 100%;
  }

  .value-box { padding: 22px 14px; border-radius: 14px; text-align: center; }

  .value-icon { font-size: 1.65rem; margin-bottom: 11px; }

  .value-box h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 7px;
    line-height: 1.3;
    color: #3a2a1a;
  }

  .value-box p { font-size: 0.77rem; line-height: 1.55; color: #5a4535; }

  .value-box.mobile-active {
    background: #e8d5b8;
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  }

  .value-box.mobile-active h4 { color: #2a180a; }


  /* ======================================================
     DIRECTOR & PRINCIPAL
  ====================================================== */

  .director-section,
  .principal-section {
    padding: 38px 0;
    overflow: hidden;
  }

  .director-container,
  .principal-container {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    padding: 0 18px;
    gap: 18px;
    position: relative;
    z-index: 2;
  }

  .director-image img,
  .principal-image img {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    transition: transform 0.8s ease, box-shadow 0.8s ease;
  }

  .director-name, .principal-name {
    font-size: 0.92rem;
    margin-top: 10px;
    font-weight: 600;
    transition: color 0.5s ease;
  }

  .director-designation, .principal-designation {
    font-size: 0.8rem;
    transition: color 0.5s ease;
  }

  .director-content h3,
  .principal-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #3a2a1a;
    position: relative;
    display: inline-block;
    transition: color 0.5s ease, transform 0.3s ease;
  }

  .director-content h3::after,
  .principal-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #ffaf5a;
    transition: width 0.35s ease;
  }

  .director-content p,
  .principal-content p {
    font-size: 0.88rem;
    line-height: 1.78;
    color: #4a3a2a;
    transition: color 0.5s ease;
    text-align: center;
  }

  .director-section::before,
  .principal-section::before {
    transition: transform 0.5s cubic-bezier(.77,0,.18,1) !important;
  }

  .director-section.mobile-active::before  { transform: translateX(0%) !important; }
  .principal-section.mobile-active::before { transform: translateX(0%) !important; }

  .director-section.mobile-active .director-content h3,
  .director-section.mobile-active .director-content p,
  .director-section.mobile-active .director-name,
  .director-section.mobile-active .director-designation,
  .principal-section.mobile-active .principal-content h3,
  .principal-section.mobile-active .principal-content p,
  .principal-section.mobile-active .principal-name,
  .principal-section.mobile-active .principal-designation {
    color: #fffdfc !important;
  }

  .director-section.mobile-active .director-content h3,
  .principal-section.mobile-active .principal-content h3 {
    transform: translateY(-3px);
  }

  .director-section.mobile-active .director-content h3::after,
  .principal-section.mobile-active .principal-content h3::after {
    width: 100%;
  }

  .director-section.mobile-active .director-image img,
  .principal-section.mobile-active .principal-image img {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  }


  /* ======================================================
     FACILITIES
     KEY FIXES:
     1. overflow: visible — stops Vanta canvas being clipped
     2. justify-content: center + gap: 6px — closes heading gap
     3. white-space: nowrap preserved — keeps wipe animation on 1 line
     4. .wipe-line display: block — restore line sweep animation
  ====================================================== */

  #facilities-section {
    padding: 44px 0;
    min-height: auto !important;
    overflow: visible !important;   /* CRITICAL: visible allows Vanta canvas to render */
    position: relative;
  }

  /* Vanta canvas — absolutely placed, must not be hidden */
  #facilities-section > canvas,
  #facilities-section canvas {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .facilities-content {
    position: relative;
    z-index: 2;
    width: 100%;
  }

  .section-title { margin-bottom: 14px; padding: 0 14px; }

  /* "Our FACILITIES" — one tight line, no gap */
  .facilities-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;   /* closes the gap between "Our" and "FACILITIES" */
    gap: 6px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;       /* keeps text on one line for wipe animation */
    font-size: 1.55rem !important;
    line-height: 1.35;
    padding: 0 14px;
    overflow: hidden;
  }

  .facilities-title .school-text    { font-size: inherit !important; flex-shrink: 0; }
  .facilities-title .facilities-text { font-size: inherit !important; flex-shrink: 0; overflow: hidden; }
  .facilities-title .facilities-inner { font-size: inherit !important; }

  /* Restore wipe-line animation (was hidden in earlier versions) */
  .wipe-line { display: block !important; }

  .section-subtitle {
    font-size: 13px;
    padding: 0 18px;
    margin-bottom: 22px !important;
    line-height: 1.6;
  }

  /* 2-column grid */
  .facilities-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
    padding: 0 14px;
    margin-top: 22px;
  }

  .facility-card {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(60,42,26,0.14);
    background: #ffffff;
  }

  .facility-card img {
    height: 118px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
  }

  .facility-content  { padding: 14px 12px 18px; text-align: center; }
  .facility-content i { font-size: 22px; margin-bottom: 8px; color: #c49a6c; }

  .facility-content h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #3a2a1f;
  }

  .facility-content a { font-size: 12px; }

  /* 5th card (odd last child) centered */
  .facilities-grid .facility-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 7px);
    margin-left: auto;
    margin-right: auto;
  }


  /* ======================================================
     ADMISSION
  ====================================================== */

  .admission-section { padding: 46px 16px; overflow: hidden; }

  .admission-container {
    flex-direction: column;
    gap: 22px;
    text-align: center;
    max-width: 100%;
  }

  .admission-left  { order: 2; }
  .admission-right { order: 1; }

  .admission-title     { font-size: 1.55rem; line-height: 1.2; }
  .admission-highlight { font-size: 1.55rem; }
  .admission-year      { font-size: 1.1rem; }
  .admission-subtext   { font-size: 0.88rem; line-height: 1.65; }
  .admission-item      { text-align: left; font-size: 0.87rem; }

  .admission-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
  }

  .admission-btn {
    width: 100%;
    max-width: 248px;
    justify-content: center;
    padding: 13px 22px;
    font-size: 14px;
  }

  #admission-animation { width: 190px !important; height: 190px !important; }


  /* ======================================================
     WHY CHOOSE — 2 PER ROW
  ====================================================== */

  .why-choose-section { padding: 50px 14px; overflow: hidden; }

  .why-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
  .why-header p  { font-size: 13px; margin-bottom: 28px; line-height: 1.6; }

  .why-grid { grid-template-columns: 1fr 1fr !important; gap: 14px; }

  .why-card { padding: 22px 14px; border-radius: 16px; }
  .why-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
  .why-card p  { font-size: 12px; line-height: 1.55; }

  .why-icon { width: 54px; height: 54px; font-size: 22px; margin-bottom: 14px; }


  /* ======================================================
     STATS — 2×2 GRID
  ====================================================== */

  .premium-stats-section { padding: 52px 18px; overflow: hidden; }

  .premium-stats-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .stats-subtitle { font-size: 13px; margin-bottom: 36px; line-height: 1.6; color: #e8d8c8; }

  .premium-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
    align-items: start;
  }

  .premium-stat:not(:last-child)::after { display: none !important; }

  .stat-icon { font-size: 38px; margin-bottom: 12px; }

  .premium-stat h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
  }

  .premium-stat h3::after { width: 34px; margin: 9px auto 0; }
  .premium-stat p { font-size: 13px; line-height: 1.4; }


  /* ======================================================
     TESTIMONIALS
  ====================================================== */

  .testimonials-section { padding: 50px 14px; overflow: hidden; }

  .testimonials-header  { margin-bottom: 28px; }
  .testimonials-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: 0; }
  .testimonials-header p  { font-size: 13px; margin-top: 8px; }

  .testimonial-card {
    flex-direction: column;
    height: auto;
    border-radius: 20px;
    transform: none !important;
    transform-style: flat !important;
    will-change: unset !important;
  }

  .testimonial-left {
    flex: none;
    width: 100%;
    height: 158px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
  }

  #testimonial-lottie {
    width: 195px !important;
    height: 195px !important;
    transform: translateY(12px) !important;
  }

  .testimonial-right { flex: none; width: 100%; padding: 24px 20px 56px; }

  .testimonial-item p   { font-size: 14px; margin-bottom: 14px; line-height: 1.65; }
  .testimonial-item span { font-size: 13px; }

  .stars            { font-size: 17px; margin-bottom: 12px; letter-spacing: 2px; }
  .testimonial-dots { bottom: 18px; }
  .testimonial-dots span { width: 7px; height: 7px; }


  /* ======================================================
     GALLERY — 2 PER ROW
  ====================================================== */

  .media-gallery-section { padding: 50px 14px; overflow: hidden; }

  .media-gallery-header h2 { font-size: 1.5rem; font-weight: 700; }
  .media-gallery-header p  { font-size: 13px; margin-bottom: 24px; line-height: 1.6; }

  .media-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 140px;
    gap: 8px;
  }

  .media-item.large       { grid-column: span 2; grid-row: span 1; }
  .media-item.wide-bottom { grid-column: span 2; grid-row: span 1; }

  .media-gallery-btn   { margin-top: 24px; }
  .media-gallery-btn a { padding: 12px 30px; font-size: 13px; font-weight: 600; }


  /* ======================================================
     FAQ
  ====================================================== */

  .faq-section   { padding: 50px 14px; overflow: hidden; }
  .faq-header    { margin-bottom: 28px; }
  .faq-header h2 { font-size: 1.5rem; font-weight: 700; }
  .faq-header p  { font-size: 13px; }

  .faq-question {
    font-size: 14px;
    font-weight: 600;
    padding: 15px 14px;
    line-height: 1.4;
    gap: 10px;
  }

  .faq-question i { flex-shrink: 0; font-size: 16px; }
  .faq-answer     { font-size: 13.5px; padding: 0 14px; line-height: 1.78; }

  .faq-contact       { margin-top: 38px; }
  .faq-contact p     { font-size: 17px; font-weight: 700; }
  .faq-contact span  { font-size: 13px; margin-bottom: 16px; }
  .faq-contact-btn a { padding: 12px 28px; font-size: 14px; }


  /* ======================================================
     FOOTER
  ====================================================== */

  .school-footer { padding: 46px 0 0; overflow: hidden; }

  .footer-wrapper {
    grid-template-columns: 1fr !important;
    gap: 30px;
    padding: 0 20px 40px;
    text-align: center;
  }

  .footer-brand       { max-width: 100%; align-items: center; }
  .footer-logo        { width: 82px; margin-left: 0 !important; margin-bottom: 12px; }
  .footer-brand h3    { margin-left: 0 !important; font-size: 18px; text-align: center; }
  .footer-motto       { margin-left: 0 !important; text-align: center; font-size: 13px; }
  .footer-affiliation { margin-left: 0 !important; text-align: center; font-size: 12px; }

  .footer-affiliation::after { margin: 18px auto 10px; width: 100px; }

  .footer-social {
    margin-left: 0 !important;
    margin-top: 14px;
    justify-content: center;
    gap: 24px;
  }

  .footer-links h4,
  .footer-contact h4,
  .footer-map h4 { font-size: 16px; margin-bottom: 12px; }

  .footer-links a { font-size: 14px; }

  .footer-contact p {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13.5px;
    text-align: center;
  }

  .footer-btn        { padding: 12px 26px; font-size: 13.5px; }
  .footer-map iframe { height: 175px; }
  .footer-bottom     { font-size: 12px; padding: 14px; }


  /* ======================================================
     FLOATING BUTTONS
  ====================================================== */

  .floating-enquire {
    bottom: 14px;
    right: 12px;
    padding: 10px 16px;
    font-size: 12px;
    gap: 6px;
    border-radius: 34px;
  }

  .floating-whatsapp {
    bottom: 14px;
    left: 12px;
    right: auto;
  }

  .enquire-badge {
    font-size: 10px;
    padding: 3px 9px;
    top: -10px;
    right: 14px;
  }


  /* ======================================================
     MISC / OTHER PAGES
  ====================================================== */

  .home-links-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 0 16px;
  }

  .home-links-right { display: flex; justify-content: center; gap: 18px; }
  .home-links-right a { margin-left: 0; }

  .map-container        { padding: 0 14px; }
  .map-container iframe { width: 100%; height: 220px; }

  .admission-hero        { padding: 82px 16px 52px; overflow: hidden; }
  .admission-hero h1     { font-size: 26px; line-height: 1.2; }
  .admission-hero p      { font-size: 14px; line-height: 1.65; }
  .admission-badge       { font-size: 12px; padding: 6px 16px; }

  .process-steps         { grid-template-columns: 1fr 1fr !important; gap: 22px; }
  .process-steps::before { display: none; }
  .process-title         { font-size: 22px; }
  .process-step h4       { font-size: 15px; }

  .enquiry-form-box form { grid-template-columns: 1fr !important; }
  .enquiry-form-box      { padding: 26px 18px; }
  .enquiry-form-box h2   { font-size: 20px; }

}


/* ======================================================
   4.  ≤ 480px — SMALL PHONES
====================================================== */

@media (max-width: 480px) {

  main { margin-top: 0 !important; }

  .header-left h1  { font-size: 0.95rem; }
  .header-left img { width: 50px !important; }
  .school-address  { font-size: 0.56rem; }

  .life-grid,
  .values-grid,
  .facilities-grid,
  .why-grid,
  .media-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .life-card img     { height: 110px; }
  .facility-card img { height: 100px; }
  .media-grid        { grid-auto-rows: 118px; }

  /* 5th card still centered on small phones */
  .facilities-grid .facility-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 7px);
    margin-left: auto;
    margin-right: auto;
  }

  /* Scale facilities heading down further — must still stay on one line */
  .facilities-title { font-size: 1.2rem !important; }

  .premium-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 26px 12px; }

  .welcome-content h2 { font-size: 1.1rem; }

  .life-header h2,
  .testimonials-header h2,
  .media-gallery-header h2,
  .faq-header h2,
  .why-header h2,
  .premium-stats-section h2 { font-size: 1.3rem; }

  .values-section .fancy-title span { font-size: 1.3rem; }

  .faq-question { font-size: 13px; padding: 13px 12px; }

  .director-image img,
  .principal-image img {
    width: 110px !important;
    height: 110px !important;
  }

  .testimonial-left   { height: 138px; }
  #testimonial-lottie { width: 168px !important; height: 168px !important; }

  .premium-stat h3  { font-size: 22px; }
  .stat-icon        { font-size: 32px; }

  .floating-enquire { font-size: 11px; padding: 9px 12px; }

  @keyframes growLineMobile {
    0%   { width: 0;    opacity: 0; }
    100% { width: 40px; opacity: 1; }
  }

}

@media (max-width:768px){

#facilities-section canvas{
display:none !important;
}

#facilities-section{
background:#ffffff !important;
}

}
/* MOBILE — Fix Our Facilities heading */

@media (max-width:768px){

.facilities-title{
display:inline-block !important;
text-align:center !important;

font-size:1.75rem !important;
font-weight:700;

letter-spacing:0.2px !important;
word-spacing:0.5px !important;

gap:0 !important;
}

.facilities-title .school-text,
.facilities-title .facilities-text{
display:inline !important;

margin:0 !important;
padding:0 !important;

letter-spacing:0 !important;
word-spacing:0 !important;
}

}
@media (max-width:768px){

.section-subtitle{
color:#5a4636;
}

}

/* Bigger Director & Principal photos on mobile */

@media (max-width:768px){

.director-image img,
.principal-image img{

width:200px !important;
height:200px !important;

}

}

/* slightly smaller for very small phones */

@media (max-width:480px){

.director-image img,
.principal-image img{

width:170px !important;
height:170px !important;

}

}

/* FIX testimonial height shift on mobile */

@media (max-width:768px){

.testimonial-card{
min-height:420px;   /* keeps section height fixed */
}

.testimonial-right{
min-height:260px;
display:flex;
flex-direction:column;
justify-content:center;
}

}

/* STOP header shrinking / hiding on mobile */

@media (max-width:768px){

header,
header.scrolled,
header.header-hidden{

position:relative !important;
transform:none !important;
top:auto !important;
opacity:1 !important;

}

}
/* STOP JS shrinking the banner logo on mobile */

@media (max-width:768px){

.mobile-title-banner img{
width:96% !important;
max-width:none !important;
height:auto !important;
}

header img{
width:auto !important;
max-width:100% !important;
}

}
/* Prevent mobile header collapsing */

@media (max-width:768px){

header.header-hidden{
transform:none !important;
opacity:1 !important;
}

}

/* ======================================
   CLEAN MOBILE HEADER
====================================== */

@media (max-width:768px){

/* hide desktop header layout */

.header-left{
display:none !important;
}

header nav{
display:none !important;
}

/* header container */

header{
display:block;
background:#ffffff;
padding:0;
box-shadow:none;
}

/* banner */

.mobile-title-banner{
display:block;
width:100%;
text-align:center;
padding:4px 0 0;
background:#ffffff;
}

.mobile-title-banner img{

width:120% !important;
max-width:none !important;
height:auto;

position:relative;
left:50%;
transform:translateX(-50%);

}

/* buttons under banner */

.mobile-action-bar{

display:flex;
width:100%;

}

.mobile-menu-btn{

flex:1;
border:none;

background:#3a2416;
color:#ffffff;

padding:10px 12px;

font-size:15px;
font-weight:600;

cursor:pointer;

}

.mobile-admission-btn{

flex:1;

background:#d4a86a;
color:#3a2416;

text-align:center;
text-decoration:none;

padding:10px 12px;

font-size:15px;
font-weight:700;

}

/* sidebar menu */

.mobile-menu-panel{

position:fixed;

top:0;
left:-100%;

width:80%;
height:100%;

background:#3a2416;
color:white;

z-index:5000;

padding:30px;

transition:left 0.35s ease;

}

.mobile-menu-panel.show{
left:0;
}

.mobile-menu-header{

display:flex;
justify-content:space-between;
align-items:center;

margin-bottom:25px;

font-size:20px;
font-weight:600;

}

.mobile-menu-links a{

display:block;

padding:14px 0;

color:#ffffff;

text-decoration:none;

font-size:16px;

border-bottom:1px solid rgba(255,255,255,0.15);

}
.mobile-action-bar{
display:flex;
width:100%;
margin-bottom:0;
}

}
/* Fix: remove main top-margin on mobile — header is now position:relative so no offset needed */
@media (max-width: 768px) {
  main {
    margin-top: 5px !important;
  }
}