/* =========================================================
   HISTORY — MODEL VILLAGE DESIGN
========================================================= */

.history-section {
    width: 100%;
    padding: 55px 20px 70px;

    background: #f4f7fb;
}

.history-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* =========================================================
   TOP / BREADCRUMB
========================================================= */

.history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;

    padding: 0 3px;
}

.history-label {
    display: block;

    margin-bottom: 5px;

    color: #16a34a;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.history-title-wrap h1 {
    margin: 0;

    color: #0f172a;

    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
}

.history-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 9px;

    font-size: 11px;
}

.history-breadcrumb a {
    color: #15803d;
    text-decoration: none;
    font-weight: 700;
}

.history-breadcrumb a:hover {
    text-decoration: underline;
}

.history-breadcrumb i {
    color: #94a3b8;
    font-size: 8px;
}

.history-breadcrumb span {
    color: #64748b;
}

.history-page-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    color: #16a34a;

    background: #dcfce7;

    font-size: 27px;

    box-shadow:
        0 8px 25px rgba(22, 163, 74, .10);
}


/* =========================================================
   MAIN GRID
========================================================= */

.history-layout {
    display: grid;

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

    gap: 22px;

    align-items: start;
}


/* =========================================================
   HISTORY ARTICLE CARD
========================================================= */

.history-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(15, 23, 42, .06);
}


/* =========================================================
   ARTICLE HEADER
========================================================= */

.history-card-header {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 21px 24px;

    color: #fff;

    background:
        linear-gradient(135deg, #15803d, #84cc16);
}

.history-header-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: rgba(255,255,255,.18);

    font-size: 19px;
}

.history-card-header span {
    display: block;

    margin-bottom: 3px;

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

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.history-card-header h2 {
    margin: 0;

    font-size: 20px;
    font-weight: 900;
}


/* =========================================================
   HISTORY CONTENT
========================================================= */

.history-content {
    padding: 25px;
}


/* =========================================================
   INTRO
========================================================= */

.history-intro {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 17px;

    margin-bottom: 27px;

    border-radius: 14px;

    background: #f0fdf4;

    border: 1px solid #dcfce7;
}

.intro-mark {
    width: 48px;
    min-width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #15803d;

    background: #dcfce7;

    font-size: 11px;
    font-weight: 900;
}

.history-intro p {
    margin: 0;

    color: #475569;

    font-size: 13px;
    line-height: 1.9;
    font-weight: 500;
}


/* =========================================================
   TIMELINE
========================================================= */

.history-timeline {
    position: relative;

    padding-left: 27px;
}

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

    position: absolute;

    top: 5px;
    bottom: 5px;
    left: 7px;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
            #86efac,
            #dcfce7
        );
}


/* =========================================================
   HISTORY ITEM
========================================================= */

.history-item {
    position: relative;

    display: flex;

    padding-bottom: 25px;
}

.history-item.last-item {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;

    left: -27px;
    top: 1px;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 3px solid #fff;
    border-radius: 50%;

    color: #fff;

    background: #16a34a;

    box-shadow:
        0 0 0 2px #bbf7d0;

    font-size: 6px;

    z-index: 2;
}

.history-item-content {
    width: 100%;

    padding: 15px 17px;

    border: 1px solid #edf1f5;
    border-radius: 13px;

    background: #fff;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.history-item-content:hover {
    transform: translateX(4px);

    border-color: #bbf7d0;

    box-shadow:
        0 8px 25px rgba(15,23,42,.06);
}

.history-period {
    display: inline-block;

    margin-bottom: 7px;

    padding: 4px 9px;

    border-radius: 20px;

    color: #15803d;

    background: #f0fdf4;

    font-size: 9px;
    font-weight: 900;
}

.history-item-content p {
    margin: 0;

    color: #475569;

    font-size: 12px;
    line-height: 1.85;

    text-align: justify;
}


/* =========================================================
   RIGHT HERITAGE CARD
========================================================= */

.heritage-column {
    display: flex;
    flex-direction: column;

    gap: 17px;
}

.heritage-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #d1fae5;
    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(15, 23, 42, .07);
}


/* =========================================================
   HERITAGE HEADER
========================================================= */

.heritage-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 21px;

    color: #fff;

    background:
        linear-gradient(145deg, #166534, #65a30d);
}

.heritage-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255,255,255,.18);

    font-size: 18px;
}

.heritage-header span {
    display: block;

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

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.heritage-header h2 {
    margin: 3px 0 0;

    font-size: 18px;
    font-weight: 900;
}


/* =========================================================
   HERITAGE BODY
========================================================= */

.heritage-body {
    padding: 18px;
}

.heritage-info {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 11px;

    margin-bottom: 9px;

    border: 1px solid #edf1f5;
    border-radius: 12px;

    background: #f8fafc;
}

.heritage-info-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    color: #16a34a;

    background: #dcfce7;

    font-size: 13px;
}

.heritage-info div:last-child {
    min-width: 0;
}

.heritage-info span {
    display: block;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.heritage-info strong {
    display: block;

    margin-top: 3px;

    color: #334155;

    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   QUOTE
========================================================= */

.heritage-quote {
    position: relative;

    margin-top: 16px;

    padding: 18px 15px;

    overflow: hidden;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #f0fdf4,
            #ecfccb
        );
}

.heritage-quote > i {
    position: absolute;

    top: -7px;
    right: 8px;

    color: #bbf7d0;

    font-size: 48px;
}

.heritage-quote p {
    position: relative;

    margin: 0;

    color: #166534;

    font-size: 11px;
    line-height: 1.7;
    font-weight: 700;
}


/* =========================================================
   EXPLORE CARD
========================================================= */

.history-explore {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 19px;

    color: #fff;
    text-decoration: none;

    border-radius: 17px;

    background:
        linear-gradient(135deg, #16a34a, #84cc16);

    box-shadow:
        0 9px 25px rgba(22,163,74,.16);

    transition: all .25s ease;
}

.history-explore:hover {
    transform: translateY(-3px);

    box-shadow:
        0 13px 30px rgba(22,163,74,.25);
}

.history-explore span {
    display: block;

    margin-bottom: 3px;

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

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
}

.history-explore strong {
    font-size: 14px;
    font-weight: 900;
}

.explore-arrow {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.18);

    transition: transform .25s ease;
}

.history-explore:hover .explore-arrow {
    transform: translateX(4px);
}


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

@media (max-width: 1050px) {

    .history-layout {
        grid-template-columns: 1fr;
    }

    .heritage-column {
        display: grid;

        grid-template-columns: 1fr 1fr;

        align-items: start;
    }

}


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

@media (max-width: 700px) {

    .history-section {
        padding: 40px 12px 55px;
    }

    .history-top {
        margin-bottom: 18px;
    }

    .history-page-icon {
        width: 48px;
        height: 48px;

        border-radius: 14px;

        font-size: 20px;
    }

    .history-label {
        font-size: 8px;
    }

    .history-title-wrap h1 {
        font-size: 30px;
    }

    .history-breadcrumb {
        font-size: 10px;
    }

    .history-layout {
        gap: 14px;
    }

    .history-card,
    .heritage-card {
        border-radius: 16px;
    }

    .history-card-header {
        padding: 16px;
    }

    .history-header-icon {
        width: 42px;
        height: 42px;

        border-radius: 11px;

        font-size: 16px;
    }

    .history-card-header h2 {
        font-size: 16px;
    }

    .history-card-header span {
        font-size: 7px;
    }

    .history-content {
        padding: 15px;
    }

    .history-intro {
        gap: 10px;

        padding: 13px;

        margin-bottom: 20px;
    }

    .intro-mark {
        width: 40px;
        min-width: 40px;
        height: 40px;

        border-radius: 10px;

        font-size: 9px;
    }

    .history-intro p {
        font-size: 11px;
        line-height: 1.75;
    }

    .history-timeline {
        padding-left: 22px;
    }

    .history-timeline::before {
        left: 6px;
    }

    .timeline-dot {
        left: -22px;

        width: 15px;
        height: 15px;
    }

    .history-item {
        padding-bottom: 16px;
    }

    .history-item-content {
        padding: 12px;
    }

    .history-item-content p {
        font-size: 11px;
        line-height: 1.75;
    }

    .history-period {
        font-size: 8px;
    }

    .heritage-column {
        display: flex;
        gap: 12px;
    }

    .heritage-header {
        padding: 17px;
    }

    .heritage-body {
        padding: 14px;
    }

    .heritage-info {
        padding: 9px;
    }

    .history-explore {
        padding: 15px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .history-section {
        padding-left: 9px;
        padding-right: 9px;
    }

    .history-page-icon {
        display: none;
    }

    .history-title-wrap h1 {
        font-size: 27px;
    }

}