/* ============================================================
   Students Edu — Main Stylesheet (style.css)
   Clean & Minimal | Blue & White Theme
   Font: Plus Jakarta Sans + Merriweather
   ============================================================ */

/* ── Reset & Root ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Brand Colors */
    --blue-900: #0f2a5e;
    --blue-800: #1e3a8a;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;

    /* Neutrals */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50:  #f9fafb;
    --white:    #ffffff;

    /* Semantic */
    --color-primary:   var(--blue-600);
    --color-primary-dark: var(--blue-800);
    --color-text:      var(--gray-800);
    --color-muted:     var(--gray-500);
    --color-border:    var(--gray-200);
    --color-bg:        var(--white);
    --color-bg-alt:    var(--gray-50);
    --color-success:   #16a34a;
    --color-error:     #dc2626;

    /* Typography */
    --font-body:    'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-serif:   'Merriweather', serif;

    /* Spacing */
    --section-py: 80px;
    --container:  1800px;

    /* Radius */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    /* Shadow */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

    /* Transition */
    --ease: .2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 150%;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Utility ─────────────────────────────────────────────── */
.container      { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section        { padding: var(--section-py) 0; }
.section--alt   { background: var(--color-bg-alt); }
.section--blue  { background: var(--blue-800); color: var(--white); }
.text-center    { text-align: center; }
.text-muted     { color: var(--color-muted); }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3rem);   font-weight: 700; }
h2 { font-size: clamp(1.5rem,4vw,2.25rem);font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem;  font-weight: 600; }
p  { color: var(--gray-700); }

.section-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 10px;
}

.section-title  { margin-bottom: 16px; }
.section-intro  { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; }
.section-header { margin-bottom: 52px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    border-color: var(--blue-600);
}
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn-white {
    background: var(--white);
    color: var(--blue-700);
    border-color: var(--white);
}
.btn-white:hover { background: var(--blue-50); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── Flash Messages ──────────────────────────────────────── */
.flash {
    padding: 14px 24px;
    margin: 12px 0;
    border-radius: var(--radius-md);
    font-weight: 500;
}
.flash--success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.flash--error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body  { padding: 24px; }
.card-img   { width: 100%; height: 200px; object-fit: cover; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}
.badge-blue  { background: var(--blue-100); color: var(--blue-800); }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray  { background: var(--gray-100); color: var(--gray-700); }

/* ── Grid Helpers ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }

/* ════════════════════════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 102px; height: 102px;
    background: white;
    color: white;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; letter-spacing: .05em;
    flex-shrink: 0;
}
.logo-title { display: block; font-weight: 600; font-size: 1.2rem; color: var(--gray-900); line-height: 1.2; }
.logo-sub   { display: block; font-size: .92rem; color: var(--color-muted); line-height: 1.2; }
.logo--white .logo-title,
.logo--white .logo-sub { color: rgba(255,255,255,.9); }

/* Nav links */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-700);
    transition: var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--blue-600); background: var(--blue-50); }
.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--color-border);
    background: var(--white);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
    padding: 12px 0;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--ease);
}
.mobile-nav-link:hover { color: var(--blue-600); padding-left: 8px; }
.nav-cta-mobile {
    margin-top: 16px;
    background: var(--blue-600);
    color: var(--white) !important;
    text-align: center;
    padding: 14px !important;
    border-radius: var(--radius-md);
    border-bottom: none !important;
}

/* ════════════════════════════════════════════════════════════
   HERO / BANNER SLIDER
   ════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-500) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero-pattern.svg') center/cover;
    opacity: .06;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 660px;
}
.hero-label {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p  { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats strip */
.stats-strip {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    padding: 24px 36px;
    display: flex;
    justify-content: space-around;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--blue-600); line-height: 1; }
.stat-label  { font-size: .85rem; color: var(--color-muted); margin-top: 4px; }

/* Logo Ribbon Styles */
.logo-slider {
    background: white;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.logo-track {
    display: flex;
    width: calc(250px * 60); /* Adjust based on total logos * 2 */
    animation: scroll 40s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused; /* Pause on hover so users can see logos */
}

.logo-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.logo-item img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 30)); } /* Adjust '30' to your logo count */
}




/* ════════════════════════════════════════════════════════════
   COLLEGE CARDS
   ════════════════════════════════════════════════════════════ */
.college-card .card-img { height: 180px; }
.college-card .card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.college-card .college-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.college-card .college-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--blue-600);
    margin-top: 12px;
    transition: var(--ease);
}
.college-card .college-link:hover { gap: 10px; }

/* ════════════════════════════════════════════════════════════
   BLOG CARDS
   ════════════════════════════════════════════════════════════ */
.blog-card .card-img  { height: 200px; }
.blog-card .card-body { padding: 20px; }
.blog-card .blog-meta { font-size: .8rem; color: var(--color-muted); margin: 8px 0; display: flex; gap: 12px; }
.blog-card h3 a:hover { color: var(--blue-600); }
.blog-card .read-more {
    font-size: .88rem;
    font-weight: 600;
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    transition: var(--ease);
}
.blog-card .read-more:hover { gap: 8px; }

/* ════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
}
.form-control:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control    { appearance: none; cursor: pointer; }
.form-error { font-size: .82rem; color: var(--color-error); margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   SEARCH / FILTER BAR
   ════════════════════════════════════════════════════════════ */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
}
.filter-bar .form-group { margin: 0; flex: 1; min-width: 180px; }

/* ════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ════════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; font-size: .85rem; }
.breadcrumb a { color: rgba(255,255,255,.7); transition: var(--ease); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.5); }

/* ════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--gray-700);
    transition: var(--ease);
}
.pagination a:hover     { background: var(--blue-50); border-color: var(--blue-300); color: var(--blue-600); }
.pagination .current    { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.7);
    padding-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand .footer-tagline { font-size: .9rem; line-height: 1.7; margin-top: 16px; color: rgba(255,255,255,.6); }
.footer-heading { color: var(--white); font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.6); transition: var(--ease); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; font-size: .9rem; margin-bottom: 12px; }
.footer-contact a  { color: rgba(255,255,255,.7); transition: var(--ease); }
.footer-contact a:hover { color: var(--white); }
.contact-icon { flex-shrink: 0; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    color: var(--white);
    transition: var(--ease);
}
.social-link:hover { background: var(--blue-600); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .85rem;
    color: rgba(255,255,255,.4);
}

/* ════════════════════════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--blue-900);
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}
.admin-main { margin-left: 260px; flex: 1; padding: 32px; background: var(--gray-50); min-height: 100vh; }
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-nav  { padding: 16px 12px; flex: 1; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    margin-bottom: 2px;
    transition: var(--ease);
}
.admin-nav-link:hover,
.admin-nav-link.active { background: rgba(255,255,255,.1); color: var(--white); }
.admin-nav-section { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 16px 14px 6px; }

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.admin-topbar h1 { font-size: 1.5rem; }

/* Stat Cards (dashboard) */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.stat-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: var(--blue-50);
    color: var(--blue-600);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-card-number { font-size: 1.8rem; font-weight: 700; color: var(--gray-900); line-height: 1; }
.stat-card-label  { font-size: .85rem; color: var(--color-muted); margin-top: 4px; }

/* Data Table */
.data-table-wrap { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); overflow: hidden; }
.data-table-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray-50); padding: 12px 16px; text-align: left; font-size: .82rem; font-weight: 700; color: var(--gray-500); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--color-border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: .9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

/* Action buttons in table */
.action-btns { display: flex; gap: 8px; }
.btn-edit,
.btn-delete {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--ease);
}
.btn-edit   { background: var(--blue-50);  color: var(--blue-700); }
.btn-edit:hover   { background: var(--blue-100); }
.btn-delete { background: #fee2e2; color: #991b1b; }
.btn-delete:hover { background: #fecaca; }

/* Admin Form Card */
.admin-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); max-width: 760px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section-py: 44px; }

    /* Layout */
    .main-nav  { display: none; }
    .hamburger { display: flex; }
    .container { padding: 0 16px; }

    /* Typography */
    body   { font-size: 15px; }
    h1     { font-size: 1.65rem; }
    h2     { font-size: 1.35rem; }
    h3     { font-size: 1.1rem; }
    p      { font-size: .92rem; }

    /* Hero */
    .hero         { min-height: 360px; padding: 40px 0 32px; }
    .hero h1      { font-size: 1.55rem; margin-bottom: 12px; }
    .hero p       { font-size: .95rem; margin-bottom: 22px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .btn-lg       { padding: 12px 22px; font-size: .92rem; }

    /* Stats strip */
    .stats-strip {
        margin-top: 20px !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        padding: 18px 14px;
    }
    .stat-item   { min-width: 110px; text-align: center; }
    .stat-number { font-size: 1.6rem; }
    .stat-label  { font-size: .78rem; }

    /* Nav */
    .nav-inner  { height: 60px; }
    .logo-title { font-size: .9rem; }
    .logo-sub   { font-size: .65rem; }
    .logo-icon  { width: 36px; height: 36px; font-size: .8rem; }

    /* Cards */
    .card-body { padding: 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }

    /* Section headers */
    .section-label { font-size: .72rem; }
    .section-intro { font-size: .92rem; }

    /* Footer */
    .footer-grid         { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .site-footer         { padding-top: 40px; }

    /* Page hero inner pages */
    .page-hero    { padding: 36px 0; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p  { font-size: .9rem; }
}

@media (max-width: 480px) {
    :root { --section-py: 36px; }
    .container   { padding: 0 14px; }
    body         { font-size: 14px; }
    h1           { font-size: 1.4rem; }
    h2           { font-size: 1.2rem; }
    .filter-bar  { flex-direction: column; }
    .stat-cards  { grid-template-columns: 1fr 1fr; }
    .btn         { padding: 10px 18px; font-size: .85rem; }
    .btn-lg      { padding: 11px 20px; font-size: .88rem; }
    .stat-number { font-size: 1.4rem; }
    .stat-item   { min-width: 90px; }
    .hero         { min-height: 320px; padding: 32px 0 24px; }
    .hero h1      { font-size: 1.3rem; }
    .hero p       { font-size: .88rem; }
    .card-body    { padding: 14px; }
    .card-img     { height: 160px; }
}
