/* ============================================================
   Assam Mock Test Platform — Public Site Styles
   Modern, lightweight, fast — no heavy frameworks beyond Bootstrap 5.
   Google Fonts are loaded with preconnect for speed; everything else
   here is plain CSS (no build step needed) so this stays easy to
   maintain by hand.
   ============================================================ */

:root {
    --brand-primary: #2563eb;
    --brand-primary-dark: #1d4ed8;
    --brand-accent: #f59e0b;
    --brand-ink: #0f172a;
    --brand-muted: #64748b;
    --brand-bg: #f8fafc;
    --brand-radius: 1rem;
    --font-heading: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--brand-bg);
    color: var(--brand-ink);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.hero-title {
    font-family: var(--font-heading);
}

.auth-page {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    transform: translateY(-1px);
}

/* ---------- Cards ---------- */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.1) !important;
}

/* ---------- Sticky nav ---------- */
.navbar {
    backdrop-filter: saturate(180%) blur(6px);
}

.navbar-brand {
    font-weight: 700;
    color: var(--brand-ink) !important;
}

.nav-link {
    font-weight: 500;
}

/* ---------- Section headings ---------- */
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero-section {
    background: radial-gradient(circle at top left, #3b82f6 0%, var(--brand-primary) 45%, var(--brand-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-stats .stat-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

/* ---------- Homepage slider ---------- */
.home-slider {
    border-radius: var(--brand-radius);
    overflow: hidden;
}

.home-slider .carousel-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.home-slider .carousel-caption {
    text-align: left;
    left: 5%;
    right: auto;
    bottom: 12%;
    max-width: 60%;
    background: rgba(15, 23, 42, 0.55);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(2px);
}

@media (max-width: 767.98px) {
    .home-slider .carousel-item img {
        height: 200px;
    }
    .home-slider .carousel-caption {
        max-width: 90%;
        padding: 0.5rem 0.85rem;
        bottom: 6%;
    }
    .home-slider .carousel-caption h3 {
        font-size: 1rem;
    }
    .home-slider .carousel-caption p {
        display: none;
    }
}

/* ---------- Exam / content cards ---------- */
.exam-card .card-img-top,
.ebook-card .card-img-top,
.quiz-card .card-img-top,
.blog-card .card-img-top {
    height: 160px;
    object-fit: cover;
}

.badge-free {
    background-color: #16a34a;
}

.badge-paid {
    background-color: var(--brand-accent);
    color: #1f2937;
}

/* ---------- Top scorers ---------- */
.scorer-card {
    background: linear-gradient(160deg, #fff 60%, #eff6ff 100%);
}

/* ---------- Footer ---------- */
.site-footer a {
    color: inherit;
    opacity: 0.85;
}

.site-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-muted {
    opacity: 0.7;
}

.footer-divider {
    opacity: 0.15;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.footer-social a:hover {
    background: var(--brand-primary);
    text-decoration: none;
}

/* ---------- Misc ---------- */
.rounded-4 {
    border-radius: var(--brand-radius) !important;
}

.no-scrollbar-x {
    overflow-x: auto;
    white-space: nowrap;
}
