/* --- Featured Post (Hero) --- */
.featured-post {
    background-color: #ffffff;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
}

.featured-image {
    flex: 2; /* 60% width */
}

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

.featured-content {
    flex: 1.5; /* 40% width */
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .category {
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.featured-content h1 a {
    text-decoration: none;
    color: #343a40;
}

.featured-content h1 a:hover {
    color: #2563eb
}

.featured-content .post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- Main Content Layout (Grid) --- */
.main-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* 70% / 30% split */
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

/* --- Article List --- */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-decoration: none;
}

.article-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
}

.article-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.article-image {
    flex-shrink: 0;
}

.article-image img {
    width: 280px; /* Fixed width for article images */
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem 2rem;
    text-decoration: none;
}

.article-content .category {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h2 a {
    color: #343a40;
    text-decoration: none;
}

.article-content h2 a:hover {
    color: #2563eb;
}

.article-content .post-meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 0.95rem;
    color: #495057;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
}

/* News Widget */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item a {
    color: #343a40;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    text-decoration: none;
}

.news-item a:hover {
    color: #2563eb;
}

.news-item .news-meta {
    font-size: 0.8rem;
    color: #888;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: #2563eb;
}

.category-list .count {
    color: #888;
    font-size: 0.9rem;
}

/* CTA Widget */
.widget-cta {
    background-color: #2563eb;
    color: #ffffff;
    text-align: center;
}

.widget-cta h4 {
    color: #ffffff;
}

.widget-cta p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.widget-cta .cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.widget-cta .cta-button:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
.featured-post {
    flex-direction: column;
}
.featured-image img {
    width: 100%;
    height: 350px;
}
.featured-content {
    padding: 2rem;
}
.main-content {
    grid-template-columns: 1fr; /* Stack main content and sidebar */
}
.article-image img {
    width: 220px;
}
}

/* Mobile phones */
@media (max-width: 768px) {
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }

.article-card {
    flex-direction: column;
}
.article-image img {
    width: 100%;
    height: 200px;
}
}