@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e8edf2;
    --border-hover: #c7d4e1;
    --glass-bg: rgba(255, 255, 255, 0.85);

    /* Brand Colors */
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.1);
    --accent-glow: rgba(99, 102, 241, 0.3);
    --violet: #7c3aed;
    --sky: #0ea5e9;
    --emerald: #10b981;
    --rose: #f43f5e;

    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --gradient-warm:  linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
    --gradient-card:  linear-gradient(180deg, rgba(99,102,241,0.04) 0%, rgba(14,165,233,0.02) 100%);
    --gradient-hero:  linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 50%, #faf5ff 100%);

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

    /* Sizing */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-max: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(15,23,42,0.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 16px rgba(15,23,42,0.06), 0 1px 4px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 28px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
    --shadow-hover: 0 20px 40px rgba(99,102,241,0.14), 0 8px 16px rgba(15,23,42,0.06);
    --shadow-card: 0 2px 8px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
    --shadow-glow: 0 0 30px rgba(99,102,241,0.2);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #060b16;
    --bg-secondary: #0d1424;
    --bg-tertiary: #151f30;
    --bg-card: #111827;
    --text-primary: #f1f5f9;
    --text-secondary: #8898aa;
    --text-muted: #5a7185;
    --border-color: #1e2d3d;
    --border-hover: #2d3f54;
    --glass-bg: rgba(13, 20, 36, 0.9);

    --accent-color: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-light: rgba(129, 140, 248, 0.12);
    --accent-glow: rgba(129, 140, 248, 0.25);

    --gradient-brand: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
    --gradient-hero: linear-gradient(135deg, #0d1424 0%, #0a1628 50%, #10121f 100%);
    --gradient-card: linear-gradient(180deg, rgba(129,140,248,0.05) 0%, rgba(56,189,248,0.02) 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 20px 40px rgba(129,140,248,0.15), 0 8px 16px rgba(0,0,0,0.4);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
    --shadow-glow: 0 0 30px rgba(129,140,248,0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    transition: background-color var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-max);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
    box-shadow: 0 6px 24px var(--accent-glow);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-danger { background: var(--gradient-warm); color: white; box-shadow: 0 4px 12px rgba(244,63,94,0.3); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(244,63,94,0.4); color: white; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo { display: flex; align-items: center; gap: 12px; transition: var(--transition-bounce); }
.logo:hover { transform: scale(1.03); }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.main-nav .nav-list {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}
.main-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}
.main-nav a::after { display: none; }


/* Dropdown */
.nav-dropdown { position: relative; cursor: pointer; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 0.35rem; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition);
    z-index: 200;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { color: var(--accent-color); background: var(--accent-light); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 1rem; }

.search-form {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-max);
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}
.search-form:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
    background: var(--bg-primary);
}
.search-form input {
    background: transparent;
    border: none;
    padding: 0.55rem 1rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    width: 190px;
    transition: width var(--transition);
}
.search-form input:focus { width: 230px; }
.search-form button {
    background: transparent;
    border: none;
    padding: 0 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.search-form button:hover { color: var(--accent-color); }

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent-color); border-color: var(--accent-color); background: var(--accent-light); transform: rotate(25deg); }

[data-theme="dark"] .light-icon { display: block; }
[data-theme="dark"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: none; }
[data-theme="light"] .dark-icon { display: block; }

.mobile-menu-toggle {
    display: none;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.main-content {
    min-height: calc(100vh - 72px - 280px);
    padding: 3.5rem 0;
}

/* Hero section - shown on homepage only */
.hero-section {
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 70% 50%, rgba(99,102,241,0.06) 0%, transparent 70%);
    pointer-events: none;
}
[data-theme="dark"] .hero-section::before {
    background: radial-gradient(60% 80% at 70% 50%, rgba(129,140,248,0.1) 0%, transparent 70%);
}
.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.hero-content { max-width: 560px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-light);
    color: var(--accent-color);
    border: 1px solid rgba(99,102,241,0.2);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-max);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 1.25rem;
    flex-shrink: 0;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 110px;
}
.stat-value {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* When hero is shown, reduce top padding of main-content */
.main-content.has-hero {
    padding-top: 2.5rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
}

/* Hero-style Page Header */
.page-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.04em;
}

/* ==========================================================================
   Video / Article Cards — Fully revamped
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    position: relative;
}
.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}
.video-card:hover::before { opacity: 1; }

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: var(--bg-tertiary);
    overflow: hidden;
}
.video-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.video-card:hover .video-thumbnail img { transform: scale(1.07); }

.play-icon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    transition: var(--transition);
}
.play-icon-overlay::after {
    content: '';
    width: 56px;
    height: 56px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--accent-glow);
}
.play-icon-overlay i {
    position: absolute;
    color: white;
    font-size: 1.3rem;
    padding-left: 4px;
}
.video-card:hover .play-icon-overlay { opacity: 1; }

/* Article badge shown instead of play overlay on article cards */
.article-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-max);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(14,165,233,0.35);
    text-transform: uppercase;
}


.video-content {
    padding: 1.4rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.video-category::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color);
}

.video-title {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
}
.video-title a { color: var(--text-primary); }
.video-title a:hover { color: var(--accent-color); }

.video-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    font-weight: 500;
}
.video-meta i { margin-right: 0.3rem; }

/* ==========================================================================
   Sidebar Widgets — revamped
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }

.widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.widget-title::before {
    content: '';
    display: block;
    width: 14px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 3px;
}

/* Categories Widget */
.category-list { display: flex; flex-direction: column; gap: 0.4rem; }

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}
.category-list a:hover {
    color: var(--accent-color);
    background: var(--accent-light);
    border-color: rgba(99,102,241,0.2);
    transform: translateX(3px);
}

.badge {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-max);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}
.category-list a:hover .badge { background: var(--accent-color); color: white; }

/* Mini Videos / Articles Widget */
.mini-video-list { display: flex; flex-direction: column; gap: 1rem; }

.mini-video {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.mini-video:hover { background: var(--bg-secondary); }

.mini-video-thumb {
    width: 82px;
    height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.mini-video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.mini-video:hover .mini-video-thumb img { transform: scale(1.08); }

.mini-video-info { flex: 1; min-width: 0; }
.mini-video-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}
.mini-video-info h4 a { color: var(--text-primary); }
.mini-video-info h4 a:hover { color: var(--accent-color); }
.mini-video-date { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   Footer — revamped
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 4.5rem;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-title {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.footer-col p { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: 0.9rem; line-height: 1.7; }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition-bounce);
    border: 1px solid var(--border-color);
}
.social-links a:hover {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--accent-glow);
}

.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--accent-color); padding-left: 6px; }

.subscribe-form { display: flex; flex-direction: column; gap: 0.7rem; }
.subscribe-form input {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}
.subscribe-form input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px var(--accent-light); }

.footer-bottom {
    background: var(--bg-primary);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-bottom p { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }

/* ==========================================================================
   Content Blocks & Forms
   ========================================================================== */
.content-block {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}
.content-block h2 { color: var(--text-primary); margin-top: 2rem; margin-bottom: 1rem; font-size: 1.6rem; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.content-block ul { list-style: disc; margin-left: 1.75rem; margin-bottom: 1.5rem; color: var(--text-secondary); }
.content-block ul li { margin-bottom: 0.4rem; font-size: 1rem; }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}
.form-control:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px var(--accent-light); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 3.5rem; }
.pagination .btn { padding: 0.55rem 1.1rem; min-width: 42px; font-size: 0.875rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 992px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
}

@media (max-width: 768px) {
    .header-container { position: relative; }
    .hero-section { padding: 2.5rem 0 2rem; }
    .hero-section .container { flex-direction: column; gap: 2rem; align-items: flex-start; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { width: 100%; justify-content: flex-start; }
    .stat-card { padding: 1.1rem 1.5rem; }
    .stat-value { font-size: 1.5rem; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        padding: 1.25rem 0;
        transform: translateY(-10px);
        transition: var(--transition);
        z-index: 90;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
    .main-nav.active { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
    .main-nav .nav-list { flex-direction: column; align-items: center; gap: 0.25rem; }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; order: 1; }
    .header-actions { display: none; }
    .page-title { font-size: 1.9rem; }
    .content-block { padding: 1.75rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .video-grid { grid-template-columns: 1fr; }
    .main-content { padding: 2rem 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .page-title { font-size: 1.6rem; }
}