/* --- COMPREHENSIVE RESPONSIVE MEDIA QUERIES --- */

/* 1. Large Desktop & Ultra-Wide Screens (min-width: 1440px) */
@media (min-width: 1440px) {
  .nav-container,
  .footer-container,
  .footer-bottom {
    max-width: 1360px;
  }

  .hero-title {
    font-size: 4.25rem;
  }
}

/* 2. Standard Laptops & Small Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  .nav-container {
    padding: 14px 20px;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

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

  .secretary-container {
    grid-column: span 2;
  }

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

  .achievements-grid {
    gap: 20px;
  }
}

/* 3. Tablets & iPad Screens (max-width: 991px) */
@media (max-width: 991px) {
  section {
    padding: 80px 20px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    font-size: 1.25rem;
    z-index: 1001;
    cursor: pointer;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 90px 24px 40px;
    gap: 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-link {
    font-size: 1.1rem;
    padding: 8px 16px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .nav-link:hover, .nav-link.active {
    background-color: var(--border-subtle);
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 70px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.25rem);
  }

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

  .leadership-spotlight {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .map-container {
    min-height: 320px;
  }

  .testimonial-card-3d {
    width: 90%;
    max-width: 480px;
    height: 340px;
    padding: 28px;
  }

  .testimonials-carousel-wrapper {
    height: 400px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-brand .logo-block {
    justify-content: center;
  }

  .footer-links-list {
    align-items: center;
  }

  .footer-links-list a {
    justify-content: center;
    width: 100%;
  }

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

  .footer-developer-credit {
    margin: 0 auto;
    justify-content: center;
    width: 100%;
    max-width: 380px;
  }
}

/* 4. Medium Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  section {
    padding: 65px 16px;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-logos {
    gap: 16px;
    margin-bottom: 24px;
  }

  .hero-logo {
    height: 40px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto 40px;
    gap: 12px;
  }

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

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

  .stat-card {
    padding: 20px 16px;
  }

  .spotlight-card {
    padding: 20px;
  }

  .spotlight-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .spotlight-identity h4 {
    font-size: 1.15rem;
  }

  .spotlight-message {
    font-size: 0.92rem;
    text-align: center;
  }

  .wing-leadership-grid {
    grid-template-columns: 1fr;
  }

  .secretary-container {
    grid-column: 1;
  }

  .secretary-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .secretary-card .board-info {
    text-align: center;
  }

  .members-filter-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .search-input-wrapper,
  .filters-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .filter-select {
    width: 100%;
  }

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

  .gallery-masonry {
    columns: 1;
  }

  .modal-card {
    padding: 20px 16px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
  }

  /* Event Timeline Responsiveness */
  .timeline-container {
    padding: 20px 0;
  }

  .timeline-svg {
    left: 16px;
    transform: none;
  }

  .timeline-item {
    width: 100% !important;
  }

  .timeline-item.left, 
  .timeline-item.right {
    left: 0 !important;
    padding-left: 36px !important;
    padding-right: 0 !important;
  }

  .timeline-item.left .timeline-node, 
  .timeline-item.right .timeline-node {
    left: 11px !important;
    right: auto !important;
  }

  .timeline-card {
    padding: 16px;
  }

  .timeline-card-img-wrapper {
    height: 140px;
  }

  /* Testimonials 3D Carousel Mobile adjustments */
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-carousel-wrapper {
    height: 380px;
    margin-top: 24px;
  }

  .testimonial-card-3d {
    width: 92%;
    max-width: 380px;
    height: 320px;
    padding: 20px;
  }

  .testimonial-card-3d.prev {
    transform: translateX(-140%) scale(0.65);
    opacity: 0;
    pointer-events: none;
  }

  .testimonial-card-3d.next {
    transform: translateX(140%) scale(0.65);
    opacity: 0;
    pointer-events: none;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .carousel-control.prev-btn {
    left: 4px;
  }

  .carousel-control.next-btn {
    right: 4px;
  }

  .testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* SQA Quiz Responsiveness */
  .quiz-section {
    padding: 60px 0;
  }

  .quiz-container {
    padding: 20px 16px;
    width: 94%;
    max-width: 100%;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .option-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .quiz-welcome-content h3 {
    font-size: 1.3rem;
  }
}

/* 5. Mobile Phones & Small Devices (max-width: 576px) */
@media (max-width: 576px) {
  .board-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }

  .gallery-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* Floating Widgets Mobile Alignment */
  #back-to-top {
    bottom: 18px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    z-index: 995;
  }

  #chatbot-launcher {
    bottom: 72px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    z-index: 995;
  }

  #chatbot-window {
    bottom: 130px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    height: calc(100vh - 160px);
    height: calc(100dvh - 160px);
    max-height: 500px;
    min-height: 360px;
    z-index: 996;
  }
}

/* 6. Extra Small Devices & Narrow Screens (max-width: 380px) */
@media (max-width: 380px) {
  .nav-container {
    padding: 12px 14px;
  }

  .logo-block {
    gap: 8px;
  }

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

  .logo-subtitle {
    font-size: 0.62rem;
  }

  .logo-placeholder {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .logo-img {
    height: 38px;
  }

  .section-title {
    font-size: 1.7rem;
    letter-spacing: -0.5px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-tagline {
    font-size: 0.92rem;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-num {
    font-size: 2rem;
  }

  .quiz-score-circle {
    width: 110px;
    height: 110px;
  }

  .score-percentage {
    font-size: 1.75rem;
  }

  .contact-form-block {
    padding: 16px 12px;
  }

  .progress-step .step-label {
    display: none;
  }

  .progress-line {
    transform: translateY(-15px);
  }
}







