/* ==========================================================================
   AURELIA UNIVERSITY - RESPONSIVE STYLESHEET
   Author: Senior Frontend Developer / UI Designer
   Description: Clean breakpoints ensuring premium spacing on all viewports.
   ========================================================================== */

/* 1. LARGE SCREENS (Desktop High Resolution) */
@media (min-width: 1440px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* 2. LAPTOPS & SMALLER DESKTOPS */
@media (max-width: 1200px) {
  :root {
    --header-height: 70px;
  }

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

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

  .experience-item {
    height: 320px;
  }

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

/* 3. TABLETS (Horizontal & Vertical) */
@media (max-width: 992px) {
  :root {
    --space-xl: clamp(3.5rem, 7vw, 6rem);
    --space-lg: clamp(2rem, 4vw, 3.5rem);
  }

  /* Grid Stack fallbacks */
  .asym-grid-2, .asym-grid-2-rev {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-bottom: var(--space-lg);
  }

  .hero-visual {
    justify-content: center;
    min-height: auto;
  }

  .hero-img-wrap {
    width: 100%;
    height: 50vh;
  }

  .hero-stat-badge {
    left: 20px;
    bottom: 20px;
  }

  .about-img-1 {
    width: 100%;
    height: 450px;
  }

  .about-stats-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 20px;
  }

  .about-right {
    padding-left: 0;
    margin-top: var(--space-md);
  }

  .why-block, .why-block.reverse {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .why-block.reverse .why-info {
    grid-column: 1;
  }

  .why-info {
    padding: 0;
  }

  .why-media {
    height: 350px;
  }

  .research-layout {
    grid-template-columns: 1fr;
  }

  .placements-layout {
    grid-template-columns: 1fr;
  }

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

  .gallery-masonry {
    columns: 2;
  }

  .event-row {
    grid-template-columns: 80px 1fr;
    gap: var(--space-sm);
  }

  .event-action {
    grid-column: span 2;
    text-align: left;
    margin-top: 10px;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: span 2;
    margin-bottom: var(--space-md);
  }
}

/* 4. MOBILE LAYOUTS (Mobiles & Small Tablets) */
@media (max-width: 768px) {
  /* Navigation Drawer styling */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: var(--space-md);
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
  }

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

  /* Hamburger anim when active */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-ctas {
    display: none; /* Hide on mobile to simplify header, show inside mobile menu if needed */
  }

  /* Structural adjustments */
  .programs-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-masonry {
    columns: 1;
  }

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

  .timeline-wrap::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 13px;
  }

  .testimonials-slider-wrap {
    height: 480px;
  }

  .testimonial-quote {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  .inquiry-form-card {
    padding: 30px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Hero Typography scale */
  .hero-title {
    font-size: 2.6rem;
  }
}

/* 5. SMALL MOBILE DEVICES */
@media (max-width: 480px) {
  .rankings-grid {
    grid-template-columns: 1fr;
  }

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

  .event-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-date-box {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-bottom: 15px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item-img {
    width: 100%;
    height: 180px;
  }
}
