/* =========================================================
   MV BARIMA MEMORIAL COLLECTION PAGE
   ========================================================= */

.barima-collection-intro {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 90px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(4, 12, 9, 0.14),
            rgba(4, 12, 9, 0.88)
        ),
        url("/s/themes/DigitalHeritageGY/asset/img/mv-barima.webp")
        center / cover no-repeat;
}

.barima-collection-intro-inner,
.barima-collection-section-inner {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.barima-collection-intro-inner {
    max-width: 920px;
}

.barima-collection-label,
.barima-section-label {
    margin: 0 0 18px;
    color: #f1d391;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.barima-collection-intro h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.8rem, 8vw, 7.4rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.barima-collection-lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.barima-collection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.barima-collection-actions a {
    display: inline-flex;
    padding: 14px 20px;
    border: 1px solid rgba(241, 211, 145, 0.72);
    color: #f1d391;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.barima-collection-actions a:hover,
.barima-collection-actions a:focus-visible {
    color: #10251d;
    background: #f1d391;
    transform: translateY(-3px);
}

.barima-collection-section,
.barima-collection-explore {
    padding: 110px 0;
}

.barima-collection-section {
    color: #173b2d;
    background: #f7f2e8;
}

.barima-collection-explore {
    color: #fff;
    background: #10251d;
}

.barima-collection-section h2,
.barima-collection-explore h2 {
    max-width: 850px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.barima-collection-section p:not(.barima-section-label) {
    max-width: 780px;
    margin: 28px 0 0;
    color: #4d5e55;
    font-size: 1.05rem;
    line-height: 1.85;
}


/* =========================================================
   FOUR COMMUNITY ARCHIVES
   ========================================================= */

.community-collection-intro {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 90px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            rgba(5, 16, 11, 0.15),
            rgba(5, 16, 11, 0.9)
        ),
        linear-gradient(
            135deg,
            #73533b 0%,
            #1e3d32 100%
        );
}

.community-collection-intro-inner,
.community-collection-section-inner {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.community-collection-intro-inner {
    max-width: 920px;
}

.community-collection-label,
.community-section-label {
    margin: 0 0 18px;
    color: #f1d391;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.community-collection-intro h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.6rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.community-collection-lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.community-collection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.community-collection-actions a {
    display: inline-flex;
    padding: 14px 20px;
    border: 1px solid rgba(241, 211, 145, 0.72);
    color: #f1d391;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.community-collection-actions a:hover,
.community-collection-actions a:focus-visible {
    color: #173b2d;
    background: #f1d391;
    transform: translateY(-3px);
}

.community-collection-section,
.community-archive-explore {
    padding: 110px 0;
}

.community-collection-section {
    color: #173b2d;
    background: #f6f1e7;
}

.community-archive-explore {
    color: #fff;
    background: #10251d;
}

.community-collection-section h2,
.community-archive-explore h2 {
    max-width: 850px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.community-collection-section p:not(.community-section-label) {
    max-width: 780px;
    margin: 28px 0 0;
    color: #4d5e55;
    font-size: 1.05rem;
    line-height: 1.85;
}

.community-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 50px;
}

.community-archive-card {
    position: relative;
    min-height: 260px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(241, 211, 145, 0.24);
    color: #fff;
    text-decoration: none;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.01)
        );
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.community-archive-card::after {
    content: "→";
    position: absolute;
    right: 26px;
    bottom: 24px;
    color: #f1d391;
    opacity: 0;
    transform: translateX(-10px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.community-archive-card:hover,
.community-archive-card:focus-visible {
    transform: translateY(-7px);
    border-color: rgba(241, 211, 145, 0.72);
    background: rgba(241, 211, 145, 0.08);
}

.community-archive-card:hover::after,
.community-archive-card:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

.community-archive-card > span {
    color: #f1d391;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.community-archive-card h3 {
    margin: 40px 0 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.community-archive-card p {
    margin: 0;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.65;
}

@media screen and (max-width: 700px) {
    .community-collection-intro {
        min-height: 680px;
        padding: 90px 0 65px;
    }

    .community-collection-intro-inner,
    .community-collection-section-inner {
        width: calc(100% - 30px);
    }

    .community-collection-section,
    .community-archive-explore {
        padding: 76px 0;
    }

    .community-archive-grid {
        grid-template-columns: 1fr;
    }
    
}
    
/* =========================================================
   MV BARIMA ARCHIVE — FINAL CARD SYSTEM
   ========================================================= */

.barima-archive-section {
    padding: 110px 0;
    background: #f6f1e7;
    color: #173b2d;
}

.barima-archive-inner {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.barima-section-label {
    margin: 0 0 18px;
    color: #7a5d27;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.barima-archive-section h2 {
    max-width: 850px;
    margin: 0;
    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.barima-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.barima-archive-card {
    position: relative;
    display: block;
    min-height: 270px;
    padding: 28px;
    overflow: hidden;

    border: 1px solid rgba(23, 59, 45, 0.24);
    color: #173b2d !important;
    text-decoration: none;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f0e7d8 100%
        );

    box-shadow: 0 12px 28px rgba(23, 59, 45, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.barima-archive-card > span {
    display: block;
    color: #7a5d27 !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.barima-archive-card h3 {
    display: block;
    margin: 38px 0 13px;
    color: #173b2d !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.barima-archive-card p {
    display: block;
    margin: 0;
    color: #3f5449 !important;
    line-height: 1.68;
}

.barima-archive-card::after {
    content: "→";
    position: absolute;
    right: 24px;
    bottom: 22px;
    color: #f1d391;
    opacity: 0;
    transform: translateX(-10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.barima-archive-card:hover,
.barima-archive-card:focus-visible {
    color: #ffffff !important;
    background: #173b2d;
    border-color: rgba(241, 211, 145, 0.62);
    transform: translateY(-7px);
    box-shadow: 0 22px 45px rgba(23, 59, 45, 0.18);
}

.barima-archive-card:hover > span,
.barima-archive-card:focus-visible > span {
    color: #f1d391 !important;
}

.barima-archive-card:hover h3,
.barima-archive-card:focus-visible h3 {
    color: #ffffff !important;
}

.barima-archive-card:hover p,
.barima-archive-card:focus-visible p {
    color: rgba(255, 255, 255, 0.82) !important;
}

.barima-archive-card:hover::after,
.barima-archive-card:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

.barima-archive-card:focus-visible {
    outline: 3px solid #f1d391;
    outline-offset: 4px;
}

@media screen and (max-width: 900px) {
    .barima-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
}

@media screen and (max-width: 600px) {
    .barima-archive-section {
        padding: 72px 0;
    }

    .barima-archive-inner {
        width: calc(100% - 30px);
    }

    .barima-archive-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 36px;
    }

    .barima-archive-card {
        min-height: 220px;
        padding: 24px;
    }
}

/* =========================================================
   MV BARIMA — RESEARCH & ANALYSIS
   ========================================================= */

.barima-research-page {
    padding: 72px 24px 96px;
    background: #f6f1e7;
}

.barima-research-page .barima-archive-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.barima-research-lead {
    max-width: 780px;
    margin: 18px 0 46px;

    color: #59635d;
    font-size: 1.05rem;
    line-height: 1.75;
}

.barima-research-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.barima-research-card {
    overflow: hidden;

    border: 1px solid rgba(27, 58, 45, 0.12);
    background: #fff;

    box-shadow:
        0 12px 30px rgba(20, 47, 38, 0.07);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.barima-research-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 38px rgba(20, 47, 38, 0.12);
}

.barima-research-image-link {
    display: block;
    padding: 16px;
    background: #f9f7f2;
}

.barima-research-image-link img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

.barima-research-card-content {
    padding: 24px 26px 28px;
}

.barima-research-card-content h2 {
    margin: 0 0 12px;

    color: #173b2d;

    font-size: 1.25rem;
    line-height: 1.3;
}

.barima-research-card-content h2 a {
    color: inherit;
    text-decoration: none;
}

.barima-research-card-content p {
    margin: 0 0 20px;

    color: #5b645f;

    line-height: 1.65;
}

.barima-research-view {
    color: #8a6733;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.barima-research-view:hover,
.barima-research-view:focus-visible {
    color: #173b2d;
}

@media screen and (max-width: 800px) {
    .barima-research-grid {
        grid-template-columns: 1fr;
    }
}
    
