/**
 * CLANSAY Layouts - Header, Footer, Grids, Containers
 *
 * @package CLANSAY
 * @since 1.0.0
 */

/* ================================================
   CONTAINERS
   ================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ================================================
   HEADER
   ================================================ */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.nav-link i {
    font-size: var(--font-size-base);
    opacity: 0.7;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-secondary);
}

.nav-link:hover i {
    opacity: 1;
}

.nav-link.active,
.nav-link.current-menu-item > a,
.current-menu-item .nav-link {
    color: var(--accent-1);
    background: rgba(5, 150, 105, 0.08);
}

.nav-link.active i,
.current-menu-item .nav-link i {
    opacity: 1;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-12) var(--space-6) var(--space-8);
    margin-top: var(--space-12);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
}

.footer-brand .footer-tagline {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-3);
}

.footer-col h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-5);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-base);
    color: var(--text-light);
    margin-bottom: var(--space-3);
    transition: all var(--transition-base);
}

.footer-col a i {
    font-size: 10px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-base);
}

.footer-col a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-col a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ================================================
   MAIN CONTENT LAYOUTS
   ================================================ */
.site-main {
    min-height: calc(100vh - var(--header-height) - 400px);
}

/* Two Column Layout (Content + Sidebar) */
.content-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-6);
}

.content-area {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    align-self: start;
}

/* Full Width Layout */
.full-width {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

/* ================================================
   PAGE HEADER
   ================================================ */
.page-header {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-10) var(--space-6) var(--space-6);
    text-align: center;
}

.page-header h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    position: relative;
    background: var(--gradient);
    color: white;
    padding: var(--space-16) var(--space-6);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-4);
    color: white;
}

.hero p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-6);
}

/* ================================================
   SITE HERO - Split Layout with Animations
   ================================================ */
.site-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 580px;
}

.site-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.site-hero .hero-content {
    text-align: left;
    max-width: none;
    margin: 0;
}

.site-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px var(--glow-1);
}

.site-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.site-hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-hero p {
    font-size: 17px;
    color: #94a3b8;
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
    opacity: 1;
}

.site-hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.hero-btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px var(--glow-1);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--glow-1);
    color: white;
}

.hero-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-btn.secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.site-hero-stats {
    display: flex;
    gap: 40px;
}

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

.hero-stat-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--accent-2);
    font-size: 18px;
}

.hero-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

/* Hero Visual - Animated Canvas Area */
.hero-visual {
    position: relative;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-1);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-2);
    bottom: 20%;
    left: 10%;
    animation-delay: -2s;
}

.hero-orb-3 {
    width: 150px;
    height: 150px;
    background: #818cf8;
    top: 50%;
    right: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.02); }
}

/* Floating Cards */
.hero-card {
    position: absolute;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    animation: cardFloat 6s ease-in-out infinite;
    z-index: 3;
}

.hero-card-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.hero-card-2 {
    bottom: 25%;
    left: 0;
    animation-delay: -2s;
}

.hero-card-3 {
    top: 55%;
    right: 15%;
    animation-delay: -4s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.hero-card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

.hero-card-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.hero-card-value {
    font-size: 12px;
    color: var(--accent-2);
    font-weight: 600;
}

/* Central Visual Element */
.hero-central {
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: pulse 4s ease-in-out infinite;
}

.hero-central::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.1);
    animation: spin 30s linear infinite;
}

.hero-central::after {
    content: '';
    position: absolute;
    inset: -50px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.06);
    animation: spin 45s linear infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--glow-1); }
    50% { transform: scale(1.02); box-shadow: 0 0 40px 20px var(--glow-1); }
}

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

.hero-central-inner {
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 20px 60px var(--glow-1);
}

.hero-central-icon {
    font-size: 48px;
    color: white;
    margin-bottom: 8px;
}

.hero-central-text {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Floating Dots */
.hero-dots {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    border-radius: 50%;
    opacity: 0.4;
    animation: twinkle 3s ease-in-out infinite;
}

.hero-dot:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.hero-dot:nth-child(2) { top: 30%; right: 25%; animation-delay: 0.5s; }
.hero-dot:nth-child(3) { bottom: 40%; left: 15%; animation-delay: 1s; }
.hero-dot:nth-child(4) { top: 60%; right: 10%; animation-delay: 1.5s; }
.hero-dot:nth-child(5) { bottom: 20%; right: 35%; animation-delay: 2s; }
.hero-dot:nth-child(6) { top: 20%; left: 40%; animation-delay: 2.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.5); }
}

/* ================================================
   ABOUT PAGE STYLES (Used for About, SIEF, etc.)
   ================================================ */

/* About Hero - Light Style */
.about-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 32px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px var(--glow-1);
}

.about-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
}

.about-hero p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Section */
.about-stats {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 32px 24px;
}

.about-stats .stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.about-stats .stat-item {
    text-align: center;
    flex: 0 1 180px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: var(--radius);
    margin: 0 auto 12px;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 12px var(--glow-1);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Content */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    box-shadow: 0 4px 12px var(--glow-1);
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

.mission-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.values-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.value-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: var(--radius);
    margin: 0 auto 14px;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 12px var(--glow-1);
}

.value-card:nth-child(2) .value-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.value-card:nth-child(3) .value-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.value-card:nth-child(4) .value-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.value-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.value-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Process Steps */
.process-steps {
    margin-top: 24px;
}

.process-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--glow-1);
}

.step-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.step-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* About CTA */
.about-cta {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin: 40px 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* ================================================
   GRIDS
   ================================================ */
/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

/* Two Column Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

/* Four Column Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

/* Filters Row */
.filters {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

/* Featured Section */
.featured {
    max-width: var(--container-max);
    margin: 0 auto var(--space-10);
    padding: 0 var(--space-6);
}

/* ================================================
   POST SINGLE LAYOUT (matches demo7/post.html)
   ================================================ */

/* Article Hero */
.article-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0.3) 100%);
    display: flex;
    align-items: flex-end;
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
    width: 100%;
}

.article-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 20px;
    max-width: 800px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-hero .author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-hero .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.article-hero .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs .separator {
    font-size: 10px;
}

/* Author Archive Header */
.author-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.author-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.author-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.author-header-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 4px solid var(--border);
}

.author-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-header-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.author-header-bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px;
}

.author-header-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.author-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.author-stat i {
    color: var(--accent-1);
}

/* Article Content Card */
.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

/* Share Bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--gradient);
    color: white;
}

.share-btn.twitter:hover { background: #1da1f2; }
.share-btn.facebook:hover { background: #1877f2; }
.share-btn.linkedin:hover { background: #0077b5; }
.share-btn.email:hover { background: var(--accent-1); }

/* Prose - Article Body */
.prose {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}

.prose p {
    margin-bottom: 20px;
}

.prose h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.prose h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
}

.prose ul,
.prose ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
}

.prose a {
    color: var(--accent-1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration: none;
}

.prose img {
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.prose blockquote {
    border-left: 4px solid var(--accent-1);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Highlight Boxes */
.highlight-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-1);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.highlight-box.tip { border-left-color: var(--accent-green); }
.highlight-box.warning { border-left-color: var(--accent-orange); }

.highlight-box-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-box.tip .highlight-box-title { color: var(--accent-green); }
.highlight-box.warning .highlight-box-title { color: var(--accent-orange); }

.highlight-box p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.tag {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--gradient);
    color: white;
}

/* Author Box */
.author-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-box-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.author-social {
    display: flex;
    gap: 8px;
}

.author-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
}

.author-social a:hover {
    background: var(--gradient);
    color: white;
}

/* Post Navigation */
.post-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.post-nav-link {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    display: block;
}

.post-nav-link:hover {
    background: var(--bg-hover);
    box-shadow: var(--shadow);
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.post-nav-title {
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

/* ================================================
   COMMENTS SECTION
   ================================================ */
.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title i {
    color: var(--accent-1);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.comment-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.comment-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar img {
    border-radius: 50%;
}

.comment-author-name {
    font-weight: 600;
    display: block;
}

.comment-author-name a {
    color: var(--text);
}

.comment-author-name a:hover {
    color: var(--accent-1);
}

.comment-date {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-awaiting-moderation {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--accent-orange);
}

.comment-actions {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.reply-link a {
    color: var(--accent-1);
    font-weight: 500;
}

.edit-link a {
    color: var(--text-muted);
}

.no-comments {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-secondary);
}

/* Comment Reply Title */
.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-reply-title i {
    color: var(--accent-1);
}

/* Comment Form */
.comment-form {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.comment-form-group,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    margin-bottom: 20px;
}

.comment-form-label,
.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.comment-form-label .required,
.comment-form .required {
    color: var(--accent-red, #ef4444);
}

.comment-form-textarea,
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form-textarea:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-1);
}

.comment-form-submit {
    margin-top: 24px;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient);
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.18);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
}

/* Related Section */
.related-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(22, 163, 74, 0.2);
}

.related-card-image {
    height: 140px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

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

.related-card-category {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--gradient);
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.related-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    transition: color 0.2s;
}

.related-card:hover .related-card-title {
    color: var(--accent-1);
}

/* ================================================
   STATS GRID
   ================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin: var(--space-10) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    background: var(--gradient);
    color: white;
    padding: var(--space-12) var(--space-6);
    text-align: center;
    border-radius: var(--radius-xl);
    margin: var(--space-10) 0;
}

.cta-section h2 {
    color: white;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: white;
    color: var(--accent-1);
}

.cta-section .btn:hover {
    background: var(--bg-secondary);
    color: var(--accent-1);
}

/* ================================================
   CONTACT LAYOUT
   ================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-10);
}

.contact-info {
    padding: var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.contact-method {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-1);
}

.contact-method p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ================================================
   TEAM GRID
   ================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.team-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-4);
    border: 4px solid var(--bg-secondary);
}

.team-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-1);
}

.team-role {
    font-size: var(--font-size-sm);
    color: var(--accent-1);
    margin-bottom: var(--space-3);
}

.team-bio {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ================================================
   404 PAGE
   ================================================ */
.error-404 {
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.error-404 h1 {
    font-size: 120px;
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.error-404 h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

.error-404 p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

/* ================================================
   SEARCH PAGE
   ================================================ */
.search-hero {
    background: var(--bg-secondary);
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.search-hero h1 {
    margin-bottom: var(--space-6);
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-3);
}

.search-form-large input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-md);
}

.search-form-large input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px var(--glow-1);
}

.search-results {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.search-results-count {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
}

/* Contact Info Card */
.contact-info-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--glow-1);
}

.contact-method-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-method-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.5;
}

.contact-method-content a {
    color: var(--accent-1);
    font-weight: 500;
    font-size: 14px;
}

.contact-method-content a:hover {
    text-decoration: underline;
}

/* Contact FAQ */
.contact-faq {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.contact-faq h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.contact-faq .faq-item {
    margin-bottom: 16px;
}

.contact-faq .faq-item:last-child {
    margin-bottom: 0;
}

.contact-faq .faq-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-faq .faq-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.contact-faq .faq-item a {
    color: var(--accent-1);
}

/* Contact Form Card */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-form-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.contact-form .form-input,
.contact-form .form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-family: inherit;
    transition: all 0.2s;
    color: var(--text);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px var(--glow-1);
}

.contact-form .form-textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .btn-full {
    width: 100%;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        order: 2;
    }

    .contact-form-card {
        order: 1;
    }
}

/* =====================================================
   LEGAL PAGES (Privacy, Terms, Cookie, Affiliate)
   ===================================================== */

.legal-page {
    background: var(--bg);
}

.legal-hero {
    padding: 32px 24px 16px;
}

.legal-updated {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.legal-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

/* Table of Contents Sidebar */
.legal-toc {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.legal-toc h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 8px;
}

.legal-toc a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
}

.legal-toc a:hover {
    color: var(--text);
    background: var(--bg-secondary);
}

/* Legal Body Content */
.legal-body {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
}

.legal-section:last-of-type {
    margin-bottom: 32px;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legal-section li strong {
    color: var(--text);
}

.legal-section a {
    color: var(--accent-1);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Legal Footer */
.legal-footer {
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.legal-footer p {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* Cookie Policy Tables */
.cookie-table {
    margin: 24px 0;
}

.cookie-category {
    margin-bottom: 32px;
}

.cookie-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.cookie-category h3 i {
    color: var(--accent-1);
}

.cookie-category table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.cookie-category th,
.cookie-category td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-light);
}

.cookie-category th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text);
}

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

.cookie-category tr:hover td {
    background: var(--bg-hover);
}

/* Legal Note Box */
.legal-note {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin: 24px 0;
}

.legal-note i {
    color: var(--accent-1);
    margin-top: 2px;
    flex-shrink: 0;
}

.legal-note p {
    margin: 0;
    font-size: 14px;
}

/* Affiliate Disclosure Specific */
.affiliate-highlight {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, var(--glow-1), var(--glow-2));
    border: 1px solid var(--accent-1);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.affiliate-highlight i {
    font-size: 24px;
    color: var(--accent-1);
    flex-shrink: 0;
}

.affiliate-highlight p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

/* Commitment Grid */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.commitment-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.commitment-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.commitment-icon i {
    color: white;
    font-size: 14px;
}

.commitment-content h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
}

.commitment-content p {
    font-size: 14px;
    margin: 0;
    color: var(--text-secondary);
}

/* FTC Disclosure Box */
.ftc-box {
    padding: 24px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-1);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}

.ftc-box p {
    margin: 0 0 12px 0;
}

.ftc-box p:last-child {
    margin-bottom: 0;
}

/* Legal Pages Responsive */
@media (max-width: 900px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
        margin-bottom: 24px;
    }

    .legal-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .legal-toc li {
        margin-bottom: 0;
    }

    .legal-toc a {
        padding: 6px 12px;
        background: var(--bg-secondary);
        border-radius: var(--radius-full);
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .legal-body {
        padding: 32px 24px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .affiliate-highlight {
        flex-direction: column;
        text-align: center;
    }

    .cookie-category table {
        font-size: 13px;
    }

    .cookie-category th,
    .cookie-category td {
        padding: 10px 12px;
    }
}

/* =====================================================
   FEATURED POSTS HERO GRID
   ===================================================== */

.featured-grid-section {
    margin-bottom: 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    height: 420px;
}

.hero-main {
    grid-row: 1 / 3;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

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

.hero-main:hover img {
    transform: scale(1.03);
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.hero-main-overlay .post-category {
    margin-bottom: 16px;
}

.hero-main-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin-bottom: 12px;
}

.hero-main-overlay .post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-main-overlay .post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-side {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-side:hover img {
    transform: scale(1.05);
}

.hero-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.hero-side-overlay .post-category {
    margin-bottom: 8px;
}

.hero-side-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: white;
}

/* =====================================================
   HOMEPAGE SECTION HEADERS (Override centered default)
   ===================================================== */

.content-area .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.content-area .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
}

.content-area .section-title i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.view-all i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.2s;
}

.view-all:hover {
    color: var(--accent-1);
    gap: 10px;
}

/* 2-column articles grid for homepage (higher specificity to override responsive) */
.articles-grid.articles-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

/* =====================================================
   POPULAR THIS WEEK SECTION (post-list style from demo7)
   ===================================================== */

.popular-section {
    margin-top: 48px;
}

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

.post-list-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.post-list-item:hover {
    box-shadow: var(--shadow);
    border-color: rgba(13, 148, 136, 0.2);
    transform: translateX(4px);
}

.post-list-image {
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.post-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-list-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text);
    transition: color 0.2s;
}

.post-list-item:hover .post-list-title {
    color: var(--accent-1);
}

.post-meta-muted {
    color: var(--text-muted);
    font-size: 12px;
}

/* =====================================================
   SIDEBAR WIDGETS (Proper CSS, no inline styles)
   ===================================================== */

/* Ad Widget */
.ad-widget {
    background: var(--bg-secondary);
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.ad-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    margin-top: 20px;
    padding: 40px;
    border: 2px dashed var(--border);
    border-radius: 8px;
}

.ad-placeholder i {
    font-size: 32px;
    color: var(--text-muted);
}

.ad-placeholder p {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Categories Widget */
.categories-list {
    display: flex;
    flex-direction: column;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: color 0.2s;
    text-decoration: none;
    color: var(--text);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: var(--accent-1);
}

.category-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    width: 32px;
    height: 32px;
    background: var(--glow-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    color: var(--accent-1);
    font-size: 14px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

.category-count {
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
}

.widget-newsletter .widget-title-light {
    color: white;
}

.widget-newsletter p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    background: white;
    color: var(--accent-1);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Social Grid Widget */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.2s;
}

.social-item:hover {
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-item i {
    font-size: 24px;
    color: var(--text-secondary);
}

.social-item:nth-child(1) i { color: #000; }
.social-item:nth-child(2) i { color: #ff0000; }
.social-item:nth-child(3) i { color: #e4405f; }
.social-item:nth-child(4) i { color: #0077b5; }

.social-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.social-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Large Ad Placeholder */
.ad-placeholder-large {
    padding: 80px 40px;
}

/* TOC Widget */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc-item {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    border-left: 2px solid var(--border);
    transition: all 0.2s;
}

.toc-item:hover {
    color: var(--accent-1);
    border-left-color: var(--accent-1);
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-widget-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--border);
}

.author-widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-widget h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-widget p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--gradient);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn:hover {
    transform: translateY(-2px);
}

/* Newsletter Text (single sidebar) */
.newsletter-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Popular/Related List Widget */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 12px;
}

.related-item-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.related-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
}

.related-item:hover .related-item-title {
    color: var(--accent-1);
}

.related-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =====================================================
   HOMEPAGE RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .hero-main {
        grid-row: auto;
        height: 300px;
    }

    .hero-side {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-main {
        height: 260px;
    }

    .hero-main-title {
        font-size: 20px;
    }

    .hero-main-overlay {
        padding: 20px;
    }

    .hero-side {
        height: 160px;
    }

    .articles-grid-2col {
        grid-template-columns: 1fr;
    }

    .post-list-item {
        grid-template-columns: 90px 1fr;
        gap: 10px;
    }

    .content-area .section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-main {
        height: 220px;
    }

    .hero-main-title {
        font-size: 18px;
    }

    .hero-side {
        height: 140px;
    }

    .hero-side-title {
        font-size: 14px;
    }

    .post-list-item {
        grid-template-columns: 80px 1fr;
        padding: 10px;
    }

    .post-list-image {
        height: 70px;
    }

    .post-list-title {
        font-size: 14px;
    }
}
