/* 1. Reset & Base Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7f7f7;
    color: #444;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #d1121a; /* Corporate Red */
    transition: 0.3s ease;
}

a:hover {
    color: #a30e14;
}

/* 2. Header & Navigation */
header {
    background: #ff2426;
    padding: 40px 0 20px 0;
    border-bottom: 3px solid #eee;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 300px;
    height: auto;
}

nav {
    text-align: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

nav a {
    margin: 0 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    color: #333;
}

nav a:hover {
    color: #d1121a;
}

/* 3. Main Layout Grid */
.main-wrapper {
    display: flex;
    gap: 40px;
    margin: 50px auto;
}

.content-area {
    flex: 2; /* Main content takes 2/3 of width */
}

.sidebar {
    flex: 1; /* Sidebar takes 1/3 */
}

/* 4. Blog Post Grid (Home Page) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns */
    gap: 30px;
}

.post-card {
    background: #fff;
    border-bottom: 4px solid #d1121a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-info {
    padding: 25px;
}

.post-info h2 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-info h2 a {
    color: #222;
}

.post-excerpt {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

/* 5. Sidebar Widgets */
.widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.widget h3 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-left: 5px solid #d1121a;
    padding-left: 15px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.widget li a {
    color: #555;
    font-size: 15px;
}

/* Subscription Form */
.widget form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.widget form button {
    width: 100%;
    background: #d1121a;
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* 6. Single Article Styling */
.article-text {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
}

.article-text h1 {
    font-size: 34px;
    margin-bottom: 25px;
    color: #111;
}

.article-text img {
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.article-text p {
    margin-bottom: 20px;
    font-size: 17px;
}

/* 7. Footer */
footer {
    background: #222;
    color: #bbb;
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 50px;
}

/* 8. Mobile Responsiveness */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: 2;
    }
}
/* Article Page Specifics */
.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.article-content h2 {
    color: #222;
    margin: 30px 0 15px;
    font-size: 24px;
}

.article-content ul, .article-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Category Page Header */
.category-header {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
}

.category-header h1 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-header p {
    color: #aaa;
    margin-top: 10px;
}