/* ==========================================================================
   RESPONSIVE LAYOUT & MOBILE ADAPTATION
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-menu {
    gap: 1.25rem;
  }
  
  .programs-grid,
  .videos-grid,
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

  .event-card {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
  }

  .event-actions {
    grid-column: span 2;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
  }

  .tst-slide-item {
    flex: 0 0 calc(50% - 0.75rem);
  }
  .tst-nav-btn.tst-prev {
    left: -14px;
  }
  .tst-nav-btn.tst-next {
    right: -14px;
  }

  /* Split Sliding About 1024px */
  .about-split-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .about-portrait-card {
    min-height: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  /* Off-canvas mobile menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    visibility: hidden;
    pointer-events: none;
    z-index: 1050;
    overflow-y: auto;
    gap: 1rem;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.75rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: block !important;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
    width: 100%;
  }

  .dropdown-menu.show {
    display: block;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-badge-card {
    position: static;
    margin-top: 1.5rem;
    max-width: 100%;
  }

  /* Split Sliding About Responsive */
  .about-split-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    width: 100%;
    max-width: 100%;
  }

  .about-portrait-card {
    min-height: 380px;
    height: 380px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-split-slider-wrap {
    padding: 1.75rem 1.5rem;
    min-height: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .tour-hero {
    padding: 3.5rem 0 2.5rem;
  }

  .tour-hero h1 {
    font-size: 2.1rem;
    line-height: 1.25;
  }

  .tour-hero p {
    font-size: 1.0rem;
  }

  .program-hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.25;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.28;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 1.0rem;
    line-height: 1.55;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .about-slider-title {
    font-size: 1.45rem;
  }

  .contact-info-heading {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .contact-form-heading {
    font-size: 1.35rem;
  }

  .program-detail-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .program-cta-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .blog-detail-title {
    font-size: 2.0rem;
    line-height: 1.25;
  }

  .blog-detail-article {
    padding: 2.25rem 1.75rem;
  }

  .program-desc-card {
    padding: 2rem 1.5rem !important;
  }

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

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

  .tst-slide-item {
    flex: 0 0 100%;
  }

  .tst-slide-card {
    padding: 1.5rem 1.35rem;
  }

  .tst-card-horizontal {
    gap: 1.15rem;
  }

  .tst-photo-wrap,
  .tst-photo-img {
    width: 62px;
    height: 62px;
  }

  .tst-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .tst-nav-btn.tst-prev {
    left: -10px;
  }

  .tst-nav-btn.tst-next {
    right: -10px;
  }

  .tst-impact-strip {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
  }

  .tst-impact-dot {
    display: none;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .prog-overview-bar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .event-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .event-date-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
  }

  .event-actions {
    grid-column: span 1;
  }

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

  /* Split Sliding About 768px adjustments */
  .about-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .about-portrait-card {
    min-height: 340px;
    height: 340px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   PHONE SCREENS (Industry Standard Mobile Typography & Section Scaling)
   Targeting smartphones up to 576px (iPhone, Samsung Galaxy, Pixel, etc.)
   ========================================================================== */
@media (max-width: 576px) {
  /* 1. Page & Hero Titles (H1) */
  .hero-title,
  .tour-hero h1,
  .program-hero-content h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
  }

  .blog-detail-title {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    margin: 0.75rem 0 1rem !important;
    letter-spacing: -0.3px !important;
  }

  h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }

  /* 2. All Section Titles Across All Pages & Sections (H2) */
  .section-title,
  .contact-info-heading,
  .program-detail-title,
  .program-cta-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.2px !important;
  }

  h2 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  /* 3. Subtitles & Descriptions */
  .section-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 0.6rem !important;
  }

  .hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  .tour-hero p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .program-hero-content p.subtitle {
    font-size: 0.95rem !important;
  }

  /* 4. Section Spacing & Headers */
  .section-padding {
    padding: 2.75rem 0 !important;
  }

  .section-padding-sm {
    padding: 2rem 0 !important;
  }

  .section-header {
    margin-bottom: 1.6rem !important;
  }

  .tour-hero {
    padding: 2.75rem 0 2rem !important;
  }

  .section-badge {
    font-size: 0.72rem !important;
    padding: 0.22rem 0.75rem !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.5rem !important;
  }

  /* 5. Subheadings, Card Titles, and H3/H4 */
  .about-slider-title,
  .contact-form-heading,
  .blog-detail-related-title {
    font-size: 1.22rem !important;
    line-height: 1.35 !important;
  }

  .event-title,
  .program-card-title,
  .modal-header h3 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
  }

  .stat-item h3 {
    font-size: 1.45rem !important;
  }

  .footer-col h4 {
    font-size: 1.05rem !important;
  }

  .benefit-card h4,
  .video-info h4,
  .blog-title,
  .gallery-item-title,
  .social-card h4 {
    font-size: 1.0rem !important;
    line-height: 1.4 !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  h4 {
    font-size: 1.02rem !important;
  }

  /* 6. Cards & Article Containers */
  .blog-detail-article {
    padding: 1.5rem 1.15rem !important;
    border-radius: var(--radius-md) !important;
  }

  .program-desc-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: var(--radius-md) !important;
  }

  .blog-related-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  .programs-grid,
  .videos-grid,
  .blogs-grid,
  .social-cards-grid,
  .insta-grid,
  .gallery-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Split Sliding About 480px adjustments */
  .about-split-slider-wrap {
    padding: 1.35rem 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .about-slide-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    max-width: 100%;
  }

  .about-slide-tabs::-webkit-scrollbar {
    display: none;
  }

  .slide-tab {
    white-space: nowrap;
    font-size: 0.74rem;
    padding: 0.35rem 0.7rem;
    flex-shrink: 0;
  }

  .about-mini-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    max-width: 100%;
  }

  .about-portrait-card {
    min-height: 280px;
    height: 280px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .slide-bottom-bar {
    flex-direction: column;
    width: 100%;
  }

  .slide-bottom-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* Testimonial Card 480px Adjustments */
  .tst-slide-card {
    padding: 1.35rem 1.15rem;
  }

  .tst-card-horizontal {
    gap: 0.95rem;
  }

  .tst-photo-wrap,
  .tst-photo-img {
    width: 54px;
    height: 54px;
  }

  .tst-card-name {
    font-size: 1.05rem;
  }

  .tst-card-designation {
    font-size: 0.8rem;
    gap: 0.25rem 0.4rem;
  }

  .tst-card-content {
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    width: 100%;
  }

  .top-bar-notice {
    font-size: 0.72rem;
  }

  .lang-select {
    font-size: 0.72rem;
    padding: 0.16rem 1.4rem 0.16rem 0.6rem;
  }
}
