/* Category Filter Layout */
#category-filter {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0px 4%;
}

#category-filter button {
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-wrap: wrap;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.72px;
    text-transform: uppercase;
    background-color: transparent;
    border: 2px solid transparent;
    color: #04134C;
}

#category-filter button.active {
    border: 2px solid #CB553D;
    color: #CB553D;
    padding: 14px 20px;
}

/* Featured Post */
#featured-container {
    margin-bottom: 80px;
    background-image: url(https://musani.addlab.net/wp-content/uploads/2026/04/f2a3abf….png);
    background-repeat: repeat;
    background-size: contain;
}
.featured-post {
    display: flex;
    gap: 24px;
    align-items: center;
}
.featured-content {
    padding: 0px 40px;
}
.featured-content h2 {
    padding: 20px 0px;
    margin: 8px 0px;
    border-top: 1px solid rgba(175, 164, 148, 0.50);
    border-bottom: 1px solid rgba(175, 164, 148, 0.50);
}
.featured-content span.category-label {
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.72px;
    text-transform: uppercase;
    color: #04134C;
}
.featured-content p {
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.72px;
    margin-top: 0;
    margin-bottom: 24px;
}
.featured-image {
    width: 55%;
}
.featured-image img {
    width: 100%;
}
/* Post Grid */
#post-container {
    display: grid;
    /* Forces exactly 3 columns */
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px;
    padding: 0 4%;
}
#post-container .post-content {
    color: #04134C;
}
#post-container .post-image {
    margin-bottom: 24px;
    overflow: hidden;
    
}
#post-container .post-image img{
    width: 100%;
    transition: transform 0.3s;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    display: block;
    height: auto;
}
.post-item:hover img{ 
    transform: scale(1.1); 
}
#post-container .post-content span.grid-cat {
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.72px;
    text-transform: uppercase;
}
#post-container .post-content .post-title {
    font-family: Gloock;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
#post-container .post-content p {
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.72px;
    color: #AFA494;
}
/* Numeric Pagination Design */
#pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 60px;
    font-family: sans-serif;
    font-size: 24px;
}

#pagination-container .page-numbers {
    text-decoration: none;
    color: #001B44; 
    display: flex;
    align-items: center;
    line-height: 1;
}

#pagination-container .page-numbers.current {
    color: #D37553; 
}

#pagination-container .dots { color: #001B44; }

.nav-arrow-svg { 
    width: 15px; 
    height: 24px; 
    margin-left: 10px; 
    transition: transform 0.3s;
}

#pagination-container a:hover .nav-arrow-svg {
    transform: translateX(5px);
}
/* Flip the Previous Arrow specifically */
#pagination-container a.prev .nav-arrow-svg {
    transform: rotate(180deg) !important;
}


/* Responsive CSS*/
@media screen and (max-width: 767px) {
    .featured-post {
        display: block;
    }
    .featured-post .featured-image {
        width: 100%;
    }
    .featured-post .featured-content {
        padding: 24px 4% 0px;
    }
    #post-container{
        display: block;
    }
    #post-container .post-item:first-child {
        margin-top: 0;
    }
    #post-container .post-item {
        margin-top: 40px;
    }
}