/* ========================================================
   BLOG LISTING PAGE STYLES - BIRLA OPEN MINDS PRE-SCHOOL
   ======================================================== */

.blog-page-hero {
    background: linear-gradient(135deg, #fff7ea 0%, #ebf8ff 50%, #fef0f4 100%);
    padding: 60px 0 45px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0e6d6;
}

.blog-page-hero::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(246, 173, 85, 0.15);
    top: -60px;
    left: -40px;
    pointer-events: none;
}

.blog-page-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(66, 153, 225, 0.12);
    bottom: -80px;
    right: -50px;
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: #ffffff;
    color: #e65100;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.1);
    margin-bottom: 18px;
}

.blog-hero-title {
    font-family: "Solitreo", "Montserrat", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 14px;
    line-height: 1.25;
}

.blog-hero-title span {
    color: #f28b00;
    position: relative;
}

.blog-hero-subtitle {
    font-size: 16.5px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-breadcrumbs-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 20px;
    border-radius: 25px;
    font-size: 13.5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-breadcrumbs-nav a {
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumbs-nav a:hover {
    color: #f28b00;
}

.blog-breadcrumbs-nav span.sep {
    color: #a0aec0;
    font-size: 11px;
}

.blog-breadcrumbs-nav span.active {
    color: #718096;
    font-weight: 500;
}

/* ========================================================
   ATTRACTIVE FILTER & SEARCH HUB
   ======================================================== */

.blog-controls-section {
    padding: 35px 0 25px;
    background: #fcfbf7;
}

.blog-filter-hub {
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 12px 35px rgba(242, 139, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #f2e9dc;
}

/* Search Bar Row */
.blog-search-bar-row {
    max-width: 720px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1050;
}

.blog-search-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 5px 6px 5px 18px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    z-index: 1052;
}

.blog-search-box-wrap:focus-within,
.blog-search-box-wrap.dropdown-open {
    background: #ffffff;
    border-color: #f28b00;
    box-shadow: 0 8px 25px rgba(242, 139, 0, 0.15);
}

.blog-search-box-wrap.dropdown-open {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-color: #f3ebd8 !important;
}

.search-leading-icon {
    color: #f28b00;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.blog-search-input-modern {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #2d3748;
    padding: 8px 6px;
    outline: none;
    font-weight: 500;
}

.blog-search-input-modern::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.blog-search-clear-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 16px;
    cursor: pointer;
    padding: 0 8px;
    display: none;
    transition: color 0.2s;
}

.blog-search-clear-btn.visible {
    display: block;
}

.blog-search-clear-btn:hover {
    color: #e53e3e;
}

.blog-search-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #f28b00 0%, #ff5252 100%);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(242, 139, 0, 0.3);
    flex-shrink: 0;
}

.blog-search-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(242, 139, 0, 0.4);
    background: linear-gradient(135deg, #d97706 0%, #e53e3e 100%);
}

/* ========================================================
   YOUTUBE-STYLE SEARCH SUGGESTIONS DROPDOWN
   ======================================================== */

.blog-search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #f28b00;
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14), 0 6px 15px rgba(242, 139, 0, 0.08);
    z-index: 1051;
    overflow: hidden;
    margin-top: -2px;
    animation: dropDownSlideFade 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 420px;
    overflow-y: auto;
}

@keyframes dropDownSlideFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sugg-cat-row {
    padding: 8px 16px;
    background: #fffdfa;
    border-bottom: 1px solid #f3ebe0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sugg-cat-label {
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sugg-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 12px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sugg-cat-pill:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

.yt-sugg-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.yt-sugg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
    position: relative;
}

.yt-sugg-item:hover,
.yt-sugg-item.active {
    background: #f8fafc;
}

.yt-sugg-item:hover .yt-sugg-icon,
.yt-sugg-item.active .yt-sugg-icon {
    color: #f28b00;
}

.yt-sugg-icon {
    color: #94a3b8;
    font-size: 14px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.yt-sugg-main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yt-sugg-title {
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-sugg-title mark {
    background: transparent;
    color: #f28b00;
    font-weight: 800;
    padding: 0;
}

.yt-sugg-cat-badge {
    background: #edf2f7;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.yt-sugg-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.yt-sugg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-sugg-action-btn {
    color: #cbd5e1;
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.yt-sugg-item:hover .yt-sugg-action-btn,
.yt-sugg-item.active .yt-sugg-action-btn {
    color: #ffffff;
    background: #f28b00;
    transform: translateX(2px);
}

.yt-sugg-footer {
    padding: 8px 18px 10px;
    border-top: 1px solid #f1f5f9;
    background: #fafaf9;
}

.yt-sugg-viewall {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.yt-sugg-viewall:hover {
    background: #f1f5f9;
    color: #f28b00;
}

.yt-sugg-viewall i.fa-search {
    color: #f28b00;
    font-size: 13px;
}

.sugg-empty-state {
    padding: 24px 18px;
    text-align: center;
    color: #64748b;
}

.sugg-empty-icon {
    font-size: 24px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.sugg-empty-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 3px;
}

.sugg-empty-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.sugg-loading-state {
    padding: 18px;
    text-align: center;
    color: #f28b00;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Category Pills Row */
.blog-categories-container {
    border-top: 1px dashed #e9edf2;
    padding-top: 20px;
}

.blog-categories-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.blog-cat-pill-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5568;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none !important;
}

.blog-cat-pill-modern .cat-pill-icon {
    font-size: 13px;
    color: #718096;
    transition: color 0.2s;
}

.blog-cat-pill-modern:hover {
    background: #fff8ef;
    border-color: #fbd38d;
    color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 139, 0, 0.12);
}

.blog-cat-pill-modern:hover .cat-pill-icon {
    color: #f28b00;
}

.blog-cat-pill-modern.active {
    background: linear-gradient(135deg, #f28b00 0%, #ff5252 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(242, 139, 0, 0.35);
    transform: translateY(-2px);
}

.blog-cat-pill-modern.active .cat-pill-icon {
    color: #ffffff;
}

.cat-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    transition: background 0.2s;
}

.blog-cat-pill-modern.active .cat-pill-count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* ========================================================
   BLOG CARD GRID
   ======================================================== */

.blog-grid-section {
    padding: 40px 0 70px;
    background: #fcfbf7;
    min-height: 480px;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1ece1;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 36px rgba(242, 139, 0, 0.12);
    border-color: #fbd38d;
}

.blog-card-media {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #edf2f7;
}

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

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

.blog-card-overlay-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.blog-tag-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.95);
    color: #e65100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.blog-card-featured-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #ffb703;
    color: #1f2937;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: #718096;
    margin-bottom: 12px;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-meta i {
    color: #f28b00;
}

.blog-card-title {
    font-family: "Montserrat", "Poppins", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a:hover {
    color: #f28b00;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-footer {
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.blog-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #f28b00;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-read-more-btn i {
    transition: transform 0.2s ease;
}

.blog-read-more-btn:hover {
    color: #c05621;
    text-decoration: none;
}

.blog-read-more-btn:hover i {
    transform: translateX(4px);
}

.blog-reading-time {
    font-size: 12px;
    color: #a0aec0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========================================================
   PAGINATION
   ======================================================== */

.blog-pagination-wrapper {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.blog-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination li a,
.blog-pagination li button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.blog-pagination li a:hover,
.blog-pagination li button:hover {
    background: #fffaf0;
    color: #f28b00;
    border-color: #fbd38d;
    transform: translateY(-2px);
}

.blog-pagination li.active a,
.blog-pagination li.active button,
.blog-pagination li a.active {
    background: linear-gradient(135deg, #f28b00 0%, #ff5252 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(242, 139, 0, 0.3);
}

.blog-pagination li.disabled a,
.blog-pagination li.disabled button {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================================
   EMPTY STATE & SKELETON
   ======================================================== */

.blog-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px dashed #cbd5e0;
    max-width: 580px;
    margin: 30px auto;
}

.blog-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fffaf0;
    color: #f28b00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 20px;
}

.blog-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.blog-empty-desc {
    font-size: 15px;
    color: #718096;
    margin-bottom: 22px;
}

.blog-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f28b00;
    color: #ffffff;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none !important;
}

.blog-reset-btn:hover {
    background: #d97706;
    color: #ffffff;
    transform: translateY(-2px);
}

.blog-loader-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    width: 100%;
}

.blog-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f28b00;
    border-radius: 50%;
    animation: blogSpin 0.9s linear infinite;
}

@keyframes blogSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 28px;
    }
    .blog-hero-subtitle {
        font-size: 14.5px;
    }
    .blog-page-hero {
        padding: 40px 0 30px;
    }
    .blog-filter-hub {
        padding: 20px 16px;
    }
    .blog-search-box-wrap {
        padding: 4px 4px 4px 14px;
    }
    .blog-search-action-btn span {
        display: none;
    }
    .blog-search-action-btn {
        padding: 10px 14px;
    }
    .blog-categories-pills-row {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .blog-cat-pill-modern {
        flex-shrink: 0;
    }
    .blog-card-media {
        height: 200px;
    }
    .blog-search-suggestions-dropdown {
        border-radius: 0 0 18px 18px;
        max-height: 360px;
    }
    .yt-sugg-item {
        padding: 9px 14px;
        gap: 10px;
    }
    .yt-sugg-thumb {
        width: 34px;
        height: 34px;
        border-radius: 6px;
    }
    .yt-sugg-title {
        font-size: 13.5px;
    }
    .yt-sugg-cat-badge {
        font-size: 10px;
        padding: 1px 5px;
    }
    .sugg-cat-row {
        padding: 6px 12px;
    }
}
