/* ============================================
   Hakma & Taleem - Modern Redesign
   By Gurho Inc. - Islamic Learning Apps
   ============================================ */

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    /* Primary Brand Colors - Rich Islamic Theme */
    --primary-50: #ECFDF5;
    --primary-100: #D1FAE5;
    --primary-200: #A7F3D0;
    --primary-300: #6EE7B7;
    --primary-400: #34D399;
    --primary-500: #10B981;
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #065F46;
    --primary-900: #064E3B;
    
    /* Accent - Deep Teal */
    --accent-50: #F0FDFA;
    --accent-100: #CCFBF1;
    --accent-200: #99F6E4;
    --accent-300: #5EEAD4;
    --accent-400: #2DD4BF;
    --accent-500: #14B8A6;
    --accent-600: #0D9488;
    --accent-700: #0F766E;
    --accent-800: #115E59;
    --accent-900: #134E4A;

    /* Royal Blue */
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-800: #1E40AF;
    --blue-900: #1E3A8A;

    /* Rich Purple */
    --purple-50: #FAF5FF;
    --purple-100: #F3E8FF;
    --purple-200: #E9D5FF;
    --purple-300: #D8B4FE;
    --purple-400: #C084FC;
    --purple-500: #A855F7;
    --purple-600: #9333EA;
    --purple-700: #7E22CE;
    --purple-800: #6B21A8;
    --purple-900: #581C87;

    /* Warm Gold */
    --gold-50: #FFFBEB;
    --gold-100: #FEF3C7;
    --gold-200: #FDE68A;
    --gold-300: #FCD34D;
    --gold-400: #FBBF24;
    --gold-500: #F59E0B;
    --gold-600: #D97706;
    --gold-700: #B45309;
    --gold-800: #92400E;
    --gold-900: #78350F;

    /* Warm Rose */
    --rose-50: #FFF1F2;
    --rose-100: #FFE4E6;
    --rose-200: #FECDD3;
    --rose-300: #FDA4AF;
    --rose-400: #FB7185;
    --rose-500: #F43F5E;

    /* Neutral Slate */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --slate-950: #020617;

    /* Legacy variable mappings */
    --gurho-green-50: var(--primary-50);
    --gurho-green-100: var(--primary-100);
    --gurho-green-500: var(--primary-500);
    --gurho-green-600: var(--primary-600);
    --gurho-teal-500: var(--accent-500);
    --gurho-blue-500: var(--blue-500);
    --gurho-gold-500: var(--gold-500);
    --neutral-50: var(--slate-50);
    --neutral-100: var(--slate-100);
    --neutral-600: var(--slate-600);
    --neutral-700: var(--slate-700);
    --neutral-800: var(--slate-800);
    --neutral-900: var(--slate-900);

    /* Premium Gradients */
    --gradient-hero: linear-gradient(135deg, #047857 0%, #0D9488 40%, #2563EB 100%);
    --gradient-hero-alt: linear-gradient(135deg, #064E3B 0%, #115E59 50%, #1E3A8A 100%);
    --gradient-primary: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
    --gradient-secondary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    --gradient-warm: linear-gradient(135deg, #F43F5E 0%, #FB923C 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(168, 85, 247, 0.1) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, rgba(20, 184, 166, 0.1) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);

    /* Spacing Scale */
    --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;
    --space-32: 8rem;

    /* Legacy spacing */
    --spacing-xs: var(--space-1);
    --spacing-sm: var(--space-2);
    --spacing-md: var(--space-4);
    --spacing-lg: var(--space-6);
    --spacing-xl: var(--space-8);
    --spacing-2xl: var(--space-12);
    --spacing-3xl: var(--space-16);
    --spacing-4xl: var(--space-24);

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

    /* Shadows - More dramatic */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.3);
    --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    /* Typography */
    --font-display: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family: var(--font-body);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--slate-800);
    background: #FAFBFC;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.75rem, 6vw, 4.5rem); 
    font-weight: 800;
    line-height: 1.1;
}
h2 { 
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 700;
}
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--slate-600);
    line-height: 1.8;
}

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

/* ============================================
   Layout & Container
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-8);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-12);
    }
}

.section-padding {
    padding: var(--space-16) 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: var(--space-24) 0;
    }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.section-description {
    font-size: 1.125rem;
    color: var(--slate-500);
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding-top: 0;
    padding-bottom: 0;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-600);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 320px;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-8) var(--space-8);
        box-shadow: var(--shadow-2xl);
        transition: right var(--transition-slow);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: var(--space-4);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: var(--space-2) 0;
    }

    .nav-cta {
        flex-direction: column;
        width: 100%;
        margin-top: var(--space-8);
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-xl);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 30% 65%, rgba(251, 191, 36, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 50% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 90% 45%, rgba(251, 191, 36, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 15% 90%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.6), transparent);
    animation: twinkle 6s ease-in-out infinite alternate;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes twinkle {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.02); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (min-width: 1280px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: center;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.badge-emoji {
    font-size: 1.25rem;
}

.hero-title {
    margin-bottom: var(--space-3);
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    line-height: 1.1;
    font-size: 2rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1023px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    justify-content: center;
}

.hero-cta .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: center;
    }
}

.hero-trust {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.hero-trust p {
    color: inherit;
}

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

.hero-image-wrapper {
    position: relative;
    display: flex;
    gap: var(--space-6);
    align-items: center;
    justify-content: center;
}

.hero-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    transition: transform var(--transition-slow);
    width: 90px;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .hero-app-item {
        width: 120px;
    }
}

@media (min-width: 640px) {
    .hero-app-item {
        width: 160px;
    }
}

@media (min-width: 768px) {
    .hero-app-item {
        width: 220px;
    }
}

@media (min-width: 1200px) {
    .hero-app-item {
        width: 280px;
    }
}

@media (min-width: 1440px) {
    .hero-app-item {
        width: 320px;
    }
}

.hero-app-label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-slow);
}

.hero-app-item:first-child {
    transform: translateY(12px) rotate(-2deg);
}

.hero-app-item:nth-child(2) {
    transform: scale(1.05);
    z-index: 2;
}

.hero-app-item:last-child {
    transform: translateY(12px) rotate(2deg);
}

.hero-image-wrapper:hover .hero-app-item:first-child {
    transform: translateY(10px) rotate(-1deg);
}

.hero-image-wrapper:hover .hero-app-item:last-child {
    transform: translateY(-10px) rotate(1deg);
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-particles .particle {
    position: absolute;
    bottom: -60px;
    font-size: 1.75rem;
    opacity: 0.25;
    animation: floatUp 14s linear infinite;
}

@keyframes floatUp {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0;
    }
    10% { opacity: 0.25; }
    90% { opacity: 0.25; }
    100% { 
        transform: translateY(-100vh) rotate(360deg); 
        opacity: 0;
    }
}

/* ============================================
   App Sections (Taleem, Hakma & HakmaQuiz)
   ============================================ */
.taleem-section {
    background: white;
    position: relative;
}

.taleem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
}

.hakma-section {
    background: linear-gradient(180deg, var(--slate-50) 0%, white 100%);
    position: relative;
}

.hakmaquiz-section {
    background: white;
    position: relative;
}

.hakmaquiz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
}

/* HakmaQuiz specific styling */
.hakmaquiz-section .section-label {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
}

#hakmaquizCarousel .thumbnail.active {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 2px var(--purple-200);
}

.app-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .app-intro {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
    
    .app-intro.reverse .app-intro-content {
        order: 2;
    }
    
    .app-intro.reverse .app-intro-image {
        order: 1;
    }
}

.app-intro-content {
    text-align: left;
}

.app-intro-content .section-label {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.app-intro-content .section-title {
    color: var(--slate-900);
}

.app-intro-content .section-description {
    margin: 0;
    margin-bottom: var(--space-8);
}

.app-features-list {
    margin: var(--space-8) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.feature-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-5);
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: white;
    border-color: var(--primary-100);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.feature-item h4 {
    margin-bottom: var(--space-1);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-800);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.app-intro-image {
    position: relative;
}

.app-screenshot {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transition: transform var(--transition-slow);
}

.app-intro-image:hover .app-screenshot {
    transform: scale(1.02) rotate(1deg);
}

.app-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.store-button {
    display: inline-block;
    transition: all var(--transition-base);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.store-button img {
    height: 48px;
}

/* ============================================
   App Gallery
   ============================================ */
.app-gallery {
    margin-top: var(--space-16);
}

.app-gallery h3 {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--primary-700);
    font-size: 1.5rem;
}

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

.gallery-item {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item h4 {
    padding: var(--space-4);
    text-align: center;
    font-size: 0.95rem;
    color: var(--slate-700);
    font-weight: 600;
    background: var(--slate-50);
    margin: 0;
}

/* ============================================
   Benefits/Why Choose Section
   ============================================ */
.why-choose {
    background: linear-gradient(180deg, #F0FDF9 0%, #EFF6FF 50%, #FAF5FF 100%);
    position: relative;
    overflow: hidden;
}

.why-choose::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.5;
    pointer-events: none;
}

.why-choose .container {
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    background: white;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
}

.benefit-card h3 {
    margin-bottom: var(--space-3);
    font-size: 1.2rem;
    color: var(--slate-800);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ============================================
   School Platform Section
   ============================================ */
.school-platform {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 50%, #1a365d 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.school-platform::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.school-platform .container {
    position: relative;
    z-index: 1;
}

.school-platform .section-header {
    margin-bottom: var(--space-12);
}

.school-platform .section-label {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--primary-300);
}

.school-platform .section-title {
    color: white;
}

.school-platform .section-description {
    color: rgba(255, 255, 255, 0.75);
}

.school-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
    .school-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .school-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.school-feature {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.school-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.school-feature-icon {
    font-size: 2.25rem;
    margin-bottom: var(--space-4);
    display: block;
}

.school-feature h3 {
    margin-bottom: var(--space-2);
    font-size: 1.15rem;
    color: white;
}

.school-feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* School Gallery */
.school-gallery {
    margin-bottom: var(--space-12);
}

.school-gallery h3 {
    text-align: center;
    margin-bottom: var(--space-8);
    color: white;
}

.school-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .school-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.school-gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.school-gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.school-gallery-item img {
    width: 100%;
    height: auto;
}

.school-gallery-item div {
    padding: var(--space-5);
}

.school-gallery-item h4 {
    color: white;
    margin-bottom: var(--space-2);
}

.school-gallery-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* School CTA */
.school-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    backdrop-filter: blur(10px);
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.school-cta h3 {
    margin-bottom: var(--space-4);
    font-size: 1.75rem;
    color: white;
}

.school-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--slate-50);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-100);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: transparent;
}

.testimonial-stars {
    font-size: 1.1rem;
    margin-bottom: var(--space-4);
    color: var(--gold-500);
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--slate-600);
    margin-bottom: var(--space-6);
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-4);
    border-top: 1px solid var(--slate-200);
}

.testimonial-author strong {
    color: var(--slate-800);
    font-size: 1rem;
    font-weight: 700;
}

.testimonial-author span {
    color: var(--slate-500);
    font-size: 0.875rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(251, 191, 36, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto var(--space-8);
}

.cta-content .app-download-buttons {
    justify-content: center;
    margin-top: 0;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-100);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    display: block;
}

.contact-card h3 {
    margin-bottom: var(--space-2);
    font-size: 1.15rem;
    color: var(--slate-800);
}

.contact-card p {
    color: var(--slate-500);
}

.contact-card a {
    color: var(--primary-600);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.contact-card a:hover {
    color: var(--primary-700);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--slate-950);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: var(--space-4);
}

.footer-description {
    font-size: 0.95rem;
    margin-bottom: var(--space-6);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    color: white;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-600);
    transform: translateY(-3px);
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-5);
    letter-spacing: 0.02em;
}

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: var(--space-2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 767px) {
    .floating-particles {
        display: none;
    }
    
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: var(--space-16);
    }
    
    .hero-img {
        max-width: 220px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   App Gallery Carousel (inside app-intro-image)
   ============================================ */
.app-intro-image .carousel-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.carousel-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

.carousel-main-img.fade-out {
    opacity: 0;
}

.carousel-caption {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-700);
    padding: 0.5rem 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.carousel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(100, 100, 100, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 10;
}

.carousel-main:hover .carousel-play-btn {
    opacity: 1;
}

.carousel-play-btn:hover {
    background: rgba(100, 100, 100, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.carousel-play-btn.paused .pause-icon {
    display: none;
}

.carousel-play-btn.paused .play-icon {
    display: inline !important;
}

.carousel-play-btn:not(.paused) .pause-icon {
    display: inline;
}

.carousel-play-btn:not(.paused) .play-icon {
    display: none !important;
}

.carousel-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.25rem;
}

.thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-200);
}

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

/* Taleem carousel specific */
#taleemCarousel .thumbnail.active {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-200);
}

/* Hakma carousel specific */
#hakmaCarousel .thumbnail.active {
    border-color: var(--accent-500);
    box-shadow: 0 0 0 2px var(--accent-200);
}

/* Progress indicator on active thumbnail */
.thumbnail.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-500);
    animation: thumbnailProgress 2s linear;
}

@keyframes thumbnailProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .app-gallery-carousel {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .carousel-container {
        padding: 1rem;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .carousel-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-caption {
        font-size: 0.95rem;
        padding: 1.5rem 0.75rem 0.75rem;
    }
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--accent-700) 50%, var(--primary-800) 100%);
    padding: 10rem 0 5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30l15-15v30l-15 15-15-15V15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.blog-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.blog-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-header .page-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-header .page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.blog-header-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.blog-tag:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: var(--slate-50);
    min-height: 50vh;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.blog-card-category {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.blog-card-title {
    font-family: 'Baloo 2', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary-600);
}

.blog-card-excerpt {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-author span {
    font-size: 0.875rem;
    color: var(--slate-600);
}

.blog-card-read-more {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}

.blog-card-read-more:hover {
    gap: 0.5rem;
}

/* Loading State */
.blog-loading {
    text-align: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--slate-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.blog-error {
    text-align: center;
    padding: 4rem 0;
    color: var(--slate-600);
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 4rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.blog-empty h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.blog-empty p {
    color: var(--slate-500);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    padding: 4rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.newsletter-content h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
}

.newsletter-form .btn {
    background: white;
    color: var(--primary-600);
    border: none;
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: var(--slate-100);
}

/* ============================================
   Blog Article (Single Post) Styles
   ============================================ */

.blog-article {
    padding: 6rem 0 4rem;
    background: white;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: gap 0.2s ease;
}

.back-to-blog:hover {
    gap: 0.75rem;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.article-category {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.article-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.25rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-name {
    display: block;
    font-weight: 600;
    color: var(--slate-800);
}

.author-role {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.article-image {
    max-width: 900px;
    margin: 0 auto 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate-700);
}

.article-body h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.75rem;
    color: var(--slate-900);
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.35rem;
    color: var(--slate-900);
    margin: 1.5rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-500);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--slate-600);
}

.article-body img {
    width: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

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

.article-body code {
    background: var(--slate-100);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

/* Share Section */
.article-share {
    max-width: 700px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
}

.article-share h4 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--slate-800);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-twitter:hover {
    background: #1a8cd8;
}

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-facebook:hover {
    background: #166fe5;
}

.share-linkedin {
    background: #0A66C2;
    color: white;
}

.share-linkedin:hover {
    background: #095196;
}

.share-copy {
    background: var(--slate-200);
    color: var(--slate-700);
}

.share-copy:hover {
    background: var(--slate-300);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--slate-50);
}

.related-posts h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--slate-800);
}

/* Blog Responsive */
@media (max-width: 767px) {
    .blog-header {
        padding: 7rem 0 3rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-meta {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}
