/* ================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Breakpoints: 1024px (Laptop), 768px (Tablet), 480px (Mobile)
   ================================================================ */

/* ================================================================
   NOTICE TICKER - Responsive Styling for All Devices
   ================================================================ */

@media (max-width: 767px) {
  .submit-admission-btn {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
  }

.tel-section-mobile { 
   margin-left: auto;      /* Pushes it to the right */
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
    font-size: 0.58rem;     /* Smaller font */
    font-weight: 400;
}


.floating-btn {
        width: 120px !important;
        height: 42px !important;

        padding: 6px 12px !important;

        font-size: 0.72rem !important;
        font-weight: 600 !important;

        border-radius: 999px !important;

        right: 10px !important;
        bottom: 15px !important;

        white-space: nowrap;
    }
.school-info {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.60rem;
    font-weight: 500;
    color: #0c0c0c;
}

  .form-admissiion-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .admission-page {
    margin: 28px auto;
    padding: 0 4%;
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .admission-form-header {
    line-height: 1.25;
    margin-bottom: 18px;
  }

  .admission-info,
  .admission-form-container {
    padding: 22px 16px;
    border-radius: 22px;
  }
  .notice-ticker__container {
    gap: clamp(6px, 1.5vw, 12px);
    padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2vw, 16px);
    min-height: clamp(36px, 7vw, 45px);
  }

  .notice-ticker__icon {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
  }

  .notice-ticker__label {
    font-size: clamp(0.65rem, 1vw, 0.8rem);
  }

  .notice-ticker__content {
    font-size: clamp(0.7rem, 1vw, 0.85rem);
  }
}

@media (max-width: 480px) {
  .form-mobile-only {
    display: block !important;
  }
  .notice-ticker__container {
    gap: clamp(6px, 1.5vw, 10px);
    padding: clamp(8px, 1.5vw, 10px) clamp(8px, 1.5vw, 12px);
    min-height: clamp(34px, 6vw, 40px);
  }

  .notice-ticker__icon {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }

  .notice-ticker__label {
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  }

  .notice-ticker__content {
    font-size: clamp(0.65rem, 0.95vw, 0.8rem);
  }

  .notice-ticker__item::after {
    margin-left: 16px;
  }
}

/* ================================================================
   LAPTOP: 1024px - 1439px (Medium Screens)
   ================================================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
  /* General */
  .announcement-bar,
  .hero-section,
  .welcome-section,
  .facilities-section,
  .location-section,
  .admission-banner,
  .admission-page-banner,
  .leadership-band,
  .main-footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  /* Header */
  .brand-logo {
    width: 100px;
    height: 100px;
  }

  .brand-copy strong {
    font-size: clamp(2rem, 3vw, 3.5rem);
  }

  .navbar-row {
    width: min(100%, 900px);
  }

  /* Hero Section */
  .hero-section {
    min-height: 500px;
    height: auto;
    padding: 20px 5%;
  }

  .hero-content {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
  }

  .hero-left {
    flex: 0 0 45%;
    min-width: 0;
  }

  .hero-student {
    flex: 0 0 25%;
    min-width: 0;
  }

  .hero-form {
    flex: 0 0 25%;
    min-width: 0;
  }

  .hero-student img {
    max-height: 400px;
  }

  .admission-card {
    max-width: 100%;
    width: 100%;
  }

  /* Facilities Grid */
  .facilities-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  /* Welcome Section */
  .welcome-section {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .welcome-copy {
    flex: 0 0 auto;
  }

  .welcome-visual {
    flex: 0 0 auto;
    min-height: 280px;
  }

  /* Admission Banner */
  .admission-banner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .admission-banner h2,
  .admission-banner p {
    flex: 0 0 auto;
  }

  .banner-button {
    flex-shrink: 0;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================================
   TABLET: 768px - 1023px (Tablets, Smaller Laptops)
   ================================================================ */
@media (max-width: 1023px) {
  .admission-info h2 {
    margin-bottom: 12px;
  }
  .form-admissiion-grid {
    grid-template-columns: 1fr;
  }

  .form-admissiion-grid textarea {
    grid-column: span 1;
  }
  .form-admissiion-grid {
    grid-template-columns: 1fr;
  }
  /* General */
  .announcement-bar,
  .hero-section,
  .welcome-section,
  .facilities-section,
  .location-section,
  .admission-banner,
  .leadership-band,
  .main-footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  /* Header */
  .brand-logo {
    width: 90px;
    height: 90px;
  }

  .brand-copy strong {
    font-size: clamp(1.35rem, 3.1vw, 1.95rem);
    line-height: 1.1;
    max-width: 100%;
    display: block;
    letter-spacing: 0.7px;
  }

  .brand-copy small {
    font-size: clamp(0.58rem, 1.1vw, 0.72rem);
    letter-spacing: 0.07em;
  }

  .navbar-row {
    width: min(100%, 95%);
  }

  .navbar-row--nav {
    width: 100%;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 5%;
    left: 5%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: 90%;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 10px 12px;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
  }

  /* Hero Section */
  .hero-section {
    min-height: 420px;
    height: auto;
    padding: 16px 5%;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: auto;
  }

  .hero-left,
  .hero-student,
  .hero-form {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy::before {
    width: min(20vw, 180px);
    height: min(20vw, 180px);
    left: -50px;
  }

  .hero-student img {
    max-height: 320px;
  }

  .hero-pill {
    font-size: 0.6rem;
    padding: 5px 30px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

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

  .hero-button {
    width: 100%;
  }

  .admission-card {
    max-width: 100%;
    width: 100%;
  }

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

  .form-control {
    min-height: 40px;
    font-size: clamp(13px, 1vw, 15px);
  }

  /* Facilities Grid */
  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .facility-card {
    min-height: 180px;
    padding: 10px;
  }

  .facility-media {
    height: clamp(100px, 20vw, 140px);
  }

  /* Location/Contact Section */
  .location-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .location-card {
    height: auto;
    min-height: 200px;
  }

  /* Welcome Section */
  .welcome-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .welcome-copy {
    flex: 0 0 auto;
  }

  .welcome-visual {
    min-height: 240px;
    justify-content: center;
  }

  .welcome-circle {
    width: clamp(140px, 20vw, 200px);
    height: clamp(140px, 20vw, 200px);
  }

  /* Admission Banner */
  .admission-banner {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .admission-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }

  .banner-button {
    width: 100%;
    margin-top: 12px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Announcement Bar */
  .announcement-bar {
    flex-direction: column;
    gap: 10px;
  }

  .announcement-contact {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .top-enquiry-btn {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* ================================================================
   MOBILE: 320px - 767px (Phones, Small Tablets)
   ================================================================ */
@media (max-width: 767px) {
  /* General */
  .announcement-bar,
  .hero-section,
  .welcome-section,
  .facilities-section,
  .location-section,
  .admission-banner,
  .leadership-band,
  .main-footer {
    padding-left: 4%;
    padding-right: 4%;
  }

  /* Header */
  .navbar {
    padding: 6px 4% 4px;
  }

  .navbar-row {
    width: 100%;
  }

  .navbar-row--brand {
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .brand {
    gap: 8px;
    align-items: center;
    flex: 1;
  }

  .brand-logo {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .brand-copy {
    flex: 1;
    gap: 2px;
  }

  .brand-copy strong {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.1;
  }

  .brand-copy small {
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .navbar-row--nav {
    width: 100%;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--navbar-height, 64px);
    bottom: 0;

    display: none;
    flex-direction: column;

    width: 100%;
    max-height: calc(100vh - var(--navbar-height, 64px));
    overflow-y: auto;

    padding: 20px;
    background: #fff;
    border-radius: 22px 22px 0 0;

    /* Ensure drawer sits above all page content on mobile */
    z-index: 1000001;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* Overlay sits below the drawer but above page content */
    z-index: 1000000;
  }

  /* .nav-overlay.is-active {
    display: block;
  } */

  .nav-menu.is-open {
    display: flex;
  }

  /* Remove mobile navbar stacking context so fixed drawer can escape and overlay all content */
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Keep navbar above page, but below the drawer */
    z-index: 1000;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 12px;
    font-size: 0.9rem;
    text-align: left;
  }

  .hero-overlay {
    z-index: 1;

    background: linear-gradient(
      90deg,
      rgba(5, 5, 12, 0.9) 0%,
      rgba(5, 5, 12, 0.75) 38%,
      rgba(5, 5, 12, 0.3) 70%,
      transparent 100%
    );
  }

  /* Announcement Bar */
  .announcement-bar {
    flex-direction: column;
    gap: 8px;
    padding: 6px 4%;
  }

  .announcement-text {
    font-size: 0.75rem;
    text-align: center;
    width: 100%;
  }

  .announcement-contact {
    width: 100%;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
  }

  .announcement-item {
    font-size: 0.7rem;
    justify-content: center;
    width: 100%;
  }

  .top-enquiry-btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  /* Hero Section */
  .hero-section {
    height: auto; /* avoid forcing full-viewport on phones */
    min-height: 420px; /* slightly reduced, compact appearance */
    padding-top: 0; /* ensure background anchors to the top edge */
    padding-bottom: 18px;
  }

  .hero-slider-background {
    opacity: 0.9;
  }

  .hero-slide {
    background-size: 100%;

    background-repeat: no-repeat;

    background-position: center;
  }

  .hero-content {
    display: flex;
    align-items: flex-start; /* move content slightly downward */
    justify-content: flex-start;

    position: relative;
    z-index: 2;
  }
  .hero-form {
    display: none;
  }

  .hero-student {
    display: none;
  }

  .hero-left {
    display: block;
    width: 100%;
  }

  .hero-copy {
    width: 100%;

    max-width: 94%; /* increase usable width so CTAs can grow */

    padding-left: 4%; /* align exactly with page margins */

    padding-right: 4%;
    margin-top: 16px; /* move text block slightly downward */
  }

  .hero-copy::before {
    display: none;
  }

  .hero-kicker {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 6px;
  }

  .hero-copy h1 {
    font-size: clamp(1.6rem, 5vw, 52px); /* slightly larger */
    line-height: 1.06; /* increase readability */
    font-weight: 900;
    color: #fff; /* keep A BRIGHT white */
    text-align: left;
    margin-bottom: 6px;
  }
  /* force FUTURE onto its own line without reducing font-size */
  .hero-copy h1 span {
    display: block; /* ensure second line */
    color: #ff9b2e !important; /* keep FUTURE orange */
  }
  .hero-copy h1 span {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #ff9b2e !important; /* FUTURE in orange */
  }

  .hero-description {
    font-size: 18px; /* slightly larger */
    line-height: 1.9; /* improved leading */
    color: white;
    max-width: clamp(
      220px,
      60%,
      320px
    ); /* narrower so text wraps into ~4-5 lines */
    margin-bottom: 10px;
    margin-right: 60%;
  }

  /* Ensure kicker, heading and description share exact left alignment */
  .hero-kicker {
    margin-left: 0;
    padding-left: 0;
    display: block;
  }

  .hero-copy h1,
  .hero-kicker,
  .hero-description {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
  }

  .hero-pill {
    font-size: 0.62rem;
    padding: 6px 28px; /* increase horizontal padding */
    margin-top: 6px;
    border-radius: 14px; /* rounder corners */
    display: inline-flex;
    align-items: center; /* center text vertically */
  }

  /* Mobile style: transparent pill with thin yellow border and two centered lines */
  .hero-pill {
    background: transparent !important;
    color: var(--orange);
    border: 1px solid rgb(250 215 122 / 37%);
    box-shadow: none;
    padding: 10px 14px; /* increased padding to raise height */
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    line-height: 2.05;
    margin-bottom: 4px;
    min-height: 50%; /* roughly double previous height */
    width: 48%;
    text-align: left;
  }

  .hero-pill .pill-line {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--orange);
    margin: 0;
    padding: 0;
  }

  .feature-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-top: 4px; /* reduce gap under hero pill to almost none */
    width: 100%;
    max-width: none;
  }

  .feature-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 6px 8px; /* reduce internal padding */
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    min-height: 36px; /* ensure readable two-line titles while compact */
    align-items: center; /* keep content vertically centered */
    display: flex;
  }
  .feature-badge,
  .chip-icon {
    width: 22px;
    height: 22px;
    font-size: 0.95rem;
  }

  .feature-item span {
    font-size: 90%;
    line-height: 1.12;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions {
    display: flex;

    flex-direction: column;

    gap: 10px; /* tighten spacing between CTAs */

    margin-top: 16px;
  }

  .hero-button {
    width: 98%;
    max-width: 520px; /* allow larger visual width on taller phones */
    justify-content: center;
    min-height: 56px; /* increase height slightly */
    border-radius: 28px; /* larger radius */
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px; /* if icon present, keep centered spacing */
  }

  .hero-actions {
    align-items: center;
  }

  /* Mobile hero background image adjustments (mobile slide images)
     - Slightly increase size, move right and downward so face sits upper-right
  */
  .hero-slide {
    /* zoom out slightly and nudge right; anchor image near the top so no gap */
    background-size: 100% !important;
    background-position: right 8% top 65% !important;
  }
  /* Reduce spacing into the next section and tighten hero-bottom gaps */
  .curve-divider {
    margin-top: -6px;
  }

  .leadership-band {
    margin-top: 8px;
  }

  .slider-arrow {
    display: none;
  }

  .slider-arrow.prev {
    left: 2%;
  }

  .slider-arrow.next {
    right: 2%;
  }

  /* Admission Form */
  .admission-card {
    max-width: 100%;
    width: 100%;
    padding: 16px;
  }

  .admission-card__header {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-control {
    min-height: 40px;
    font-size: 14px;
    padding: 8px 10px;
  }

  .form-message {
    font-size: 0.8rem;
    padding: 8px;
    margin-bottom: 8px;
  }

  /* Welcome Section */
  .welcome-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 4%;
  }

  .welcome-copy {
    order: 1;
  }

  .welcome-copy h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 10px;
  }

  .welcome-copy p {
    font-size: 12px;
    margin-bottom: 12px;
    -webkit-line-clamp: 3;
  }

  .welcome-button {
    width: 100%;
    min-height: 40px;
    font-size: 0.8rem;
  }

  .welcome-visual {
    order: 2;
    min-height: 200px;
  }

  .welcome-circle {
    width: clamp(100px, 18vw, 150px);
    height: clamp(100px, 18vw, 150px);
    margin: 0 clamp(-4px, -1vw, -8px);
  }

  /* Admission Banner */
  .admission-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 16px 4%;
    margin: 12px auto 40px;
  }

  .admission-banner h2 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    margin-bottom: 8px;
  }

  .admission-banner p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .banner-button {
    width: 100%;
    min-height: 40px;
    font-size: 0.75rem;
  }

  /* Facilities Section */
  .facilities-section {
    padding: 16px 4% 40px;
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .section-heading p {
    font-size: clamp(13px, 1.1vw, 14px);
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .facility-card {
    min-height: 160px;
    padding: 8px;
    border-radius: 16px;
  }

  .facility-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .facility-media {
    height: clamp(80px, 15vw, 100px);
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .facility-card h3 {
    font-size: 0.8rem;
  }

  /* Location/Contact Section */
  .location-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 4% 32px;
  }

  .location-card {
    height: auto;
    min-height: 180px;
    padding: 10px;
    border-radius: 20px;
  }

  .location-card h3 {
    font-size: clamp(13px, 2vw, 15px);
    margin-bottom: 6px;
  }

  .location-address {
    font-size: 12px;
  }

  .contact-line {
    font-size: 12px;
    gap: 4px;
  }

  .map-embed {
    height: clamp(120px, 25vw, 150px);
    border-radius: 16px;
  }

  .map-embed iframe {
    height: 100%;
    min-height: 120px;
  }

  .location-button,
  .info-button {
    /* keep buttons usable but adjust sizing for small screens */
    font-size: 11px;
    padding: 3px 6px;
    min-height: 32px;
  }

  /* Ensure .info-button is always visible and accessible on mobile (<=1023px) */
  .info-button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    box-sizing: border-box;
    width: 100% !important;
    align-self: stretch !important;
    margin-top: 12px !important;
    padding: 10px 14px !important;
    min-height: 44px !important;
    font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
    text-align: center !important;
  }

  /* Prevent parent flex rules (e.g., margin-top:auto) from pushing the button out of view */
  .contact-card .info-button,
  .location-card .info-button,
  .admission-card .info-button {
    margin-top: 12px !important;
    align-self: stretch !important;
  }

  .checklist li {
    font-size: 12px;
    padding-left: 18px;
  }

  .checklist li::before {
    width: 14px;
    height: 14px;
    font-size: 0.5rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .process-step {
    padding: 8px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
    margin: 0 auto 4px;
  }

  .process-step p {
    font-size: 11px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Leadership mini cards: center icons and text, equal size and spacing */
  .leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
    align-items: stretch;
    justify-items: stretch;
  }

  .leadership-mini {
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center; /* center icon and text horizontally */
    justify-content: center; /* center content vertically */
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 88px; /* uniform height for all cards */
    gap: 6px;
  }

  .mini-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 6px;
    flex: 0 0 auto;
  }

  .leadership-mini h4 {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
  }

  /* Facilities: compact 2-column grid and balanced cards on mobile */
  .facilities-section {
    padding-left: 4%;
    padding-right: 4%;
  }

  .facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two cards per row on mobile */
    gap: 12px; /* equal horizontal and vertical spacing */
    width: 100%;
  }

  .facility-card {
    /* compact, equal-sized cards */
    padding: 10px;
    border-radius: 16px;
    min-height: clamp(120px, 22vw, 160px); /* reduced overall height */
    display: flex;
    flex-direction: column;
    align-items: center; /* center icon and text horizontally */
    justify-content: center; /* center text vertically */
    text-align: center;
    box-sizing: border-box;
    gap: 8px;
  }

  .facility-media {
    /* scale image proportionally and center */
    width: clamp(64px, 16vw, 96px) !important;
    height: clamp(64px, 16vw, 96px) !important;
    margin: 0 auto 8px;
    border-radius: 50% !important;
    overflow: hidden;
    display: block;
  }

  .facility-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 50% !important;
  }

  .facility-icon {
    margin: 0 auto 6px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(94, 39, 170, 0.12);
    font-size: 1.1rem;
  }

  .facility-card h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--purple-ink);
    font-weight: 700;
  }

  /* Keep consistent styling but remove large hover lift on mobile to save vertical space */
  .facility-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* ================================================================
   SMALL MOBILE: 320px - 480px (Extra Small Phones)
   ================================================================ */
@media (max-width: 480px) {
  /* Header */
  .brand-logo {
    width: 60px;
    height: 60px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy small {
    font-size: 0.55rem;
  }

  .hamburger {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .nav-menu a {
    font-size: 0.85rem;
    padding: 10px 10px;
  }

  /* Announcement Bar */
  .announcement-text {
    font-size: 0.7rem;
  }

  .announcement-item {
    font-size: 0.65rem;
    display: inline;
  }

  .inline-icon {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  /* Hero */
  .hero-section {
    min-height: 360px; /* keep compact but provide breathing room */
    padding: 10px 4%;
  }

  .hero-copy::before {
    width: min(12vw, 80px);
    height: min(12vw, 80px);
    left: -20px;
  }

  .hero-kicker {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .hero-copy h1 {
    font-size: clamp(1.3rem, 5.2vw, 40px); /* slightly larger than before */
    line-height: 1.04;
  }

  .hero-description {
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-pill {
    font-size: 0.55rem;
    padding: 1% 1%;
    border-radius: 12px;
  }

  .feature-item {
    font-size: 0.7rem;
  }

  .hero-button {
    font-size: 0.82rem;
    min-height: 52px;
  }

  .hero-student img {
    max-height: 220px;
  }

  /* tighten feature-grid spacing on small phones */
  .feature-grid {
    margin-top: 14px;
    gap: 10px;
  }

  /* mobile slide tweaks for extra-small screens */
  .hero-slide {
    /* extra-small: slightly zoomed but keep face higher and shifted right */
    background-size: 100% !important;
    background-position: right 8% top 60% !important;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Facilities */
  .facilities-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* keep two columns on smallest phones */
    gap: 8px;
    width: 100%;
  }

  .facility-card {
    min-height: 140px;
  }

  .facility-media {
    height: clamp(70px, 12vw, 90px);
    margin-bottom: 6px;
  }

  .facility-card h3 {
    font-size: 0.75rem;
  }

  /* Location */
  .location-card {
    min-height: 160px;
    padding: 8px;
  }

  .location-card h3 {
    font-size: 12px;
  }

  .location-address {
    font-size: 11px;
  }

  .map-embed {
    height: clamp(100px, 20vw, 120px);
  }

  .checklist li {
    font-size: 11px;
  }

  .process-step {
    padding: 6px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }

  .process-step p {
    font-size: 10px;
  }

  /* Forms */
  .form-control {
    min-height: 36px;
    font-size: 13px;
    padding: 6px 8px;
  }

  .admission-card {
    padding: 12px;
  }

  .admission-card__header {
    font-size: 0.8rem;
  }

  .form-message {
    font-size: 0.75rem;
    padding: 6px;
  }

  /* Contact Line */
  .contact-line {
    font-size: 11px;
  }

  .feature-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-top: 10%;
  }
}

/* ================================================================
   ULTRA SMALL: 320px - 360px (Smallest Phones)
   ================================================================ */
@media (max-width: 360px) {
  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .brand-copy small {
    font-size: 0.5rem;
  }

  .hero-copy h1 {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 11px;
  }

  .feature-item {
    font-size: 0.65rem;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .facility-card h3 {
    font-size: 0.7rem;
  }

  .location-card h3 {
    font-size: 11px;
  }
}

/* Mobile fix: let location admission card grow naturally and ensure info-button is visible */
@media (max-width: 1023px) {
  /* Scope to .location-section to avoid changing hero/admission-card elsewhere */
  .location-section .location-card.location-card--admission,
  .location-section .admission-card {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 10px !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  /* Ensure the info-button is visible and sits after content with spacing */
  .location-section .location-card.location-card--admission .info-button,
  .location-section .admission-card .info-button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    margin-top: 12px !important;
    align-self: stretch !important;
    width: 100% !important;
    padding: 10px 12px !important;
    min-height: 40px !important;
    font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
    box-sizing: border-box;
  }

  /* Reduce spacing inside admission card to avoid extra height */
  .location-section .admission-card .process-steps,
  .location-section .admission-card .info-group,
  .location-section .location-card.location-card--admission .process-steps {
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  /* If map/embed exists inside admission card, allow it to shrink naturally */
  .location-section .location-card.location-card--admission .map-embed,
  .location-section .admission-card .map-embed {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
/* Tablet */

@media (max-width: 991px) {
  .tab-grid,
  .tab-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .tab-section {
    padding: 60px 15px;
  }

  .tab-grid,
  .tab-grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tab-card {
    padding: 30px 20px;
  }

  .tab-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .tab-card h3 {
    font-size: 20px;
  }
}
/* Tablet */

@media (max-width: 991px) {
  .tab-button {
    padding: 11px 24px;
    font-size: 14px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .tab-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    text-align: center;
    margin-top: 18px;
  }
}
/* Tablet */

@media (max-width: 991px) {
  .procedure-item {
    padding: 22px;
  }

  .procedure-number {
    min-width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .procedure-section {
    padding: 60px 15px;
  }

  .procedure-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 22px 18px;
  }

  .procedure-number {
    min-width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .procedure-item p {
    font-size: 15px;
    line-height: 1.7;
  }
}
