:root {
    /* Color Palette - Professional Media Outlet */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent: #ef4444;
    
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #000000;
    
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #6b7280;
    
    --border: #e5e7eb;
    --border-hover: #111827;
    
    /* Typography Scale */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    
    /* Effects - Brutalist / Editorial (No shadows, sharp edges) */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bg-dark);
}

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

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

/* Navbar - Editorial */
.navbar {
    background: #ffffff;
    border-bottom: 2px solid var(--text-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--bg-dark);
}

/* Only apply gradient to text, not images */
.brand:not(:has(img)) {
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-size: 2rem;
}

.brand img {
    max-height: 40px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.brand:hover img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: var(--border);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    margin: 4px auto;
    transition: var(--transition);
}

/* Main Content Padding */
.main-content {
    flex: 1;
    padding: var(--space-xl) 0;
}

/* Hero Section - Better Hierarchy */
.hero {
    text-align: center;
    padding: var(--space-xxl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.05em;
    margin-bottom: var(--space-md);
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Post Grid & Cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--primary);
    background: #fcfcfc;
}

.post-img-wrapper {
    position: relative;
    padding-top: 50%; /* 2:1 Aspect Ratio (e.g. 1200x600) */
    overflow: hidden;
}

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

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

.post-content {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    font-size: 0.75rem;
    color: var(--bg-main);
    background: var(--text-main);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    display: inline-block;
    padding: 4px 8px;
    align-self: flex-start;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    line-height: 1.25;
    font-family: var(--font-heading);
    font-weight: 700;
}

.post-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

/* Breadcrumbs */
.breadcrumb-container {
    padding-top: var(--space-lg);
    margin-bottom: -var(--space-md);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    transition: var(--transition);
}

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

.breadcrumb-separator {
    color: var(--border);
}

.breadcrumb-current {
    color: var(--text-main);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Single Post View */
.single-post-header {
    margin-bottom: var(--space-lg);
}

.single-post-category {
    color: var(--bg-main);
    background: var(--text-main);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    display: inline-block;
    padding: 6px 12px;
}

.single-post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.meta-item svg {
    opacity: 0.7;
}

.meta-divider {
    opacity: 0.3;
}

.single-post-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 2/1;
    object-fit: cover;
    margin: 0 auto var(--space-xl);
    display: block;
    border: 1px solid var(--border);
}

.single-post-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.single-post-body h1, .rich-text-content h1 {
    font-size: 2.2rem; /* Matches h2 size */
    margin: var(--space-lg) 0 var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bg-dark);
}

.single-post-body h2, .single-post-body h3, .rich-text-content h2, .rich-text-content h3 {
    margin: var(--space-lg) 0 var(--space-sm);
}

.single-post-body p {
    margin-bottom: var(--space-md);
}

.single-post-body p:empty {
    display: none;
}

.single-post-body > *:last-child {
    margin-bottom: 0;
}

.single-post-body blockquote {
    border-left: 4px solid var(--text-main);
    padding: var(--space-md) var(--space-lg);
    background: #f9fafb;
    font-style: italic;
    margin: var(--space-lg) 0;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.single-post-body ul, .single-post-body ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.single-post-body li {
    margin-bottom: var(--space-xs);
}

/* Social Share */
.social-share-container {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.social-share-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--bg-dark);
}

.social-share {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    transition: var(--transition);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-btn:hover {
    transform: translateY(-4px);
    color: #fff;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.x { background: #000000; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.email { background: #71717a; }

/* Sidebar Improvements */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
}

.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.sidebar-box h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-xs);
}

.sidebar-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Inline Table of Contents */
.inline-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
}

.inline-toc h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--bg-dark);
}

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

.inline-toc li {
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.inline-toc li a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.inline-toc li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.toc-item-h3 {
    padding-left: var(--space-md);
}

.toc-item-h3 a {
    font-size: 0.95rem !important;
    opacity: 0.8;
}

/* Sidebar Search */
.search-form {
    display: flex;
    gap: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-form input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    flex: 1;
    font-size: 0.95rem;
}

.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--accent);
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: var(--space-lg);
    border-radius: 12px;
    text-align: left;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-sm);
}

.category-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    color: var(--bg-dark);
    font-size: 1.15rem;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.3;
    transition: var(--transition);
}

.category-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.category-card:hover h3 {
    color: var(--primary);
}

/* Recent Posts Sidebar */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.recent-post-item {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.recent-post-info h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.recent-post-info h4 a {
    color: var(--bg-dark);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-info h4 a:hover {
    color: var(--primary);
}

.recent-post-item.no-thumb {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.recent-post-item.no-thumb:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item.no-thumb .recent-post-info h4 {
    font-size: 1rem;
}

/* Forms & UI Elements */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 0;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    background: var(--primary-dark);
}

/* Footer - Elegant */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: var(--space-xl) 0;
    margin-top: var(--space-xxl);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Alerts */
.alert {
    padding: var(--space-sm) var(--space-md);
    border-radius: 0;
    margin-bottom: var(--space-md);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.alert.success { background: #ecfdf5; color: #059669; border: 1px solid #10b981; }
.alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #ef4444; }

/* Responsive */
@media (max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: var(--space-lg);
        text-align: center;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero { padding: var(--space-xl) 0; }
    .hero h1 { font-size: 2.75rem; }
    .post-grid { grid-template-columns: 1fr; }
}

/* About Page */
.about-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xxl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: white;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #fff !important;
    margin-bottom: var(--space-md);
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.about-hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Page & About Section Styles */
.page-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
    padding: 100px 0 60px;
    color: #fff;
    text-align: center;
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: var(--space-md);
    color: #fff;
}

.hero-lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
    align-items: flex-start;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

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

.values-section {
    margin-top: 100px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.value-item {
    padding: var(--space-lg);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.cta-section {
    margin-top: 100px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 80px;
    text-align: center;
    border: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    margin-top: var(--space-lg);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .stat-card {
        flex: 1;
        min-width: 150px;
    }
}

.about-side-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.about-side-card h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.about-side-card ul {
    list-style: none;
    margin-top: var(--space-md);
    padding: 0;
}

.about-side-card li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.about-side-card li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
}

.about-section-block {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-section-block h2 {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    border-bottom: 4px solid var(--primary);
    padding-bottom: var(--space-xs);
}

/* Contact Page */
.contact-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.contact-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-xs);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .about-grid, .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-side-card {
        position: static;
        order: -1;
    }
    
    .about-hero {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .about-hero h1 { font-size: 2.5rem; }
    .about-hero p { font-size: 1.1rem; }
}
