/* ============================================================
   FUTURECOLLEGE — RESPONSIVE ARCHITECTURE
   ------------------------------------------------------------
   This file contains EVERY responsive media query for the
   entire site (index.html + pages/*.html). Desktop-first styles
   live in their original files (style.css, colleges.css,
   contact.css, login.css) — this file only overrides them at
   the breakpoints below.

   Load order: base CSS files first, responsive.css LAST, so
   these overrides always win.

   BREAKPOINTS
   1400px  — Large Desktop
   1200px  — Small Desktop / Large Laptop
   992px   — Laptop / Large Tablet
   768px   — Tablet
   576px   — Large Mobile
   480px   — Small Mobile
   ============================================================ */


/* ============================================================
   1400px — LARGE DESKTOP
   ------------------------------------------------------------
   The .container (92% / max-width 1280px) already keeps every
   layout centered and comfortable up to and beyond 1920px, so
   no structural overrides are required here. This section is
   kept as a placeholder/hook for any future ultra-wide tuning.
   ============================================================ */
/* No overrides needed at 1400px — .hero-inner (920px) and
   .container (92% / max 1280px) already scale cleanly here. */


/* ============================================================
   1200px — SMALL DESKTOP / LARGE LAPTOP
   ============================================================ */
@media (max-width: 1200px) {

  /* --- colleges.html: listing sidebar breathes before the
     hard collapse at 1024px --- */
  .listing-layout {
    grid-template-columns: 260px 1fr;
    gap: var(--space-6);
  }
}


/* ============================================================
   992px — LAPTOP / LARGE TABLET
   ============================================================ */
@media (max-width: 1024px) {

  /* ---------- Global header (index.html + inner pages) ---------- */
  .header-nav {
    display: none;
  }

  .courses-dropdown-wrap {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-search-wrap {
    max-width: 320px;
  }

  /* ---------- Home page grids ---------- */
  .stream-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-3);
  }

  .college-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exam-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .uni-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .admission-banner {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat-item:nth-child(2) {
    border-right: none;
  }

  /* ---------- colleges.html listing page ---------- */
  .listing-layout {
    grid-template-columns: 240px 1fr;
  }

  .listing-card {
    grid-template-columns: 160px 1fr auto;
  }

  /* ---------- contact.html enquiry section ---------- */
  .enquiry-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .enquiry-heading {
    max-width: 100%;
  }

  .enquiry-desc {
    max-width: 100%;
  }

  .enquiry-form-card {
    max-width: 560px;
    margin: 0 auto;
  }

  .enquiry-bg-art .enquiry-art-primary {
    width: 440px;
    height: 440px;
  }
}

/* ---------- colleges.html: sidebar filter collapses ---------- */
@media (max-width: 992px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: relative;
    top: 0;
  }

  .filter-sidebar-toggle-btn {
    display: flex;
  }

  .filter-body {
    max-height: none;
  }
}

/* ---------- login.html / signup.html split panel ---------- */
@media (max-width: 992px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .login-right {
    padding: 32px 20px;
    min-height: 100vh;
  }
}

/* ---------- contact.html: compact 2-column form (desktop-only
   enhancement, kept as a min-width query since it widens the
   layout rather than shrinking it) ---------- */
@media (min-width: 992px) {
  .enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    align-items: start;
  }

  .enquiry-submit-btn,
  .enquiry-form-note {
    grid-column: 1 / -1;
  }

  .enquiry-form-header {
    margin-bottom: 16px !important;
  }

  .enquiry-form-card {
    padding: 24px !important;
  }

  .enquiry-field-label {
    margin-bottom: 6px !important;
  }

  .enquiry-input,
  .enquiry-phone-input {
    height: 50px !important;
  }

  .enquiry-submit-btn {
    margin-top: 4px;
    height: 52px;
  }
}


/* ============================================================
   768px — TABLET
   ============================================================ */
@media (max-width: 768px) {

  /* ---------- Global header ---------- */
  .header-topbar {
    display: none;
  }

  .header-search-wrap {
    display: none;
  }

  /* ---------- Hero (index.html) ---------- */
  .hero-section {
    margin-top: 102px;
    height: 380px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-search-pills {
    gap: var(--space-2);
  }

  .search-pill-btn {
    font-size: var(--text-sm);
    padding: 6px 14px;
  }

  .hero-search-bar {
    height: 46px;
  }

  .hero-search-submit {
    padding: 0 18px;
    font-size: var(--text-sm);
  }

  .hero-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    max-width: 100%;
  }

  .hero-search-row .hero-search-bar {
    max-width: 100%;
  }

  .hero-counselling-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .hero-stat-item {
    padding: var(--space-3);
  }

  .hero-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .hero-stat-value {
    font-size: var(--text-2xl);
  }

  .hero-stat-item:nth-child(2) {
    border-right: 1px solid var(--clr-border);
  }

  .hero-stat-item:nth-child(3) {
    border-right: none;
  }

  .hero-stat-item:nth-child(4) {
    display: none;
  }

  .hero-stats-bar {
    display: none;
  }

  /* ---------- Home page sections ---------- */
  .stream-section {
    padding: var(--space-12) 0;
  }

  .stream-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .stream-card {
    padding: var(--space-4);
  }

  .stream-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .stream-name {
    font-size: var(--text-base);
  }

  .section-heading h2 {
    font-size: var(--text-4xl);
  }

  .college-card-grid {
    grid-template-columns: 1fr;
  }

  .exam-cards-grid {
    grid-template-columns: 1fr;
  }

  .uni-cards-grid {
    grid-template-columns: 1fr;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edu-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .admission-banner {
    padding: 32px 24px;
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .admission-banner-text h2 {
    font-size: var(--text-4xl);
  }

  .newsletter-card {
    padding: 32px 24px;
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .newsletter-text h2 {
    font-size: var(--text-4xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .quick-links-card .container {
    flex-direction: column;
  }

  /* ---------- colleges.html listing page ---------- */
  .listing-card {
    grid-template-columns: 1fr;
  }

  .listing-card-banner {
    min-height: 140px;
    flex-direction: row;
    border-radius: 0;
  }

  .listing-card-actions {
    border-left: none;
    border-top: 1px solid var(--clr-border-light);
    flex-direction: row;
    flex-wrap: wrap;
  }

  .listing-apply-btn,
  .listing-brochure-btn {
    flex: 1;
  }

  .page-header-nav {
    display: none;
  }

  .listing-hero-stats {
    display: none;
  }

  .listing-hero-title {
    font-size: var(--text-4xl);
  }

  .sort-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ---------- contact.html enquiry section ---------- */
  .enquiry-section {
    padding: var(--space-12) 0;
  }

  .enquiry-heading {
    font-size: var(--text-5xl);
  }

  .enquiry-features {
    grid-template-columns: 1fr;
  }

  .enquiry-form-card {
    padding: var(--space-8) var(--space-5);
  }

  .enquiry-trust-strip {
    gap: var(--space-2);
  }

  .enquiry-trust-badge {
    padding: 8px 14px;
    font-size: 12px;
  }

  .enquiry-bg-art {
    opacity: .6;
  }
}


/* ============================================================
   576px — LARGE MOBILE
   ------------------------------------------------------------
   Fine-tuning between the tablet (768px) and small-mobile
   (480px) breakpoints so nothing feels cramped on larger phones.
   ============================================================ */
@media (max-width: 576px) {

  .hero-badge {
    font-size: var(--text-xs);
    padding: 5px 12px;
  }

  .edu-links-grid {
    grid-template-columns: 1fr;
  }

  .listing-card-actions {
    flex-direction: column;
  }

  .listing-apply-btn,
  .listing-brochure-btn {
    width: 100%;
  }

  .enquiry-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-right {
    padding: 28px 16px;
  }
}


/* ============================================================
   480px — SMALL MOBILE
   ============================================================ */
@media (max-width: 480px) {

  /* ---------- Home page ---------- */
  .hero-counselling-btn {
    font-size: var(--text-sm);
    padding: 0 16px;
    height: 46px;
  }

  .stream-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .cities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .edu-links-grid {
    grid-template-columns: 1fr;
  }

  .hero-quick-filters {
    display: none;
  }

  .hero-badge {
    display: none;
  }

  /* ---------- contact.html enquiry section ---------- */
  .enquiry-heading {
    font-size: var(--text-4xl);
  }

  .enquiry-stats {
    gap: var(--space-2);
  }

  .enquiry-stat-card {
    padding: var(--space-3) var(--space-2);
  }

  .enquiry-stat-number {
    font-size: var(--text-2xl);
  }

  .enquiry-form-card {
    padding: var(--space-6) var(--space-4);
  }

  .enquiry-form-header h3 {
    font-size: var(--text-2xl);
  }

  .enquiry-input-shell,
  .enquiry-phone-shell {
    height: 52px;
  }

  .enquiry-submit-btn {
    height: 54px;
    font-size: var(--text-base);
  }

  /* ---------- login.html / signup.html ---------- */
  .login-card {
    padding: 32px 24px;
    border-radius: var(--radius-xl);
  }

  .login-card h2 {
    font-size: 24px;
  }
}


/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   (Not a screen-size breakpoint, but a media feature query —
   grouped here so all @media rules live in a single file.)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .enquiry-feature-card,
  .enquiry-submit-btn,
  .enquiry-success-icon,
  .btn-spinner {
    transition: none;
    animation: none;
  }
}
