/* =========================================
   HISTORY PAGE SPECIFIC STYLES
   ========================================= */

.history-page .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    text-align: left;
}



.history-page .attraction-card {
    background: white;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}



.history-page .attraction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}



.history-page .attraction-img-wrapper {
    overflow: hidden;
    aspect-ratio: 16/9;
}



.history-page .attraction-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}



.history-page .attraction-card:hover img {
    transform: scale(1.05);
}



.history-page .attraction-content {
    padding: 1.5rem;
    flex-grow: 1;
}



.history-page .attraction-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading); /* Keep card title solid */
    font-weight: 600;
    line-height: 1.3;
}



.history-page .attraction-desc {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
    color: var(--color-text);
}



.history-page .era-tag {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d97706;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}



.history-page .guide-section,
.history-page .editorial-container,
.history-page .section-header,
.history-page .section-header h2,
.history-page .heading-bright-blue {
    text-align: left !important;
    align-items: flex-start !important;
}



.history-page .section-header {
    margin-bottom: 2.5rem !important;
    margin-top: 0 !important;
}



.history-page .section-header p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
}



/* Removed redundant block */

.history-page .destination-hero::before {
    background: none !important;
    display: none !important;
}



.history-page .lead-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    max-width: 900px;
}



.history-page .editorial-note {
    background-color: #f8fafc;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.03);
}



.history-page .styled-list {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}



.history-page .styled-list li {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #444;
    line-height: 1.6;
}



.history-page .styled-list li strong {
    color: #333;
    border-bottom: 2px solid #E91E63;
    display: inline-block;
    line-height: 1.2;
    margin-right: 0.3rem;
}



.history-page main {
    text-align: left;
}



@media (max-width: 768px) {
    .history-page .editorial-container {
        padding: 0 1rem;
    }



    .history-page .grid-2 {
        gap: 1.5rem;
        padding-bottom: 1rem;
    }



    .history-page .shining-blue-text {
        font-size: 1.4rem;
        margin-top: 1rem;
        padding: 0 1rem;
    }



    .history-page .section-header h2,
    .history-page .heading-bright-blue {
        font-size: 1.5rem !important;
    }
}

.history-page .timeline-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}



.history-page .timeline-card-header {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    color: var(--color-heading);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}



.history-page .timeline-card-body {
    padding: 2rem;
}



.history-page .timeline-card-body p {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

/* ==========================================================================
   HOME-THEME REDESIGN (history page) — same palette, fonts, backgrounds
   and golden cards as the home / destinations pages.
   ========================================================================== */

/* Design tokens aligned to the home page */
.history-page {
    --color-primary: #C2410C;
    --color-secondary: #B45309;
    --color-heading: #14213D;
    --color-text: #475569;
    --accent-gradient: linear-gradient(120deg, #C2410C 0%, #B45309 100%);
    --metal-red: linear-gradient(180deg, #ff6a45 0%, #ef3a20 45%, #d8270f 75%, #ff5e3a 100%);
    --metal-red-emboss: 0 2px 4px rgba(140, 28, 12, 0.35), 0 0 16px rgba(255, 80, 45, 0.18);
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Faded background-image canvas (same as home page) */
.history-page {
    background-image:
        linear-gradient(rgba(250, 248, 245, 0.82), rgba(250, 248, 245, 0.82)),
        url('../assets/images/background2.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-color: #faf8f5 !important;
    color: var(--color-text);
    font-family: var(--font-body);
}

.history-page main,
.history-page .editorial-container {
    background: transparent !important;
}

.history-page,
.history-page p {
    font-family: var(--font-body);
}

/* Metallic-red headings, no underline bar */
.history-page h1,
.history-page h2,
.history-page h3,
.history-page .heading-bright-blue,
.history-page .shining-blue-text {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--metal-red) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: var(--metal-red-emboss);
    animation: none !important;
}

.history-page h1::after,
.history-page h2::after,
.history-page h3::after {
    display: none !important;
}

/* Hero: fill banner properly, bright image */
.history-page .destination-hero {
    position: relative;
    min-height: 60vh;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.history-page .destination-hero::after {
    display: none !important;
}

/* Centered content with blank space on both sides (matches home) */
.history-page .container,
.history-page .editorial-container {
    max-width: 1280px !important;
    width: 100%;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.history-page .editorial-container {
    padding-bottom: 4rem;
}

.history-page .shining-blue-text {
    text-align: center;
    margin-top: 1.9rem;
}

/* Faded-image section panels (same images as home page) */
.history-page .guide-section {
    position: relative;
    border-radius: 1.75rem !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06) !important;
    padding: 2.75rem 2.5rem !important;
    margin-top: 2.5rem !important;
    background:
        linear-gradient(rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.86)),
        url('../assets/images/background1.webp') center/cover no-repeat !important;
}
.history-page .guide-section:nth-of-type(2) {
    background:
        linear-gradient(rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.86)),
        url('../assets/images/background3.webp') center/cover no-repeat !important;
}
.history-page .guide-section:nth-of-type(3) {
    background:
        linear-gradient(rgba(255, 255, 255, 0.81), rgba(255, 255, 255, 0.87)),
        url('../assets/images/background.webp') center/cover no-repeat !important;
}
.history-page .guide-section:nth-of-type(4) {
    background:
        linear-gradient(rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.86)),
        url('../assets/images/background2.webp') center/cover no-repeat !important;
}

/* Cards: white with light golden border + glow (same as home) */
.history-page .attraction-card,
.history-page .timeline-card {
    background: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 1.1rem !important;
    overflow: hidden !important;
    box-shadow:
        0 0 0 1px rgba(255, 243, 196, 0.7) inset,
        0 0 18px rgba(212, 175, 55, 0.30),
        0 10px 26px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.history-page .attraction-card:hover,
.history-page .timeline-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(255, 215, 0, 0.75) !important;
    box-shadow:
        0 0 0 1px rgba(255, 247, 214, 0.9) inset,
        0 0 28px rgba(255, 215, 0, 0.42),
        0 25px 50px rgba(194, 65, 12, 0.10) !important;
}

/* Timeline card header — warm tint */
.history-page .timeline-card-header {
    background: linear-gradient(135deg, rgba(255, 243, 196, 0.55), rgba(255, 255, 255, 0.9)) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

/* Era tag in the warm palette */
.history-page .era-tag {
    color: var(--color-primary);
}

/* Editorial note callout — light card with golden border */
.history-page .editorial-note {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.18), 0 10px 26px rgba(15, 23, 42, 0.05) !important;
}

/* Warm accent for highlighted list terms (was pink) */
.history-page .styled-list li strong {
    border-bottom-color: #C2410C !important;
}

/* Gradient pill buttons in the warm palette */
.history-page .btn {
    background: var(--accent-gradient) !important;
    border: none !important;
    color: #ffffff !important;
}
/* Mobile: fixed backgrounds are janky on mobile browsers — use scroll */
@media (max-width: 768px) {
    .history-page {
        background-attachment: scroll !important;
        background-size: cover !important;
    }
}
