/* ===================================================================
   RADIAN CLASSES - RESPONSIVE STYLESHEET
   Mobile-First & Breakpoints Adaptation for Flawless Phone Experience
   =================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-card-form {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
  }
  .stat-card:nth-last-child(-n+2) {
    border-bottom: none;
  }

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

  .split-grid-2,
  .split-grid-asym,
  .campus-showcase-grid,
  .course-card-split,
  .contact-page-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .director-spotlight-box {
    grid-template-columns: 200px 1fr;
    gap: 28px;
    padding: 35px;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow globally */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    padding-bottom: 68px; /* space for sticky mobile bottom bar */
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Top Announcement Bar */
  .announcement-bar {
    padding: 7px 12px;
    font-size: 0.76rem;
    flex-direction: column;
    gap: 4px;
    line-height: 1.35;
    text-align: center;
  }
  .announcement-bar span.badge {
    display: inline-block;
    margin-bottom: 2px;
    font-size: 0.7rem;
    padding: 2px 7px;
  }
  .announcement-link {
    margin-left: 0;
    display: inline-block;
  }

  /* Navigation & Header */
  .main-nav, .header-call-btn, .header-cta-btn {
    display: none !important;
  }
  
  .mobile-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  .site-header {
    height: 64px;
  }
  
  .header-inner {
    height: 64px;
  }

  .logo-symbol {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

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

  .logo-sub {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }

  /* Hero Section */
  .hero-section {
    padding: 32px 0 45px;
    overflow: hidden;
  }

  .hero-glow-1, .hero-glow-2 {
    display: none; /* remove bleeds causing horizontal scroll */
  }

  .hero-badge-pill {
    font-size: 0.76rem;
    padding: 6px 12px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    display: inline-block;
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 14px;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.92rem;
    justify-content: center;
  }

  .hero-trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 16px;
  }

  .trust-label {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .hero-card-form {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    width: 100%;
    box-sizing: border-box;
  }

  .hero-card-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .hero-card-sub {
    font-size: 0.84rem;
  }

  /* Responsive Grids Collapse */
  .split-grid-2,
  .split-grid-asym,
  .campus-showcase-grid,
  .course-card-split,
  .contact-page-split {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  /* Campus Photo Grid on Phone */
  .campus-photos-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .campus-photo-card {
    height: 135px !important;
    border-radius: var(--radius-md) !important;
  }

  /* Director Spotlight Card */
  .director-spotlight-box {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 22px 16px !important;
    border-radius: var(--radius-lg) !important;
    text-align: center;
  }

  .director-avatar-circle {
    width: 110px !important;
    height: 110px !important;
    font-size: 2.2rem !important;
    margin: 0 auto 10px !important;
  }

  .director-spotlight-box h2 {
    font-size: 1.45rem !important;
  }

  .director-spotlight-box p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  .director-spotlight-box .btn {
    width: 100%;
  }

  /* Sections */
  .section-padding {
    padding: 42px 0;
  }

  .section-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Program Grids */
  .program-features-grid,
  .curriculum-two-col {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .course-card-body h3 {
    font-size: 1.3rem;
  }

  /* Form Elements */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-control {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px 12px;
    border-radius: var(--radius-lg);
  }

  .stat-card {
    padding: 8px 4px;
    border: none;
    text-align: center;
  }

  .stat-number {
    font-size: 1.75rem;
    line-height: 1.1;
  }

  .stat-desc {
    font-size: 0.75rem;
    margin-top: 3px;
  }

  /* Mobile Bottom Action Bar */
  .mobile-bottom-bar {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    z-index: 999;
    padding: 8px 12px;
    box-sizing: border-box;
  }

  .mobile-bottom-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 8px;
  }

  .mobile-action-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
  }

  /* Floating WhatsApp Button on Mobile */
  .whatsapp-float-container {
    bottom: 68px;
    right: 12px;
    z-index: 998;
  }

  .whatsapp-float-btn {
    width: 46px;
    height: 46px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }

  .whatsapp-float-btn svg {
    width: 25px;
    height: 25px;
  }

  .wa-tooltip {
    display: none !important;
  }

  /* Footer */
  .site-footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

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

  /* Page Banner */
  .page-banner {
    padding: 32px 0 26px;
  }

  .page-banner-title {
    font-size: 1.7rem;
    line-height: 1.22;
  }

  .page-banner-sub {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .legal-content {
    padding: 22px 14px !important;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .gallery-item {
    height: 220px;
  }

  .gallery-filter {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    justify-content: flex-start;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Map Container */
  .map-card-wrapper {
    height: 280px !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 8px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .btn-large {
    width: 100%;
    padding: 11px 16px;
  }

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