/* --- VARIABLES & RESET --- */
:root {
    --primary-blue: #003366; /* Wall Street Navy */
    --accent-gold: #C5A059;  /* Luxury/Wealth Gold */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f4f4f4;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- HEADER COMPONENTS --- */
.top-bar {
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.flex-space-between { display: flex; justify-content: space-between; }
.green-text { color: #4cd137; font-weight: bold; }

.main-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- NAVIGATION --- */
.navbar {
    border-bottom: 2px solid var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.nav-links a:hover { color: var(--primary-blue); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* --- MAIN LAYOUT (GRID) --- */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 Blog, 1/3 Sidebar */
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* --- HERO POST --- */
.hero-post {
    margin-bottom: 40px;
}
.placeholder-hero {
    width: 100%;
    height: 350px;
    background-color: #eee; /* Placeholder for image */
    background-image: linear-gradient(45deg, #003366 25%, #004080 25%, #004080 50%, #003366 50%, #003366 75%, #004080 75%, #004080 100%);
    background-size: 40px 40px;
}
.hero-post h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 15px 0 10px;
}
.category-tag {
    background: var(--accent-gold);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* --- ARTICLE GRID --- */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.card {
    border: 1px solid #eee;
    padding: 15px;
}
.placeholder-small {
    width: 100%;
    height: 150px;
    background: #ddd;
    margin-bottom: 15px;
}
.card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; }

/* --- SIDEBAR --- */
.sidebar .widget {
    background: var(--bg-light);
    padding: 25px;
    margin-bottom: 30px;
    border-top: 3px solid var(--primary-blue);
}
.widget h3 { font-family: var(--font-heading); margin-bottom: 15px; }
.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}
.trending-list li { margin-bottom: 10px; border-bottom: 1px solid #ddd; padding-bottom: 5px; }

/* --- FOOTER --- */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .main-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; flex-direction: column; text-align: center; padding-top: 20px; }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; margin-left: auto; }
}


/* --- FILTER SECTION STYLES --- */
.latest-posts-section {
    padding: 60px 20px;
    border-top: 1px solid #eee;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 2rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 20px; /* Pill shape */
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* 4-Column Grid */
.posts-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    gap: 20px;
}

/* Post Card Styling */
.post-card {
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-thumb {
    height: 180px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.post-details {
    padding: 15px;
}

.post-cat {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.post-details h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.post-date {
    font-size: 0.75rem;
    color: #999;
}

/* Responsive: 2 cols on tablet, 1 col on mobile */
@media (max-width: 900px) {
    .posts-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .posts-grid-4col { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; }
}
