/* =================================
   HISTORY PAGE
================================= */

.history-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 64px;
    box-sizing: border-box;
}

.history-page *,
.history-page *::before,
.history-page *::after {
    box-sizing: border-box;
}

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

.history-intro {
    max-width: 820px;
    margin: 34px 0 36px;
}

.history-intro h1 {
    margin: 0 0 18px;
    font-size: 42px;
    line-height: 1.15;
}

.history-lead {
    margin: 0;
    color: #333333;
    font-size: 18px;
    line-height: 1.75;
}

/* =================================
   SUMMARY
================================= */

.history-summary {
    margin: 0 0 50px;
    padding: 36px;

    background: #f7f5f0;
    border: 1px solid #e2dccf;
    border-radius: 16px;
}

.history-summary__header {
    max-width: 760px;
    margin-bottom: 26px;
}

.history-summary__label,
.historical-purpose__label,
.rediscovery-section__eyebrow {
    display: inline-flex;
    margin-bottom: 13px;
    padding: 7px 11px;

    background: #ffffff;
    border: 1px solid #dfd5bd;
    border-radius: 7px;

    color: #8a6a1e;
    font-size: 13px;
    font-weight: 700;
}

.history-summary__header h2 {
    margin: 0 0 13px;
    font-size: 32px;
    line-height: 1.2;
}

.history-summary__header p {
    margin: 0;
    color: #444444;
    font-size: 16px;
    line-height: 1.7;
}

.history-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.history-summary-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 175px;
    padding: 22px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
}

.history-summary-card--featured {
    border-top: 4px solid #bfa25a;
}

.history-summary-card__title {
    margin-bottom: 11px;

    color: #666666;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
    text-transform: uppercase;
}

.history-summary-card strong {
    display: block;
    margin-bottom: 12px;

    color: #111111;
    font-size: 23px;
    line-height: 1.25;
}

.history-summary-card--featured strong {
    color: #8a6a1e;
}

.history-summary-card p {
    margin: 0;

    color: #444444;
    font-size: 14px;
    line-height: 1.65;
}

/* =================================
   MAIN IMAGE
================================= */

.history-main-image {
    margin: 0 0 50px;
}

.history-main-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.history-main-image figcaption {
    margin-top: 10px;

    color: #666666;
    font-size: 13px;
    line-height: 1.5;
}

/* =================================
   COMMON SECTIONS
================================= */

.history-timeline,
.historical-purpose,
.name-origin,
.historic-architecture,
.ottoman-history,
.rediscovery-section,
.medusa-history,
.restoration-history,
.fact-legend,
.history-planning {
    margin: 0 0 54px;
    padding: 10px 0;
}

.history-timeline h2,
.name-origin h2,
.historic-architecture h2,
.ottoman-history h2,
.restoration-history h2,
.fact-legend h2,
.history-planning h2 {
    margin: 0 0 15px;
    font-size: 32px;
    line-height: 1.2;
}

.history-timeline > p,
.name-origin > p,
.historic-architecture > p,
.restoration-history > p,
.fact-legend > p,
.history-planning > p {
    max-width: 800px;
    margin: 0 0 25px;

    color: #333333;
    font-size: 17px;
    line-height: 1.75;
}

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

.history-timeline__list {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 91px;

    width: 1px;

    background: #d9c99f;
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 28px;
}

.timeline-item__date {
    padding-top: 20px;

    color: #8a6a1e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
}

.timeline-item__content {
    position: relative;

    padding: 20px 22px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
}

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

    position: absolute;
    top: 25px;
    left: -22px;

    width: 13px;
    height: 13px;

    background: #bfa25a;
    border: 3px solid #ffffff;
    border-radius: 50%;

    box-shadow: 0 0 0 1px #bfa25a;
}

.timeline-item__content h3 {
    margin: 0 0 9px;

    font-size: 20px;
    line-height: 1.3;
}

.timeline-item__content p {
    margin: 0;

    color: #444444;
    font-size: 15px;
    line-height: 1.65;
}

/* =================================
   HISTORICAL PURPOSE
================================= */

.historical-purpose {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(250px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.historical-purpose__content {
    padding: 32px;

    background: #f7f5f0;
    border: 1px solid #e2dccf;
    border-radius: 15px;
}

.historical-purpose__content h2 {
    margin: 0 0 15px;

    font-size: 32px;
    line-height: 1.2;
}

.historical-purpose__content p {
    margin: 0 0 16px;

    color: #333333;
    font-size: 16px;
    line-height: 1.75;
}

.historical-purpose__content p:last-child {
    margin-bottom: 0;
}

.historical-purpose__facts {
    display: flex;
    flex-direction: column;

    padding: 27px;

    background: #0d0d0d;
    border-radius: 15px;

    color: #ffffff;
}

.historical-purpose__facts div {
    padding: 17px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.13);
}

.historical-purpose__facts div:first-child {
    padding-top: 0;
}

.historical-purpose__facts div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.historical-purpose__facts span {
    display: block;
    margin-bottom: 7px;

    color: #aaaaaa;
    font-size: 12px;
}

.historical-purpose__facts strong {
    color: #d4b06a;
    font-size: 18px;
    line-height: 1.35;
}

/* =================================
   NAME ORIGIN
================================= */

.name-origin__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.name-origin-card {
    min-width: 0;
    padding: 26px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 13px;
}

.name-origin-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 30px;
    margin-bottom: 17px;

    background: #f7f2e7;
    border: 1px solid #e6dcc3;
    border-radius: 7px;

    color: #8c712c;
    font-size: 13px;
    font-weight: 700;
}

.name-origin-card h3 {
    margin: 0 0 11px;

    font-size: 22px;
    line-height: 1.3;
}

.name-origin-card p {
    margin: 0;

    color: #444444;
    font-size: 15px;
    line-height: 1.65;
}

/* =================================
   ARCHITECTURE
================================= */

.historic-architecture__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.architecture-card {
    min-width: 0;
    padding: 24px;

    background: #f8f8f8;
    border: 1px solid #dddddd;
    border-radius: 13px;
}

.architecture-card__value {
    display: block;
    margin-bottom: 12px;

    color: #8a6a1e;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.architecture-card h3 {
    margin: 0 0 10px;

    font-size: 20px;
    line-height: 1.3;
}

.architecture-card p {
    margin: 0;

    color: #444444;
    font-size: 15px;
    line-height: 1.65;
}

.historic-architecture__link {
    display: inline-flex;
    margin-top: 20px;

    color: #765b1c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.historic-architecture__link:hover {
    text-decoration: underline;
}

/* =================================
   OTTOMAN PERIOD
================================= */

.ottoman-history {
    padding: 32px;

    background: #f7f5f0;
    border: 1px solid #e2dccf;
    border-radius: 15px;
}

.ottoman-history__header {
    max-width: 790px;
    margin-bottom: 25px;
}

.ottoman-history__header p {
    margin: 0;

    color: #333333;
    font-size: 16px;
    line-height: 1.7;
}

.ottoman-history__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ottoman-history-card {
    padding: 22px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 11px;
}

.ottoman-history-card h3 {
    margin: 0 0 10px;

    font-size: 19px;
    line-height: 1.3;
}

.ottoman-history-card p {
    margin: 0;

    color: #444444;
    font-size: 14px;
    line-height: 1.65;
}

/* =================================
   REDISCOVERY
================================= */

.rediscovery-section {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(240px, 0.65fr);
    gap: 24px;
}

.rediscovery-section__content {
    padding: 32px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 15px;
}

.rediscovery-section__content h2 {
    margin: 0 0 15px;

    font-size: 32px;
    line-height: 1.2;
}

.rediscovery-section__content p {
    margin: 0 0 16px;

    color: #333333;
    font-size: 16px;
    line-height: 1.75;
}

.rediscovery-section__content p:last-child {
    margin-bottom: 0;
}

.rediscovery-section__quote {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 27px;

    background: #0d0d0d;
    border-radius: 15px;

    color: #ffffff;
}

.rediscovery-section__quote span {
    margin-bottom: 13px;

    color: #d4b06a;
    font-size: 13px;
    font-weight: 700;
}

.rediscovery-section__quote p {
    margin: 0;

    color: #dedede;
    font-size: 15px;
    line-height: 1.75;
}

/* =================================
   MEDUSA HISTORY
================================= */

.medusa-history {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;

    padding: 30px;

    background: #f7f5f0;
    border: 1px solid #e2dccf;
    border-radius: 15px;
}

.medusa-history__image img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 12px;
}

.medusa-history__content h2 {
    margin: 0 0 15px;

    font-size: 30px;
    line-height: 1.2;
}

.medusa-history__content p {
    margin: 0 0 15px;

    color: #333333;
    font-size: 15px;
    line-height: 1.7;
}

.medusa-history__content a {
    display: inline-flex;
    margin-top: 5px;

    color: #765b1c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.medusa-history__content a:hover {
    text-decoration: underline;
}

/* =================================
   RESTORATION
================================= */

.restoration-history__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.restoration-card {
    min-width: 0;
    padding: 24px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 13px;
}

.restoration-card__date {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 6px 9px;

    background: #f5efdf;
    border-radius: 6px;

    color: #7b5c16;
    font-size: 12px;
    font-weight: 700;
}

.restoration-card h3 {
    margin: 0 0 11px;

    font-size: 20px;
    line-height: 1.3;
}

.restoration-card p {
    margin: 0;

    color: #444444;
    font-size: 15px;
    line-height: 1.65;
}

/* =================================
   FACT VS LEGEND
================================= */

.fact-legend__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.fact-legend-card {
    min-width: 0;
    padding: 24px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 13px;
}

.fact-legend-card--legend {
    background: #f8f6f0;
    border-color: #ded5bf;
}

.fact-legend-card__label {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 6px 9px;

    background: #eeeeee;
    border-radius: 6px;

    color: #555555;
    font-size: 12px;
    font-weight: 700;
}

.fact-legend-card--legend .fact-legend-card__label {
    background: #efe5cc;
    color: #765b1c;
}

.fact-legend-card h3 {
    margin: 0 0 11px;

    font-size: 20px;
    line-height: 1.3;
}

.fact-legend-card p {
    margin: 0;

    color: #444444;
    font-size: 15px;
    line-height: 1.65;
}

/* =================================
   PLANNING LINKS
================================= */

.history-planning__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.history-planning-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 24px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 13px;
}

.history-planning-card h3 {
    margin: 0 0 11px;

    font-size: 20px;
    line-height: 1.3;
}

.history-planning-card p {
    flex-grow: 1;
    margin: 0 0 18px;

    color: #444444;
    font-size: 15px;
    line-height: 1.65;
}

.history-planning-card a {
    color: #765b1c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

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

/* =================================
   CTA
================================= */

.history-cta {
    margin: 0 0 54px;
    padding: 38px;

    background: #0c0c0c;
    border-radius: 16px;

    color: #ffffff;
}

.history-cta__content {
    max-width: 760px;
}

.history-cta h2 {
    margin: 0 0 14px;

    color: #ffffff;
    font-size: 32px;
    line-height: 1.2;
}

.history-cta p {
    margin: 0 0 24px;

    color: #dedede;
    font-size: 16px;
    line-height: 1.7;
}

.history-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =================================
   FAQ
================================= */

.faq-accordion {
    padding: 10px 0;
}

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

@media (max-width: 930px) {
    .history-page {
        width: calc(100% - 32px);
    }

    .history-intro h1 {
        font-size: 36px;
    }

    .historical-purpose,
    .rediscovery-section {
        grid-template-columns: 1fr;
    }

    .ottoman-history__grid,
    .restoration-history__grid,
    .history-planning__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (max-width: 700px) {
    .history-page {
        width: calc(100% - 24px);
        padding-bottom: 44px;
    }

    .history-intro {
        margin-top: 25px;
    }

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

    .history-lead {
        font-size: 16px;
        line-height: 1.7;
    }

    .history-summary,
    .historical-purpose__content,
    .ottoman-history,
    .rediscovery-section__content,
    .medusa-history,
    .history-cta {
        padding: 24px 19px;
    }

    .history-summary__header h2,
    .history-timeline h2,
    .historical-purpose__content h2,
    .name-origin h2,
    .historic-architecture h2,
    .ottoman-history h2,
    .rediscovery-section__content h2,
    .medusa-history__content h2,
    .restoration-history h2,
    .fact-legend h2,
    .history-planning h2,
    .history-cta h2 {
        font-size: 27px;
    }

    .history-summary__grid,
    .name-origin__grid,
    .historic-architecture__grid,
    .ottoman-history__grid,
    .medusa-history,
    .restoration-history__grid,
    .fact-legend__grid,
    .history-planning__grid {
        grid-template-columns: 1fr;
    }

    .history-timeline__list::before {
        left: 7px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;

        padding-left: 28px;
    }

    .timeline-item__date {
        padding-top: 0;
        text-align: left;
    }

    .timeline-item__content::before {
        top: 24px;
        left: -27px;
    }

    .history-cta__actions {
        flex-direction: column;
    }

    .history-cta__actions a {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .history-page {
        width: calc(100% - 16px);
    }

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