/* ─────────────────────────────────────────────
   Blog Page CSS
   ───────────────────────────────────────────── */

.blog-page-main {
    background: #ffffff;
    min-height: 80vh;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ── Banner Header & Search ── */
.blog-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.blog-banner-title {
    font-size: 38px;
    font-weight: 700;
    color: #4D3766 !important;
    margin: 0;
    text-transform: capitalize;
}

.blog-banner-search {
    display: flex;
    align-items: center;
    max-width: 480px;
    width: 100%;
}

.blog-search-input-wrapper {
    position: relative;
    flex: 1;
}

.blog-banner-search .uk-input {
    height: 42px;
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 20px 0 0 20px;
    background: #fff;
    color: #333 !important;
    padding: 0 20px;
    font-size: 14px;
    box-sizing: border-box;
}

.blog-banner-search .uk-input:focus {
    border-color: #4D3766 !important;
    background: #fff;
}

.blog-banner-search .uk-button {
    height: 42px;
    background: #fed305;
    color: #4D3766 !important;
    font-weight: 700;
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 0 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.blog-banner-search .uk-button:hover {
    background: #ffe338;
}

/* ── Live Search Dropdown Suggestions ── */
.blog-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e1ddec;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(77, 55, 102, 0.12);
    margin-top: 2px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 999;
}

.blog-search-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.blog-search-suggestions-list li {
    margin: 0;
}

.blog-search-suggestions-list li a {
    display: block;
    padding: 10px 20px;
    color: #4D3766;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
}

.blog-search-suggestions-list li a:hover {
    background: #f4f2f7;
    color: #2b1840;
}

.blog-search-no-results {
    padding: 15px 20px;
    color: rgba(77, 55, 102, 0.6);
    font-size: 13px;
    text-align: center;
}

/* ── Grid Container ── */
.blog-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* ── Cards General ── */
.blog-card-large,
.blog-card-small {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-card-large a,
.blog-card-small a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.blog-card-img {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Big Card Dimensions */
.blog-card-large {
    aspect-ratio: 16 / 10.7;
}

.blog-card-large .blog-card-img {
    height: 100%;
}

/* Small Card Dimensions */
.blog-card-small {
    aspect-ratio: 16 / 9;
    flex: 1;
}

.blog-card-small .blog-card-img {
    height: 100%;
}

/* Date Badge Overlay */
.blog-card-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(77, 55, 102, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Text Overlay Styling */
.blog-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 40px 24px 24px;
    z-index: 1;
}

.blog-card-small .blog-card-overlay {
    padding: 30px 18px 18px;
}

.blog-card-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.blog-card-small .blog-card-title {
    font-size: 16px;
    line-height: 1.4;
}

/* ── Responsive styling ── */
@media (max-width: 959px) {
    .blog-banner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-banner-search {
        max-width: 100%;
    }

    .blog-sidebar-stack {
        flex-direction: row;
        margin-top: 20px;
    }

    .blog-card-small {
        flex: 1;
    }
}

@media (max-width: 639px) {
    .blog-sidebar-stack {
        flex-direction: column;
    }

    .blog-card-title {
        font-size: 18px;
    }

    .blog-card-small .blog-card-title {
        font-size: 14px;
    }
}

/* ── Blog Grid & Category Filter Section ── */
.blog-posts-grid-section {
    padding: 60px 0 0px;
    background: #ffffff;
}

.blog-category-filter-wrap {
    margin-bottom: 30px;
}

.blog-cat-filter-btn {
    background: #4D3766;
    color: #ffffff !important;
    border-radius: 24px;
    padding: 0 24px;
    height: 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(77, 55, 102, 0.15);
    /* transition: background 0.2s ease, transform 0.2s ease; */
    min-width: 220px;
}

/* .blog-cat-filter-btn:hover {
    background: #3c2a50;
    transform: translateY(-1px);
} */

.blog-cat-dropdown {
    background: #ffffff !important;
    border: 1px solid #e1ddec;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(77, 55, 102, 0.12) !important;
    padding: 8px 0 !important;
    min-width: 180px;
}

.blog-cat-dropdown .uk-nav {
    padding: 0;
}

.blog-cat-dropdown .uk-dropdown-nav a {
    color: #4D3766 !important;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    transition: background 0.15s ease, color 0.15s ease;
}

.blog-cat-dropdown .uk-dropdown-nav a:hover,
.blog-cat-dropdown .uk-dropdown-nav a.uk-active {
    background: #f4f2f7;
    color: #2b1840 !important;
}

/* See More CTA Button */
.blog-load-more-btn {
    background: #FED305;
    color: #4D3766;
    border-radius: 999px;
    border: none;
    padding: 0 32px;
    font-weight: 600;
    line-height: 40px;
    text-transform: none;
    font-size: 16px;
    /* transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; */
}

.blog-load-more-btn:hover:not(:disabled) {
    background: #fed305;
    /* transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(254, 211, 5, 0.5); */
}

.blog-load-more-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.blog-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}