.history-page {
    margin: 0 auto;
    padding: 0 0 8px;
    color: #1e2d24;
    font-family: "Outfit", Arial, sans-serif;
}

body .history-page h2.history-lead.history-lead {
    margin: 0 0 18px;
    color: #111;
    font-family: "Outfit", Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
}

.history-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0 0 22px;
}

.history-photo {
    display: block;
    min-width: 0;
    height: 380px;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f6f1;
}

.history-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.history-intro,
.history-define p,
.history-event > p:not(.history-event__year),
.history-later__card > p,
.history-cards__lead,
.history-waqfs span {
    margin: 0;
    color: #1e2d24;
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
}

.history-intro {
    margin-bottom: 28px;
}

.history-define {
    margin: 0 0 36px;
    padding: 22px 24px;
    border-left: 3px solid #153d25;
    border-radius: 0 5px 5px 0;
    background: #f5f6f1;
}

.history-flow {
    position: relative;
    margin: 0 0 8px;
    padding-left: 36px;
}

.history-flow::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 12px;
    width: 1px;
    background: #c5d4c4;
}

.history-event {
    position: relative;
    margin: 0 0 8px;
    padding: 0 0 28px;
}

.history-event::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 4px;
    width: 11px;
    height: 11px;
    border: 2px solid #153d25;
    border-radius: 50%;
    background: #fff;
}

.history-event__year {
    margin: 0 0 6px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
}

body .history-page h3.history-section__title.history-section__title {
    margin: 0 0 10px;
    color: #111;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
}

.history-gallery--inline {
    margin-top: 16px;
    margin-bottom: 0;
}

.history-gallery--inline .history-photo {
    height: 240px;
}

.history-cards {
    margin-top: 18px;
    padding: 16px 16px 8px;
    border-radius: 5px;
    background: #f5f6f1;
}

body .history-page h4.history-cards__title.history-cards__title {
    margin: 0 0 6px;
    color: #111;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.04em !important;
}

.history-cards__lead {
    margin-bottom: 12px;
    font-size: 14px;
}

.history-waqfs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
}

.history-waqfs li {
    margin: 0;
    padding: 14px 14px 12px;
    border-radius: 5px;
    background: #fff;
    text-align: left;
}

.history-waqfs strong {
    display: block;
    margin: 0 0 6px;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.history-waqfs span {
    display: block;
    color: #1e2d24;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.history-later {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.history-later__card {
    padding: 22px 20px 20px;
    border: 1px solid #dde3dc;
    border-radius: 5px;
    background: #fff;
}

@media (max-width: 800px) {
    .history-gallery {
        grid-template-columns: 1fr;
    }

    .history-photo,
    .history-gallery--inline .history-photo {
        height: 220px;
    }

    .history-waqfs,
    .history-later {
        grid-template-columns: 1fr;
    }

    .history-define,
    .history-later__card {
        padding: 18px 16px;
    }

    body .history-page h2.history-lead.history-lead {
        font-size: 22px !important;
    }
}
