/* =========================
   RESET & THEME VARIABLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary: #065f46;
    --accent: #6ee7b7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f0fdf4;
    --bg-white: #ffffff;
    --border: #d1fae5;
    --shadow-sm: 0 1px 2px rgba(16, 185, 129, 0.05);
    --shadow-md: 0 4px 12px rgba(16, 185, 129, 0.08);
    --shadow-lg: 0 10px 30px rgba(16, 185, 129, 0.15);
    --shadow-xl: 0 20px 50px rgba(16, 185, 129, 0.12);
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --gradient-secondary: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: var(--transition);
}

body.light-mode {
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f0fdf4;
    --bg-white: #ffffff;
    --border: #d1fae5;
    background-color: #f0fdf4;
    color: #1f2937;
}

body.dark-mode {
    --text-dark: #f3f4f6;
    --text-medium: #d1d5db;
    --text-light: #9ca3af;
    --bg-light: #064e3b;
    --bg-white: #0f3d2f;
    --border: #10b981;
    background-color: #064e3b !important;
    color: #f3f4f6 !important;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.top-bar a:hover {
    color: white;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

/* =========================
   HEADER
========================= */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.logo-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 300px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    background: var(--bg-white);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    width: 350px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
}

.notification-btn,
.login-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.notification-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-btn:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.login-btn {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.login-btn {
    background: var(--primary);
    color: white;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* =========================
   NAVIGATION
========================= */
nav {
    padding: 0.8rem 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   BREAKING NEWS TICKER
========================= */
.breaking-ticker {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 0.8rem 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.ticker-label {
    background: white;
    color: #dc2626;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ticker-items {
    display: flex;
    gap: 4rem;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    flex-shrink: 0;
    animation: scroll-left 70s linear infinite;
}

.ticker-items:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { 
        transform: translateX(100%);
    }
    100% { 
        transform: translateX(-100%);
    }
}

/* Create duplicate items for seamless loop */
.ticker-items::after {
    content: '';
    display: block;
    min-width: 100%;
    flex-shrink: 0;
}

.ticker-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    background: var(--gradient-primary);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="%23ffffff" opacity="0.03"/></svg>');
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-slider {
    position: relative;
    height: 600px;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-category {
    display: inline-block;
    background: var(--accent);
    color: var(--secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-text p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.9rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    background: #f0f0f0;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--gradient-primary);
    border-color: white;
}

.hero-featured {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.featured-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.featured-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* =========================
   CATEGORY TABS
========================= */
.category-tabs {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--border);
    margin-top: -2px;
}

.tabs-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    border: 2px solid transparent;
}

.tab:hover {
    background: var(--primary);
    color: white;
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

/* =========================
   MAIN CONTENT
========================= */
.main-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

/* =========================
   SECTION HEADER
========================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    position: relative;
    padding-left: 1.2rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 75%;
    background: var(--primary);
    border-radius: 3px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
    font-size: 1rem;
}

.view-all:hover {
    gap: 1rem;
}

/* =========================
   FEATURED GRID
========================= */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-featured {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.main-featured:hover {
    transform: translateY(-6px);
}

.main-featured-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
}

.video-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.main-featured-content {
    padding: 2.5rem;
}

.category-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.featured-big-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.article-excerpt {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.article-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
}

.side-featured {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.side-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    cursor: pointer;
}

.side-card:hover {
    transform: translateY(-4px);
}

.side-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.side-card-content {
    padding: 1.5rem;
}

.side-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.8rem 0;
    line-height: 1.4;
}

/* =========================
   NEWS GRID
========================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.news-card-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.news-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .news-card-image::after {
    opacity: 1;
}

.trending-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.news-card-content {
    padding: 1.8rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1rem 0;
    line-height: 1.4;
    transition: var(--transition);
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-excerpt {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.sidebar-item:hover {
    padding-left: 0.8rem;
    background: var(--bg-light);
    margin: 0 -1rem;
    padding-right: 1rem;
    padding-left: 1.8rem;
    border-radius: 8px;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sidebar-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* =========================
   POPULAR TAGS
========================= */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.6rem 1.2rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

/* =========================
   FEEDBACK & SARAN
========================= */
.feedback-widget {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.feedback-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.feedback-form {
    margin-top: 1.5rem;
}

.feedback-input,
.feedback-textarea {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s;
}

.feedback-input:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-btn {
    width: 100%;
    padding: 0.8rem;
    background: white;
    color: #2563eb;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.feedback-btn:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.feedback-btn:active {
    transform: translateY(0);
}

/* =========================
   NEWSLETTER (Deprecated)
========================= */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    width: 100%;
    padding: 0.9rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* =========================
   CALENDAR WIDGET
========================= */
.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-event {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.calendar-event:hover {
    background: var(--primary);
    color: white;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    flex-shrink: 0;
}

.calendar-event:hover .event-date {
    background: white;
    color: var(--primary);
}

.event-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.event-time {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* =========================
   SOCIAL SHARE
========================= */
.social-share {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.telegram { background: #0088cc; }

/* =========================
   FOOTER
========================= */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="%23ffffff" opacity="0.02"/></svg>');
    animation: movePattern 30s linear infinite;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-about p {
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
    color: var(--gradient-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px) scale(1.1);
    border-color: white;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .search-input {
        width: 200px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== Interactivity additions ===== */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Search dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2000;
}

.search-result-item {
  width: 100%;
  text-align: left;
  border: none;
  background: white;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-result-item:hover {
  background: var(--bg-light);
}

.search-result-empty {
  padding: 12px 14px;
  color: var(--text-medium);
}

.sr-icon { font-size: 1.2rem; }
.sr-title { display:block; font-weight: 700; }
.sr-meta { display:block; color: var(--text-light); font-size: .85rem; }

/* Notification dropdown */
.dropdown {
  position: absolute;
  right: 24px;
  top: 86px;
  width: 320px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2500;
}

.dropdown-header,
.dropdown-footer {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.dropdown-footer { border-top: 1px solid var(--border); border-bottom: none; }

.dropdown-body { max-height: 320px; overflow: auto; }

.dropdown-item {
  width: 100%;
  border: none;
  background: white;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:hover { background: var(--bg-light); }
.dropdown-item.unread { background: rgba(34, 197, 94, 0.08); }

.di-title { font-weight: 700; margin-bottom: 2px; }
.di-meta { font-size: .85rem; color: var(--text-light); }

.dropdown-empty { padding: 14px; color: var(--text-medium); }

.pill {
  font-size: .8rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.btn-small {
  width: 100%;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  background: var(--primary);
  color: white;
}

.btn-small:hover { background: var(--primary-dark); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 4000;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal {
  width: min(560px, 100%);
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.field span {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
}

.input:focus { border-color: var(--primary); }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.hint { color: var(--text-light); font-size: .85rem; margin-top: 6px; }

/* Toast */
.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 6000;
}

.toast {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(6px);
  transition: .2s;
  max-width: 360px;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: rgba(34,197,94,.35); }
.toast-warn { border-color: rgba(251,191,36,.5); }
.toast-info { border-color: rgba(59,130,246,.35); }

/* Mobile nav open state */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1500;
}

.no-scroll { overflow: hidden; }

#siteHeader.nav-open nav {
  display: block;
  background: white;
  border-top: 1px solid var(--border);
}

#siteHeader.nav-open nav ul {
  flex-direction: column;
  gap: 0;
}

#siteHeader.nav-open nav li a {
  display: block;
  padding: 12px 0;
}

/* Ticker button look */
.ticker-btn {
  border: none;
  background: transparent;
  color: white;
  font: inherit;
  cursor: pointer;
  opacity: .98;
}
.ticker-btn:hover { opacity: 1; text-decoration: underline; }

/* Article page */
.article-page { padding: 28px 0 60px; }
.article-wrap { max-width: 900px; }
.article-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.article-title { font-size: 2rem; font-weight: 900; color: var(--secondary); margin: 10px 0 6px; }
.article-body { color: var(--text-medium); line-height: 1.85; font-size: 1.05rem; }
.article-body h3 { color: var(--text-dark); margin-top: 16px; }

.article-actions {
  display: flex;
  gap: 10px;
  margin: 14px 0 22px;
}

.comments, .related {
  margin-top: 26px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.comment-form { display: grid; gap: 10px; margin-bottom: 14px; }
.comment-item { border-top: 1px solid var(--border); padding: 12px 0; }
.comment-head { display:flex; justify-content: space-between; color: var(--text-dark); }
.comment-time { color: var(--text-light); font-size: .85rem; }
.comment-text { color: var(--text-medium); margin-top: 6px; }
.comment-empty { color: var(--text-light); padding: 6px 0; }

.back-link { text-decoration: none; }
.empty-state { padding: 12px; color: var(--text-light); }

/* =============================
   MOBILE MENU
============================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
    transition: all 0.3s;
}

.mobile-menu-btn.active {
    color: var(--primary);
    transform: rotate(90deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 2px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    max-height: 100vh;
    overflow-y: auto;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border);
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.mobile-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 2rem;
}

/* =============================
   SEARCH SUGGESTIONS
============================= */
.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.search-suggestions.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* =============================
   ARTICLE INTERACTIONS
============================= */
.article-card {
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.like-btn,
.share-btn {
    padding: 0.5rem 0.8rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.like-btn:hover,
.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(22, 163, 74, 0.05);
}

.like-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.share-menu {
    display: none;
    position: absolute;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 180px;
    animation: slideUp 0.2s ease;
}

.share-menu.active {
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.share-menu a:last-child {
    border-bottom: none;
}

.share-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* =============================
   BACK TO TOP BUTTON
============================= */
.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    font-size: 0.9rem;
}

.back-to-top.visible {
    bottom: 2rem;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =============================
   NOTIFICATIONS
============================= */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.active {
    transform: translateX(0);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-info {
    border-left: 4px solid var(--primary);
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-warning {
    border-left: 4px solid var(--accent);
}

.close-notification {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    margin-left: 1rem;
}

/* =============================
   RESPONSIVE DESIGN
============================= */

/* Tablet (768px and above) */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-main {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .header-actions {
        width: 100%;
        gap: 0.5rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .notification {
        right: 10px;
        top: 10px;
        left: 10px;
    }
    
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    :root {
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
        --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    
    body {
        font-size: 15px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.65rem;
    }
    
    .notification-btn {
        padding: 0.5rem;
    }
    
    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .breaking-ticker {
        padding: 0.5rem 0;
    }
    
    .ticker-label {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-body {
        font-size: 0.95rem;
    }
    
    .like-btn,
    .share-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .share-menu {
        min-width: 150px;
    }
    
    .share-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        padding: 0.6rem 0.8rem;
        right: 0.5rem;
        bottom: 0.5rem;
        font-size: 0.7rem;
    }
    
    .comment-form textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
    nav ul {
        gap: 3rem;
    }
    
    .search-input {
        width: 350px;
    }
    
    .search-input:focus {
        width: 400px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .like-btn,
    .share-btn,
    .login-btn,
    .notification-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    nav a {
        padding: 1rem 0.5rem;
    }
    
    button, a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .top-bar {
        padding: 0.3rem 0;
        font-size: 0.75rem;
    }
    
    .header-main {
        padding: 0.6rem 0;
    }
    
    nav {
        padding: 0.4rem 0;
    }
}

/* Print styles */
@media print {
    .mobile-menu-btn,
    .search-box,
    .notification-btn,
    .login-btn,
    .back-to-top,
    .share-menu {
        display: none;
    }
    
    .article-card {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}

/* =========================
   DARK MODE STYLES
========================= */
:root[data-theme="dark"] {
    --text-dark: #f3f4f6;
    --text-medium: #d1d5db;
    --text-light: #9ca3af;
    --bg-light: #064e3b;
    --bg-white: #0f3d2f;
    --border: #10b981;
}

body.dark-mode {
    background-color: #064e3b;
    color: var(--text-dark);
}

/* Dark Mode - Header */
body.dark-mode .top-bar {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border-bottom-color: var(--border);
}

body.dark-mode header {
    background: linear-gradient(135deg, #0f3d2f 0%, #064e3b 100%);
    border-bottom-color: var(--border);
}

body.dark-mode .header-main .logo-text h1,
body.dark-mode .header-main .logo-text p {
    color: #f3f4f6;
}

body.dark-mode .search-input {
    background: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .search-input::placeholder {
    color: #9ca3af;
}

body.dark-mode header nav a {
    color: #f3f4f6;
}

body.dark-mode header nav a:hover {
    color: #6ee7b7;
}

body.dark-mode .login-btn {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: #6ee7b7;
}

body.dark-mode .notification-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

/* Dark Mode - Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle-btn.dark-mode-btn {
    border-color: #6ee7b7;
}

.theme-toggle-btn.light-mode-btn {
    border-color: #d1d5db;
}

body.dark-mode .theme-toggle-btn {
    border-color: #4b5563;
    color: #d1d5db;
}

body.dark-mode .theme-toggle-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #6ee7b7;
}

/* Dark Mode - Main Content */
body.dark-mode .container {
    color: var(--text-dark);
}

body.dark-mode .article-card {
    background: var(--bg-white);
    border-color: var(--border);
    color: var(--text-dark);
}

body.dark-mode .article-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 95, 70, 0.1));
}

/* Dark Mode - Hero Section */
body.dark-mode .hero {
    background: linear-gradient(135deg, #0f3d2f 0%, #064e3b 100%);
    color: #f3f4f6;
}

body.dark-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
    color: #f3f4f6;
}

/* Dark Mode - Cards & Sections */
body.dark-mode .section-header {
    border-bottom-color: var(--border);
}

body.dark-mode .section-header h2 {
    color: var(--text-dark);
}

body.dark-mode .section-header p {
    color: var(--text-medium);
}

body.dark-mode .category-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

/* Dark Mode - Footer */
body.dark-mode footer {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: #d1d5db;
    border-top-color: var(--border);
}

body.dark-mode footer h3 {
    color: #f3f4f6;
}

body.dark-mode footer a {
    color: #9ca3af;
}

body.dark-mode footer a:hover {
    color: #6ee7b7;
}

body.dark-mode .footer-social a {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .footer-social a:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* Dark Mode - Buttons */
body.dark-mode .btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

body.dark-mode .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

body.dark-mode .btn-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: #6ee7b7;
}

body.dark-mode .btn-secondary:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* Dark Mode - Forms */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="search"],
body.dark-mode textarea,
body.dark-mode select {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--border);
}

body.dark-mode input[type="text"]::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--text-light);
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: #6ee7b7;
    background: var(--bg-white);
    color: var(--text-dark);
}

/* Dark Mode - Tables */
body.dark-mode table {
    border-color: var(--border);
}

body.dark-mode thead {
    background: rgba(16, 185, 129, 0.1);
    border-bottom-color: var(--border);
}

body.dark-mode thead th {
    color: #6ee7b7;
}

body.dark-mode tbody tr {
    border-bottom-color: var(--border);
}

body.dark-mode tbody tr:hover {
    background: rgba(16, 185, 129, 0.05);
}

/* Dark Mode - Comments Section */
body.dark-mode .comments-section {
    background: var(--bg-white);
    border-color: var(--border);
}

body.dark-mode .comment-item {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--border);
}

body.dark-mode .comment-author {
    color: #6ee7b7;
}

body.dark-mode .comment-time {
    color: var(--text-light);
}

body.dark-mode .comment-text {
    color: var(--text-dark);
}

/* Dark Mode - Running Text */
body.dark-mode .running-text {
    background: linear-gradient(135deg, rgba(15, 61, 47, 0.9), rgba(6, 78, 59, 0.9));
    border-color: var(--border);
}

body.dark-mode .running-text-label {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

/* Dark Mode - Badges */
body.dark-mode .badge {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

body.dark-mode .badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

body.dark-mode .badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

body.dark-mode .badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
