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

:root {
    --primary: #2d5be3;
    --primary-hover: #2249c0;
    --primary-light: #eef2ff;
    --green: #1b8a2a;
    --green-light: #e8f5ea;
    --green-hover: #15731f;
    --orange: #e67e22;
    --orange-light: #fef4e6;
    --red: #e74c3c;
    --red-light: #fde8e8;
    --blue: #3b82f6;
    --blue-light: #e8f0fe;
    --cyan: #06b6d4;
    --cyan-light: #e0f7fa;
    --purple: #8b5cf6;
    --purple-light: #f0e8ff;
    --yellow: #f59e0b;
    --yellow-light: #fef9e7;
    --pink: #ec4899;
    --pink-light: #fce4f0;

    --bg: #ffffff;
    --bg-page: #f8f9fb;
    --text: #1a1d2b;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --transition: 0.25s ease;
    --max-width: 1100px;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: var(--green);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px;
    width: 100%;
}

.page {
    display: none;
    animation: pageIn 0.35s ease;
}

.page.active {
    display: block;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Home - Category Cards ===== */
.home-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cat-green { background: #e8f9ea; }
.cat-blue { background: #e6f0fd; }
.cat-orange { background: #fef0e1; }
.cat-cyan { background: #e0f5fa; }
.cat-yellow { background: #fef6e0; }
.cat-purple { background: #f0e6ff; }

.cat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cat-icon-green { background: #c8f0cc; color: #1b8a2a; }
.cat-icon-blue { background: #c4ddfb; color: #2563eb; }
.cat-icon-orange { background: #fde0b8; color: #d35400; }
.cat-icon-cyan { background: #b8ebf5; color: #0891b2; }
.cat-icon-yellow { background: #fde9a8; color: #d97706; }
.cat-icon-purple { background: #ddc8ff; color: #7c3aed; }

.cat-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.cat-count {
    font-size: 0.82rem;
    font-weight: 600;
}

.cat-count-green { color: var(--green); }
.cat-count-blue { color: var(--blue); }
.cat-count-orange { color: var(--orange); }
.cat-count-cyan { color: var(--cyan); }
.cat-count-yellow { color: var(--yellow); }
.cat-count-purple { color: var(--purple); }

.cat-arrow {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 0.7rem;
    color: var(--text-light);
    transition: transform var(--transition);
}

.category-card:hover .cat-arrow {
    transform: translateX(3px);
}

/* ===== Quiz Section ===== */
.quiz-section {
    margin-bottom: 36px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-emoji {
    font-size: 1.1rem;
}

.view-all-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.view-all-link:hover {
    gap: 8px;
}

/* ===== Quiz List Items ===== */
.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quiz-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.quiz-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.quiz-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.qi-green { background: var(--green-light); color: var(--green); }
.qi-blue { background: var(--blue-light); color: var(--blue); }
.qi-orange { background: var(--orange-light); color: var(--orange); }
.qi-purple { background: var(--purple-light); color: var(--purple); }
.qi-red { background: var(--red-light); color: var(--red); }
.qi-cyan { background: var(--cyan-light); color: var(--cyan); }
.qi-yellow { background: var(--yellow-light); color: var(--yellow); }
.qi-pink { background: var(--pink-light); color: var(--pink); }

.quiz-info {
    flex: 1;
    min-width: 0;
}

.quiz-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.quiz-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.difficulty-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
}

.badge-easy {
    background: var(--green-light);
    color: var(--green);
}

.badge-medium {
    background: var(--orange-light);
    color: var(--orange);
}

.badge-hard {
    background: var(--red-light);
    color: var(--red);
}

.quiz-stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.quiz-stat i {
    font-size: 0.72rem;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid var(--green);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.play-btn:hover {
    background: var(--green);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 138, 42, 0.25);
}

.play-btn i {
    font-size: 0.7rem;
}

/* ===== Page With Sidebar Layout ===== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.page-heading p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ===== Categories Grid (Categories Page) ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cat-detail-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}

.cat-detail-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cat-detail-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 14px;
}

.cat-detail-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cat-detail-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.cat-detail-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green);
}

/* ===== Sidebar ===== */
.sidebar-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.recent-post-thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.view-all-posts-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    transition: gap var(--transition);
}

.view-all-posts-link:hover {
    gap: 8px;
}

/* ===== Quizzes Page Filter ===== */
.quizzes-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.85rem;
}

.filter-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 91, 227, 0.1);
}

.filter-select select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--bg);
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color var(--transition);
}

.filter-select select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== Blog Grid ===== */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.blog-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px;
}

.blog-card-body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-body p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-date i {
    font-size: 0.7rem;
}


/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--text-light);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--green);
    font-weight: 500;
}

/* ===== Blog Detail Page ===== */
.blog-detail {
    background: var(--bg);
    border-radius: var(--radius);
}

.blog-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
}

.blog-detail-meta {
    margin-bottom: 20px;
}

.blog-detail-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-detail-date i {
    font-size: 0.8rem;
}

.blog-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.blog-detail-body {
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--text);
}

.blog-detail-body p {
    margin-bottom: 16px;
    color: #374151;
}

.blog-detail-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text);
}

.blog-detail-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--text);
}

.blog-detail-body ul,
.blog-detail-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.blog-detail-body li {
    margin-bottom: 6px;
    color: #374151;
}

.blog-detail-body blockquote {
    border-left: 4px solid var(--green);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--green-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #374151;
}

.blog-detail-body strong {
    font-weight: 700;
    color: var(--text);
}

.blog-detail-body a {
    color: var(--primary);
    text-decoration: underline;
}

.blog-detail-body a:hover {
    color: var(--primary-hover);
}

/* Clickable recent post items in blog detail sidebar */
.recent-post-item.clickable {
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-xs);
    transition: background var(--transition);
}

.recent-post-item.clickable:hover {
    background: var(--border-light);
}

/* ===== About Page ===== */
.about-hero {
    background: linear-gradient(135deg, #2d5be3 0%, #1b8a2a 100%);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.about-hero-content {
    position: relative;
    z-index: 1;
}

.about-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.about-hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
    margin: 0 auto;
}

/* Welcome Section */
.about-welcome-section {
    margin-bottom: 32px;
}

.about-welcome-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-align: left;
}

.about-welcome-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-welcome-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary);
}

.about-welcome-card .lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-welcome-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Why Choose Section */
.about-why-choose-section {
    margin-bottom: 32px;
}

.about-choose-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: all var(--transition);
    text-align: left;
}

.about-choose-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.choose-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.choose-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--yellow-light);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.choose-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.about-choose-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.about-choose-card p:last-child {
    margin-bottom: 0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.about-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: all var(--transition);
}

.about-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 16px;
}

.about-icon-green {
    background: var(--green-light);
    color: var(--green);
}

.about-icon-blue {
    background: var(--blue-light);
    color: var(--blue);
}

.about-icon-orange {
    background: var(--orange-light);
    color: var(--orange);
}

.about-icon-purple {
    background: var(--purple-light);
    color: var(--purple);
}

.about-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Why Choose Us */
.about-why-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
}

.about-why-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.about-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-why-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about-why-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.about-why-item h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-why-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Stats */
.about-stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
}

.about-stat {
    text-align: center;
}

.about-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* CTA */
.about-cta {
    background: linear-gradient(135deg, #1a1d2b 0%, #2d3548 100%);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    color: white;
}

.about-cta h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.about-cta p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.cta-slogan {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffd700; /* Sleek gold accent */
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--green);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all var(--transition);
}

.about-cta-btn:hover {
    background: var(--green-hover);
    box-shadow: 0 6px 20px rgba(27, 138, 42, 0.35);
    transform: translateY(-2px);
}

/* ===== Mobile Sidebar ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #1a1d23;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sidebar-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-sidebar-header .brand-text {
    color: white;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}

.mobile-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 12px;
    gap: 2px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.mobile-nav-link.active {
    background: var(--green);
    color: white;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-why-grid {
        grid-template-columns: 1fr;
    }
    .about-stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    .navbar-links {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
    }
    /* Home categories: 2 per row */
    .home-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card {
        padding: 18px 12px 14px;
    }
    .cat-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    /* Categories page: 2 per row */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quiz-item {
        flex-wrap: wrap;
    }
    .play-btn {
        margin-left: auto;
    }
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    .quizzes-filter-bar {
        flex-direction: column;
    }
    /* About */
    .about-hero {
        padding: 40px 20px;
    }
    .about-hero-content h1 {
        font-size: 1.5rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-why-section {
        padding: 24px 18px;
    }
    .about-stats-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    .about-cta {
        padding: 32px 20px;
    }
    .about-cta h2 {
        font-size: 1.2rem;
    }
    .main-content {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .home-categories {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .main-content {
        padding: 16px 12px;
    }
    .category-card {
        padding: 14px 10px 12px;
    }
    .cat-name {
        font-size: 0.85rem;
    }
    .cat-count {
        font-size: 0.75rem;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
