/* HERO SECTION */
.blog-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    font-family: "Montserrat", sans-serif;
}

/* OVERLAY */
.blog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* CONTENT */
.blog-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.blog-content h1 {
    font-size: 56px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.blog-content p {
    font-size: 18px;
    color: #ddd;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .blog-content h1 {
        font-size: 36px;
    }

    .blog-content p {
        font-size: 16px;
    }

    .blog-hero {
        height: 50vh;
    }
}


/* BLOG SECTION */
.blog-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.blog-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* LEFT */
.blog-card {
    background: #fff;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.blog-img {
    position: relative;
}

.blog-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* TAG */
.blog-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #242424;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* CONTENT */
.blog-content-box {
    padding: 20px;
}

.blog-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.blog-content-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-content-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #dd9300;
    font-weight: 600;
    text-decoration: none;
}

/* SIDEBAR */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.category-header i {
    transition: 0.3s;
    display: none;
}

/* hide by default mobile e */
.category-list {
    transition: 0.3s ease;
}

.sidebar-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;

    /* soft shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    transition: 0.3s ease;
}

.sidebar-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}


.sidebar-box h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
}

.sidebar-box h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #d99100;
    border-radius: 2px;
}


/* SEARCH */
.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: #d99100;
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 145, 0, 0.1);
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #d99100;
    font-size: 14px;
}

/* CATEGORY */
.sidebar-box ul {
    list-style: none;
}

.sidebar-box ul li {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: 0.3s;
    cursor: pointer;
}

.sidebar-box ul li:hover {
    background: #f9f9f9;
    color: #d99100;
    transform: translateX(5px);
}

.category-list li.active {
    background: #d99100;
    color: #fff;
    font-weight: 500;
}

/* subtle divider remove */
.sidebar-box ul li {
    border-bottom: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* sidebar upore */
    .blog-wrapper {
        display: flex;
        flex-direction: column;
    }

    .blog-sidebar {
        order: -1;
        /* 🔥 sidebar upore */
    }

    /* dropdown hide */
    .category-list {
        max-height: 0;
        overflow: hidden;
    }

    /* active open */
    .category-box.active .category-list {
        max-height: 300px;
        margin-top: 10px;
    }

    /* rotate icon */
    .category-box.active .category-header i {
        transform: rotate(180deg);
    }

    .category-header i {

        display: block;
    }


}