:root {
    
   --brand-navy: #001A72;
    --brand-teal: #00AF66;

    /* supporting colors */
    --white: #ffffff;
    --text-muted: #64748b;
    --text-main: #1A1A1B;

    --bg-light: #FFFFFF;
    --bg-gray: #F9FAFB;
    --border-radius: 24px;
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
 background-color: rgb(255, 255, 255);
   
     /* background:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url('/Assets/OJO4YQ0.jpg');
    background-position: center;
background-size: cover;
background-attachment: fixed; */
    color: var(--text-main);
    /* line-height: 1.5; */
}


/* Header Section */
.blog-header{
    margin: 0px auto;
    padding: 0 7%;
    padding-top: 8rem;
}

.badge {
    color: var(--brand-teal);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}
a{
    text-decoration: none;
    color: unset;
    cursor: pointer;
}

.blog-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.navy-txt {
    color: var(--brand-navy);
}

.blog-header .subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
    max-width: 550px;
}

/* Featured Post */
.featured-card {
    max-width: var(--container-max);
    margin: 40px auto;
    height: 500px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    background: url('/Blog-images/blog-image-1.png') center/cover;
    display: flex;
    align-items: flex-end;
    margin-bottom: 60px;
}

.featured-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    width: 100%;
    padding: 40px;
    color: white;
}

.featured-title {
    font-size: 28px;
    margin-bottom: 12px;
    max-width: 600px;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    opacity: 0.9;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.tag-group {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Filter Section */
.controls {
    max-width: var(--container-max);
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid #EEE;
}

.filters {
    display: flex;
    gap: 24px;
}

.filter-item {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.filter-item.active {
    color: var(--text-main);
    font-weight: 600;
}

.filter-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-blue);
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 10px 40px 10px 16px;
    border-radius: 12px;
    border: 1px solid #EEE;
    background: #F9F9F9;
    width: 240px;
    font-size: 14px;
}

/* Post Grid */
.post-grid {
    max-width: var(--container-max);
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0 5%;
}

.post-card {
    cursor: pointer;
}

.post-img {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 20px;
}

.post-category {
    color: var(--brand-teal);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide the header's inline nav links but keep the mobile panel links visible */
    nav > .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 32px;
    }

    .featured-card {
        height: 400px;
    }

    .tag-group {
        display: none;
    }

    .filters {
        overflow-x: auto;
        white-space: nowrap;
        gap: 16px;
        width: 100%;
    }

    .search-bar {
        display: none;
    }
}