.bes-proj-archive {
    --bes-navy: #0f1c38;
    --bes-dark: #071730;
    --bes-gold: #c8a84b;
    --bes-serif: 'Prata', 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 40px;
}

/* ============================================================
   TOP INTRO — "WHERE DETAILS BECOME SPACE"
   ============================================================ */
.bes-proj-intro {
    margin-bottom: 90px;
}
.bes-proj-intro-title {
    font-family: 'The Seasons';
    font-weight: 400 !important;
    color: var(--bes-dark) !important;
    font-size: 42px !important;
    line-height: 1.15 !important;
    letter-spacing: 1px;
    margin: 0 0 22px !important;
    text-transform: uppercase;
}
.bes-proj-intro-line {
    display: block;
    width: 52px;
    height: 2px;
    background: var(--bes-gold);
    margin-bottom: 55px;
}
.bes-proj-intro-cols {
    display: grid !important;
    grid-template-columns: 0.9fr 1.9fr 1.2fr !important;
    gap: 60px !important;
    align-items: start !important;
}
.bes-proj-intro-lead {
    color: var(--bes-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.75;
}
.bes-proj-intro-text p {
    color: #555;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 16px;
}
.bes-proj-intro-text p:last-child { margin-bottom: 0; }
.bes-proj-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   SELECTED PROJECTS STRIP
   ============================================================ */
.bes-proj-selected {
    margin-bottom: 110px;
}
.bes-proj-selected-title {
    font-family: 'The Seasons';
    font-weight: 400 !important;
    color: var(--bes-dark) !important;
    font-size: 24px !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 32px !important;
}
.bes-proj-selected-row {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}
.bes-proj-selected-row::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
    width: 0;
    height: 0;
}
a.bes-proj-sel-card {
    display: block !important;
    text-decoration: none !important;
    position: relative !important;
    flex: 0 0 250px;
    height: 240px;
    overflow: hidden;
}
a.bes-proj-sel-card:nth-child(even) {
    height: 290px;
}
a.bes-proj-sel-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.bes-proj-sel-overlay {
    position: absolute !important;
    left: 0; right: 0; bottom: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(7,23,48,0) 0%, rgba(7,23,48,0.85) 100%);
}
.bes-proj-sel-name {
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    border-bottom: 2px solid var(--bes-gold);
    padding-bottom: 3px;
}
.bes-proj-sel-loc {
    color: rgba(255,255,255,0.8) !important;
    font-size: 11px;
    font-weight: 400;
}

/* ---------- SELECTED PROJECTS SLIDER ARROWS (same as Related Projects) ---------- */
.bes-proj-selected-wrap {
    position: relative !important;
}
.bes-proj-archive button.bes-proj-sel-arrow {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 1%;
    border: none !important;
    background-color: #fff !important;
    background-image: none !important;
    color: var(--bes-navy) !important;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 !important;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
}
.bes-proj-archive button.bes-proj-sel-prev { left: 12px; }
.bes-proj-archive button.bes-proj-sel-next { right: 12px; }
.bes-proj-archive button.bes-proj-sel-arrow:hover,
.bes-proj-archive button.bes-proj-sel-arrow:focus,
.bes-proj-archive button.bes-proj-sel-arrow:active {
    background-color: var(--bes-navy) !important;
    color: #fff !important;
}

/* ---------- FILTER TABS ---------- */
.bes-proj-filter-tabs {
    margin-bottom: 40px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
button.bes-proj-tab {
    display: inline-block !important;
    width: auto !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: #999 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}
button.bes-proj-tab.is-active {
    color: var(--bes-navy) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--bes-gold) !important;
    padding-bottom: 4px !important;
    border-radius: 0px;
}
.bes-proj-tab-sep {
    display: inline-block !important;
    color: #ddd;
    margin: 0 12px;
}

/* ---------- CATEGORY SECTION ---------- */
.bes-proj-category {
    margin-bottom: 150px;
}
.bes-proj-category:last-child {
    margin-bottom: 0;
}
.bes-proj-cat-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px !important;
    margin-bottom: 30px;
    align-items: stretch !important;
}
.bes-proj-cat-info {
    padding: 40px 34px;
}

.bes-proj-cat-info h2 {
    font-family: 'The Seasons' !important;
    font-weight: 400 !important;
    color: var(--bes-dark);
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.bes-proj-cat-desc p {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 12px;
}
.bes-proj-cat-top.bes-proj-reverse .bes-proj-cat-info {
    order: 2;
}
.bes-proj-cat-top.bes-proj-reverse .bes-proj-featured-card {
    order: 1;
}

/* ---------- FEATURED CARD (overlay style) ---------- */
a.bes-proj-featured-card {
    display: block !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden;
}
.bes-proj-featured-img {
    height: 440px !important;
    overflow: hidden;
}
.bes-proj-featured-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
a.bes-proj-featured-card:hover .bes-proj-featured-img img {
    transform: scale(1.03);
}
.bes-proj-featured-overlay {
    position: absolute !important;
    left: 0; right: 0; bottom: 0;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 16px;
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(7,23,48,0) 0%, rgba(7,23,48,0.88) 100%);
}
.bes-proj-featured-texts {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
}
.bes-proj-featured-name {
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    border-bottom: 2px solid var(--bes-gold);
    padding-bottom: 4px;
}
.bes-proj-featured-loc {
    color: rgba(255,255,255,0.8) !important;
    font-size: 12px;
    font-weight: 400;
}
.bes-proj-featured-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.8);
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 20px;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
a.bes-proj-featured-card:hover .bes-proj-featured-btn {
    background: #fff;
    color: var(--bes-dark) !important;
}

/* ---------- SMALL PROJECT GRID (overlay style) ---------- */
.bes-proj-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-top:60px;
}
a.bes-proj-card {
    display: block !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden;
}
.bes-proj-card-img {
    height: 300px !important;
    overflow: hidden;
    margin-bottom: 0;
}
.bes-proj-card-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
a.bes-proj-card:hover .bes-proj-card-img img {
    transform: scale(1.04);
}
.bes-proj-card-overlay {
    position: absolute !important;
    left: 0; right: 0; bottom: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(7,23,48,0) 0%, rgba(7,23,48,0.85) 100%);
}
.bes-proj-card-name {
    display: inline-block !important;
    width: fit-content;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--bes-gold);
    padding-bottom: 3px;
}
.bes-proj-card-loc {
    color: rgba(255,255,255,0.8) !important;
    font-size: 11px;
    font-weight: 400;
}
.bes-proj-card.bes-proj-extra {
    display: none !important;
}
.bes-proj-card.bes-proj-extra.is-visible {
    display: block !important;
}

/* ---------- VIEW MORE ---------- */
.bes-proj-viewmore-wrap {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 24px;
}
button.bes-proj-viewmore-btn {
    display: inline-block !important;
    width: auto !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: var(--bes-navy) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    padding: 12px 28px !important;
    cursor: pointer;
    border-radius: 1px;
}
button.bes-proj-viewmore-btn:hover {
    background: var(--bes-navy) !important;
    color: #fff !important;
    border-color: var(--bes-navy) !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .bes-proj-archive { padding: 30px 20px; }
    .bes-proj-category { margin-bottom: 90px; }

    .bes-proj-intro { margin-bottom: 60px; }
    .bes-proj-intro-title { font-size: 30px !important; }
    .bes-proj-intro-line { margin-bottom: 32px; }
    .bes-proj-intro-cols { grid-template-columns: 1fr !important; gap: 24px !important; }
    .bes-proj-intro-image { max-width: 360px; }

    .bes-proj-selected { margin-bottom: 70px; }
    a.bes-proj-sel-card { flex: 0 0 210px; height: 210px; }
    a.bes-proj-sel-card:nth-child(even) { height: 240px; }

    .bes-proj-cat-top { grid-template-columns: 1fr !important; gap: 24px !important; }
    .bes-proj-cat-top.bes-proj-reverse .bes-proj-cat-info,
    .bes-proj-cat-top.bes-proj-reverse .bes-proj-featured-card {
        order: initial;
    }
    .bes-proj-cat-info { padding: 26px 20px; }
    .bes-proj-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
    .bes-proj-featured-img { height: 300px !important; }
    .bes-proj-card-img { height: 190px !important; }
}

@media (max-width: 640px) {
    .bes-proj-archive { padding: 24px 16px; }
    .bes-proj-category { margin-bottom: 60px; }

    .bes-proj-intro-title { font-size: 26px !important; }

    .bes-proj-selected-title { font-size: 20px !important; }
    a.bes-proj-sel-card { flex: 0 0 180px; height: 190px; }
    a.bes-proj-sel-card:nth-child(even) { height: 215px; }

    .bes-proj-filter-tabs {
        row-gap: 10px !important;
        margin-bottom: 28px !important;
    }
    button.bes-proj-tab { font-size: 12px !important; }
    .bes-proj-tab-sep { margin: 0 8px; }

    .bes-proj-cat-info h2 { font-size: 21px; }
    .bes-proj-cat-desc p { font-size: 13px; line-height: 1.7; }

    .bes-proj-featured-img { height: 240px !important; }
    .bes-proj-featured-overlay {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .bes-proj-featured-btn { width: 100% !important; }

    .bes-proj-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
    .bes-proj-card-img { height: 150px !important; }
    .bes-proj-card-name { font-size: 12px; }
    .bes-proj-card-overlay { padding: 10px 12px; }

    .bes-proj-viewmore-wrap { justify-content: center !important; margin-top: 20px; }
    button.bes-proj-viewmore-btn { width: 100% !important; padding: 12px 0 !important; }
}

@media (max-width: 420px) {
    .bes-proj-grid { grid-template-columns: 1fr !important; }
    .bes-proj-card-img { height: 210px !important; }
    .bes-proj-featured-img { height: 200px !important; }
}
