/* Blog Hero Section */
.page-breadcrum {
    background-image: linear-gradient(rgba(25, 41, 61, 0.7), rgba(25, 41, 61, 0.7)), url('../img/blog_breadcrumb_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-breadcrum h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
}

.page-breadcrum p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-bar {
    display: flex;
    flex-direction: row;
    /* ALWAYS row – never column */
    align-items: stretch;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    /* prevents overflow on small screens */
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
    border-left: 1px solid #eee;
    background: #fafafa;
    display: flex;
    align-items: center;
}

.category-toggle {
    border: none;
    background: transparent;
    padding: 0 20px;
    height: 100%;
    color: #666;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-toggle:hover {
    color: #F2930E;
}

.dropdown-menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.category-dropdown.open .dropdown-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-list li {
    padding: 12px 25px;
    color: #444;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-menu-list li:hover {
    background: rgba(242, 147, 14, 0.05);
    color: #F2930E;
    padding-left: 30px;
}

/* Search Button */
.search-bar .search-btn {
    flex-shrink: 0;
    background: #F2930E;
    color: #fff;
    border: none;
    padding: 0 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar .search-btn:hover {
    background: #d9850d;
}

/* Blog Filters */
.blog-filters {
    padding: 40px 0 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 5px;
    background: #f0f4f8;
    color: #19293d;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #F2930E;
    color: #fff;
}

/* Blog Cards */
.blog-grid {
    padding-bottom: 80px;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    display: block;
}

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

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    color: #F2930E;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #19293D;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title:hover {
    color: #F2930E;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

.blog-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blog Details Page */
.post-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.post-category-tag {
    background: #F2930E;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.post-meta-bottom {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.9rem;
    color: #6c757d;
}

.post-meta-bottom span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-content-area {
    padding: 60px 0;
    background: #fff;
}

.post-main-img {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-main-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.blogDetails {
    display: block;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5a6a;
}

.article-content h2,
.article-content h3 {
    color: #19293D;
    margin: 40px 0 20px;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content blockquote {
    border-left: 4px solid #F2930E;
    padding: 20px 30px;
    background: #fdf8f0;
    font-style: italic;
    font-size: 1.2rem;
    margin: 40px 0;
    color: #19293D;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #f0f4f8;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #19293D;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F2930E;
    display: inline-block;
}

.author-box {
    text-align: center;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
}

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

.author-name {
    font-weight: 700;
    color: #19293D;
    display: block;
    margin-bottom: 5px;
}

.author-bio {
    font-size: 0.9rem;
    color: #6c757d;
}

.share-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: #19293D;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #F2930E;
    color: #fff;
}

.related-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.related-post-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-info h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-info h4 a {
    color: #19293D;
}

.related-post-info h4 a:hover {
    color: #F2930E;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 992px) {
    .blog-sidebar {
        margin-top: 40px;
        position: static;
    }
}

@media (max-width: 768px) {
    .page-breadcrum {
        padding: 60px 0 50px;
    }

    .page-breadcrum h1 {
        font-size: 2.2rem;
    }

    .page-breadcrum p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* search bar stays as single row */
    .search-bar {
        border-radius: 8px;
    }

    .search-bar input {
        padding: 13px 16px;
    }

    .search-bar .search-btn {
        padding: 0 22px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .search-bar {
        border-radius: 10px;
    }

    .search-bar input {
        padding: 12px 14px;
        font-size: 0.92rem;
    }

    .search-bar .search-btn {
        padding: 0 18px;
        font-size: 1.05rem;
        border-radius: 0 10px 10px 0;
    }
}