/* ==========================================================================
   WAYAMBA JANAKALA KENDRAYA - RESPONSIVE STYLESHEET
   Mobile-first media queries and layout adaptations
   ========================================================================== */

/* Large Tablets and Laptops (max-width: 1080px) */
@media screen and (max-width: 1080px) {
  .hero-title {
    font-size: 2.7rem;
  }

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

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

  .board-card.chairman {
    grid-column: span 3;
  }

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

  .projects-grid .project-category-card:last-child {
    grid-column: span 2;
  }

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

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

/* Tablets & Laptops (max-width: 1120px) */
@media screen and (max-width: 1120px) {
  .navbar {
    min-height: 76px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #FFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 30px;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1050;
    overflow-y: auto;
    gap: 0;
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border-bottom: 1px solid var(--parchment-border);
  }

  .nav-item-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--parchment-border);
  }

  .nav-item-dropdown .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-bottom: none;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--gold-600);
    padding: 4px 0 4px 10px;
    background: var(--parchment-alt);
    min-width: 100%;
    width: 100%;
    margin: 4px 0 8px 10px;
    border-radius: var(--radius-sm);
  }

  .nav-dropdown-link {
    padding: 8px 12px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-actions {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-badge-float {
    position: static;
    margin-top: 20px;
    justify-content: center;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

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

  .role-card {
    grid-template-columns: 1fr;
  }

  .role-badge-col {
    padding: 16px;
    font-size: 2.2rem;
    border-right: none;
    border-bottom: 3px solid var(--gold-600);
  }

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

  .outlet-card {
    grid-template-columns: 1fr;
  }

  .outlet-img-col {
    height: 200px;
  }

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

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

  .board-card.chairman {
    grid-column: span 2;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* Mobile Devices (max-width: 580px) */
@media screen and (max-width: 580px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

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

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat-value {
    font-size: 1.35rem;
  }

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

  .projects-grid .project-category-card:last-child {
    grid-column: span 1;
  }

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

  .board-card.chairman {
    grid-column: span 1;
  }

  .map-pins-container {
    grid-template-columns: 1fr;
  }

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

  .top-bar-left span:not(.top-bar-badge) {
    display: none;
  }

  .role-body {
    padding: 24px 20px;
  }

  .vm-card {
    padding: 28px 22px;
  }

  .contact-card, .contact-form-card {
    padding: 24px 20px;
  }

  .brand-logo {
    height: 54px;
    max-width: 54px;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .lightbox-close {
    top: -40px;
    right: 10px;
  }

  /* News Section & Side Drawer on Mobile */
  .news-body-content {
    padding: 22px 18px;
  }

  .news-fest-title {
    font-size: 1.4rem;
  }

  .news-fest-theme {
    font-size: 0.95rem;
  }

  .news-info-tiles {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .news-countdown-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }

  .countdown-digits {
    justify-content: space-between;
    gap: 6px;
  }

  .cd-box {
    min-width: 48px;
    padding: 6px 8px;
  }

  .cd-num {
    font-size: 1.15rem;
  }

  .side-news-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .side-news-tab {
    padding: 10px 12px;
  }

  .side-tab-text {
    display: none;
  }

  .poster-actions-row {
    flex-direction: column;
  }
}

/* Tablet Adaptations (max-width: 1080px) */
@media screen and (max-width: 1080px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 20px;
  }

  .hero-news-widget-wrapper {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
  }

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

  .news-poster-card {
    position: static;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile Adaptations (max-width: 580px) */
@media screen and (max-width: 580px) {
  .gov-news-card {
    padding: 18px 15px;
    border-radius: 12px;
  }

  .gov-news-main-title {
    font-size: 1.25rem;
  }

  .gov-tab-btn {
    font-size: 0.78rem;
    padding: 6px 6px;
  }
}


