/* ==========================================
   STORY SECTION
========================================== */

.story {
    position: relative;
    padding: 100px 20px;
    text-align: center;
}

/* ==========================================
   CARD WRAPPER
========================================== */

.card-story {
    position: relative;
    padding: 60px 40px;
    background: var(--primary-color);
    max-width: 800px;
    margin: auto;
    text-align: left;
    border-radius: 0px 0px 0px 150px;
    overflow: visible;
}

/* layer belakang */
.card-story::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    border-radius: inherit;
    transform: translate(12px, 12px);
}

/* ==========================================
   ITEM
========================================== */

.story-item {
    position: relative;
    padding: 10px;
    margin-bottom: 60px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    /* ruang timeline kanan */
}

/* ==========================================
   TIMELINE KANAN (🔥 inti)
========================================== */

/* garis */
.story-item::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
    opacity: 0.3;
}

/* titik */
.timeline {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
}

/* bulatan titik */
.timeline::before {
    content: '';
    position: absolute;
    right: -52px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* garis kecil bawah text */
.timeline::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--secondary-color);
    margin-top: 10px;
    opacity: 0.6;
}

/* ==========================================
   COVER IMAGE
========================================== */

.story-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   TITLE
========================================== */

.card-story .section-title {
    font-family: var(--heading-font);
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

.story-title {
    font-size: 28px;
    font-family: var(--heading-font);
    color: var(--accent-color);
}

/* ==========================================
   CONTENT
========================================== */

.story-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.85;
    white-space: pre-line;
    padding-bottom: 20px;
}

/* ==========================================
   SPACING
========================================== */

.story-item>*:not(:last-child) {
    margin-bottom: 20px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .card-story {
        border-radius: 0px 0px 0px 100px;
        padding: 40px 0px 40px 20px;
        margin-left: 0px;
    }

    .story-item {

        text-align: start;
    }

    /* hilangkan timeline di mobile */
    .story-item::after {
        display: none;
    }

    .timeline::before {
        display: none;
    }
}