/* ================================================================
   AnswerBox — Global Stylesheet
   Theme: Light Blue Gradient Background + White Glassmorphism Cards
   Colors: #2193b0 → #6dd5ed gradient (original theme)
   ================================================================ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
    --primary:       #2193b0;
    --primary-light: #6dd5ed;
    --primary-dark:  #1a7a96;
    --secondary:     #2c3e50;
    --gradient:      linear-gradient(135deg, #2193b0, #6dd5ed);
    --gradient-rev:  linear-gradient(135deg, #6dd5ed, #2193b0);

    /* Page body = gradient, helper colours */
    --bg:            #1c88a3;   /* midpoint solid fallback */
    --bg2:           rgba(255,255,255,0.15);
    --bg3:           rgba(255,255,255,0.08);

    /* Cards — WHITE glassmorphism */
    --card:          rgba(255,255,255,0.90);
    --card-hover:    rgba(255,255,255,0.98);
    --border:        rgba(255,255,255,0.30);
    --border-accent: rgba(33,147,176,0.45);
    --glass-shadow:  0 8px 32px rgba(31,38,135,0.14);
    --card-shadow:   0 10px 24px rgba(0,0,0,0.10);

    /* Text — DARK (on white cards). Darkened from old cement greys for readability. */
    --text:          #1f2d3d;
    --text-muted:    #3d5266;
    --text-dim:      #5a6f80;
    /* White text for things sitting directly on the gradient */
    --text-light:    rgba(255,255,255,0.98);
    --white:         #ffffff;

    /* Semantic colours */
    --success:       #10b981;
    --warning:       #f59e0b;
    --danger:        #ef4444;

    /* Layout */
    --nav-h:         70px;
    --radius:        12px;
    --radius-lg:     20px;
    --radius-xl:     28px;
    --shadow:        0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
    --blur:          blur(12px);
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', sans-serif;
    /* Deeper gradient — keeps original look but darker so white text reads cleanly */
    background: linear-gradient(135deg, #145e75 0%, #2193b0 50%, #4cb8d4 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}
body.drawer-open { overflow: hidden; }

a  { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);   /* dark by default (inside white cards) */
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Headings/text that live directly on the gradient background */
.on-gradient h1, .on-gradient h2, .on-gradient h3,
.on-gradient h4, .on-gradient h5, .on-gradient h6 { color: var(--white); }
.on-gradient p { color: var(--text-light); }

/* ── Section Utility ───────────────────────────────────────────── */
.section    { padding: 40px 0 60px; }
.section-sm { padding: 28px 0 40px; }
/* When .section directly follows .page-hero, kill its top padding so there's no gap */
.page-hero + .section,
.page-hero + section.section { padding-top: 28px; }
.container  {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-wide { max-width: 1400px; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p  { font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* Gradient section header (text directly on bg) */
.section-header.on-gradient h2 { color: var(--white); }
.section-header.on-gradient p  { color: var(--text-light); }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33,147,176,0.45);
    filter: brightness(1.08);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}
.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-dark:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}
.btn-ghost {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition);
}
.card:hover {
    background: var(--card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-python  { background: rgba(55,118,171,0.12); color: #1a6fa8; border: 1px solid rgba(55,118,171,0.3); }
.badge-c       { background: rgba(0,125,196,0.10);  color: #0077c4; border: 1px solid rgba(0,125,196,0.3); }
.badge-java    { background: rgba(237,88,36,0.10);  color: #c94a10; border: 1px solid rgba(237,88,36,0.3); }
.badge-easy    { background: rgba(16,185,129,0.10); color: #059669; border: 1px solid rgba(16,185,129,0.3); }
.badge-medium  { background: rgba(245,158,11,0.12); color: #d97706; border: 1px solid rgba(245,158,11,0.3); }
.badge-hard    { background: rgba(239,68,68,0.10);  color: #dc2626; border: 1px solid rgba(239,68,68,0.3); }
.badge-success { background: rgba(16,185,129,0.10); color: #059669; }
.badge-primary { background: rgba(33,147,176,0.12); color: var(--primary-dark); }

/* ── Tags ───────────────────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(33,147,176,0.10);
    color: var(--primary-dark);
    border: 1px solid rgba(33,147,176,0.25);
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 7px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(33,147,176,0.25);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 0 3px rgba(33,147,176,0.15);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control    { appearance: none; cursor: pointer; }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .form-control { padding-left: 42px; }
.input-group .input-icon  {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    font-size: 1rem;
    pointer-events: none;
}

.form-error   { color: var(--danger);  font-size: 0.85rem; margin-top: 5px; }
.form-success { color: var(--success); font-size: 0.85rem; margin-top: 5px; }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.3); color: #065f46; }
.alert-error   { background: rgba(239,68,68,0.10);  border: 1px solid rgba(239,68,68,0.3);  color: #991b1b; }
.alert-info    { background: rgba(33,147,176,0.10); border: 1px solid rgba(33,147,176,0.3); color: var(--primary-dark); }

/* ── Divider ────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid rgba(33,147,176,0.2); margin: 30px 0; }

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

/* ── Ad Container ───────────────────────────────────────────────── */
.ad-wrap { text-align: center; padding: 20px 0; margin: 30px auto; max-width: 900px; }
.ad-wrap ins { display: block; margin: 0 auto; }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(44, 62, 80, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(30, 50, 65, 0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.35);
    height: 60px;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo — image based */
.nav-logo {
    display: flex;
    align-items: center;
    height: 44px;
    flex-shrink: 0;
}
.nav-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}
/* fallback text logo */
.logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--white); }
.logo-accent { color: var(--primary-light); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.80);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.10);
}
.nav-links a.active { color: var(--primary-light); }

/* Login button */
.btn-nav-login {
    background: var(--gradient) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
}
.btn-nav-login:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(33,147,176,0.45) !important;
    filter: brightness(1.1) !important;
    background: rgba(255,255,255,0.06) !important;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown .caret { font-size: 0.65rem; transition: transform var(--transition); }
.dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(30,50,65,0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius);
    min-width: 200px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all var(--transition);
    z-index: 100;
}
.dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    color: rgba(255,255,255,0.75) !important;
}
.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.08) !important;
    color: var(--white) !important;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }
.menu-toggle span {
    display: block;
    width: 100%; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Mobile Drawer ──────────────────────────────────────────────── */
.mobile-drawer {
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(30,50,65,0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 1100;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-drawer.open { right: 0; }

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.drawer-overlay.show { opacity: 1; pointer-events: all; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer-header img { height: 38px; width: auto; }
.drawer-close {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all var(--transition);
}
.drawer-close:hover { background: rgba(239,68,68,0.15); color: #fca5a5; }

.drawer-links {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.drawer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: all var(--transition);
}
.drawer-links a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    padding-left: 20px;
}
.drawer-links a i { width: 20px; text-align: center; color: var(--primary-light); }
.drawer-login {
    margin-top: 10px;
    background: var(--gradient) !important;
    color: var(--white) !important;
    border-radius: 10px !important;
    justify-content: center;
}
.drawer-logout { color: #fca5a5 !important; margin-top: auto; }
.drawer-logout:hover { background: rgba(239,68,68,0.12) !important; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
    background: rgba(30,50,65,0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 60px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    height: 44px;
}
.footer-logo img { height: 44px; width: auto; }
/* fallback text */
.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
}
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.60); margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.60);
    font-size: 1rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}
.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: all var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-col ul li a i { font-size: 0.7rem; color: var(--primary-light); width: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; margin: 0; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.40); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ══════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════ */
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }

/* ══════════════════════════════════════════════
   PAGE HERO BANNER (inner pages)
══════════════════════════════════════════════ */
.page-hero {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; position: relative; }
.page-hero p  { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; position: relative; }

/* ══════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}
.breadcrumb a   { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-dim); }

/* ══════════════════════════════════════════════
   LOADER / SPINNER
══════════════════════════════════════════════ */
.spinner {
    display: inline-block;
    width: 22px; height: 22px;
    border: 2.5px solid rgba(33,147,176,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i  { font-size: 3.5rem; color: rgba(33,147,176,0.4); margin-bottom: 18px; display: block; }
.empty-state h3 { margin-bottom: 8px; color: var(--secondary); }

/* ══════════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════════ */
#scrollTop {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 900;
    box-shadow: 0 4px 14px rgba(33,147,176,0.4);
}
#scrollTop.visible  { opacity: 1; pointer-events: all; transform: translateY(0); }
#scrollTop:hover    { transform: translateY(-3px); filter: brightness(1.1); }

/* ══════════════════════════════════════════════
   CODE BLOCKS
══════════════════════════════════════════════ */
pre {
    background: #1a2030;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.65;
    position: relative;
}
pre code {
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #e6edf3;
}
.code-header {
    background: #141d2b;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}
.code-header + pre { border-top-left-radius: 0; border-top-right-radius: 0; }
.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    transition: all var(--transition);
}
.copy-btn:hover { background: rgba(33,147,176,0.2); color: var(--primary-light); border-color: var(--primary); }

/* ══════════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════════ */
.toast-notification {
    position: fixed;
    bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(30,50,65,0.97);
    backdrop-filter: blur(16px);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 9999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    pointer-events: none;
}
.toast-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-notification.success { border-color: rgba(16,185,129,0.4); }
.toast-notification.error   { border-color: rgba(239,68,68,0.4); }

/* ══════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-white   { color: var(--white) !important; }
.text-light   { color: var(--text-light) !important; }
.text-danger  { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.mt-1 { margin-top:  8px; }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }  .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom:  8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap:  8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-brand     { grid-column: 1 / -1; }
    .grid-4           { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-h: 60px; }
    .nav-links   { display: none; }
    .menu-toggle { display: flex; }

    .section    { padding: 28px 0 40px; }
    .section-header { margin-bottom: 28px; }

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

    .footer-container    { grid-template-columns: 1fr; gap: 30px; }
    .footer-brand        { grid-column: auto; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .grid-4    { grid-template-columns: 1fr 1fr; }
    .btn-lg    { padding: 13px 26px; font-size: 0.95rem; }
    .page-hero { padding: 28px 16px 24px; }
}

/* ══════════════════════════════════════════════
   GLOBAL CARD-TEXT CONTRAST FIX
   Cards have white backgrounds, so any text inside
   a card must be DARK — overrides leftover dark-theme
   colors (white-on-white) on per-page CSS.
══════════════════════════════════════════════ */
.blog-card,
.blog-card *,
.path-card,
.path-card *,
.module-card,
.module-card *,
.problem-card,
.problem-card *,
.feature-card,
.feature-card *,
.video-card,
.video-card *,
.lang-card,
.lang-card *,
.stat-card,
.stat-card * { color: var(--text); }

.blog-card h1, .blog-card h2, .blog-card h3, .blog-card h4,
.path-card h1, .path-card h2, .path-card h3, .path-card h4,
.module-card h1, .module-card h2, .module-card h3, .module-card h4,
.problem-card h1, .problem-card h2, .problem-card h3, .problem-card h4,
.feature-card h1, .feature-card h2, .feature-card h3, .feature-card h4,
.video-card h1, .video-card h2, .video-card h3, .video-card h4,
.lang-card h1, .lang-card h2, .lang-card h3, .lang-card h4 {
    color: var(--secondary);
}

.blog-card-title,
.blog-card-excerpt,
.module-title,
.module-desc,
.path-title,
.path-desc { color: var(--text) !important; }

.blog-card-title { color: var(--secondary) !important; }
.module-title    { color: var(--secondary) !important; }
.path-title      { color: var(--secondary) !important; }

/* Meta / dim text inside cards — readable grey, not cement */
.blog-card-meta,
.blog-card-meta *,
.path-footer,
.path-footer * { color: var(--text-muted) !important; }
