/* History page — conservative deduplication, Step 19A.
 * Preserves approved hero, introduction, horizontal timeline and SVG icons.
 * Only redundant first copy and obsolete nested-card workaround removed.
 */

/*
 * Catholic Diocese of Jasikan
 * History Page — Dedicated Styles
 *
 * Dependencies:
 * - style.css
 * - assets/css/pages.css
 *
 * WordPress blocks:
 * - jasikan-history
 * - jasikan-history-intro
 * - jasikan-history-timeline
 * - jasikan-history-milestone
 *
 * Scope: History page only.
 */

/* ==========================================================
   1. PAGE LAYOUT
   ========================================================== */

body.page .jasikan-history {
    width: 100%;
    max-width: 1100px;
    margin: 0;
}

body.page .jasikan-history-intro {
    width: 100%;
    max-width: none;
}

/* Remove WordPress constrained-width restrictions */

body.page .jasikan-history > *,
body.page .jasikan-history-intro > * {
    max-width: none;
}

/* ==========================================================
   2. INTRODUCTION HEADING
   ========================================================== */

body.page .jasikan-history-intro > h2 {
    margin: 0 0 32px;

    color: var(--diocese-primary-dark);
    font-family: var(--font-heading);

    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

/* ==========================================================
   3. HISTORICAL NARRATIVE AND IMAGE
   ========================================================== */

body.page .jasikan-history-intro .wp-block-columns {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr);

    gap: clamp(28px, 4vw, 56px);
    align-items: start;

    width: 100%;
    max-width: none;
    margin: 0;
}

body.page
.jasikan-history-intro
.wp-block-columns > .wp-block-column {
    min-width: 0;
    flex: none;
    margin: 0;
}

/* ==========================================================
   4. HISTORICAL TEXT
   ========================================================== */

body.page
.jasikan-history-intro
.wp-block-columns > .wp-block-column:first-child p {
    margin: 0 0 22px;

    color: var(--diocese-text);
    font-size: 1.04rem;
    line-height: 1.85;
}

body.page
.jasikan-history-intro
.wp-block-columns > .wp-block-column:first-child p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   5. CATHEDRAL IMAGE
   ========================================================== */

body.page
.jasikan-history-intro
.wp-block-columns > .wp-block-column:last-child figure {
    margin: 0;

    overflow: hidden;
    border: 1px solid var(--diocese-border);
    border-radius: var(--radius-large);

    background: var(--diocese-light);
    box-shadow: var(--shadow-small);
}

body.page
.jasikan-history-intro
.wp-block-columns > .wp-block-column:last-child img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 0;
}

/* ==========================================================
   6. HISTORICAL TIMELINE FOUNDATION
   ========================================================== */

body.page .jasikan-history .jasikan-history-timeline {
    position: relative;

    width: 100%;
    max-width: none;

    margin-top: clamp(64px, 7vw, 100px);
    padding-bottom: 10px;
}

body.page
.jasikan-history
.jasikan-history-timeline > h2 {
    margin: 0 0 44px;

    color: var(--diocese-primary-dark);
    font-family: var(--font-heading);

    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

/* ==========================================================
   7. TIMELINE SPINE
   ========================================================== */

body.page .jasikan-history .jasikan-history-timeline::before {
    content: "";

    position: absolute;
    top: 105px;
    bottom: 25px;
    left: 14px;

    width: 3px;

    background: linear-gradient(
        to bottom,
        var(--diocese-primary),
        var(--diocese-gold)
    );

    border-radius: 3px;
}

/* ==========================================================
   8. MILESTONE CARDS
   ========================================================== */

body.page .jasikan-history .jasikan-history-milestone {
    position: relative;

    width: calc(100% - 62px);
    max-width: none;

    margin: 0 0 30px 62px;
    padding: clamp(24px, 3vw, 36px);

    border: 1px solid var(--diocese-border);
    border-radius: var(--radius-large);

    background: var(--diocese-white);
    box-shadow: var(--shadow-small);
}

body.page
.jasikan-history
.jasikan-history-milestone:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   9. MILESTONE MARKERS
   ========================================================== */

body.page .jasikan-history .jasikan-history-milestone::before {
    content: "";

    position: absolute;
    top: 34px;
    left: -56px;

    width: 17px;
    height: 17px;

    border: 4px solid var(--diocese-primary);
    border-radius: 50%;

    background: var(--diocese-gold);

    box-shadow: 0 0 0 5px var(--diocese-white);
}

/* Short connector between marker and card */

body.page .jasikan-history .jasikan-history-milestone::after {
    content: "";

    position: absolute;
    top: 46px;
    left: -30px;

    width: 30px;
    height: 2px;

    background: var(--diocese-border);
}

/* ==========================================================
   10. MILESTONE DATES
   ========================================================== */

body.page
.jasikan-history
.jasikan-history-milestone > p:first-child {
    display: inline-block;

    margin: 0 0 16px;
    padding: 7px 14px;

    border-radius: 999px;

    background: var(--diocese-primary-soft);
    color: var(--diocese-primary-dark);

    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

/* ==========================================================
   11. MILESTONE HEADINGS
   ========================================================== */

body.page
.jasikan-history
.jasikan-history-milestone > h3 {
    margin: 0 0 16px;

    color: var(--diocese-primary-dark);
    font-family: var(--font-heading);

    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.3;
}

/* ==========================================================
   12. MILESTONE DESCRIPTIONS
   ========================================================== */

body.page
.jasikan-history
.jasikan-history-milestone > p:not(:first-child) {
    margin: 0;

    color: var(--diocese-text);
    font-size: 1.02rem;
    line-height: 1.85;
}

body.page
.jasikan-history
.jasikan-history-milestone > p:not(:first-child)
+ p {
    margin-top: 14px;
}

/* ==========================================================
   13. TABLET
   ========================================================== */

@media (max-width: 900px) {

    body.page .jasikan-history-intro .wp-block-columns {
        gap: 26px;
    }

    body.page .jasikan-history .jasikan-history-timeline {
        margin-top: 70px;
    }

    body.page .jasikan-history .jasikan-history-milestone {
        padding: 28px;
    }
}

/* ==========================================================
   14. MOBILE
   ========================================================== */

@media (max-width: 700px) {

    body.page .jasikan-history-intro > h2 {
        margin-bottom: 24px;
        font-size: 1.75rem;
    }

    body.page .jasikan-history-intro .wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    body.page
    .jasikan-history-intro
    .wp-block-columns > .wp-block-column:first-child p {
        font-size: 1rem;
        line-height: 1.8;
    }

    body.page
    .jasikan-history-intro
    .wp-block-columns > .wp-block-column:last-child figure {
        border-radius: var(--radius-medium);
    }

    /* Timeline */

    body.page .jasikan-history .jasikan-history-timeline {
        margin-top: 62px;
    }

    body.page
    .jasikan-history
    .jasikan-history-timeline > h2 {
        margin-bottom: 34px;
        font-size: 1.75rem;
    }

    body.page .jasikan-history .jasikan-history-timeline::before {
        top: 88px;
        bottom: 20px;
        left: 9px;
        width: 2px;
    }

    body.page .jasikan-history .jasikan-history-milestone {
        width: calc(100% - 35px);

        margin-left: 35px;
        margin-bottom: 24px;

        padding: 24px 20px;

        border-radius: var(--radius-medium);
    }

    body.page .jasikan-history .jasikan-history-milestone::before {
        top: 28px;
        left: -34px;

        width: 12px;
        height: 12px;

        border-width: 3px;
        box-shadow: 0 0 0 3px var(--diocese-white);
    }

    body.page .jasikan-history .jasikan-history-milestone::after {
        top: 36px;
        left: -19px;

        width: 19px;
    }

    body.page
    .jasikan-history
    .jasikan-history-milestone > h3 {
        font-size: 1.35rem;
    }

    body.page
    .jasikan-history
    .jasikan-history-milestone > p:not(:first-child) {
        font-size: 0.98rem;
        line-height: 1.8;
    }
}

/* ==========================================================
   15. SMALL MOBILE
   ========================================================== */

@media (max-width: 380px) {

    body.page .jasikan-history .jasikan-history-milestone {
        padding: 20px 16px;
    }

    body.page
    .jasikan-history
    .jasikan-history-milestone > h3 {
        font-size: 1.25rem;
    }
}



/* ==========================================================
   H1 — APPROVED HISTORY PAGE HERO
   Dedicated page-history.php template
   ========================================================== */

/* Remove generic page top spacing for the History template. */

body.page .site-main.jasikan-history-page {
    padding-top: 0;
    padding-bottom: 0;
}

/* Full-width photographic hero. */

.jasikan-history-page .jasikan-history-hero {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: clamp(340px, 36vw, 470px);

    overflow: hidden;

    background: #123c28;
}

/* Featured image fills the hero. */

.jasikan-history-page .jasikan-history-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.jasikan-history-page .jasikan-history-hero__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Dark-green overlay ensures text readability. */

.jasikan-history-page .jasikan-history-hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(5, 47, 28, 0.88) 0%,
        rgba(5, 47, 28, 0.68) 48%,
        rgba(5, 47, 28, 0.38) 100%
    );
}

/* Hero content. */

.jasikan-history-page .jasikan-history-hero__overlay {
    width: 100%;
    padding: 72px 0;
}

.jasikan-history-page .jasikan-history-hero__content {
    max-width: 780px;
}

.jasikan-history-page .jasikan-history-hero__eyebrow {
    margin: 0 0 16px;

    color: #e9d59a;

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

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.jasikan-history-page .jasikan-history-hero__title {
    margin: 0 0 18px;

    color: #ffffff;

    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;

    line-height: 1.08;
    letter-spacing: -0.025em;
}

.jasikan-history-page .jasikan-history-hero__subtitle {
    max-width: 640px;
    margin: 0;

    color: #f1f4ef;

    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.65;
}

/* Preserve content separation below the hero. */

.jasikan-history-page .jasikan-history-page__body {
    padding-top: clamp(48px, 6vw, 82px);
    padding-bottom: clamp(64px, 8vw, 104px);
}

.jasikan-history-page .jasikan-history-page__content {
    min-width: 0;
    width: 100%;
}

/* ==========================================================
   H1 — RESPONSIVE HERO
   ========================================================== */

@media (max-width: 700px) {

    .jasikan-history-page .jasikan-history-hero {
        min-height: 320px;
    }

    .jasikan-history-page .jasikan-history-hero__overlay {
        padding: 56px 0;
    }

    .jasikan-history-page .jasikan-history-hero__title {
        font-size: clamp(2.4rem, 9vw, 3.5rem);
    }

    .jasikan-history-page .jasikan-history-hero__subtitle {
        font-size: 1rem;
    }

    .jasikan-history-page .jasikan-history-hero::before {
        background: rgba(5, 47, 28, 0.72);
    }

    .jasikan-history-page .jasikan-history-page__body {
        padding-top: 42px;
        padding-bottom: 64px;
    }
}




/* ==========================================================
   H1 — APPROVED HISTORY HERO REFINEMENT
   Matches the approved History page composition.
   Scope: History template only.
   ========================================================== */

/* 1. Hero proportions */

body.page .jasikan-history-page .jasikan-history-hero {
    min-height: 320px;
    background: #e9e8dc;
}

/* 2. Light, warm photographic overlay */

body.page .jasikan-history-page
.jasikan-history-hero::before {
    background: linear-gradient(
        90deg,
        rgba(255, 250, 238, 0.94) 0%,
        rgba(255, 249, 234, 0.83) 27%,
        rgba(255, 249, 234, 0.42) 49%,
        rgba(255, 249, 234, 0.04) 75%
    );
}

/* 3. Hero content positioning */

body.page .jasikan-history-page
.jasikan-history-hero__overlay {
    padding: 58px 0;
}

body.page .jasikan-history-page
.jasikan-history-hero__content {
    max-width: 610px;
}

/* 4. Eyebrow */

body.page .jasikan-history-page
.jasikan-history-hero__eyebrow {
    margin-bottom: 12px;

    color: var(--diocese-gold-dark);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* 5. Main heading */

body.page .jasikan-history-page
.jasikan-history-hero__title {
    margin: 0 0 18px;

    color: var(--diocese-primary-dark);

    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.3rem);

    line-height: 1.08;
    letter-spacing: -0.025em;
}

/* 6. Green and gold heading underline */

body.page .jasikan-history-page
.jasikan-history-hero__title::after {
    content: "";

    display: block;

    width: 58px;
    height: 3px;

    margin-top: 15px;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        var(--diocese-primary) 0%,
        var(--diocese-gold) 100%
    );
}

/* 7. Subtitle */

body.page .jasikan-history-page
.jasikan-history-hero__subtitle {
    max-width: 440px;
    margin: 0;

    color: #34433e;

    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.55;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    body.page .jasikan-history-page
    .jasikan-history-hero {
        min-height: 300px;
    }

    body.page .jasikan-history-page
    .jasikan-history-hero::before {
        background: linear-gradient(
            90deg,
            rgba(255, 250, 238, 0.94) 0%,
            rgba(255, 250, 238, 0.72) 55%,
            rgba(255, 250, 238, 0.18) 100%
        );
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    body.page .jasikan-history-page
    .jasikan-history-hero {
        min-height: 280px;
    }

    body.page .jasikan-history-page
    .jasikan-history-hero__overlay {
        padding: 46px 0;
    }

    body.page .jasikan-history-page
    .jasikan-history-hero::before {
        background: linear-gradient(
            90deg,
            rgba(255, 250, 238, 0.96) 0%,
            rgba(255, 250, 238, 0.86) 60%,
            rgba(255, 250, 238, 0.60) 100%
        );
    }

    body.page .jasikan-history-page
    .jasikan-history-hero__title {
        font-size: clamp(2.4rem, 9vw, 3.2rem);
    }

    body.page .jasikan-history-page
    .jasikan-history-hero__subtitle {
        max-width: 320px;
        font-size: 1rem;
    }
}



/* ==========================================================
   H2 — APPROVED HISTORY INTRODUCTION PANEL
   Scope: History page only
   ========================================================== */

body.page
.jasikan-history-page
.jasikan-history-intro {
    box-sizing: border-box;

    width: 100%;
    max-width: none;

    margin: 0;
    padding: clamp(26px, 3vw, 42px);

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #edf4ef 0%,
        #f5f8f5 52%,
        #eef5f0 100%
    );
}

/* Introduction heading */

body.page
.jasikan-history-page
.jasikan-history-intro > h2 {
    margin: 0 0 28px;

    color: var(--diocese-primary-dark);
    font-family: var(--font-heading);

    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

/* Green-and-gold heading accent */

body.page
.jasikan-history-page
.jasikan-history-intro > h2::after {
    content: "";

    display: block;

    width: 54px;
    height: 3px;

    margin-top: 14px;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        var(--diocese-primary),
        var(--diocese-gold)
    );
}

/* Balanced introduction columns */

body.page
.jasikan-history-page
.jasikan-history-intro
.wp-block-columns {
    display: grid;

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

    gap: clamp(24px, 3.5vw, 46px);

    align-items: start;

    width: 100%;
    max-width: none;

    margin: 0;
}

/* Introduction image */

body.page
.jasikan-history-page
.jasikan-history-intro
.wp-block-columns
> .wp-block-column:last-child figure {
    margin: 0;

    overflow: hidden;

    border: 0;
    border-radius: 9px;

    box-shadow: none;
}

body.page
.jasikan-history-page
.jasikan-history-intro
.wp-block-columns
> .wp-block-column:last-child img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 0;
}

/* ==========================================================
   H2 — MOBILE
   ========================================================== */

@media (max-width: 700px) {

    body.page
    .jasikan-history-page
    .jasikan-history-intro {
        padding: 24px 20px;
        border-radius: 10px;
    }

    body.page
    .jasikan-history-page
    .jasikan-history-intro
    .wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    body.page
    .jasikan-history-page
    .jasikan-history-intro > h2 {
        font-size: 1.7rem;
        margin-bottom: 24px;
    }
}




/* ==========================================================
   H3 — APPROVED HORIZONTAL HISTORICAL TIMELINE
   Isolated override — History timeline only
   ========================================================== */

/* Timeline container */

body.page .jasikan-history .jasikan-history-timeline {
    position: relative;
    width: 100%;
    max-width: none;
    margin-top: 56px;
    padding: 0;
    overflow: visible;
}

/* Actual Gutenberg inner container */

body.page .jasikan-history .jasikan-history-timeline
> .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 0 !important;
    align-items: stretch;
    width: 100%;
    max-width: none;
}

/* Section heading across all five columns */

body.page .jasikan-history .jasikan-history-timeline
> .wp-block-group__inner-container > h2 {
    grid-column: 1 / -1;
    margin: 0 0 58px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
}

/* Remove original vertical spine */

body.page .jasikan-history .jasikan-history-timeline::before {
    content: none !important;
}

/* Horizontal connecting line */

body.page .jasikan-history .jasikan-history-timeline
> .wp-block-group__inner-container {
    position: relative;
}

body.page .jasikan-history .jasikan-history-timeline
> .wp-block-group__inner-container::before {
    content: "";
    position: absolute;
    top: 110px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #d3dbd5;
    z-index: 0;
}

/* Five milestone cards */

body.page .jasikan-history .jasikan-history-timeline
.jasikan-history-milestone {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    grid-row: 2;

    width: 100% !important;
    max-width: none !important;
    min-width: 0;

    margin: 0 !important;
    padding: 24px 16px 22px !important;

    border: 1px solid #dce6df;
    border-radius: 10px;
    background: #fff;

    box-shadow: 0 5px 18px rgba(0, 45, 20, 0.045);

    text-align: center;
}

/* Neutralize old milestone dots and connectors */

body.page .jasikan-history .jasikan-history-timeline
.jasikan-history-milestone::before,
body.page .jasikan-history .jasikan-history-timeline
.jasikan-history-milestone::after {
    content: none !important;
}

/* Milestone label */

body.page .jasikan-history .jasikan-history-timeline
.jasikan-history-milestone > .wp-block-group__inner-container
> p:first-child {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;

    color: #b58200;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/* Heading */

body.page .jasikan-history .jasikan-history-timeline
.jasikan-history-milestone h3 {
    margin: 0 0 14px !important;

    color: var(--diocese-primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.3;

    overflow-wrap: normal;
    word-break: normal;
}

/* Gold and green accent beneath heading */

body.page .jasikan-history .jasikan-history-timeline
.jasikan-history-milestone h3::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin: 12px auto 0;

    background: linear-gradient(
        90deg,
        #08602f,
        #d2a000
    );
}

/* Description */

body.page .jasikan-history .jasikan-history-timeline
.jasikan-history-milestone p:not(:first-child) {
    margin: 0 !important;
    padding: 0 !important;

    background: transparent;

    color: var(--diocese-text);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.65;
    text-transform: none;
    letter-spacing: normal;
}

/* ==========================================================
   TABLET — 2 COLUMNS
   ========================================================== */

@media (max-width: 900px) {

    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container::before {
        content: none;
    }

    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container > h2 {
        grid-column: 1 / -1;
        margin-bottom: 12px;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone {
        grid-row: auto;
    }
}

/* ==========================================================
   MOBILE — SINGLE COLUMN
   ========================================================== */

@media (max-width: 600px) {

    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone {
        padding: 22px 20px !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone h3 {
        font-size: 1.25rem;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone p:not(:first-child) {
        font-size: 0.95rem;
    }
}



/* ==========================================================
   H3 — HISTORICAL MILESTONE ICON FOUNDATION
   ========================================================== */

@media (min-width: 901px) {

    body.page .jasikan-history
    .jasikan-history-timeline
    > .wp-block-group__inner-container {
        row-gap: 0 !important;
    }

    body.page .jasikan-history
    .jasikan-history-timeline
    > .wp-block-group__inner-container > h2 {
        margin-bottom: 112px;
    }

    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone {
        overflow: visible;
    }

    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone::before {
        content: "" !important;
        position: absolute;
        top: -80px;
        left: 50%;
        transform: translateX(-50%);

        width: 54px;
        height: 54px;

        border: 0;
        border-radius: 50%;

        background-color: #064b28;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 29px 29px;

        box-shadow: 0 0 0 5px #fff;
        z-index: 3;
    }

    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(4)::before,
    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(6)::before {
        background-color: #c99700;
    }

    body.page .jasikan-history
    .jasikan-history-timeline
    > .wp-block-group__inner-container::before {
        top: 142px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #cdd5cf;
    }
}




/* ==========================================================
   H3 — STEP 18E
   APPROVED TIMELINE — CIRCLE AND LINE ALIGNMENT
   Desktop only
   ========================================================== */

@media (min-width: 901px) {

    /* Space between heading and milestone cards */
    body.page .jasikan-history
    .jasikan-history-timeline
    > .wp-block-group__inner-container > h2 {
        margin-bottom: 75px !important;
    }

    /* Circular markers centred over each card */
    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone::before {
        top: -60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        width: 60px !important;
        height: 60px !important;

        border-radius: 50% !important;
        background-size: 32px 32px;
    }

    /* Continuous horizontal line behind the circles */
    body.page .jasikan-history
    .jasikan-history-timeline
    > .wp-block-group__inner-container::before {
        top: 101px !important;
        left: 8% !important;
        right: 8% !important;

        height: 2px !important;
        background: #c7cfca !important;
        z-index: 0;
    }

    /* Keep cards and circular markers above the line */
    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone {
        position: relative;
        z-index: 1;
        overflow: visible;
    }

    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone::before {
        z-index: 3;
    }
}



/* ==========================================================
   H3 — STEP 18F
   APPROVED HISTORICAL MILESTONE ICONS
   SVG artwork only — preserve existing positioning
   ========================================================== */

@media (min-width: 901px) {

    /* 01 — Missionary Beginnings: Church */
    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(3)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 28V15l11-8 11 8v13M3 28h26M11 28V18h10v10M16 3v8M13 6h6M8 14h16M13 28v-7h6v7'/%3E%3C/svg%3E") !important;
    }

    /* 02 — Expansion of the Faith: Community */
    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(4)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='10' r='4'/%3E%3Cpath d='M9 27v-5c0-4 3-7 7-7s7 3 7 7v5H9ZM7 11a3 3 0 1 0 0-6M7 16c-3 0-5 2-5 5v5h5M25 11a3 3 0 1 1 0-6M25 16c3 0 5 2 5 5v5h-5'/%3E%3C/svg%3E") !important;
    }

    /* 03 — Establishment of the Diocese: Document */
    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(5)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h12l5 5v21H8V3ZM20 3v6h5M12 15h9M12 20h9M12 25h9'/%3E%3C/svg%3E") !important;
    }

    /* 04 — Episcopal Leadership: Bishop's Mitre */
    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(6)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 2C11 7 8 13 8 23Q16 28 24 23C24 13 21 7 16 2ZM8 21Q16 26 24 21M16 8v13M12.5 13h7M10 24l-2 6 4-3M22 24l2 6-4-3'/%3E%3C/svg%3E") !important;
    }

    /* 05 — Diocese Today: Community */
    body.page .jasikan-history
    .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(7)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='9' r='4'/%3E%3Cpath d='M9 27v-5c0-4 3-7 7-7s7 3 7 7v5H9ZM6 12a3 3 0 1 0 0-6M6 17c-3 0-5 2-5 5v4h5M26 12a3 3 0 1 1 0-6M26 17c3 0 5 2 5 5v4h-5'/%3E%3C/svg%3E") !important;
    }
}



/* ==========================================================
   H3 — STEP 19C: APPROVED MOBILE MILESTONE ICONS
   Stacked cards with centred icons, no connecting line.
   Desktop timeline remains unchanged.
   ========================================================== */
@media (max-width: 600px) {
    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container {
        row-gap: 0 !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container > h2 {
        margin-bottom: 38px !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container::before,
    body.page .jasikan-history .jasikan-history-timeline::before {
        content: none !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone {
        position: relative !important;
        overflow: visible !important;
        margin: 0 0 54px !important;
        padding: 39px 20px 24px !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone:last-child {
        margin-bottom: 0 !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone::before {
        content: "" !important;
        position: absolute !important;
        top: -29px !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        display: block !important;
        width: 58px !important;
        height: 58px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 50% !important;
        background-color: #064b28 !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 30px 30px !important;
        box-shadow: 0 0 0 5px #fff !important;
        z-index: 2 !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(4)::before,
    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(6)::before {
        background-color: #c99700 !important;
    }

    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone::after {
        content: none !important;
    }

    /* Milestone 01 — same SVG as approved desktop */
    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(3)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 28V15l11-8 11 8v13M3 28h26M11 28V18h10v10M16 3v8M13 6h6M8 14h16M13 28v-7h6v7'/%3E%3C/svg%3E") !important;
    }

    /* Milestone 02 — same SVG as approved desktop */
    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(4)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='10' r='4'/%3E%3Cpath d='M9 27v-5c0-4 3-7 7-7s7 3 7 7v5H9ZM7 11a3 3 0 1 0 0-6M7 16c-3 0-5 2-5 5v5h5M25 11a3 3 0 1 1 0-6M25 16c3 0 5 2 5 5v5h-5'/%3E%3C/svg%3E") !important;
    }

    /* Milestone 03 — same SVG as approved desktop */
    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(5)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h12l5 5v21H8V3ZM20 3v6h5M12 15h9M12 20h9M12 25h9'/%3E%3C/svg%3E") !important;
    }

    /* Milestone 04 — same SVG as approved desktop */
    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(6)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 2C11 7 8 13 8 23Q16 28 24 23C24 13 21 7 16 2ZM8 21Q16 26 24 21M16 8v13M12.5 13h7M10 24l-2 6 4-3M22 24l2 6-4-3'/%3E%3C/svg%3E") !important;
    }

    /* Milestone 05 — same SVG as approved desktop */
    body.page .jasikan-history .jasikan-history-timeline
    .jasikan-history-milestone:nth-child(7)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='9' r='4'/%3E%3Cpath d='M9 27v-5c0-4 3-7 7-7s7 3 7 7v5H9ZM6 12a3 3 0 1 0 0-6M6 17c-3 0-5 2-5 5v4h5M26 12a3 3 0 1 1 0-6M26 17c3 0 5 2 5 5v4h-5'/%3E%3C/svg%3E") !important;
    }
}



/* ==========================================================
   H4 — STEP 20G: THE DIOCESE TODAY
   Scoped addition — does not change the approved hero,
   introduction or historical timeline.
   ========================================================== */

body.page .jasikan-history-page .jasikan-history-today {
    width: 100%;
    max-width: none;
    margin-top: clamp(56px, 7vw, 92px);
}

body.page .jasikan-history-page .jasikan-history-today .wp-block-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column {
    min-width: 0;
    margin: 0;
    flex: none;
}

/* Left panel: cathedral image with integrated caption strip. */
body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--diocese-light, #edf4ef);
}

body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 20px;
    background: #064b28;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

/* Right panel: institutional narrative. */
body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child {
    box-sizing: border-box;
    padding: clamp(25px, 3vw, 40px);
    border-radius: 12px;
    background: #f8f5eb;
}

body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child h2 {
    margin: 0 0 24px;
    color: var(--diocese-primary-dark, #064b28);
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    line-height: 1.2;
}

body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #08602f, #d2a000);
}

body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child > p {
    margin: 0 0 24px;
    color: var(--diocese-text, #34433e);
    font-size: 1rem;
    line-height: 1.8;
}

/* The motto Group has its own dedicated CSS class. */
body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto {
    position: relative;
    box-sizing: border-box;
    margin: 24px 0 0;
    padding: 22px 22px 20px 54px;
    border-left: 3px solid #c99700;
    border-radius: 0 9px 9px 0;
    background: #f0ead8;
}

body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto::before {
    content: "“";
    position: absolute;
    top: 8px;
    left: 16px;
    color: #b78c00;
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
}

body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto p {
    margin: 0;
    color: #064b28;
    line-height: 1.55;
}

body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto p:first-child {
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
}

body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto p + p {
    margin-top: 5px;
    font-size: 0.92rem;
}

/* Tablet and mobile: stack image above narrative. */
@media (max-width: 780px) {
    body.page .jasikan-history-page .jasikan-history-today .wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image,
    body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image img {
        height: auto;
        min-height: 0;
    }

    body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}

@media (max-width: 600px) {
    body.page .jasikan-history-page .jasikan-history-today {
        margin-top: 58px;
    }

    body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child {
        padding: 25px 21px;
    }

    body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child h2 {
        font-size: 1.75rem;
    }

    body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto {
        padding: 20px 16px 20px 45px;
    }
}



/* H4 — Step 20H: Compact approved Diocese Today composition.
   Append AFTER Step 20G. Scope strictly limited to this section. */
@media (min-width: 781px) {
  body.page .jasikan-history-page .jasikan-history-today .wp-block-columns {
    gap: 16px;
    align-items: stretch;
  }
  body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image {
    height: 100%;
    min-height: 0;
    aspect-ratio: 1.85 / 1;
  }
  body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
}
body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child {
  padding: clamp(18px, 2.1vw, 28px);
}
body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 2.25vw, 2rem);
  line-height: 1.2;
}
body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child h2::after {
  width: 38px;
  height: 2px;
  margin-top: 9px;
}
/* Gutenberg may wrap column blocks in an inner container.
   Match the narrative paragraph at either nesting level, not motto paragraphs. */
body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child > p,
body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child > .wp-block-column__inner-container > p,
body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:last-child > .wp-block-group__inner-container > p {
  margin: 0 0 14px !important;
  color: #34433e !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.91rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: normal !important;
}
body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto {
  margin: 12px 0 0;
  padding: 13px 16px 12px 54px;
  border-left: 2px solid #c99700;
  border-radius: 5px;
  background: #f5efdf;
}
body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto::before {
  content: '“';
  top: 13px;
  left: 14px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #c99700;
  color: #fff;
  font: 700 1.9rem/1.2 Georgia, serif;
  text-align: center;
}
body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto p:first-child {
  font-family: Georgia, serif;
  font-size: 1.03rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
}
body.page .jasikan-history-page .jasikan-history-today .jasikan-history-motto p + p {
  margin-top: 3px;
  color: #b58200;
  font-size: 0.83rem;
}
body.page .jasikan-history-page .jasikan-history-today figure.wp-block-image figcaption {
  padding: 10px 16px !important;
  font-size: 0.78rem !important;
}
@media (max-width: 780px) {
  body.page .jasikan-history-page .jasikan-history-today .wp-block-columns > .wp-block-column:first-child figure.wp-block-image img {
    position: static;
  }
}


/* H4 — Step 20J: Motto background refinement */

body.page .jasikan-history-today
.jasikan-history-motto {
    background: #f7f0df !important;
    border-left: 2px solid #c99700;
    border-radius: 5px;
}


/* Keep the motto quotation icon inside its own panel */

body.page .jasikan-history-page
.jasikan-history-today
.jasikan-history-motto {
    position: relative !important;
    isolation: isolate;
}

body.page .jasikan-history-page
.jasikan-history-today
.jasikan-history-motto::before {
    position: absolute !important;
    top: 13px !important;
    left: 14px !important;
}



/* H4 — Step 20K-R7
   Remove the unwanted quotation icon from the
   right-hand narrative column only.
*/

body.page .jasikan-history-page
.jasikan-history-today
.wp-block-columns > .wp-block-column:last-child::before {
    content: none !important;
    display: none !important;
}



/* H4 — Step 20L: Approved motto inset background */

body.page .jasikan-history-page
.jasikan-history-today
.wp-block-columns > .wp-block-column:last-child
.jasikan-history-motto {
    background-color: #f7f0df !important;
    background-image: none !important;
}


/* H4 — Step 20N: Refined motto inset */

body.page .jasikan-history-page
.jasikan-history-today
.jasikan-history-motto {
    background: linear-gradient(
        135deg,
        #f3e9d2 0%,
        #f8f0df 100%
    ) !important;
}


/* ==========================================================
   H5 — STEP 22M: EXPLORE MORE (ISOLATED)
   Only targets the Explore More Group and its direct card Columns.
   ========================================================== */

body.page .jasikan-history-page .jasikan-history-explore {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
    padding: clamp(18px, 2.4vw, 30px);
    border-radius: 12px;
    background: linear-gradient(135deg, #edf5ef 0%, #f3f8f4 100%);
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > h2 {
    margin: 0 0 8px;
    color: #064b28;
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    line-height: 1.2;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > p {
    margin: 0 0 20px;
    color: #34433e;
    font-size: 0.92rem;
    line-height: 1.55;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 90px;
    margin: 0;
    padding: 16px 26px 16px 58px;
    border: 1px solid #e1e9e3;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 45, 20, 0.045);
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #b58200;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card > h3 {
    margin: 0 0 4px;
    color: #064b28;
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(0.88rem, 1.15vw, 1.05rem);
    line-height: 1.25;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card > h3 a {
    color: inherit;
    text-decoration: none;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card > h3 a:hover,
body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card > h3 a:focus-visible {
    color: #a87b00;
    text-decoration: underline;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card > p {
    margin: 0;
    color: #52615a;
    font-size: 0.75rem;
    line-height: 1.4;
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23064b28%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%203C11%209%2010%2015%2010%2023l6%203%206-3c0-8-1-14-6-20ZM16%205v20M10%2023l-3%207M22%2023l3%207M10%2023h12%22%2F%3E%3C%2Fsvg%3E");
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23c99700%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2029V14l11-8%2011%208v15M3%2029h26M12%2029V19h8v10M16%203v7M13%206h6M8%2016h16%22%2F%3E%3C%2Fsvg%3E");
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22%23064b28%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%228%22%20r%3D%225%22%2F%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%2226%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M8%2028v-6c0-5%203-8%208-8s8%203%208%208v6H8ZM1%2027v-6c0-3%202-5%205-5h2v11H1ZM24%2027V16h2c3%200%205%202%205%205v6h-7Z%22%2F%3E%3C%2Fsvg%3E");
}

body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23064b28%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2226%22%20height%3D%2224%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%209h7v8H8zM19%209h6M19%2013h6M8%2021h17M8%2025h17%22%2F%3E%3C%2Fsvg%3E");
}

@media (max-width: 950px) {
    body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.page .jasikan-history-page .jasikan-history-explore {
        padding: 20px 16px;
    }
    body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    body.page .jasikan-history-page .jasikan-history-explore > .wp-block-group__inner-container > .wp-block-columns > .jasikan-history-explore-card {
        min-height: 80px;
    }
}


/* H5 — STEP 23B-4: button positioned without occupying a timeline grid cell. */
body.page .jasikan-history .jasikan-history-timeline
> .wp-block-group__inner-container > .wp-block-buttons:has(> .jasikan-history-details-action) {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}
body.page .jasikan-history .jasikan-history-timeline
.wp-block-buttons:has(> .jasikan-history-details-action) .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #08602f;
    border-radius: 7px;
    background: #fff;
    color: #064b28;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: none;
}
body.page .jasikan-history .jasikan-history-timeline
.wp-block-buttons:has(> .jasikan-history-details-action) .wp-block-button__link:hover,
body.page .jasikan-history .jasikan-history-timeline
.wp-block-buttons:has(> .jasikan-history-details-action) .wp-block-button__link:focus-visible {
    background: #edf5ef;
    color: #064b28;
}
@media (min-width: 901px) {
    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container > h2 {
        padding-right: 220px;
    }
}
@media (max-width: 900px) {
    body.page .jasikan-history .jasikan-history-timeline
    > .wp-block-group__inner-container > .wp-block-buttons:has(> .jasikan-history-details-action) {
        position: static;
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: start;
        margin: -4px 0 16px;
    }
}
