/*
Theme Name: Cambridge Prep
Theme URI: https://example.com/cambridge-prep
Author: Developer
Author URI: https://example.com
Description: A fresh, modern WordPress theme for Cambridge exam preparation. Light and welcoming design with vibrant accents for teenagers and ESL students.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cambridge-prep
*/

/* ==========================================================================
   CSS Variables & Design System - Light & Fresh
   ========================================================================== */

:root {
    /* Colors - Vibrant & Welcoming Palette */
    --color-primary: #7C3AED;
    --color-primary-dark: #6D28D9;
    --color-primary-light: #A78BFA;
    --color-primary-glow: rgba(124, 58, 237, 0.2);

    --color-secondary: #EC4899;
    --color-secondary-light: #F472B6;

    --color-accent: #06B6D4;
    --color-accent-light: #22D3EE;
    --color-accent-glow: rgba(6, 182, 212, 0.2);

    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;

    /* Light Theme Backgrounds */
    --color-bg-body: #FAFAFA;
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8F7FF;
    --color-bg-tertiary: #F0EEFF;
    --color-bg-card: #FFFFFF;
    --color-bg-card-hover: #F8F7FF;
    --color-bg-dark: #1E1B4B;

    /* Text Colors */
    --color-text-primary: #1E1B4B;
    --color-text-secondary: #4B5563;
    --color-text-muted: #9CA3AF;
    --color-text-light: #FFFFFF;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #F8F7FF 0%, #F0EEFF 50%, #E8E5FF 100%);
    --gradient-hero-overlay: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F8F7FF 100%);
    --gradient-accent: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --gradient-soft: linear-gradient(135deg, #A78BFA 0%, #F472B6 100%);

    /* Level Colors - Softer tones */
    --color-level-a2: #10B981;
    --color-level-b1: #06B6D4;
    --color-level-b2: #F59E0B;
    --color-level-c1: #8B5CF6;
    --color-level-c2: #EC4899;

    /* Typography - Soft & Friendly (Inter & Poppins) */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', var(--font-primary);

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows - Softer for light theme */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-card: 0 4px 20px rgba(124, 58, 237, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(124, 58, 237, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-6);
}

/* ==========================================================================
   Subtle Pattern Background (Optional)
   ========================================================================== */

.subtle-pattern {
    position: relative;
}

.subtle-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Reset & Base Styles - Light Theme
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-body);
    /* Sticky footer layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
    text-shadow: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 700;
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-20) 0;
    position: relative;
}

/* ==========================================================================
   Header & Navigation - Light & Clean
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 76px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
}

.site-logo:hover {
    color: var(--color-primary);
    text-shadow: none;
}

.site-logo::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--gradient-accent);
    border-radius: 50%;
}

.site-logo span {
    color: inherit;
}

/* Primary Navigation */
.primary-nav {
    display: none;
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-2);
    align-items: center;
}

.primary-nav > ul > li > a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--transition-base);
}

.primary-nav > ul > li > a:hover {
    color: var(--color-primary);
    background: var(--color-bg-secondary);
    text-shadow: none;
}

.primary-nav .menu-item-has-children {
    position: relative;
}

.primary-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition-base);
}
.sub-menu .menu-item {
    width: 100%;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.sub-menu .menu-item:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(236, 72, 153, 0.04) 100%);
}
.primary-nav .menu-item-has-children:hover > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

.primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: var(--color-bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-xl);
}

.primary-nav .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.primary-nav .sub-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.primary-nav .sub-menu a::after {
    display: none;
}

.primary-nav .sub-menu a:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    text-shadow: none;
}

.primary-nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--color-primary);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--color-primary);
}

/* Mobile Navigation - Below Header */
.mobile-nav {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F7FF 100%);
    padding: var(--space-6);
    overflow-y: auto;
    z-index: 999;
    height: 50vh !important;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav > ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-nav > ul > li {
    border: none;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-nav a::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background: rgba(124, 58, 237, 0.08);
    color: var(--color-primary);
    text-shadow: none;
    transform: translateX(4px);
}

.mobile-nav a:hover::before,
.mobile-nav a:focus::before {
    opacity: 1;
}

.mobile-nav .sub-menu {
    margin-top: var(--space-2);
    margin-left: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.mobile-nav .sub-menu a {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-secondary);
}

.mobile-nav .sub-menu a::before {
    width: 3px;
    height: 16px;
}

.mobile-nav .sub-menu li {
    border-bottom: none;
}

@media (min-width: 768px) {
    .primary-nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }
}

/* ==========================================================================
   Buttons - Light Theme
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
}

/* Primary Button */
.btn--primary {
    background: var(--gradient-accent);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-light);
    text-shadow: none;
}

.btn--primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn--secondary {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn--secondary:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    border-color: var(--color-primary-light);
    text-shadow: none;
}

/* Large Button */
.btn--large {
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-base);
}

/* ==========================================================================
   Cards - Modern Light Style
   ========================================================================== */

.card {
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.1);
}

.card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #F0EEFF 0%, #F8F7FF 100%);
}

/* Professional placeholder for missing images */
.card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0EEFF 0%, #E8E5FF 100%);
}

.card__image--placeholder::before {
    content: '📝';
    font-size: 48px;
    opacity: 0.5;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__image img {
    transform: scale(1.08);
}

.card__content {
    padding: var(--space-5);
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.card__title a {
    color: var(--color-text-primary);
}

.card__title a:hover {
    color: var(--color-primary);
    text-shadow: none;
}

.card__excerpt {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* Level Cards - Modern Beautiful Style */
.level-card {
    background: var(--color-bg-card);
    border: none;
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--level-color-rgb), 0.08) 0%, rgba(var(--level-color-rgb), 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.level-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(var(--level-color-rgb), 0.2);
}

.level-card:hover::before {
    opacity: 1;
}

.level-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-5);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--level-color) 0%, rgba(var(--level-color-rgb), 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(var(--level-color-rgb), 0.3);
    transition: all 0.4s ease;
}

.level-card:hover .level-card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(var(--level-color-rgb), 0.4);
}

.level-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
    position: relative;
    z-index: 1;
}

.level-card__level {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, var(--level-color), rgba(var(--level-color-rgb), 0.8));
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.level-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Level Colors with RGB for opacity */
.level-card--a2 { --level-color: #10B981; --level-color-rgb: 16, 185, 129; }
.level-card--b1 { --level-color: #06B6D4; --level-color-rgb: 6, 182, 212; }
.level-card--b2 { --level-color: #F59E0B; --level-color-rgb: 245, 158, 11; }
.level-card--c1 { --level-color: #8B5CF6; --level-color-rgb: 139, 92, 246; }
.level-card--c2 { --level-color: #EC4899; --level-color-rgb: 236, 72, 153; }

/* ==========================================================================
   Hero Section - Modern & Eye-catching
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #F8F7FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

/* Animated floating shapes */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
    top: -150px;
    right: -100px;
    animation: floatBlob1 15s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(124, 58, 237, 0.06) 100%);
    bottom: -100px;
    left: -100px;
    animation: floatBlob2 18s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.05); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes floatBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: var(--color-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    color: var(--color-text-primary);
}

.hero__title span {
    display: block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats in hero */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

@media (max-width: 768px) {
    .hero__title {
        font-size: var(--text-4xl);
    }
    
    .hero__subtitle {
        font-size: var(--text-base);
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--space-6);
    }
}

/* ==========================================================================
   Section Wave Divider
   ========================================================================== */

.section-divider {
    width: 100%;
    line-height: 0;
    margin-top: -1px;
    background: linear-gradient(180deg, #F8F7FF 0%, #FFFFFF 100%);
}

.section-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

@media (max-width: 768px) {
    .section-divider svg {
        height: 50px;
    }
}

/* ==========================================================================
   Levels Grid Section - Light Theme
   ========================================================================== */

.levels-section {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F7FF 100%);
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

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

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
}

@media (min-width: 1100px) {
    .levels-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================================
   Features Section - Modern Glassmorphism
   ========================================================================== */

.features-section {
    background: linear-gradient(135deg, #F0EEFF 0%, #F8F7FF 100%);
    padding: var(--space-20) 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

.feature {
    text-align: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-2xl);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.05);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.12);
}

.feature__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-5);
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
}

.feature__icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.feature__desc {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ==========================================================================
   Latest Posts Section - Light
   ========================================================================== */

.posts-section {
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F7FF 100%);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.posts-section .btn {
    display: block;
    width: fit-content;
    margin: var(--space-12) auto 0;
}

/* ==========================================================================
   Archive / Category Pages - Light Modern Header
   ========================================================================== */

.archive-header {
    background: linear-gradient(180deg, #F8F7FF 0%, #F0EEFF 100%);
    padding: var(--space-16) 0;
    padding-top: calc(76px + var(--space-12));
    text-align: center;
    position: relative;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 40%);
    z-index: 0;
}

.archive-header__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
    color: var(--color-text-primary);
}

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

.archive-header__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.archive-content {
    padding: var(--space-12) 0 var(--space-16);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F7FF 100%);
}

/* ==========================================================================
   Single Post - Two Column Layout
   ========================================================================== */

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-top: calc(72px + var(--space-10));
    padding-bottom: var(--space-16);
}

@media (min-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr 320px;
    }
}

.single-post__main {
    min-width: 0;
}

.single-post__header {
    margin-bottom: var(--space-8);
}

.single-post__categories {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.category-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.category-badge:hover {
    background: var(--gradient-accent);
    color: white;
    text-shadow: none;
    border-color: transparent;
}

.single-post__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.single-post__meta {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.single-post__featured-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.single-post__content {
    font-size: var(--text-base);
    line-height: 1.8;
}

.single-post__content h2 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.single-post__content h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
}

.single-post__content p {
    margin-bottom: var(--space-5);
}

.single-post__content ul,
.single-post__content ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-6);
    color: var(--color-text-secondary);
}

.single-post__content li {
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   Sidebar - Modern Light
   ========================================================================== */

.single-post__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

@media (min-width: 1024px) {
    .single-post__sidebar {
        position: sticky;
        top: calc(70px + var(--space-6));
        height: fit-content;
    }
}

.sidebar-widget {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F7FF 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.04);
}

.sidebar-widget__title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.sidebar-widget__title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Sidebar Search */
.search-form {
    display: flex;
    gap: var(--space-2);
}

.search-input {
    flex: 1;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background: var(--color-bg-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-submit {
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Sidebar Posts */
.sidebar-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sidebar-post {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.sidebar-post:hover {
    background: var(--color-bg-tertiary);
    transform: translateX(4px);
}

.sidebar-post__image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sidebar-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post__content {
    flex: 1;
    min-width: 0;
}

.sidebar-post__title {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-1);
    transition: color var(--transition-base);
}

.sidebar-post__title:hover {
    color: var(--color-primary);
    text-shadow: none;
}

.sidebar-post__date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Sidebar Categories */
.sidebar-categories {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-base);
}

.sidebar-categories a:hover {
    background: var(--gradient-accent);
    color: white;
    text-shadow: none;
    transform: translateX(4px);
}

.sidebar-categories .count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.sidebar-categories a:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ==========================================================================
   Header Search Toggle - Light
   ========================================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.search-toggle:hover {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
}

/* ==========================================================================
   Search Popup - Light
   ========================================================================== */

.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-popup.active {
    opacity: 1;
    visibility: visible;
}

.search-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 27, 75, 0.9);
    backdrop-filter: blur(10px);
}

.search-popup__content {
    position: relative;
    width: 100%;
    max-width: 650px;
    padding: 0 var(--space-6);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-popup.active .search-popup__content {
    transform: translateY(0);
}

.search-popup__close {
    position: absolute;
    top: -50px;
    right: var(--space-6);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: var(--space-2);
    transition: color var(--transition-base);
}

.search-popup__close:hover {
    color: white;
}

.search-popup__form {
    display: flex;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.search-popup__input {
    flex: 1;
    background: none;
    border: none;
    padding: var(--space-6);
    color: var(--color-text-primary);
    font-size: var(--text-lg);
}

.search-popup__input::placeholder {
    color: var(--color-text-muted);
}

.search-popup__input:focus {
    outline: none;
}

.search-popup__submit {
    background: var(--gradient-accent);
    border: none;
    padding: var(--space-6);
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
}

.search-popup__submit:hover {
    filter: brightness(1.1);
}

.search-popup__hint {
    text-align: center;
    margin-top: var(--space-4);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

/* Tip & Warning Boxes - Neon Style */
.tip-box,
.warning-box {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-10) 0;
    border: 1px solid;
    position: relative;
}

.tip-box {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

.warning-box {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.tip-box__title,
.warning-box__title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tip-box__title {
    color: var(--color-success);
}

.warning-box__title {
    color: var(--color-warning);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-bg-primary);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, var(--color-bg-tertiary) 12%, transparent 12.5%, transparent 87%, var(--color-bg-tertiary) 87.5%);
    background-size: 80px 140px;
    opacity: 0.08;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-section p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    display: block;
    padding: var(--space-1) 0;
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent);
    text-shadow: none;
    padding-left: var(--space-2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Page Template
   ========================================================================== */

.page-header {
    background: var(--gradient-hero);
    padding: var(--space-24) 0;
    padding-top: calc(80px + var(--space-16));
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(30deg, var(--color-bg-tertiary) 12%, transparent 12.5%);
    background-size: 80px 140px;
    opacity: 0.15;
    z-index: 0;
}

.page-header__title {
    font-size: var(--text-5xl);
    position: relative;
    z-index: 1;
}

.page-content {
    padding: var(--space-16) 0;
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-dark);
}

.page-content p {
    font-size: var(--text-lg);
    line-height: 1.8;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

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

.glow-text {
    text-shadow: var(--glow-neon);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: var(--glow-primary);
    }

    50% {
        box-shadow: 0 0 30px var(--color-primary-glow), 0 0 60px var(--color-primary-glow);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}