/*═══════════════════════════════════════
    PA SEJARAH PENGADILAN
    Editorial Timeline
═══════════════════════════════════════*/
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&display=swap');

.sejarah-pa {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}


/* =========================================================
   SEJARAH — HERITAGE POLAROID CARD
   Vintage archival photography
   ========================================================= */

.sejarah-image {
    position: relative;
    isolation: isolate;

    width: min(100%, 490px);
    margin: 48px auto 72px;

    padding: 13px 13px 25px;

    background: #fffdf7;

    border: 1px solid #e9e2d3;
    border-radius: 3px;

    box-shadow:
        0 2px 5px rgba(35, 40, 30, .05),
        0 12px 25px rgba(35, 40, 30, .10),
        0 28px 45px rgba(35, 40, 30, .07);

    box-sizing: border-box;

    transform: rotate(-1.2deg);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

/* Decorative backing paper */

.sejarah-image::after {
    content: "";

    position: absolute;
    inset: 10px -8px -9px 8px;

    z-index: -1;

    background: #e9efe7;

    border-radius: 3px;

    transform: rotate(2deg);
}

/* Vintage tape */

.sejarah-image::before {
    content: "";

    position: absolute;

    top: -17px;
    left: 50%;

    width: 105px;
    height: 30px;

    z-index: 2;

    background: rgba(220, 204, 157, .62);

    border-left: 1px solid rgba(160, 140, 95, .12);
    border-right: 1px solid rgba(160, 140, 95, .12);

    box-shadow: 0 2px 4px rgba(0,0,0,.04);

    transform: translateX(-50%) rotate(-3deg);
}

/* Photo */

.sejarah-photo {
    overflow: hidden;

    background: #e9e4d9;

    border: 1px solid #e4dfd4;
}

.sejarah-photo img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 3;
    object-fit: cover;

    filter:
        grayscale(100%)
        sepia(12%)
        contrast(1.08)
        brightness(.94);

    transition:
        filter .5s ease,
        transform .6s ease;
}

/* Caption */

.sejarah-caption {
    padding: 17px 8px 0;

    text-align: center;
}

.sejarah-caption strong {
    display: block;

    color: #343b32;

    font-family: 'Caveat', cursive;
    font-size: 27px;
    font-weight: 500;

    line-height: 1.2;
}

.sejarah-caption span {
    display: block;

    margin-top: 7px;

    color: #99917f;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hover */

.sejarah-image:hover {
    transform: rotate(0deg) translateY(-5px);

    box-shadow:
        0 5px 10px rgba(35, 40, 30, .06),
        0 20px 35px rgba(35, 40, 30, .13);
}

.sejarah-image:hover .sejarah-photo img {
    filter:
        grayscale(75%)
        sepia(15%)
        contrast(1.05);
}

/* TABLET */

@media (max-width: 768px) {
    .sejarah-image {
        width: min(100%, 430px);
        margin: 38px auto 60px;
    }
}

/* MOBILE */

@media (max-width: 576px) {
    .sejarah-image {
        width: calc(100% - 16px);
        margin: 34px auto 55px;

        padding: 9px 9px 20px;

        transform: rotate(-.7deg);
    }

    .sejarah-image::before {
        width: 85px;
        height: 25px;
        top: -14px;
    }

    .sejarah-image::after {
        inset: 7px -5px -6px 5px;
    }

    .sejarah-photo img {
        aspect-ratio: 4 / 3;
    }

    .sejarah-caption {
        padding-top: 14px;
    }

    .sejarah-caption strong {
        font-size: 24px;
    }

    .sejarah-caption span {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
}


/* =========================================================
   SEJARAH — FEATURE IMAGE
   Clean / Editorial Style
   ========================================================= 

.sejarah-image {
    width: min(100%, 580px);
    margin: 38px auto 58px;

    padding: 6px;

    background: #ffffff;

    border: 2px solid #08783f;
    border-radius: 20px;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.07);

    box-sizing: border-box;
}

.sejarah-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 3;
    object-fit: cover;

    border: none;
    border-radius: 14px;

    box-sizing: border-box;
} */

/*═══════════════════════════════════════
    INTRO
═══════════════════════════════════════*/

.sejarah-intro {
    max-width: 820px;

    margin: 0 auto 76px;

    text-align: center;
}

.sejarah-tag {
    display: inline-flex;
    align-items: center;

    margin-bottom: 16px;

    color: #0b7a3b;

    font-size: .72rem;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.sejarah-tag::before {
    content: "";

    width: 22px;
    height: 1px;

    margin-right: 9px;

    background: #0b7a3b;
}

.sejarah-intro h2 {
    margin: 0 0 18px;

    color: #111827;

    font-size: 1.5rem;
    font-weight: 750;

    line-height: 1.3;
}

.sejarah-intro p {
    max-width: 760px;

    margin: 0 auto;

    color: #64748b;

    font-size: .98rem;
    line-height: 1.85;
}


/*═══════════════════════════════════════
    TIMELINE
═══════════════════════════════════════*/

.sejarah-timeline {
    position: relative;

    padding: 10px 0 20px;
}


/* VERTICAL LINE */

.sejarah-timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 184px;

    width: 1px;

    background: #dfe7e2;
}


/*═══════════════════════════════════════
    TIMELINE ITEM
═══════════════════════════════════════*/

.sejarah-item {
    position: relative;

    display: grid;

    grid-template-columns: 150px minmax(0, 1fr);

    column-gap: 68px;

    padding-bottom: 58px;
}


/* LAST ITEM */

.sejarah-item:last-child {
    padding-bottom: 20px;
}


/*═══════════════════════════════════════
    YEAR
═══════════════════════════════════════*/

.sejarah-year {
    position: relative;

    padding-top: 4px;

    text-align: right;

    color: #94a3b8;
}

.sejarah-year span {
    display: block;

    margin-bottom: 3px;

    font-size: .72rem;
    font-weight: 600;

    letter-spacing: .5px;
}

.sejarah-year strong {
    display: block;

    color: #334155;

    font-size: 1.35rem;
    font-weight: 750;

    line-height: 1.1;
}


/* TIMELINE DOT */

.sejarah-year::after {
    content: "";

    position: absolute;

    top: 9px;
    right: -40px;

    width: 9px;
    height: 9px;

    border: 2px solid #ffffff;

    border-radius: 50%;

    background: #0b7a3b;

    box-shadow: 0 0 0 1px #cbdad0;

    transform: translateX(50%);
}


/*═══════════════════════════════════════
    CONTENT
═══════════════════════════════════════*/

.sejarah-content {
    min-width: 0;

    padding: 0 0 2px;
}

.sejarah-content h3 {
    margin: 0 0 14px;

    color: #1f2937;

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

    line-height: 1.4;
}

.sejarah-content p {
    margin: 0 0 13px;

    color: #64748b;

    font-size: .94rem;
    line-height: 1.85;
}

.sejarah-content p:last-child {
    margin-bottom: 0;
}


/*═══════════════════════════════════════
    LIST
═══════════════════════════════════════*/

.sejarah-list {
    margin: 14px 0 0;
    padding-left: 20px;

    color: #64748b;

    font-size: .94rem;
    line-height: 1.8;
}

.sejarah-list li {
    padding-left: 5px;
    margin-bottom: 5px;
}


/*═══════════════════════════════════════
    HIGHLIGHT ITEMS
═══════════════════════════════════════*/

.sejarah-highlight {
    margin-left: -18px;
    padding: 25px 28px 58px;

    border-left: 3px solid #0b7a3b;

    background: #f7faf8;
}

.sejarah-highlight:last-child {
    padding-bottom: 35px;
}

.sejarah-highlight .sejarah-year {
    margin-left: -10px;
}

.sejarah-highlight .sejarah-year strong {
    color: #0b7a3b;
}

.sejarah-highlight .sejarah-year::after {
    width: 11px;
    height: 11px;

    background: #0b7a3b;

    box-shadow:
        0 0 0 1px #b8d5c3,
        0 0 0 5px #f7faf8;
}


/*═══════════════════════════════════════
    IMPORTANT DATE NOTE
═══════════════════════════════════════*/

.sejarah-note {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 22px;
    padding: 14px 17px;

    border-left: 2px solid #0b7a3b;

    background: #ffffff;

    color: #64748b;

    font-size: .86rem;

    line-height: 1.6;
}

.sejarah-note strong {
    flex: 0 0 auto;

    color: #0b7a3b;

    font-size: .88rem;
    font-weight: 800;
}


/*═══════════════════════════════════════
    FOOTER / CLOSING
═══════════════════════════════════════*/

.sejarah-footer {
    margin-top: 58px;
    padding: 42px 46px;

    border-radius: 14px;

    background: #0b7a3b;

    text-align: center;
}

.sejarah-footer > span {
    display: block;

    margin-bottom: 12px;

    color: rgba(255,255,255,.72);

    font-size: .68rem;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.sejarah-footer h2 {
    max-width: 700px;

    margin: 0 auto 24px;

    color: #ffffff;

    font-size: 1.45rem;
    font-weight: 650;

    line-height: 1.5;
}

.sejarah-footer a {
    display: inline-flex;
    align-items: center;

    padding: 10px 18px;

    border: 1px solid rgba(255,255,255,.35);
    border-radius: 7px;

    color: #ffffff;

    font-size: .84rem;
    font-weight: 700;

    text-decoration: none;

    transition: .25s ease;
}

.sejarah-footer a:hover {
    background: #ffffff;

    color: #0b7a3b;
}


/*═══════════════════════════════════════
    TABLET
═══════════════════════════════════════*/

@media (max-width: 768px) {

    .sejarah-image {
        width: min(100%, 430px);
        margin: 32px auto 48px;
        padding: 6px;
        border-width: 2px;
        border-radius: 18px;
    }

    .sejarah-image img {
        border-radius: 12px;
        aspect-ratio: 4 / 3;
    }
	
    .sejarah-intro {
        margin-bottom: 58px;
    }

    .sejarah-intro h2 {
        font-size: 1.5rem;
    }

    .sejarah-timeline::before {
        left: 108px;
    }

    .sejarah-item {
        grid-template-columns: 80px minmax(0, 1fr);

        column-gap: 48px;

        padding-bottom: 48px;
    }

    .sejarah-year::after {
        right: -29px;
    }

    .sejarah-highlight {
        margin-left: -10px;

        padding: 22px 20px 48px;
    }

}


/*═══════════════════════════════════════
    MOBILE
═══════════════════════════════════════*/

@media (max-width: 576px) {

    .sejarah-image {
        width: 100%;
        margin-bottom: 48px;
        border-radius: 10px;
    }

    .sejarah-image img {
        height: 260px;
    }


    /* INTRO */

    .sejarah-intro {
        margin-bottom: 46px;

        padding: 0 4px;
    }

    .sejarah-tag {
        margin-bottom: 12px;

        font-size: .66rem;
    }

    .sejarah-intro h2 {
        font-size: 1.5rem;

        line-height: 1.35;
    }

    .sejarah-intro h2 br {
        display: none;
    }

    .sejarah-intro p {
        font-size: .9rem;
        line-height: 1.75;
    }


    /* TIMELINE */

    .sejarah-timeline {
        padding-top: 4px;
    }

    .sejarah-timeline::before {
        left: 8px;
    }

    .sejarah-item {
        display: block;

        padding: 0 0 42px 34px;
    }

    .sejarah-item:last-child {
        padding-bottom: 10px;
    }


    /* YEAR */

    .sejarah-year {
        padding: 0 0 10px;

        text-align: left;
    }

    .sejarah-year span {
        display: inline;

        margin-right: 5px;

        font-size: .68rem;
    }

    .sejarah-year strong {
        display: inline;

        font-size: 1.15rem;
    }

    .sejarah-year::after {
        top: 5px;
        left: -30px;
        right: auto;

        width: 9px;
        height: 9px;

        transform: none;
    }


    /* CONTENT */

    .sejarah-content h3 {
        margin-bottom: 11px;

        font-size: 1.05rem;
    }

    .sejarah-content p {
        font-size: .88rem;
        line-height: 1.78;
    }

    .sejarah-list {
        font-size: .88rem;
    }


    /* HIGHLIGHT */

    .sejarah-highlight {
        margin-left: 0;
        padding: 18px 16px 40px 34px;

        border-left: 2px solid #0b7a3b;

        background: #f7faf8;
    }

    .sejarah-highlight .sejarah-year {
        margin-left: 0;
    }

    .sejarah-highlight .sejarah-year::after {
        left: -31px;
    }


    /* NOTE */

    .sejarah-note {
        display: block;

        margin-top: 18px;

        padding: 12px 14px;
    }

    .sejarah-note strong {
        display: block;

        margin-bottom: 3px;
    }


    /* FOOTER */

    .sejarah-footer {
        margin-top: 42px;
        padding: 32px 20px;

        border-radius: 10px;
    }

    .sejarah-footer h2 {
        font-size: 1.15rem;
        line-height: 1.5;
    }

    .sejarah-footer a {
        font-size: .8rem;
    }

}
.sejarah-document {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #ead9ad;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #fffdf7,
        #fff9e9
    );
}

.sejarah-document-info {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
}

.sejarah-document-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f7ebca;
    flex-shrink: 0;
}

.pdf-file-mark {
    width: 29px;
    height: 36px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #fff;
    border: 1px solid #d8b66a;
    border-radius: 4px;
    padding-bottom: 5px;
    box-sizing: border-box;
}

.pdf-file-mark::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    border-top: 10px solid #f7ebca;
    border-left: 10px solid transparent;
}

.pdf-file-mark span {
    font-size: 9px;
    font-weight: 800;
    color: #c0392b;
    letter-spacing: .3px;
}

.sejarah-document-info strong {
    display: block;
    color: #173e32;
    font-size: 14px;
}

.sejarah-document-info span {
    display: block;
    color: #7b817b;
    font-size: 12px;
    margin-top: 4px;
}

.sejarah-document-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 17px;
    border-radius: 8px;
    background: #0b5b40;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: .25s ease;
}

.sejarah-document-button:hover {
    background: #08432f;
    color: #f4d88c !important;
    transform: translateY(-2px);
}

@media(max-width:520px) {
    .sejarah-document-button {
        width: 100%;
        box-sizing: border-box;
    }
}