/* ====================================
   CSS Variables & Theme Colors
   ==================================== */
:root {
    /* Light Theme Colors */
    --primary-color: #0f766e;
    --primary-dark: #0d5f57;
    --primary-light: #14b8a6;
    --accent-color: #d97706;
    --accent-light: #fbbf24;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(15, 118, 110, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography with fallbacks */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    
    --card-bg: rgba(31, 41, 55, 0.7);
    --card-border: rgba(20, 184, 166, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* ====================================
   Global Styles & Reset
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

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

/* ====================================
   Navigation Bar
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    transform: rotate(180deg);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ====================================
   Hero Section
   ==================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(70px + var(--spacing-xl)) var(--spacing-md) var(--spacing-2xl);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 118, 110, 0.05) 0%, 
        rgba(20, 184, 166, 0.08) 50%, 
        rgba(217, 119, 6, 0.05) 100%);
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(15, 118, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(217, 119, 6, 0.08) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    margin-bottom: var(--spacing-md);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--card-border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(15, 118, 110, 0.3),
        transparent 30%
    );
    animation: rotate 4s linear infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.placeholder-icon {
    color: var(--primary-color);
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

/* ====================================
   Animations
   ==================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* ====================================
   Section Styles
   ==================================== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Glass Card Effect */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* ====================================
   About Section
   ==================================== */
.about-section {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    gap: var(--spacing-xl);
}

.about-card {
    padding: var(--spacing-xl);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.about-text p {
    margin-bottom: var(--spacing-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
    margin-bottom: var(--spacing-xs);
}

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

/* ====================================
   Articles Section
   ==================================== */
.search-filter-bar {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) calc(var(--spacing-md) * 2.5);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.filter-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.filter-tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
}

.article-category {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: auto;
}

.article-link:hover {
    gap: var(--spacing-sm);
}

/* ====================================
   Lectures Section
   ==================================== */
.lectures-section {
    background: var(--bg-secondary);
}

.lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.lecture-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(100, 149, 237, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(100, 149, 237, 0.05);
}

.lecture-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(100, 149, 237, 0.25),
                0 0 0 1px rgba(100, 149, 237, 0.2),
                0 0 80px rgba(100, 149, 237, 0.15);
    border-color: rgba(100, 149, 237, 0.3);
}

.lecture-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lecture-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.lecture-card:hover .lecture-thumbnail::before {
    opacity: 0.7;
    background: linear-gradient(135deg, 
        rgba(100, 149, 237, 0.4) 0%, 
        rgba(65, 105, 225, 0.3) 100%);
}

.play-button {
    position: relative;
    z-index: 1;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.95), rgba(65, 105, 225, 0.95));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(100, 149, 237, 0.6),
                0 0 80px rgba(100, 149, 237, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.lecture-card:hover .play-button {
    transform: scale(1.25) rotate(5deg);
    background: linear-gradient(135deg, rgba(100, 149, 237, 1), rgba(65, 105, 225, 1));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 60px rgba(100, 149, 237, 0.9),
                0 0 120px rgba(100, 149, 237, 0.5),
                inset 0 0 40px rgba(255, 255, 255, 0.2);
}

.lecture-content {
    padding: var(--spacing-lg);
    flex: 1;
}

.lecture-type {
    display: inline-block;
    padding: 4px var(--spacing-sm);
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.lecture-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.lecture-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.lecture-meta {
    display: flex;
    gap: var(--spacing-sm);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Custom Video Player Styling */
.custom-video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    border-radius: 12px 12px 0 0;
}

.custom-video-player::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.custom-video-player::-webkit-media-controls-play-button,
.custom-video-player::-webkit-media-controls-volume-slider,
.custom-video-player::-webkit-media-controls-timeline {
    filter: brightness(1.2);
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

/* ====================================
   Video Modal System
   ==================================== */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    /* Safe padding to keep all content visible, minimum 60px for close button */
    padding: clamp(60px, 8vh, 90px) clamp(16px, 3vw, 40px);
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layer an Islamic background image with a dark veil, fallback to elegant gradient */
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.85) 100%),
        var(--video-bg-image, url('assets/images/islamic-bg.jpg')),
        radial-gradient(ellipse at top, #1a1a2e 0%, #0f0f1a 50%, #000000 100%);
    background-size: cover, cover, 100% 100%;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    backdrop-filter: blur(18px) saturate(120%);
}

.video-container {
    position: relative;
    width: 85vw;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 10001;
    animation: videoSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 19px;
}

@keyframes videoSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.video-close-btn {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.video-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-close-btn svg {
    width: 24px;
    height: 24px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-height: calc(90vh - 160px);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Video loading spinner */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: videoSpinner 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.video-wrapper.loading::after {
    opacity: 1;
}

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

.video-element {
    width: 100%;
    height: 100%;
    max-height: inherit;
    display: block;
    object-fit: contain;
}

/* Fit/Crop toggle: when enabled, cover the wrapper and crop overflow */
.video-wrapper.fit-cover .video-element {
    object-fit: cover;
}

/* Bottom Glass Info Dock */
.video-dock {
    display: grid;
    grid-template-columns: auto 1fr minmax(220px, 30%) auto;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(14px) saturate(140%);
    border-radius: 16px;
    padding: 10px 14px;
    color: #fff;
    opacity: 0;
    animation: dockSlideUp 0.4s ease 0.3s forwards;
    flex-shrink: 0;
}

@keyframes dockSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.vd-thumb {
    width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.vd-meta { min-width: 0; }
.vd-title { font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-sub { opacity: 0.8; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-track { position: relative; height: 6px; background: rgba(255,255,255,0.22); border-radius: 999px; overflow: hidden; transition: height 0.2s ease; }
.vd-track:hover { height: 8px; }
.vd-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: #e50914; transition: width 0.1s linear; }
.vd-actions { display: flex; align-items: center; gap: 8px; }
.vd-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14); color: #fff; }
.vd-btn { transition: background 0.2s ease, transform 0.15s ease; cursor: pointer; }
.vd-btn:hover { background: rgba(255,255,255,0.18); transform: scale(1.05); }
.vd-btn:active { transform: scale(0.95); }
.vd-fit[aria-pressed="true"] {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.28);
}
/* Dock toggle icon swap */
.vd-toggle .vd-icon-pause { display: none; }
.vd-toggle.paused .vd-icon-play { display: none; }
.vd-toggle.paused .vd-icon-pause { display: block; }
.vd-track { cursor: pointer; }

/* Very small screens */
@media (max-width: 480px) {
    .video-container {
        width: 95vw;
        max-height: 80vh;
    }
    
    .video-wrapper {
        max-height: calc(80vh - 140px);
        border-radius: 16px;
    }
    
    .video-close-btn {
        top: -45px;
        width: 36px;
        height: 36px;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .video-container {
        max-width: 1400px;
    }
}

/* Responsive dock adjustments */
@media (max-width: 768px) {
    .video-dock {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 10px 12px;
    }
    .vd-track { grid-column: 1 / -1; order: -1; margin-bottom: 8px; }
    .vd-thumb { width: 36px; height: 36px; }
    .vd-title { font-size: 0.9rem; }
    .vd-sub { font-size: 0.75rem; }
    .vd-btn { width: 32px; height: 32px; }
    .vd-rewind, .vd-forward { display: none; }
}

/* Custom Video Controls */
.vp-overlay-play { display: none !important; }

.vp-controls {
    display: none !important; /* Dock-only control bar */
}
.vp-controls.hidden { opacity: 0; transform: translateY(10px); }

.vp-btn {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}
.vp-btn:hover { background: rgba(255,255,255,0.22); }
.vp-btn:active { transform: scale(0.98); }

.vp-play .icon-pause { display: none; }
.vp-play.paused .icon-play { display: none; }
.vp-play.paused .icon-pause { display: block; }

.vp-mute .icon-vol-off { display: none; }
.vp-mute.muted .icon-vol-on { display: none; }
.vp-mute.muted .icon-vol-off { display: block; }

.vp-full .icon-exit { display: none; }
.vp-full.fullscreen .icon-full { display: none; }
.vp-full.fullscreen .icon-exit { display: block; }

.vp-timeline {
    position: relative;
    flex: 1;
    height: 8px;
    cursor: pointer;
}
.vp-track {
    position: absolute; inset: 0 0 0 0;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
}
.vp-buffer {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 0%;
    background: rgba(255,255,255,0.35);
    border-radius: 999px;
}
.vp-progress {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 0%;
    background: #e50914;
    border-radius: 999px;
}
.vp-handle {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    left: 0%;
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.vp-time { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 12px; }
.vp-spacer { flex: 0 0 8px; }

.vp-volume {
    width: 90px; height: 6px;
    -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
}
.vp-volume::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.vp-volume::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }

.vp-menu { position: relative; }
.vp-speed { padding: 0 10px; min-width: 48px; justify-content: center; }
.vp-menu-list {
    position: absolute; bottom: 44px; right: 0;
    display: none;
    background: rgba(20,20,22,0.95);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 6px;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.vp-menu-list.open { display: grid; gap: 4px; }
.vp-menu-item {
    padding: 8px 10px; color: #fff; background: transparent; border: 0; text-align: left; border-radius: 8px; cursor: pointer;
}
.vp-menu-item:hover { background: rgba(255,255,255,0.12); }

/* Fullscreen mode adjustments */
.video-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

.video-wrapper:fullscreen .video-element {
    width: 100%;
    height: 100%;
}

.video-wrapper:fullscreen .vp-controls {
    padding: 16px 24px;
}

.video-wrapper:fullscreen .vp-overlay-play {
    width: 96px;
    height: 96px;
}

/* Firefox fullscreen */
.video-wrapper:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

.video-wrapper:-moz-full-screen .video-element {
    width: 100%;
    height: 100%;
}

/* Webkit fullscreen */
.video-wrapper:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

.video-wrapper:-webkit-full-screen .video-element {
    width: 100%;
    height: 100%;
}

.video-element::-webkit-media-controls-panel {
    background: linear-gradient(to top, 
        rgba(20, 20, 20, 0.95) 0%, 
        rgba(30, 30, 30, 0.85) 35%, 
        rgba(40, 40, 40, 0.5) 65%, 
        transparent 100%);
    backdrop-filter: blur(20px) saturate(150%);
    border-radius: 0 0 20px 20px;
    padding: 16px 20px;
}

.video-element::-webkit-media-controls-play-button {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 8px;
    filter: brightness(1.1);
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    margin: 0 6px;
}

.video-element::-webkit-media-controls-play-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
    filter: brightness(1.25);
}

.video-element::-webkit-media-controls-timeline {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    height: 6px;
    border: none;
    margin: 0 12px;
}

.video-element::-webkit-media-controls-timeline::-webkit-slider-thumb {
    background: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.video-element::-webkit-media-controls-current-time-display,
.video-element::-webkit-media-controls-time-remaining-display {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 13px;
    padding: 0 8px;
}

.video-element::-webkit-media-controls-volume-slider {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    border: none;
    height: 6px;
}

.video-element::-webkit-media-controls-mute-button,
.video-element::-webkit-media-controls-fullscreen-button {
    filter: brightness(1.15);
    transition: all 0.2s ease;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px;
}

.video-element::-webkit-media-controls-mute-button:hover,
.video-element::-webkit-media-controls-fullscreen-button:hover {
    filter: brightness(1.3);
    transform: scale(1.08);
    opacity: 1;
    background: rgba(255, 255, 255, 0.22);
}

.video-info {
    padding: 0;
    opacity: 0;
    animation: infoFadeIn 0.5s ease 0.2s forwards;
    flex-shrink: 0;
}

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

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .video-modal .video-title,
[data-theme="dark"] .video-modal .video-title {
    color: #ffffff;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.video-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="light"] .video-modal .video-description,
[data-theme="dark"] .video-modal .video-description {
    color: #ffffff;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ====================================
   Contact Section
   ==================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.contact-card p {
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    padding: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

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

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

.footer-quote {
    font-style: italic;
    color: var(--primary-color);
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-md);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active .hamburger {
        background: transparent;
    }
    
    .mobile-menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }
    
    .articles-grid,
    .lectures-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .hero {
        padding: calc(70px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-xl);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
}

/* ====================================
   Utility Classes
   ==================================== */
.hidden {
    display: none !important;
}

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

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

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ====================================
   Print Styles
   ==================================== */
@media print {
    .navbar,
    .hero-actions,
    .scroll-indicator,
    .theme-toggle,
    .mobile-menu-toggle,
    .contact-form {
        display: none;
    }
}

/* ====================================
   YOUTUBE VIDEOS SECTION
   ==================================== */

.youtube-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.video-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Cinema-Style Video Card */
.video-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.95), rgba(65, 105, 225, 0.95));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(100, 149, 237, 0.6),
                0 0 80px rgba(100, 149, 237, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.lecture-card:hover .play-button {
    transform: scale(1.2) rotate(5deg);
    background: linear-gradient(135deg, rgba(100, 149, 237, 1), rgba(65, 105, 225, 1));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 60px rgba(100, 149, 237, 0.9),
                0 0 120px rgba(100, 149, 237, 0.5),
                inset 0 0 40px rgba(255, 255, 255, 0.2);
}

.play-button svg {
    width: 32px;
    height: 32px;
    /* Triangle uses currentColor in SVG; force it to black */
    color: #000000;
    fill: currentColor;
    margin-left: 4px;
}

/* Ensure triangle stays black in dark mode as well */
[data-theme="dark"] .play-button,
[data-theme="dark"] .play-button svg {
    color: #000000;
}

/* Ensure play button visibility in dark mode */
[data-theme="dark"] .video-play-overlay {
    background: rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .play-button {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.95), rgba(65, 105, 225, 0.95));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(100, 149, 237, 0.6),
                0 0 80px rgba(100, 149, 237, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .play-button svg {
    fill: #000000;
}

/* Hover emphasis for video cards in dark mode */
[data-theme="dark"] .video-card:hover .play-button {
    transform: scale(1.2) rotate(3deg);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.video-info {
    padding: 24px;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.video-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ====================================
   Contact Section
   ==================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.contact-card p {
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    padding: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

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

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

.footer-quote {
    font-style: italic;
    color: var(--primary-color);
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-md);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active .hamburger {
        background: transparent;
    }
    
    .mobile-menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }
    
    .articles-grid,
    .lectures-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .hero {
        padding: calc(70px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-xl);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
}

/* ====================================
   Utility Classes
   ==================================== */
.hidden {
    display: none !important;
}

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

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

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ====================================
   Print Styles
   ==================================== */
@media print {
    .navbar,
    .hero-actions,
    .scroll-indicator,
    .theme-toggle,
    .mobile-menu-toggle,
    .contact-form {
        display: none;
    }
}

/* ====================================
   YOUTUBE VIDEOS SECTION
   ==================================== */

.youtube-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.video-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Cinema-Style Video Card */
.video-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.95), rgba(65, 105, 225, 0.95));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(100, 149, 237, 0.6),
                0 0 80px rgba(100, 149, 237, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.lecture-card:hover .play-button {
    transform: scale(1.2) rotate(5deg);
    background: linear-gradient(135deg, rgba(100, 149, 237, 1), rgba(65, 105, 225, 1));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 60px rgba(100, 149, 237, 0.9),
                0 0 120px rgba(100, 149, 237, 0.5),
                inset 0 0 40px rgba(255, 255, 255, 0.2);
}

.play-button svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.video-info {
    padding: 24px;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.video-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ====================================
   Contact Section
   ==================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.contact-card p {
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    padding: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

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

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

.footer-quote {
    font-style: italic;
    color: var(--primary-color);
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-md);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active .hamburger {
        background: transparent;
    }
    
    .mobile-menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }
    
    .articles-grid,
    .lectures-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .hero {
        padding: calc(70px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-xl);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
}

/* ====================================
   Utility Classes
   ==================================== */
.hidden {
    display: none !important;
}

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

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

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ====================================
   Print Styles
   ==================================== */
@media print {
    .navbar,
    .hero-actions,
    .scroll-indicator,
    .theme-toggle,
    .mobile-menu-toggle,
    .contact-form {
        display: none;
    }
}

/* ====================================
   YOUTUBE VIDEOS SECTION
   ==================================== */

.youtube-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.video-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Cinema-Style Video Card */
.video-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.95), rgba(65, 105, 225, 0.95));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(100, 149, 237, 0.6),
                0 0 80px rgba(100, 149, 237, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.lecture-card:hover .play-button {
    transform: scale(1.2) rotate(5deg);
    background: linear-gradient(135deg, rgba(100, 149, 237, 1), rgba(65, 105, 225, 1));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 60px rgba(100, 149, 237, 0.9),
                0 0 120px rgba(100, 149, 237, 0.5),
                inset 0 0 40px rgba(255, 255, 255, 0.2);
}

.play-button svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.video-info {
    padding: 24px;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* duplicate modal text rules removed to prevent overrides */

/* ====================================
   Newsletter Popup Modal
   ==================================== */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.newsletter-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.newsletter-popup-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.newsletter-popup.active .newsletter-popup-content {
    transform: scale(1);
}

.newsletter-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-secondary);
}

.newsletter-close-btn:hover {
    background: var(--text-tertiary);
    color: white;
    transform: rotate(90deg);
}

.newsletter-popup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.newsletter-popup-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.newsletter-popup-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.newsletter-popup .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-popup .newsletter-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--card-border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.newsletter-popup .newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.newsletter-popup .newsletter-form input[type="email"]::placeholder {
    color: var(--text-tertiary);
}

.newsletter-popup .btn-full {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.newsletter-popup-privacy {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Dark Theme Support */
[data-theme="dark"] .newsletter-popup-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
}

[data-theme="dark"] .newsletter-popup-title {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-popup-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .newsletter-popup-title {
        font-size: 1.5rem;
    }
    
    .newsletter-popup-icon {
        font-size: 3rem;
    }
}