/* ==========================================================================
   National Council for Vocational Education & Research (NCVER)
   Responsive & Print Stylesheet: css/responsive.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Desktop & Laptops (< 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav-link {
    padding: 14px 10px;
    font-size: 0.84rem;
  }

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

  .header-mission-col {
    padding-left: 12px;
    padding-right: 12px;
  }

  .swachh-svg {
    height: 42px;
  }

  .brand-acronym {
    font-size: 1.65rem;
  }
}

/* --------------------------------------------------------------------------
   2. Tablets & Small Laptops (< 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  /* Top White Utility Bar on Tablets */
  .header-top-utility-bar {
    padding: 5px 0;
  }

  .header-top-utility-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .top-utility-left {
    font-size: 0.78rem;
  }

  .top-action-btn {
    padding: 5px 12px;
    font-size: 0.82rem;
  }

  .header-divider-col {
    border-left: none;
    border-right: none;
    height: auto;
  }

  .header-mission-col {
    display: none;
  }

  .header-national-badges {
    display: none;
  }

  .header-utilities, .header-actions-panel {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Navigation Drawer for Mobile/Tablet */
  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link {
    width: 100%;
    padding: 14px 20px;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background-color: var(--primary-dark);
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 20px;
  }

  .nav-item.dropdown-open > .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    color: #E2E8F0;
    padding: 10px 16px;
  }

  .dropdown-item:hover {
    background-color: var(--secondary);
    color: #FFFFFF;
  }

  /* Quick Actions Grid */
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Courses Grid */
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .hero-slider-section {
    height: 600px;
  }

  .hero-slide-heading {
    font-size: 2rem;
  }

  .journey-timeline {
    flex-direction: column;
    gap: 20px;
  }

  .journey-timeline::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   3. Small Tablets & Phones (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  /* Header Top White Bar on Phones */
  .header-top-utility-bar {
    padding: 5px 0;
  }
  .header-top-utility-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .top-utility-left {
    font-size: 0.76rem;
  }
  .top-utility-left .top-utility-email,
  .top-utility-left .top-utility-divider {
    display: none;
  }
  .top-utility-actions {
    gap: 6px;
  }
  .top-action-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
    border-radius: 4px;
  }

  .top-gov-bar {
    font-size: 0.75rem;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .top-bar-utilities {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo-img {
    height: 52px;
  }

  .brand-council-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.78rem;
  }

  .quick-access-grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

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

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

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

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

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

  .hero-slider-section {
    height: 540px;
  }

  .hero-slide-heading {
    font-size: 1.65rem;
  }

  .hero-slide-text {
    font-size: 0.95rem;
  }

  .hero-nav-arrow {
    display: none; /* Rely on indicators and touch swipe on phones */
  }

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

  .status-details-grid {
    grid-template-columns: 1fr;
  }

  .marksheet-table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .marksheet-card {
    padding: 20px 15px;
  }

  .marksheet-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   4. Ultra Small Screens (< 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .header-top-utility-inner {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .top-utility-left {
    font-size: 0.74rem;
    text-align: center;
  }

  .top-utility-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .top-action-btn {
    flex: 1;
    max-width: 160px;
    justify-content: center;
    text-align: center;
  }

  .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slide-actions .btn {
    width: 100%;
  }

  .header-utilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .header-util-btn {
    justify-content: center;
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .courses-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-pills {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    flex-wrap: nowrap;
  }
}

/* --------------------------------------------------------------------------
   5. Reduced Motion Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   6. Print Stylesheet for Official Marksheets & Certificates
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .top-gov-bar,
  .main-nav-bar,
  .notice-ticker-bar,
  .site-footer,
  .back-to-top-btn,
  .no-print,
  .btn,
  .tabs-nav,
  .breadcrumbs-nav {
    display: none !important;
  }

  .page-banner {
    background: none !important;
    color: #000000 !important;
    padding: 0 !important;
    border: none !important;
  }

  .marksheet-card, .verify-panel, .status-card {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10mm !important;
  }

  .marksheet-table th {
    background-color: #EEEEEE !important;
    color: #000000 !important;
  }

  a[href]::after {
    content: none !important;
  }
}
