/* Consolidated Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Gotu&family=Merriweather:ital,wght@0,300;0,700;1,300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
}

:root {
    --body-color: #fff;    
    --header-bg:#F7F4EF;       
    --menu-color: #1C2430;    
    --menu-bg-trans: #b6064170;    
    --mobilemenu-color: #f7f4ef;
    --footer-bg: #1C2430;
    --footer-text: #a0a0a0;
    --footer-heading: #ffffff;
    --footer-link-hover: #ffffff;
    --footer-border: #2a2a2a;
}


html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /*overflow-x: hidden;*/
    box-sizing: border-box;
    background-color: var(--body-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* ====================HERO SECTION CSS STARTS ================= */

/* --- Blog Container & Layout --- */
.blog-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px; /* Space between main content and sidebar */
}

.blog-main {
    flex: 3; /* Takes up 75% of the space */
}

.blog-sidebar {
    flex: 1; /* Takes up 25% of the space */
    position: sticky;
    top: 20px;
    height: fit-content;
}


/* --- Category Filter (Top) --- */
.category-nav {
    display: flex;    
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/*.category-btn {
    padding: 8px 24px;
    border-radius: 30px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}*/

.category-btn {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #1a1a1a;
    transition: 0.3s;
}

/* Highlight the current page */
.category-btn.active {
    background: #1a1a1a;
    color: #fff;
}

.category-btn:hover:not(.active) {
    background: #f4f4f4;
}

/*.category-btn.active, .category-btn:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}*/

@media (max-width: 768px) {
    .category-btn {
        padding: 4px 6px;
        margin: 0;
    }
}

/* --- The Grid Layout (As seen in Screenshot 9 & 10) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 40px 30px;
}

.blog-card {
    background: #fff;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* Keeps images square as seen in Screenshot 10 */
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-card h2 {
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.3;
    color: #1a1a1a;
}

.blog-card p {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Limit to 3 lines for clean alignment */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
}

@media (max-width: 992px) {
    .blog-card h2 {
        font-size: 1.2rem;
    }
    .blog-card p{
        font-size: .9rem;
    }
}

/* --- Pagination (As seen in Screenshot 10) --- */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: serif;
}

.pagination a {
    padding: 5px 12px;
    text-decoration: none;
    color: #888;
}

.pagination a.active {
    color: #fff;
    background-color: #1a1a1a;
    font-weight: bold;
}

.page-link {
    transition: all 0.2s ease;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.page-link:hover:not(.active) {
    background-color: #f4f4f4;
    border-color: #1a1a1a;
}

/* --- Sidebar Styling --- */
.sidebar-widget {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    border-bottom: 2px solid #1a1a1a;
    display: inline-block;
    padding-bottom: 5px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
    }
    .blog-sidebar {
        max-width: 100%;
    }
}