﻿
/* =========================
   Warna dan dasar halaman
   ========================= */

.rs-history {
    --history-green: #165547;
    --history-green-dark: #103e35;
    --history-gold: #e7bd73;
    --history-ink: #243b35;
    --history-muted: #64736e;
    --history-soft: #f3f7f5;
    --history-border: #dce7e1;
    color: var(--history-ink);
    background-color: #fff;
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.75;
}

    .rs-history *,
    .rs-history *::before,
    .rs-history *::after {
        box-sizing: border-box;
    }

    .rs-history img {
        display: block;
        max-width: 100%;
    }

    .rs-history a {
        text-underline-offset: 4px;
    }

        .rs-history a:focus-visible {
            outline: 3px solid #ab7111;
            outline-offset: 5px;
        }

    .rs-history .history-section {
        padding: 90px 0;
    }

    .rs-history .history-eyebrow {
        display: inline-block;
        margin-bottom: 14px;
        color: var(--history-green);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .rs-history .history-eyebrow-light {
        color: var(--history-gold);
    }

    .rs-history .history-section-title {
        margin-bottom: 20px;
        color: var(--history-green-dark);
        font-size: clamp(28px, 3vw, 40px);
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -0.8px;
    }

        .rs-history .history-section-title span {
            display: block;
        }

    .rs-history .history-body {
        color: var(--history-muted);
        font-size: 16px;
        line-height: 1.9;
    }

    /* =========================
   Banner
   ========================= */

    .rs-history .history-hero {
        position: relative;
        isolation: isolate;
        min-height: 550px;
        padding: 30px 0 100px;
        overflow: hidden;
        color: #fff;
        background-color: var(--history-green-dark);
    }

    .rs-history .history-hero-image {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .rs-history .history-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient( 90deg, rgba(9, 40, 33, 0.94) 0%, rgba(9, 40, 33, 0.78) 48%, rgba(9, 40, 33, 0.35) 100% );
    }

    .rs-history .history-breadcrumb {
        margin: 0 0 65px;
        padding: 0;
        background: transparent;
        font-size: 13px;
    }

        .rs-history .history-breadcrumb a {
            color: #fff;
            text-decoration: none;
        }

            .rs-history .history-breadcrumb a:hover {
                text-decoration: underline;
            }

        .rs-history .history-breadcrumb .active,
        .rs-history .history-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            color: #d3e2db;
        }

    .rs-history .history-hero-content {
        max-width: 740px;
    }

    .rs-history .history-hero h1 {
        margin: 0 0 22px;
        color: #fff;
        font-size: clamp(34px, 4.3vw, 60px);
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -1.5px;
    }

        .rs-history .history-hero h1 span {
            display: block;
            margin-top: 10px;
            font-size: 0.62em;
            font-weight: 400;
            letter-spacing: -0.4px;
        }

    .rs-history .history-hero-content > p {
        max-width: 520px;
        margin-bottom: 30px;
        color: #e0eae4;
        font-size: 17px;
    }

    .rs-history .history-btn-gold {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        min-height: 48px;
        padding: 12px 23px;
        border: 1px solid var(--history-gold);
        border-radius: 8px;
        color: #243b35;
        background-color: var(--history-gold);
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

        .rs-history .history-btn-gold:hover {
            border-color: #f0cf94;
            color: #243b35;
            background-color: #f0cf94;
        }

    .rs-history .history-hero-caption {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 17px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        color: #e0eae4;
        background-color: rgba(9, 40, 33, 0.45);
        font-size: 13px;
        text-align: center;
    }

    .rs-history .history-caption-line {
        flex: 0 0 35px;
        height: 2px;
        background-color: var(--history-gold);
    }

    /* =========================
   Pengantar
   ========================= */

    .rs-history .history-photo {
        position: relative;
        padding: 0 24px 24px 0;
    }

        .rs-history .history-photo::before {
            content: "";
            position: absolute;
            inset: 28px 0 0 28px;
            border-radius: 18px;
            background-color: #e8efe9;
        }

/*    .rs-history .history-intro-image {
        position: relative;
        width: 100%;
        height: auto;
        border-radius: 18px;
        object-fit: cover;
    }*/

        .rs-history .history-photo img {
            position: relative;
            width: 100%;
            height: auto;
            border-radius: 18px;
            object-fit: cover;
        }

.rs-history .history-photo-label {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: calc(100% - 24px);
    padding: 20px 25px;
    border-left: 4px solid var(--history-gold);
    border-radius: 0 10px 10px 0;
    color: #fff;
    background-color: var(--history-green);
    box-shadow: 0 12px 30px rgba(16, 62, 53, 0.15);
}

    .rs-history .history-photo-label span {
        display: block;
        color: var(--history-gold);
        font-size: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .rs-history .history-photo-label strong {
        display: block;
        margin-top: 4px;
        font-size: 16px;
        font-weight: 500;
    }

.rs-history .history-image-caption {
    margin: 16px 0 0;
    color: var(--history-muted);
    font-size: 12px;
}

.rs-history .history-divider {
    width: 58px;
    height: 3px;
    margin-bottom: 25px;
    background-color: var(--history-gold);
}

.rs-history .history-lead {
    color: var(--history-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.8;
}

.rs-history .history-text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    color: var(--history-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

    .rs-history .history-text-link:hover {
        color: var(--history-green-dark);
        text-decoration: underline;
    }

/* =========================
   Timeline
   ========================= */

.rs-history .history-timeline-section {
    background-color: var(--history-soft);
    scroll-margin-top: 90px;
}

.rs-history .history-section-heading {
    max-width: 600px;
    margin-bottom: 55px;
}

.rs-history .history-timeline {
    position: relative;
    display: grid;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .rs-history .history-timeline::before {
        content: "";
        position: absolute;
        top: 30px;
        bottom: 30px;
        left: 50%;
        width: 2px;
        background-color: #ceddd4;
        transform: translateX(-50%);
    }

.rs-history .history-timeline-item {
    position: relative;
    width: 50%;
    padding-right: 42px;
}

    .rs-history .history-timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 42px;
    }

.rs-history .history-timeline-marker {
    position: absolute;
    top: 29px;
    right: -9px;
    width: 18px;
    height: 18px;
    border: 4px solid var(--history-soft);
    border-radius: 50%;
    background-color: var(--history-green);
    box-shadow: 0 0 0 2px var(--history-green);
}

.rs-history .history-timeline-item:nth-child(even)
.history-timeline-marker {
    right: auto;
    left: -9px;
}

.rs-history .history-timeline-card {
    overflow: hidden;
    border: 1px solid var(--history-border);
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(20, 60, 44, 0.04);
}

.rs-history .history-timeline-copy {
    padding: 28px;
}

.rs-history .history-year {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 12px;
    border-radius: 5px;
    color: var(--history-green);
    background-color: #eaf2ed;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.rs-history .history-timeline-card h3 {
    margin: 0 0 12px;
    color: var(--history-green-dark);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.rs-history .history-timeline-card p {
    margin: 0;
    color: var(--history-muted);
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.rs-history .history-timeline-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* =========================
   Ponsel Responsive Styles
   ========================= */
@media (max-width: 767.98px) {
    .rs-history .history-timeline-image {
        height: 190px;
    }
}

/* =========================
   Penutup
   ========================= */

.rs-history .history-closing {
    position: relative;
    overflow: hidden;
    padding: 45px;
    border-radius: 20px;
    color: #fff;
    background: radial-gradient( circle at 100% 0, rgba(231, 189, 115, 0.14), transparent 45% ), var(--history-green-dark);
}

    .rs-history .history-closing h2 {
        margin: 0 0 16px;
        color: #fff;
        font-size: clamp(26px, 3vw, 36px);
        font-weight: 700;
        line-height: 1.35;
    }

    .rs-history .history-closing p {
        max-width: 560px;
        margin: 0;
        color: #d5e4dc;
        font-size: 15px;
    }

/* =========================
   Tablet dan ponsel
   ========================= */

@media (max-width: 991.98px) {
    .rs-history .history-section {
        padding: 65px 0;
    }

    .rs-history .history-hero {
        min-height: 510px;
    }

    .rs-history .history-intro-image {
        height: 380px;
    }
}

@media (max-width: 767.98px) {
    .rs-history .history-hero {
        min-height: auto;
        padding: 24px 0 115px;
    }

    .rs-history .history-breadcrumb {
        margin-bottom: 45px;
    }

    .rs-history .history-hero h1 {
        letter-spacing: -0.8px;
    }

    .rs-history .history-hero-content > p {
        font-size: 15px;
    }

    .rs-history .history-hero-caption {
        padding: 14px 18px;
        font-size: 11px;
    }

    .rs-history .history-caption-line {
        display: none;
    }

    .rs-history .history-section {
        padding: 50px 0;
    }

    .rs-history .history-intro-image {
        height: 310px;
    }

    .rs-history .history-photo-label {
        padding: 16px 18px;
    }

        .rs-history .history-photo-label strong {
            font-size: 14px;
        }

    .rs-history .history-section-heading {
        margin-bottom: 35px;
    }

    .rs-history .history-timeline {
        gap: 25px;
    }

        .rs-history .history-timeline::before {
            left: 10px;
        }

    .rs-history .history-timeline-item,
    .rs-history .history-timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
        padding-left: 40px;
    }

        .rs-history .history-timeline-marker,
        .rs-history .history-timeline-item:nth-child(even)
        .history-timeline-marker {
            right: auto;
            left: 1px;
        }

    .rs-history .history-timeline-copy {
        padding: 22px;
    }

    .rs-history .history-timeline-card h3 {
        font-size: 20px;
    }

    .rs-history .history-timeline-image {
        height: 190px;
    }

    .rs-history .history-closing {
        padding: 30px 24px;
    }
}
