/* Responsive Design */

@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }
}

/* Tablet & below: slide-out navigation */
@media (max-width: 1100px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-right .btn-primary {
    display: none;
  }

  .mobile-nav-item {
    display: list-item !important;
  }

  .nav-container {
    padding: 10px 16px;
  }

  .nav-logo img {
    width: 48px;
    height: 48px;
  }

  .logo-title {
    font-size: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 90vw);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    background: var(--white);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0 0 24px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.35s ease-in-out;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 18px 22px;
    border-bottom: 1px solid var(--light-grey);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .nav-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .nav-drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--blue-dark);
    cursor: pointer;
    padding: 0 4px;
  }

  .nav-drawer-close:hover {
    color: var(--gold);
  }

  .nav-menu > li:not(.nav-drawer-header) {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-menu > li:not(.nav-drawer-header):last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 14px 22px;
    font-size: 0.92rem;
    letter-spacing: 0.8px;
    white-space: normal;
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-menu .nav-link.active {
    background: rgba(201, 168, 76, 0.12);
    color: var(--blue-dark);
    border-left: 3px solid var(--gold);
    padding-left: 19px;
  }
}

@media (max-width: 992px) {

  .about-grid,
  .about-full-grid,
  .founder-grid,
  .coach-grid,
  .founder-full-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text,
  .founder-text,
  .coach-text,
  .about-full-text {
    order: -1;
    text-align: center;
  }

  .about-text .btn,
  .founder-text .btn,
  .about-full-text .btn {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
  }

  .about-text > p,
  .founder-text > p,
  .about-full-text > p,
  .founder-content .content-block > p,
  .centered-block > p {
    text-align: justify;
  }

  .section-title.left-align {
    text-align: center !important;
    font-size: 22px !important;
  }

  .gold-line.left-line {
    margin: 0 auto 20px auto !important;
  }

  .eyebrow {
    text-align: center;
    display: block;
    margin-bottom: 35px;
  }

  .cards-grid,
  .programs-grid,
  .testi-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .legacy-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .founder-gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid,
  .admission-grid {
    grid-template-columns: 1fr;
  }

  .branch-map {
    order: 0 !important;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    justify-content: center;
    gap: 30px;
  }

  .stat {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 768px) {

  .hero-banner-wrap {
    background: var(--blue-dark);
  }

  .hero-banner-img {
    height: auto !important;
    max-height: 400px;
    object-fit: contain !important;
    width: 100%;
  }

  .tribute-box {
    padding: 35px 25px;
  }

  .tribute-box p {
    font-size: 1.15rem;
  }

  .coach-preview-img {
    height: auto;
    max-height: 420px;
    min-height: 280px;
  }

  .about-badge-float,
  .founder-year-badge {
    width: 90px;
    height: 90px;
    bottom: -10px;
    right: 10px;
  }

  .about-badge-float strong,
  .founder-year-badge {
    font-size: 1.5rem;
  }

  .top-bar-right {
    display: none;
    /* Hide apply btn on mobile top bar to save space */
  }

  .top-bar .container {
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .schedule-grid,
  .achieve-list,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

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

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

  .floating-wa {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }

  .floating-wa svg {
    width: 28px;
    height: 28px;
  }

  .contact-info-panel,
  .contact-form-panel,
  .admission-form-panel {
    padding: 30px 20px;
  }

  .contact-info-item a {
    word-break: break-all;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.6rem !important;
  }

  .cards-grid,
  .programs-grid,
  .testi-carousel {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid.col-3 {
    grid-template-columns: 1fr;
  }

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

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

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .hero-cta-btns {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
  }

  .hero-cta-btns .btn {
    width: auto;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .cta-btns {
    flex-direction: column;
    width: 100%;
  }

  .cta-btns .btn {
    width: 100%;
  }

  .about-stats {
    justify-content: center;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .legacy-pillars {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-info-panel,
  .contact-form-panel,
  .admission-form-panel {
    padding: 25px 15px;
  }

  .tribute-box {
    padding: 28px 18px;
  }

  .tribute-box p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .centered-block,
  .founder-birth-inner .centered-block {
    margin: 0 auto 1.25rem;
  }

  .founder-birth-inner {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
  }

  .founder-preview {
    padding-bottom: 40px;
  }
}