/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header & Nav */
.top-bar {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #d32f2f;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
}

.logo span {
    color: #d32f2f;
}

.main-nav {
    background-color: #1a1a1a;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    color: #fff;
    padding: 12px 20px;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
}

.main-nav ul li a:hover {
    background-color: #d32f2f;
}

/* Layout Wrapper */
.layout-wrapper {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.main-content {
    flex: 7; /* Takes 70% width */
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar {
    flex: 3; /* Takes 30% width */
}

/* Section Titles */
.section-title {
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.section-title span {
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 5px;
    color: #d32f2f;
    font-size: 20px;
    text-transform: uppercase;
}

/* Category Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.post-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-content {
    padding: 10px 0;
}

.category-tag {
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.post-content h3 {
    font-size: 18px;
    margin: 8px 0;
}

.post-content h3 a:hover {
    color: #d32f2f;
}

.divider {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 40px 0;
}

/* Single Post View & Social Share */
.single-article .article-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #111;
}

.social-share {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    padding: 8px 15px;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.whatsapp { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.share-btn:hover { opacity: 0.9; }

.article-featured-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 20px;
}

.article-body p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Sidebar Styling */
.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}

.widget-title {
    border-bottom: 2px solid #ddd;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.widget-title span {
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 5px;
    font-size: 18px;
    text-transform: uppercase;
}

.latest-news-list {
    list-style: none;
}

.latest-news-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.latest-news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-news-list a {
    display: flex;
    gap: 15px;
}

.latest-news-list img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 3px;
}

.news-info h4 {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.news-info h4:hover {
    color: #d32f2f;
}

.news-info .date {
    font-size: 12px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
}