:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --accent: #FFD700; /* Sabyla Yellow */
    --accent-dim: rgba(255, 215, 0, 0.1);
    --font: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font);
    margin: 0; padding: 0;
    
    /* YELLOW GRID */
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.15) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 215, 0, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- HEADER --- */
.site-header { padding: 20px 0; position: absolute; width: 100%; z-index: 999; top: 0; }
.flex-header { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; } 

.main-nav ul { list-style: none; display: flex; gap: 20px; padding: 0; }
.main-nav a { font-size: 14px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }
.main-nav a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent-dim); }

/* --- HERO --- */
.hero-section { padding: 140px 0 60px; text-align: center; }
.hero-section h1 { font-size: 56px; margin-bottom: 10px; letter-spacing: -2px; }
.outline-text { 
    -webkit-text-stroke: 1px var(--accent); 
    color: transparent; 
    text-shadow: 0 0 20px var(--accent-dim);
}
.subtitle { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* --- CARD GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid #222;
    border-top: 3px solid var(--accent); /* Yellow Top Border */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover { 
    transform: translateY(-5px); 
    border-color: #333;
    border-top-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 15px var(--accent-dim); /* Yellow Glow */
}

/* --- IMAGES IN CARDS --- */
.card-image { 
    height: 200px; 
    overflow: hidden; 
    background: #000;
    position: relative;
    border-bottom: 1px solid #222;
}

.img-bg { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.5s ease;
}

.blog-card:hover .img-bg { transform: scale(1.05); } /* Subtle zoom effect */

.placeholder-bg { 
    width: 100%; height: 100%; 
    display: flex; align-items: center; justify-content: center; 
    color: #333; font-weight: bold; text-transform: uppercase; letter-spacing: 2px;
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
}

/* --- CARD CONTENT --- */
.card-content { padding: 25px; }
.card-category { 
    color: var(--accent); 
    font-size: 11px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    display: block; margin-bottom: 10px; 
}
.blog-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
.blog-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.read-more { 
    font-size: 12px; font-weight: bold; 
    color: var(--bg-dark); 
    background: var(--accent); /* Yellow Button */
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase; 
    margin-top: 15px; 
    display: inline-block; 
}
.read-more:hover { background: #fff; color: #000; }

/* --- SINGLE PAGE (Fixes overlap & Adds Glow) --- */
.page-container { 
    /* Increased from 120px to 180px to clear the logo */
    padding-top: 20px; 
    padding-bottom: 60px;
    max-width: 900px; 
}

.single-article {
    /* The Container Look */
    background-color: var(--bg-card);
    border: 1px solid #333;
    border-top: 2px solid var(--accent); /* Nice yellow top accent */
    border-radius: 12px;
    padding: 40px;
    
    /* THE YELLOW GLOW */
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.02);
    
    /* Optional: Backdrop filter makes the grid behind it look blurry */
    backdrop-filter: blur(10px); 
}

.article-header h1 { 
    font-size: 42px; 
    color: var(--text-main); 
    margin-bottom: 10px;
    line-height: 1.2;
}

.article-header .meta {
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    display: block;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.article-content { 
    line-height: 1.8; 
    font-size: 18px; 
    color: #d0d0d0; 
}

/* Fix images inside posts so they don't break the layout */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #333;
    margin: 20px 0;
}

/* --- LAYOUT GRID (Sidebar + Content) --- */
.layout-grid {
    display: grid;
    /* 280px Sidebar | The rest is Content */
    grid-template-columns: 280px 1fr; 
    gap: 40px;
    padding-top: 120px; /* Clears the header */
    padding-bottom: 60px;
}

/* Sidebar Styling */
.sidebar-left {
    /* Optional: Sticky Sidebar stays with you as you scroll */
    position: sticky;
    top: 100px; 
    height: fit-content;
}

.ad-unit {
    background: #000;
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px; /* Placeholder height */
    margin-bottom: 30px;
    border-radius: 8px;
}

.ad-placeholder {
    color: #444;
    text-align: center;
    font-family: monospace;
}

.sticky-widget h3 {
    color: var(--accent);
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sticky-widget ul {
    list-style: none;
    padding: 0;
}

.sticky-widget li {
    margin-bottom: 10px;
}

.sticky-widget a {
    color: var(--text-muted);
    font-size: 14px;
}
.sticky-widget a:hover {
    color: var(--text-main);
}

/* Content Area Fixes */
.content-area {
    /* Ensures grids inside don't break */
    min-width: 0; 
}

/* Fix Hero Section centering inside the new layout */
.hero-section {
    grid-column: 1 / -1; /* Make Hero span full width if you move it inside */
}

/* --- RESPONSIVE (Mobile) --- */
@media screen and (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr; /* Stack them */
    }
    
    .sidebar-left {
        order: 2; /* Move ads to bottom on mobile */
        position: static;
    }
    
    .content-area {
        order: 1;
    }
}

/* --- MOBILE FIX --- */
@media screen and (max-width: 768px) {
    .site-header { 
        position: fixed; 
        background: rgba(10, 10, 10, 0.95); 
        padding: 15px 0;
        border-bottom: 1px solid #222;
    }
    .hero-section { padding-top: 140px; }
}