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

body{
    background:#f5f7fb;
}

/* CONTAINER */
.container{
    /* max-width:1300px; */
    /* margin:auto; */
    /* padding:30px 5%; */
}

/* FILTER BAR */
.filter-bar{
    background:#fff;
    border-radius:20px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-bottom:30px;
}

/* =========================
   CATEGORY STYLES
   ========================= */
/* ===============================
   SMOOTH CARD EXPAND / COLLAPSE
   =============================== */

.category-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

/* base card */
.category{
    padding:10px 18px;
    background:#eef2f7;
    border-radius:30px;
    font-size:14px;
    cursor:pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

/* active */
.category.active a {
    color:#fff !important;
}
.category.active {
    background: linear-gradient(90deg, #ff4c02, #af0101);
    color:#fff !important;
}

/* hidden cards (collapsed state) */
.category.hide{
    max-width:0;
    max-height:0;
    padding:0;
    margin:0;
    opacity:0;
    overflow:hidden;
    transform:scale(0.95);
    transition:
        max-width 0.45s ease,
        max-height 0.45s ease,
        opacity 0.3s ease,
        transform 0.3s ease,
        padding 0.3s ease,
        margin 0.3s ease;
}

/* expanded cards */
.category.hide.show{
    max-width:200px;
    max-height:40px;
    padding:10px 18px;
    margin:0;
    opacity:1;
    transform:scale(1);
}
.category:hover {
 

    /* NEW HOVER STYLES */
    background: linear-gradient(90deg, #d1b3a6, #925f5f);
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(175, 1, 1, 0.4);
}
.category:hover a {
    color: #fff !important;
}

/* =========================
   MORE / LESS BUTTON
   ========================= */

.more-btn{
    background:none;
    border:none;
    color:#af0101;
    font-weight:600;
    cursor:pointer;
    margin-top:10px;
    transition:color 0.3s ease;
}

.more-btn:hover{
    color:#ff4c02;
}


/* SEARCH */
.search-box input{
    padding:10px 18px;
    border-radius:30px;
    border:1px solid #d1d5db;
    outline:none;
}

/* BLOG GRID */
.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

/* BLOG CARD */
.blog-card{
    position:relative;
    height:230px;
    border-radius:18px;
    overflow:hidden;
}

/* IMAGE */
.blog-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}
.blog-card:hover img{
    transform:scale(1.05);
}

/* TAG */
.blog-tag{
    position:absolute;
    top:15px;
    left:15px;
    background:#fff;
    color:#ff4c02;
    padding:6px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    z-index:2;
}

/* OVERLAY */
.blog-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,0.75),transparent);
    padding:20px;
    display:flex;
    align-items:flex-end;
}
.blog-overlay h3{
    color:#fff;
    font-size:18px;
}

/* PAGINATION */
/* .pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:40px;
}
.page-btn{
    padding:10px 16px;
    border-radius:12px;
    border:1px solid #d1d5db;
    cursor:pointer;
    background:#fff;
}
.page-btn.active{
    background:#ff4c02;
    color:#fff;
}

/* RESPONSIVE */
/* @media(max-width:768px){
    .filter-bar{
        flex-direction:column;
    }
}  */


.pagination-wrap {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    
}

.pagination li a {
    padding: 8px 14px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border-radius: 20px;

}

.pagination li.active a {
    background: #ff4c02;
    color: #fff;
    border-color: #ff4c02;
}

.pagination li.disabled a {
    opacity: .4;
    pointer-events: none;
}




.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* BLOG CARD */
.blog-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* IMAGE */
.blog-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
}
.blog-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.75);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 2;
}
.blog-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.2)
    );
}

.blog-overlay h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}
a {
    transition: color 0.3s ease;
}

button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .email-page-title {
        min-height: 360px;
    }

    .email-page-title h1 {
        font-size: 1.8rem;
    }

    .blog-card img {
        height: 200px;
    }
}


/* =====================================
   CATEGORY FILTER – MOBILE RESPONSIVE
===================================== */
@media (max-width: 768px) {

    /* Wrapper (navbar include) */
    .blog-navbar,
    .blog-filter,
    .filter-bar {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Search input full width */
    .blog-navbar input[type="text"],
    .blog-navbar .search,
    .filter-bar input {
        width: 100%;
    }

    /* Category list → horizontal scroll */
    .categories,
    .category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        scrollbar-width: none; /* Firefox */
    }

    .categories::-webkit-scrollbar,
    .category-list::-webkit-scrollbar {
        display: none; /* Chrome */
    }

    /* Category pill */
    .category {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 0.9rem;
    }

    /* Hide animation glitches on mobile */
    .category.hide {
        display: none !important;
    }

    /* More / Less button centered */
    #toggleBtn {
        align-self: center;
        font-size: 0.9rem;
    }
}
