/* ==========================================================================
   Blog Archive – "Elevate Your Journey" design
   ========================================================================== */

.ba-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.ba-hero {
    background: linear-gradient(180deg, #EBF3FA 0%, #F5F9FD 100%);
    padding: 72px 0 80px;
    text-align: center;
}

.ba-hero__title {
    font-size: clamp(1.875rem, 4vw, 2.625rem);
    font-weight: 700;
    color: #1A2B48;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ba-hero__subtitle {
    font-size: 0.9375rem;
    color: #6B7280;
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Search bar */
.ba-search {
    display: flex;
    align-items: center;
    max-width: 540px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px solid #DDE3ED;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ba-search:focus-within {
    border-color: #1A3A5C;
    box-shadow: 0 2px 12px rgba(26, 58, 92, 0.10);
}

.ba-search__wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    min-width: 0;
}

.ba-search__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #9CA3AF;
}

.ba-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: #1A2B48;
    padding: 6px 0;
    font-family: inherit;
}

.ba-search__input::placeholder {
    color: #9CA3AF;
}

.ba-search__btn {
    background: linear-gradient(135deg, #D4A21A, #C9901A);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 11px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: opacity 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.ba-search__btn:hover {
    opacity: 0.88;
    box-shadow: 0 4px 14px rgba(201, 144, 26, 0.35);
}

/* ==========================================================================
   Archive Section
   ========================================================================== */
.ba-archive {
    padding: 52px 0 88px;
    background: #ffffff;
}

/* ==========================================================================
   Category Tabs
   ========================================================================== */
.ba-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.ba-tab {
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #6B7280;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
    line-height: 1.4;
}

.ba-tab:hover {
    color: #1A2B48;
    border-color: #1A2B48;
}

.ba-tab.is-active {
    color: #1A2B48;
    border-color: #1A2B48;
    font-weight: 500;
}

/* ==========================================================================
   Section heading
   ========================================================================== */
.ba-section-title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #1A2B48;
    margin: 0 0 24px;
}

/* ==========================================================================
   Grid
   ========================================================================== */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: 100px;
    transition: opacity 0.2s ease;
}

/* ==========================================================================
   Card
   ========================================================================== */
.ba-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ba-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
}

/* Image wrapper */
.ba-card__img-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.ba-card__img-wrap a {
    display: block;
}

.ba-card__img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ba-card:hover .ba-card__img {
    transform: scale(1.04);
}

.ba-card__img--placeholder {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #e8edf5 0%, #d0dae8 100%);
    display: block;
}

/* Category badge */
.ba-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0D9488;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    line-height: 1.4;
    transition: background 0.18s ease;
    z-index: 1;
}

.ba-card__badge:hover {
    background: #0a7a70;
    color: #ffffff;
}

/* Card body */
.ba-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Meta row */
.ba-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #9CA3AF;
    flex-wrap: wrap;
}

.ba-sep {
    color: #C4CBD6;
}

/* Title */
.ba-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1A2B48;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.ba-card__title a {
    color: inherit;
    text-decoration: none;
}

.ba-card__title a:hover {
    color: #0D9488;
}

/* Excerpt */
.ba-card__excerpt {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* No posts */
.ba-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #6B7280;
    padding: 56px 0;
    font-size: 1rem;
}

/* Loading state */
.ba-grid--loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   Load More
   ========================================================================== */
.ba-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 52px;
}

.ba-load-more {
    background: transparent;
    border: 1.5px solid #1A2B48;
    border-radius: 50px;
    color: #1A2B48;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    padding: 12px 40px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ba-load-more:hover {
    background: #1A2B48;
    color: #ffffff;
}

.ba-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ba-hero {
        padding: 52px 0 60px;
    }

    .ba-archive {
        padding: 40px 0 64px;
    }

    .ba-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ba-tabs::-webkit-scrollbar {
        display: none;
    }

    .ba-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .ba-hero__title {
        font-size: 1.75rem;
    }

    .ba-search {
        flex-direction: column;
        border-radius: 14px;
        padding: 12px;
        align-items: stretch;
    }

    .ba-search__btn {
        text-align: center;
    }

    .ba-grid {
        grid-template-columns: 1fr;
    }
}
