/* ========== Blog List — Editorial Layout ========== */

/* Hero */
.bl-hero { position: relative; overflow: hidden; }
.bl-hero__bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&h=700&fit=crop') center/cover no-repeat;
}
.bl-hero__overlay {
    position: relative;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    padding: 100px 0 80px;
    text-align: center;
}
.bl-hero__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #c18a2b;
    font-style: normal;
    margin-bottom: 10px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-shadow: 0 1px 10px rgba(13, 27, 42, 0.55), 0 0 18px rgba(0, 0, 0, 0.25);
}
.bl-hero__title {
    font-size: clamp(1.8rem, 4.4vw, 3.6rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 10px;
    font-family: "Newsreader", Georgia, serif !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.bl-hero__sub {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* Search at bottom of hero */
.bl-search-wrap {
    position: relative;
    margin-top: -26px;
    z-index: 10;
    padding: 0 16px;
}
.bl-search {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,0,0,0.14);
    align-items: center;
    border: 1px solid #e2e8f0;
}
.bl-search__icon { padding: 0 0 0 20px; color: #4a5568; font-size: 1.1rem; flex-shrink:0; }
.bl-search__input { flex:1; border:none; padding: 15px 14px; font-size: 0.9rem; outline:none; background: transparent; }
.bl-search__btn {
    background: transparent; color:#1e3a53; border:none; border-left: 1px solid #e2e8f0;
    padding: 15px 22px; font-weight: 700; font-size: 0.85rem; cursor:pointer;
    transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.bl-search__btn:hover { background: #f0f9ff; color: #1e3a53; }

/* Breadcrumb */
.bl-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    color: #4a5568;
}
.bl-breadcrumb a { color: #3d4f5f; text-decoration: none; white-space: nowrap; }
.bl-breadcrumb a:hover { color: #1e3a53; }
.bl-breadcrumb i { font-size: 0.6rem; color: #64748b; }
.bl-breadcrumb span {
    color: #1e3a53;
    font-weight: 600;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    flex: 1 1 12rem;
    min-width: 0;
    line-height: 1.4;
}

/* Tabs */
body.page-blog {
    --home-header-h: 88px;
}

body.page-blog > header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    width: 100%;
    background: #f4efe6;
    box-shadow: 0 1px 0 rgba(15, 42, 68, 0.08);
}

body.page-blog > header .navbar.nav-default {
    position: static;
    top: auto;
    z-index: auto;
    background: #f4efe6 !important;
    background-color: #f4efe6 !important;
    box-shadow: none;
}

body.page-blog.is-scrolled > header {
    box-shadow: 0 8px 8px -4px rgba(0, 0, 0, 0.1);
}

.bl-tabs-wrap {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    position: relative;
    z-index: 200;
    overflow: visible;
}

body.page-blog .bl-tabs-wrap.is-tabs-pinned {
    position: fixed;
    top: var(--home-header-h, 88px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
}

.bl-tabs-placeholder {
    display: block;
    height: 0;
    pointer-events: none;
}
.bl-tabs-wrap .container { display:flex; align-items:center; justify-content:center; }
.bl-tabs {
    display:flex;
    gap:0;
    list-style:none;
    padding:0;
    margin:0;
    overflow-x:auto;
    flex:1;
    justify-content:center;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bl-tabs::-webkit-scrollbar { display: none; }
.bl-tab {
    display:flex; align-items:center; gap:5px; padding: 14px 18px;
    font-size: 0.9rem; font-weight: 700; color: #3d4f5f;
    text-decoration:none; border-bottom: 3px solid transparent;
    white-space: nowrap; transition: all 0.2s;
    text-transform: uppercase; letter-spacing: 0.04em;
    flex: 0 0 auto;
}
.bl-tab:hover { color:#1e3a53; }
.bl-tab.active { color:#1e3a53; border-bottom-color:#1e3a53; }
.bl-tab i { font-size: 0.95rem; }

/* Content area */
.bl-content { padding: 40px 0 70px; background: #f6f1e8; }

/* Featured Card */
.bl-featured {
    display:block; text-decoration:none; color:inherit;
    border-radius: 16px; overflow:hidden; background:#fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: box-shadow 0.2s, transform 0.2s;
}
.bl-featured:hover { box-shadow: 0 8px 32px rgba(13,107,138,0.12); transform: translateY(-3px); }
.bl-featured__img { position:relative; aspect-ratio: 2/1; overflow:hidden; }
.bl-featured__img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.bl-featured:hover .bl-featured__img img { transform: scale(1.03); }
.bl-featured__badge { position:absolute; top:14px; left:14px; background:#c18a2b; color:#fff; font-size:0.68rem; font-weight:700; text-transform:uppercase; padding:3px 10px; border-radius:4px; letter-spacing:0.5px; }
.bl-featured__body { padding: 20px 22px; }
.bl-featured__title {
    font-size: 1.5rem !important;
    font-weight: 500;
    font-family: "Newsreader", Georgia, serif;
    color: #1e3a53;
    margin: 0 0 8px;
    line-height: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: normal;
    word-break: break-word;
}
.bl-featured__title a {
    color: inherit;
    font-size: inherit;
}
.bl-featured__desc { font-size:0.95rem; color:#3d4f5f; line-height:1.65; margin:0 0 12px; }
.bl-featured__meta { font-size:0.8125rem; color:#4a5568; display:flex; gap:14px; flex-wrap: wrap; align-items: center; }
.bl-featured__meta i { color:#1e3a53; }

/* Card Grid */
.bl-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bl-grid--2 { grid-template-columns: repeat(2, 1fr) !important; }
.bl-grid--3 { grid-template-columns: repeat(3, 1fr); }

.bl-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f4f8;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bl-card:hover { box-shadow: 0 6px 20px rgba(13,107,138,0.1); transform: translateY(-3px); }
.bl-card__img { position:relative; aspect-ratio: 16/9; overflow:hidden; flex-shrink: 0; }
.bl-card__img--square { aspect-ratio: 1; }
.bl-card__img img { width:100%; height:100%; object-fit:cover; transition: transform 0.3s; }
.bl-card:hover .bl-card__img img { transform: scale(1.05); }
.bl-card__badge { position:absolute; top:10px; left:10px; background:#c18a2b; color:#fff; font-size:0.62rem; font-weight:700; text-transform:uppercase; padding:2px 8px; border-radius:3px; }
.bl-card__badge--teal { background:#1e3a53; }
.bl-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.bl-card__title {
    font-size: 1.5rem !important;
    font-weight: 500;
    font-family: 'Newsreader', Georgia, serif;
    color: #1e3a53;
    margin: 0 0 6px;
    line-height: normal;
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: normal;
    word-break: break-word;
}
.bl-card__desc { font-size:0.875rem; color:#3d4f5f; line-height:1.6; margin:0 0 8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bl-card__meta { font-size:0.75rem; color:#4a5568; display:flex; gap:10px; margin-top: auto; flex-wrap: wrap; align-items: center; }
.bl-card__meta i { color:#1e3a53; }
.bl-card__title a {
    color: inherit;
    font-size: 1.35rem !important;
}

.blog-author-by { color: #4a5568; }
.blog-author-by__link {
    color: #1e3a53 !important;
    font-weight: 600;
    text-decoration: none !important;
}
.blog-author-by__link:hover {
    color: #1e3a53 !important;
    text-decoration: underline !important;
}

/* Pills */
.bl-pills { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-bottom:28px; }
.bl-pill { display:inline-block; padding:7px 16px; font-size:0.8rem; font-weight:600; color:#334155; background:#f1f5f9; border:1px solid #e2e8f0; border-radius:20px; text-decoration:none; transition: all 0.15s; }
.bl-pill:hover { background:#e2e8f0; color:#1e3a53; }
.bl-pill.active { background:#1e3a53; color:#fff; border-color:#1e3a53; }

/* Story Hero */
.bl-story-hero {
    display:block; position:relative; border-radius:16px; overflow:hidden;
    aspect-ratio: 2.5/1; text-decoration:none;
}
.bl-story-hero img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.bl-story-hero:hover img { transform: scale(1.03); }
.bl-story-hero__content { position:absolute; bottom:0; left:0; right:0; padding:40px 30px 24px; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); }
.bl-story-hero__cat { font-size:0.68rem; font-weight:700; text-transform:uppercase; color:#c18a2b; letter-spacing:1px; }
.bl-story-hero__title { font-size: 1.5rem; font-weight:700; color:#fff; margin:6px 0; line-height:1.25; }
.bl-story-hero__date { font-size:0.75rem; color:rgba(255, 255, 255, 0.92); }
.bl-story-hero__author { font-size:0.75rem; color:rgba(255, 255, 255, 0.96); font-weight:600; display:inline-block; margin-left:8px; }

/* ========== Sidebar Widgets ========== */
.bl-sidebar-widget { margin-bottom: 28px; }
.bl-sidebar-widget__title { font-size:0.85rem; font-weight:700; color:#1e3a53; margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid #e8f4f8; }
.bl-sidebar-widget__desc { font-size:0.8rem; color:#3d4f5f; margin-bottom:12px; line-height:1.5; }

/* Popular List */
.bl-popular-list { display:flex; flex-direction:column; gap:10px; }
.bl-popular-item { display:flex; gap:12px; align-items:flex-start; text-decoration:none; color:inherit; padding:6px 0; border-bottom:1px solid #f0f4f8; transition: opacity 0.15s; }
.bl-popular-item:last-child { border-bottom:none; }
.bl-popular-item:hover { opacity:0.75; }
.bl-popular-item__num { flex-shrink:0; width:24px; height:24px; border-radius:6px; background:#1e3a53; color:#fff; font-size:0.72rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
.bl-popular-item__body h5 { font-size:0.8rem; font-weight:600; color:#1e293b; margin:0 0 2px; line-height:1.35; }
.bl-popular-item__body span { font-size:0.68rem; color:#4a5568; }

/* Newsletter CTA */
.bl-sidebar-widget--cta { background: linear-gradient(135deg, #f0f9ff, #e8f4f8); border-radius:12px; padding:20px; text-align:center; }
.bl-cta-btn {
    display: inline-flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, #c18a2b, #9a7b2e); color:#fff;
    border:none; border-radius:8px; padding:12px 20px; width:100%;
    font-size:0.85rem; font-weight:600; text-decoration:none;
    transition: opacity 0.2s, transform 0.2s;
}
.bl-cta-btn:hover { opacity:0.9; transform:translateY(-1px); color:#fff; }

/* Filter Chips */
.bl-filter-chips { display:flex; flex-wrap:wrap; gap:6px; }
.bl-filter-chip { display:inline-block; padding:5px 12px; font-size:0.75rem; font-weight:500; color:#334155; border:1px solid #e2e8f0; border-radius:16px; text-decoration:none; transition: all 0.15s; }
.bl-filter-chip:hover, .bl-filter-chip.active { background:#1e3a53; border-color:#1e3a53; color:#fff; }

/* Responsive */
@media (min-width: 769px) {
    .bl-tabs-wrap .container {
        max-width: 100%;
    }

    .bl-tabs {
        justify-content: center;
        flex-wrap: nowrap;
    }
}

@media (max-width: 1366px) {
    body.page-blog {
        --home-header-h: 72px;
    }
}

@media (max-width: 1280px) {
    body.page-blog {
        --home-header-h: 68px;
    }
}

@media (max-width: 1199px) {
    .bl-grid, .bl-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .blog-exp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .bl-tabs-wrap .container {
        justify-content: flex-start;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .bl-tabs {
        justify-content: flex-start;
        padding: 0 0.5rem;
        overscroll-behavior-x: contain;
    }

    .bl-tab {
        padding: 11px 10px;
        font-size: 0.6875rem;
        letter-spacing: 0.03em;
        gap: 4px;
    }

    .bl-tab span {
        display: inline;
    }

    .bl-tab i {
        font-size: 0.8125rem;
        flex-shrink: 0;
    }

    .bl-featured__title,
    .bl-featured__title a,
    .bl-card__title {
        font-size: 1.5rem !important;
    }

    .bl-card__title a {
        font-size: 1.35rem !important;
    }
    .bl-story-hero { aspect-ratio: 16/9; }
    .bl-search { max-width:100%; }
    .bl-hero__overlay { padding: 50px 0 50px; }
}
@media (max-width: 480px) {
    .bl-grid, .bl-grid--3 { grid-template-columns: 1fr; }
    .bl-grid--2 { grid-template-columns: 1fr !important; }
}

/* Remove underline on all blog links */
.bl-featured, .bl-card, .bl-story-hero,
.bl-featured:hover, .bl-card:hover, .bl-story-hero:hover {
    text-decoration: none !important;
}
.bl-featured *, .bl-card *, .bl-story-hero * {
    text-decoration: none !important;
}

/* Stories layout wrapper */
.bl-stories-layout {
    width: 100%;
}

/* Experience card variant */
.bl-card--exp {
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.bl-card--exp .bl-card__img--exp {
    display: block;
    position: relative;
    aspect-ratio: 25 / 14; /* 20% shorter than previous 10/7 */
    overflow: hidden;
}
.bl-card--exp .bl-card__img--exp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.bl-card--exp:hover .bl-card__img--exp img {
    transform: scale(1.05);
}
.bl-card--exp .bl-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.bl-card--exp .bl-card__title {
    font-size: 1.5rem !important;
    margin: 0;
    line-height: normal;
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: normal;
    word-break: break-word;
}
.bl-card--exp .bl-card__title a {
    color: inherit;
    font-size: 1.25rem !important;
}
.bl-card--exp .bl-card__desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    margin: 0;
    height: calc(1.55em * 2);
    max-height: calc(1.55em * 2);
    overflow: hidden;
    display: block;
    -webkit-line-clamp: unset;
    text-overflow: clip;
}
.bl-card--exp .bl-card__more {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e3a53;
    text-decoration: none !important;
    text-align: left;
}
.bl-card--exp .bl-card__more:hover {
    color: #1e3a53;
}
.bl-card--exp .bl-card__more i {
    font-size: 0.75rem;
    transition: transform 0.15s;
}
.bl-card--exp .bl-card__more:hover i {
    transform: translateX(2px);
}

/* Sidebar — same sticky behavior as blog detail */
.bl-content .blog-sidebar,
.bl-content .bl-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bl-content .blog-sidebar .bl-sidebar-widget,
.bl-content .blog-sidebar .blog-sidebar__widget {
    margin-bottom: 0;
}

.bl-content .bl-sidebar-widget--cta {
    text-align: center;
}

.bl-content .bl-sidebar-widget--cta .blog-sidebar__title {
    justify-content: center;
    border-bottom-color: rgba(13, 107, 138, 0.15);
}

@media (max-width: 991px) {
    .bl-content .blog-sidebar,
    .bl-content .bl-sidebar {
        position: static !important;
        width: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin-top: 24px;
    }
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 2.5rem 0 1rem;
    padding: 0;
    list-style: none;
}

.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    background: #1e3a53;
    border-color: #1e3a53;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: #1e3a53;
    border-color: #1e3a53;
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 107, 138, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #64748b;
    background: #f8fafc;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* Experience detail — compact related travel guides (same cards as /blogs/travel-guides) */
.exp-related-guides {
    padding: 28px 0 40px !important;
    background: #f6f1e8;
}
.exp-related-guides__header {
    text-align: center;
    margin: 0 auto 1.15rem;
    max-width: 40rem;
}
.exp-related-guides__title {
    margin: 0 0 0.3rem !important;
    font-family: "Manrope", sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    color: #1e3a53 !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}
.exp-related-guides__sub {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.55;
    color: #2f4458;
}
.exp-related-guides .bl-grid {
    gap: 16px;
}
.exp-related-guides .bl-card__title,
.exp-related-guides .bl-card__title a {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
}
.exp-related-guides .bl-card__body {
    padding: 12px 14px;
}
.exp-related-guides__more {
    margin-top: 1.35rem;
    text-align: center;
}
.exp-related-guides__more .bl-cta-btn {
    width: auto;
    padding: 10px 18px;
    font-size: 0.8rem;
}
