/* ============================================================
   BTT Front Page
   Featured grid, accessible latest articles, reviews
   ============================================================ */

.btt-homepage {
    background: #f8fafc;
    color: #0f172a;
}

/* ------------------------------------------------------------
   Featured Grid
   ------------------------------------------------------------ */

.btt-featured-grid-section {
    background: #fff;
    padding: 8px 0 18px;
}

.btt-featured-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 8px;
}

.btt-featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #111827;
    min-height: 220px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btt-featured-card--large {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
    min-height: 520px;
}

.btt-featured-card--one {
    grid-column: 7 / span 3;
    grid-row: 1;
}

.btt-featured-card--two {
    grid-column: 10 / span 3;
    grid-row: 1;
}

.btt-featured-card--three {
    grid-column: 7 / span 3;
    grid-row: 2;
}

.btt-featured-card--four {
    grid-column: 10 / span 3;
    grid-row: 2;
}

.btt-featured-card__link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.btt-featured-card__media {
    position: absolute;
    inset: 0;
}

.btt-featured-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.03) 0%, rgba(2, 6, 23, 0.72) 100%);
    pointer-events: none;
}

.btt-featured-card__image,
.btt-featured-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.btt-featured-card:hover .btt-featured-card__image {
    transform: scale(1.04);
}

.btt-featured-card__placeholder {
    display: grid;
    place-items: center;
    font-size: 56px;
    color: #94a3b8;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.btt-featured-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02) 0%, rgba(2, 6, 23, 0.88) 100%);
}

.btt-featured-card--large .btt-featured-card__overlay {
    padding: 30px;
}

.btt-featured-card__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.btt-featured-card__title {
    margin: 0;
    color: #fff;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.btt-featured-card--large .btt-featured-card__title {
    font-size: clamp(28px, 3.8vw, 58px);
    max-width: 92%;
}

.btt-featured-card--one .btt-featured-card__title,
.btt-featured-card--two .btt-featured-card__title,
.btt-featured-card--three .btt-featured-card__title,
.btt-featured-card--four .btt-featured-card__title {
    font-size: clamp(18px, 1.6vw, 26px);
    max-width: 96%;
}

.btt-featured-card__meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.btt-featured-empty {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    color: #64748b;
}

/* ------------------------------------------------------------
   Shared sections
   ------------------------------------------------------------ */

.btt-home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 24px 44px;
}

.btt-latest-section {
    background: #f8fafc;
}

.btt-reviews-hero {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.btt-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.btt-section-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.03em;
}

.btt-section-title span {
    color: #2563eb;
}

.btt-section-link {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .18s ease, color .18s ease;
}

.btt-section-link:hover {
    gap: 9px;
    color: #1d4ed8;
}

/* ------------------------------------------------------------
   Latest Articles – accessible editorial cards
   ------------------------------------------------------------ */

.btt-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.btt-latest-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.btt-latest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 38px -16px rgba(15, 23, 42, 0.16);
    border-color: #bfdbfe;
}

.btt-latest-link {
    text-decoration: none;
    display: block;
    color: inherit;
    height: 100%;
}

.btt-latest-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    overflow: hidden;
}

.btt-latest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.btt-latest-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 42px;
    color: #94a3b8;
}

.btt-latest-body {
    padding: 20px 20px 22px;
}

.btt-latest-topic {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    margin-bottom: 10px;
}

.btt-latest-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.33;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.btt-latest-excerpt {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btt-latest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 12px;
    color: #64748b;
}

.btt-latest-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.btt-latest-empty {
    color: #64748b;
    padding: 20px 0;
}

.btt-load-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.btt-load-more-btn {
    background: transparent;
    border: 1px solid #2563eb;
    color: #2563eb;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 34px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btt-load-more-btn:hover {
    transform: translateY(-1px);
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btt-load-more-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ------------------------------------------------------------
   Reviews – accessible editorial cards
   ------------------------------------------------------------ */

.btt-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.btt-review-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.btt-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 38px -16px rgba(15, 23, 42, 0.16);
    border-color: #bfdbfe;
}

.btt-review-link {
    text-decoration: none;
    display: block;
    color: inherit;
    height: 100%;
}

.btt-review-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    overflow: hidden;
}

.btt-review-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.btt-review-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 42px;
    color: #94a3b8;
}

.btt-review-body {
    padding: 20px 20px 22px;
}

.btt-review-category {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    margin-bottom: 10px;
}

.btt-review-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.33;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.btt-review-excerpt {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btt-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 12px;
    color: #64748b;
}

.btt-review-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.btt-review-empty {
    color: #64748b;
    padding: 20px 0;
}

.btt-review-meta a {
    color: #2563eb;
    text-decoration: none;
}

.btt-review-meta a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
    .btt-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .btt-featured-card--large,
    .btt-featured-card--one,
    .btt-featured-card--two,
    .btt-featured-card--three,
    .btt-featured-card--four {
        grid-column: auto;
        grid-row: auto;
        min-height: 260px;
    }

    .btt-featured-card--large {
        min-height: 420px;
    }

    .btt-featured-card__title {
        max-width: 100%;
    }

    .btt-latest-grid,
    .btt-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .btt-featured-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .btt-featured-card--large,
    .btt-featured-card--one,
    .btt-featured-card--two,
    .btt-featured-card--three,
    .btt-featured-card--four {
        grid-column: auto;
        grid-row: auto;
        min-height: 260px;
    }

    .btt-featured-card--large {
        min-height: 340px;
    }

    .btt-featured-card__overlay {
        padding: 18px;
    }

    .btt-featured-card--large .btt-featured-card__overlay {
        padding: 20px;
    }

    .btt-featured-card--large .btt-featured-card__title {
        font-size: 26px;
    }

    .btt-featured-card__title {
        font-size: 20px;
    }

    .btt-home-section {
        padding: 28px 16px 34px;
    }

    .btt-section-title {
        font-size: 22px;
    }

    .btt-latest-grid,
    .btt-reviews-grid {
        grid-template-columns: 1fr;
    }

    .btt-latest-body,
    .btt-review-body {
        padding: 18px 16px 20px;
    }

    .btt-latest-title,
    .btt-review-title {
        font-size: 18px;
    }
}