/* ============================================================
   Blog Hub 2025
   Shared template for Blog, Podcast, Events hub pages
   ============================================================ */

/* ---- Container ---- */
.blog-hub__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 568px) {
    .blog-hub__container {
        padding: 0 25px;
    }
}

@media (min-width: 1260px) {
    .blog-hub__container {
        padding: 0;
    }
}


/* ============================================================
   Hero
   ============================================================ */
.blog-hub__hero {
    padding: 40px 0 0;
}

.blog-hub__hero-title {
    font-weight: 600;
    font-size: 36px;
    line-height: 1.15;
    color: #101323;
    margin: 0 0 10px;
}

.blog-hub__hero-subtitle {
    font-family: Manrope;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

@media (min-width: 768px) {
    .blog-hub__hero {
        padding: 56px 0 0;
    }
    .blog-hub__hero-title {
        font-size: 48px;
    }
    .blog-hub__hero-subtitle {
        font-size: 20px;

    }
}


/* ============================================================
   Featured Post
   ============================================================ */
.blog-hub__featured {
    padding: 20px 0 0!important;
}

.blog-hub__featured-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .blog-hub__featured-inner {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Image column */
.blog-hub__featured-image-wrap {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    flex: 1 1 58%;
    min-height: 280px;
}

@media (min-width: 768px) {
    .blog-hub__featured-image-wrap {
        min-height: 380px;
    }
}

.blog-hub__featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hub__featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 24px 24px;
    background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-hub__featured-overlay-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

@media (min-width: 768px) {
    .blog-hub__featured-overlay-title {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .blog-hub__featured-overlay-title {
        font-size: 28px;
        line-height: 1.25;
    }
}

.blog-hub__featured-overlay-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,.85);
}

.blog-hub__featured-overlay-tag {
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 13px;
}

/* Content column */
.blog-hub__featured-content {
    flex: 1 1 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}


.blog-hub__featured-content-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    color: #101323;
    margin: 0 0 16px;
}

.blog-hub__featured-content-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.blog-hub__featured-content-title a:hover {
    color: #4169E1;
}

@media (min-width: 1024px) {
    .blog-hub__featured-content-title {
        font-size: 24px;
    }
}

.blog-hub__featured-content-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-hub__featured-content-excerpt p {
    margin: 0;
}


/* ============================================================
   Buttons
   ============================================================ */
.blog-hub__btn {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
    border-radius: 99px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.blog-hub__btn--primary {
    background: #101323;
    color: #fff;
    border: 1px solid #101323;
}

.blog-hub__btn--primary:hover {
    background: #293056;
    border-color: #293056;
    color: #fff;
}

.blog-hub__btn--outline {
    background: transparent;
    color: #101323;
    border: 1px solid #D0D5DD;
    border-radius: 100px;
}

.blog-hub__btn--outline:hover {
    background: #101323;
    color: #fff;
    border-color: #101323;
}


/* ============================================================
   Category Tabs
   ============================================================ */
.blog-hub__tabs {
    padding: 40px 0 0;
}

@media (min-width: 1024px) {
    .blog-hub__tabs {
        padding: 56px 0 0;
    }
}

.blog-hub__tabs-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid #EAECF5;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .blog-hub__tabs-inner {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
}

.blog-hub__tabs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

@media (min-width: 768px) {
    .blog-hub__tabs-list {
        display: flex;
        align-items: center;
        gap: 0;
        flex-grow: 1;
    }
}

.blog-hub__tabs-list li {
    margin: 0;
}

.blog-hub__tabs-list li a {
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    color: #667085;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}

.blog-hub__tabs-list li a:hover {
    color: #101323;
}

.blog-hub__tabs-list li.current-menu-item a,
.blog-hub__tabs-list li.current_page_item a {
    color: #101323;
    font-weight: 600;
    border-bottom-color: #101323;
}

/* Search in tabs row */
.blog-hub__tabs-search {
    flex-shrink: 0;
}

.blog-hub__tabs-search form {
    position: relative;
}

.blog-hub__tabs-search input[type="text"] {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #101323;
    height: 44px;
    padding: 10px 40px 10px 16px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    background: #fff;
    outline: none;
    min-width: 220px;
    width: 100%;
    transition: border-color .2s;
}

.blog-hub__tabs-search input[type="text"]:focus {
    border-color: #4169E1;
}

.blog-hub__tabs-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* Mobile select fallback */
.blog-hub__tabs-mobile-select {
    position: relative;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .blog-hub__tabs-mobile-select {
        display: none;
    }
}

.blog-hub__tabs-mobile-select select {
    width: 100%;
    display: block;
    margin: 0;
    padding: 10px 40px 10px 16px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #101323;
    height: 44px;
    background: #fff;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.blog-hub__tabs-mobile-select svg {
    position: absolute;
    right: 14px;
    pointer-events: none;
}


/* ============================================================
   Post Grid
   ============================================================ */
.blog-hub__grid-section {
    padding: 32px 0 0;
}

@media (min-width: 768px) {
    .blog-hub__grid-section {
        padding: 40px 0 0;
    }
}

.blog-hub__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 568px) {
    .blog-hub__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .blog-hub__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Post Card */
.blog-hub__card {
    background: #fff;
    overflow: hidden;
    border: 1px solid #EAECF5;
    transition: box-shadow .25s, transform .25s;
}

.blog-hub__card:hover {
    box-shadow: 0 4px 16px rgba(16, 19, 35, .08);
    transform: translateY(-2px);
}

.blog-hub__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-hub__card-image {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
    background: #F2F4F7;
}

.blog-hub__card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.blog-hub__card-image-placeholder {
    position: absolute;
    inset: 0;
    background: #E4E7EC;
}

.blog-hub__card-body {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-hub__card-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #101323;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-hub__card-title {
        font-size: 16px;
    }
}

.blog-hub__card-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #667085;
    margin-top: 12px;
    flex-wrap: wrap;
}

.blog-hub__card-meta-dot {
    margin: 0 6px;
}


/* ============================================================
   Pagination (uses WP paginate_links output)
   ============================================================ */
.blog-hub__pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    padding: 32px 0 0;
}

@media (min-width: 768px) {
    .blog-hub__pagination {
        padding: 40px 0 0;
    }
}

.blog-hub__pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #293056;
    text-decoration: none;
    transition: background-color .2s, color .2s;
    padding: 0 !important;
    margin: 0 !important;
    background: none;
    border: none;
    min-width: auto;
}

.blog-hub__pagination .page-numbers:hover {
    background: #F2F4F7;
}

.blog-hub__pagination .page-numbers.current {
    background: #101323;
    color: #fff;
}

.blog-hub__pagination .page-numbers.dots {
    pointer-events: none;
    background: none;
}

.blog-hub__pagination .page-numbers.prev,
.blog-hub__pagination .page-numbers.next {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 0 !important;
}

.blog-hub__pagination .page-numbers.prev:hover,
.blog-hub__pagination .page-numbers.next:hover {
    background: #101323;
    border-color: #101323;
}

.blog-hub__pagination .page-numbers.prev:hover svg path,
.blog-hub__pagination .page-numbers.next:hover svg path {
    fill: #fff;
}

.blog-hub__pagination .page-numbers.prev {
    margin-right: 8px;
}

.blog-hub__pagination .page-numbers.next {
    margin-left: 8px;
}

.blog-hub__no-posts {
    text-align: center;
    padding: 60px 0;
    color: #667085;
    font-size: 16px;
}


/* ============================================================
   Promo Cards
   ============================================================ */
.blog-hub__promos {
    padding: 0 0 40px!important;
}


.blog-hub__promos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .blog-hub__promos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.blog-hub__promo-card {
    display: flex;
    flex-direction: column;
}

.blog-hub__promo-card-image {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-hub__promo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hub__promo-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-hub__promo-card-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: #101323;
    margin: 0 0 8px;
}

.blog-hub__promo-card-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.55;
    color: #3E4784;
    margin: 0 0 20px;
    flex-grow: 1;
}

.blog-hub__promo-card .blog-hub__btn--outline {
    align-self: flex-end;
    background: #101323;
    color: #fff;
    border-color: #101323;
}

.blog-hub__promo-card .blog-hub__btn--outline:hover {
    background: #293056;
    border-color: #293056;
}


/* ============================================================
   Content area (for Gutenberg blocks like CTA banner)
   ============================================================ */
.blog-hub > .entry-content,
.blog-hub > .wp-block-group,
.blog-hub > section:last-of-type {
    margin-top: 0;
}

.blog-hub .cta-banner-section {
    margin-top: 64px;
}

@media (min-width: 768px) {
    .blog-hub .cta-banner-section {
        margin-top: 80px;
    }
}


/* ============================================================
   Spacing adjustments for page without featured section
   (e.g. Podcast page)
   ============================================================ */
.blog-hub__hero + .blog-hub__tabs {
    padding-top: 32px;
}

.blog-hub__hero + .blog-hub__grid-section {
    padding-top: 40px;
}

@media (min-width: 768px) {
    .blog-hub__hero + .blog-hub__tabs {
        padding-top: 48px;
    }
    .blog-hub__hero + .blog-hub__grid-section {
        padding-top: 56px;
    }
}
