:root {
    --color-primary: #000000;
    --color-red: #dc2626;
    --color-red-brand: #CC2027; 
    --color-orange: #FF6B00;
    --bg-purple: #E2D9F3;
    --bg-orange: #FFEDD5;
}

/* ================= HERO SECTION ================= */
.hero-section { position: relative; height: 100vh; width: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 1.5rem 6rem 1.5rem; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), rgba(0,0,0,0.6)); z-index: 0; }

.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; background: transparent; color: white; transition: background-color 0.3s; }
.header-top { max-width: 80rem; margin: 0 auto; padding: 0.5rem 1.5rem; display: flex; justify-content: flex-end; align-items: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid rgba(156, 163, 175, 0.3); }

/* Fix for space-x and space-x-reverse */
.top-nav { display: flex; gap: 1.5rem; }
.top-nav a { text-decoration: none; color: white; transition: color 0.2s; }
.top-nav a:hover { color: var(--color-red); }

.language-form { margin-left: 1.5rem; padding-left: 1.5rem; border-left: 1px solid rgba(107, 114, 128, 0.5); }
html[dir="rtl"] .language-form { margin-left: 0; padding-left: 0; border-left: none; margin-right: 1.5rem; padding-right: 1.5rem; border-right: 1px solid rgba(107, 114, 128, 0.5); }

.language-select { background: transparent; color: var(--color-red); font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; outline: none; cursor: pointer; transition: color 0.2s; border: none; }
.language-select:hover { color: white; }
.language-select option { color: black; }

.header-main { max-width: 80rem; margin: 0 auto; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo { width: 3rem; height: 3rem; background-color: var(--color-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.875rem; letter-spacing: 0.1em; }
.brand-title { font-size: 1.25rem; font-weight: bold; text-transform: uppercase; }

.main-nav { display: none; gap: 2rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a { color: white; text-decoration: none; transition: color 0.2s; }
.main-nav a:hover { color: var(--color-red); }

.hero-content { position: relative; z-index: 10; max-width: 80rem; margin: 0 auto; width: 100%; color: white; }
.hero-subtitle {font-size: 1.25rem; font-weight: 300; margin-bottom: 1rem; max-width: 42rem; letter-spacing: 0.025em; color: #e5e7eb; line-height: 1.4; }
.hero-title { font-family: 'Anton', sans-serif; font-size: 3rem; text-transform: uppercase; line-height: 1.1; font-weight: normal; text-shadow: 0 10px 15px rgba(0,0,0,0.1);}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.5rem; } .hero-title { font-size: 4.5rem; } }
html[dir="rtl"] .hero-title {
    font-family: 'Peyda', sans-serif;
    font-weight: 900;
    letter-spacing: normal;
    line-height: 1.5;
}

.scroll-indicator { position: absolute; bottom: 2rem; right: 3rem; z-index: 10; display: none; flex-direction: column; align-items: center; gap: 0.5rem; color: white; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; writing-mode: vertical-lr; }
@media (min-width: 768px) { .scroll-indicator { display: flex; } }
.bounce-arrow { font-size: 1.125rem; margin-top: 1rem; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); } }

/* ================= ABOUT SECTION ================= */
.about-section { 
    position: relative; 
    background-color: white; 
    color: black; 
    padding: 8rem 1.5rem; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 80vh;
}

/* ================= Same style for left/right logos ================= */
.gate-graphic {
    position: absolute;
    top: 50%;
    height: 110%; 
    max-height: 900px;
    object-fit: contain;
    z-index: 0;
    will-change: transform;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease; 
}

@media (min-width: 1100px) {
    .gate-graphic { 
        opacity: 0.12;
        visibility: visible;
    }
}

@media (min-width: 1500px) {
    .gate-graphic { 
        opacity: 0.9; 
        visibility: visible;
    }
}

.left-gate { left: -25%; }
.right-gate { right: -25%; }

.about-content-centered {
    position: relative;
    z-index: 10;
    max-width: 40rem; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-lead { font-size: 1.5rem; font-weight: 300; line-height: 1.625; margin-bottom: 2rem; color: #111827; }
.about-text { font-size: 1.125rem; color: #374151; line-height: 1.625; margin-bottom: 2rem; font-weight: 300; }
@media (min-width: 768px) { .about-lead { font-size: 1.875rem; } }

.list-wrapper { display: flex; justify-content: center; width: 100%; }
.about-list { 
    list-style-type: disc; 
    list-style-position: inside; 
    color: #1f2937; 
    margin-bottom: 3rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
    text-align: left; 
}
html[dir="rtl"] .about-list { text-align: right; }

.button-group-centered { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 1rem; 
}

.btn { 
    padding: 1rem 2rem; 
    font-size: 0.875rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    transition: background-color 0.3s; 
    text-decoration: none; 
    display: inline-block; 
    border: none; 
    cursor: pointer; 
}

.btn-primary { 
    background-color: black; 
    color: white; 
}

.btn-primary:hover { 
    background-color: var(--color-red, #dc2626);
}

/* ================= POLY-MENTOR SECTION ================= */
.poly-mentor-section { position: relative; width: 100%; min-height: 70vh; display: flex; align-items: flex-end; background-size: cover; background-position: center; overflow: hidden; }
.poly-mentor-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(127,29,29,0.9), rgba(127,29,29,0.4), transparent); z-index: 0; }
.poly-mentor-container { 
    position: relative;
    z-index: 10; 
    width: 100%; 
    max-width: 80rem; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    min-height: 70vh; 
}
@media (min-width: 925px) { 
    .poly-mentor-container { 
        flex-direction: row; 
        gap: 0;
        align-items: flex-end; 
    } 
}

.poly-mentor-header { 
    color: white; 
    background-color: rgba(204, 32, 39, 0.60);
    position: relative;
    z-index: 1;
    padding: 2rem 3rem; 
    margin-bottom: 0;
    width: 100%;
    
    min-height: 10rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Smooth transition for the background-color hover effect */
    transition: background-color 0.3s ease;
}

/* Increase opacity from 0.60 to 0.85 when hovering over the right red box */
.poly-mentor-header:hover {
    background-color: rgba(204, 32, 39, 0.85);
}

@media (max-width: 900px) { 
    .poly-mentor-header { 
        flex: 1; 
        align-self: flex-end;
    } 
}

.poly-mentor-subtitle { font-size: 0.875rem; font-weight: bold; letter-spacing: 0.1em; text-transform: uppercase;}
.poly-mentor-title { font-size: 3.75rem; font-weight: 900; letter-spacing: -0.05em; position: relative;}
@media (min-width: 768px) { .poly-mentor-title { font-size: 6rem; } }
@media (max-width: 500px) { .poly-mentor-title { font-size: 2.75rem; } }
html[dir="rtl"] .poly-mentor-title {
    font-family: 'Peyda', sans-serif;
    font-weight: 900;
    letter-spacing: normal;
    line-height: 1.5;
}

.poly-mentor-sidebar { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); 
    padding: 3rem;
    padding-bottom: 0rem;
}
@media (min-width: 768px) { 
    .poly-mentor-sidebar { 
        width: 400px; 
    } 
}

/* ---- Open Day Card Styles ---- */
.open-day-card { 
    background: rgba(225, 225, 225, 0.75); 
    color: black; 
    padding: 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: background-color 0.3s; 
    text-decoration: none; 
    
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}
html[dir="rtl"] .open-day-card {
    align-self: flex-end; 
}
/* FIX 1: Brighten background on hover for clearer interaction feedback */
.open-day-card:hover { background-color: rgba(255, 255, 255, 0.95); }

.open-day-subtitle { font-size: 0.75rem; font-weight: bold; color: var(--color-red); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.open-day-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
html[dir="rtl"] .open-day-title {
    font-family: 'Kalameh', sans-serif;
    font-weight: bold;
}

/* ---- Arrow Animations ---- */
.open-day-arrow { display: inline-block; font-size: 1.5rem; font-weight: bold; transition: transform 0.3s; }
.open-day-card:hover .open-day-arrow { transform: translateX(0.5rem); }
html[dir="rtl"] .open-day-arrow { transform: scaleX(-1); }

/* FIX 2: Combined mirroring and translation to fix the RTL hover animation */
html[dir="rtl"] .open-day-card:hover .open-day-arrow { 
    transform: scaleX(-1) translateX(0.5rem); 
}

/* ---- Quick Links Styles ---- */
.quick-links { 
    background-color: rgba(204, 32, 39, 0.60); 
    color: white; 
    padding: 2rem; 
    position: relative; 
    z-index: 1; 
    width: 100%; 
    box-sizing: border-box;
    
    min-height: 10rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Smooth transition for the background-color hover effect */
    transition: background-color 0.3s ease;
}

/* Increase opacity from 0.60 to 0.85 when hovering over the left red box */
.quick-links:hover {
    background-color: rgba(204, 32, 39, 0.85);
}

.quick-links-title { font-size: 1.875rem; font-weight: 300; margin-bottom: 2rem; }
.quick-links-list { display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; list-style: none; }
.quick-links-list a { display: flex; align-items: center; text-decoration: none; color: white; transition: color 0.2s; }
.quick-links-list a span:first-child { margin-right: 0.75rem; transition: transform 0.2s; display: inline-block; }
html[dir="rtl"] .quick-links-list a span:first-child { margin-right: 0; margin-left: 0.75rem; transform: scaleX(-1); }

/* FIX 3: Fixed invalid scaleX(0.25rem) syntax to proper translateX translation */
.quick-links-list a:hover span:first-child { transform: translateX(0.25rem); }
html[dir="rtl"] .quick-links-list a:hover span:first-child { transform: scaleX(-1) translateX(0.25rem); }
.quick-links-list a:hover span:last-child { color: #e5e7eb; }

/* ================= NEWS & EVENTS GRIDS ================= */
.news-section { background-color: var(--bg-purple); color: black; padding: 6rem 1.5rem; }
.events-section { background-color: var(--bg-orange); color: black; padding: 6rem 1.5rem; }

.cards-container { max-width: 80rem; margin: 0 auto; }
.section-header { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; margin-bottom: 4rem; gap: 2rem; }
@media (min-width: 768px) { .section-header { flex-direction: row; gap: 0; } }
.section-title { font-family: 'Anton', sans-serif; font-size: 3.75rem; text-transform: uppercase; line-height: 1; margin: 0; font-weight: normal; letter-spacing: 0; }
@media (min-width: 768px) { .section-title { font-size: 5rem; } }
html[dir="rtl"] .section-title {
    font-family: 'Peyda', sans-serif;
    font-weight: 900;
    letter-spacing: normal;
    line-height: 1.5;
}
.text-orange { color: var(--color-orange); }

.section-actions { max-width: 20rem; }
@media (min-width: 768px) { .section-actions { text-align: right; } html[dir="rtl"] .section-actions { text-align: left; } }
.section-desc { font-size: 1rem; color: #1f2937; margin-bottom: 1.5rem; font-weight: 300; line-height: 1.5; }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card { display: block; cursor: pointer; text-decoration: none; color: inherit; }
.card-image-wrapper { overflow: hidden; margin-bottom: 1.25rem; aspect-ratio: 16/9; background-color: #111827; position: relative; }
.card-category { position: absolute; top: 1rem; left: 1rem; z-index: 10; background: white; color: black; font-size: 0.625rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.25rem 0.75rem; }
html[dir="rtl"] .card-category { left: auto; right: 1rem; }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease-in-out; }
.card:hover .card-image { transform: scale(1.05); }

.card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.875rem; transition: transform 0.5s; }
.card:hover .card-placeholder { transform: scale(1.05); }
.bg-orange { background-color: var(--color-orange) !important; }

.card-date { font-size: 0.875rem; font-family: monospace; margin-bottom: 0.75rem; color: #374151; }
.card-title { font-size: 1.5rem; font-weight: bold; line-height: 1.3; margin: 0; transition: text-decoration 0.2s; }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hover-orange:hover { text-decoration-color: var(--color-orange); }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 3rem 0; }
.empty-state p { font-size: 1.25rem; color: #4b5563; font-family: monospace; }
.border-orange { border: 2px dashed rgba(255, 107, 0, 0.3); }

/* ================= NEWS/EVENT DETAIL PAGE ================= */

/* ---- Topbar ---- */
.news-topbar {
    width: 100%;
    background-color: #000;
    color: #fff;
    border-bottom: 1px solid #1f2937;
    font-family: sans-serif;
}

.news-topbar-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.news-logo-badge {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(204, 32, 39, 1); /* Main AUT Red */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.news-logo-text {
    font-size: 1.125rem;
    font-weight: bold;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.news-logo-link:hover .news-logo-badge {
    background-color: rgba(204, 32, 39, 0.8);
}

.news-logo-link:hover .news-logo-text {
    color: rgba(204, 32, 39, 1);
}

.news-back-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-back-link:hover {
    color: rgba(204, 32, 39, 1);
}

/* Flip the back arrow in RTL mode */
.back-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
html[dir="rtl"] .back-arrow {
    transform: scaleX(-1);
}

/* ---- Article Container ---- */
.news-article {
    max-width: 56rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.news-article-header {
    margin-bottom: 3rem;
}

/* ---- Metadata (Date & Category) ---- */
.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.news-date {
    font-size: 0.875rem;
    font-family: monospace;
    color: #6b7280;
}

.news-category {
    background-color: rgba(204, 32, 39, 1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ---- Title ---- */
.news-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    color: #111;
    margin: 0;
}

@media (min-width: 768px) {
    .news-title {
        font-size: 4.5rem;
    }
}

/* RTL Typography Overrides for Title */
html[dir="rtl"] .news-title {
    font-family: 'Peyda', sans-serif;
    letter-spacing: normal;
    line-height: 1.4;
}

/* ---- Featured Image ---- */
.news-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e5e7eb;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 4px; /* Optional subtle curve */
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Article Content ---- */
.news-content {
    font-family: sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    color: #374151;
}

/* Target paragraphs generated by Django's linebreaks filter */
.news-content p {
    margin-bottom: 1.5rem;
}

/* RTL Typography Overrides for Content */
html[dir="rtl"] .news-content {
    font-family: 'Peyda', sans-serif;
    font-weight: 400;
}

/* =========================================================
   INTERACTIVE CONTACT SECTION STYLES
   ========================================================= */

.contact-interactive-section {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Switch to side-by-side layout on desktop screens */
@media (min-width: 768px) {
    .contact-interactive-section {
        grid-template-columns: 1fr 1fr;
    }
}

/* Base style for both contact layout blocks */
.contact-pane {
    position: relative;
    padding: 4rem 2rem;
    background-color: var(--color-white);
    transition: color 0.4s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .contact-pane {
        padding: 6rem 4rem;
    }
}

/* Keep the inner textual elements above the animating layer */
.contact-pane-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

/* Center border adjustments for both LTR and RTL directions */
.contact-left-pane {
    border-bottom: 1px solid #e5e7eb;
}
@media (min-width: 768px) {
    .contact-left-pane {
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
    }
    
    html[dir="rtl"] .contact-left-pane {
        border-right: none;
        border-left: 1px solid #e5e7eb;
    }
}

/* ---- BACKGROUND ANIMATION EXPANSION ---- */
.contact-pane::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    background-color: var(--color-red-600);
    z-index: 1;
    /* Smooth custom easing for background growth animation */
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* LTR expansion: grow outwards starting from the middle dividing line */
.contact-left-pane::before { right: 0; left: auto; }  
.contact-right-pane::before { left: 0; right: auto; } 

/* RTL expansion: inverse logic to maintain middle-out growth dynamic */
html[dir="rtl"] .contact-left-pane::before { left: 0; right: auto; }
html[dir="rtl"] .contact-right-pane::before { right: 0; left: auto; }

/* Expand the red background overlay to full width on hover state */
.contact-pane:hover::before {
    width: 100%;
}

/* ---- SECTION TYPOGRAPHY ---- */
.contact-pane-title-right {
    margin-top: -3.5rem;
    margin-bottom: 1rem;
    font-size: 6rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--color-black);
}

@media (min-width: 768px) {
    .contact-pane-title-right {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .contact-pane-title-right {
        font-size: 5rem;
    }
}


.contact-pane-title-left {
    margin-top: -4rem;
    margin-bottom: 1rem;
    font-size: 6rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--color-black);
}

@media (min-width: 768px) {
    .contact-pane-title-left {
        font-size: 6rem;
    }
}

.contact-pane-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 300;
    color: var(--color-black);
}

/* Interactive custom link with directional arrow indicator */
.contact-pane-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-black);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.contact-pane-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Flip the arrow orientation horizontally for Persian RTL view */
html[dir="rtl"] .contact-pane-link .arrow {
    transform: scaleX(-1);
}

/* Text hover push animation for the dynamic link arrow */
.contact-pane-link:hover .arrow {
    transform: translateX(5px);
}
html[dir="rtl"] .contact-pane-link:hover .arrow {
    transform: scaleX(-1) translateX(-5px);
}

/* ---- FORM COMPONENT ELEMENT DESIGN ---- */
.contact-form-element {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-form-row {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

@media (min-width: 768px) {
    .contact-form-row {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .contact-form-row {
        flex-direction: row;
        width: 85%;
    }
}

/* Uniform design system parameters for both inputs and message textareas */
.contact-form-element input,
.contact-form-element textarea {
    width: 100%;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1.25rem;
    border: none;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    resize: vertical;
}

.contact-form-element input::placeholder,
.contact-form-element textarea::placeholder {
    color: #9ca3af;
    font-weight: 300;
}

/* Inset borders frame behavior on element cursor selection */
.contact-form-element input:focus,
.contact-form-element textarea:focus {
    box-shadow: inset 0 0 0 2px var(--color-white);
}

.submit-btn {
    margin-top: 0.5rem;
}

/* ================= PARK STATISTICS ================= */
.park-stats-section {
    background: #111;
    color: #fff;
    padding: 6rem 1.5rem;
}

.park-stats-container {
    max-width: 80rem;
    margin: 0 auto;
}

.park-stats-heading {
    margin-bottom: 3rem;
}

.park-stats-kicker {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--color-red);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.park-stats-heading h2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    text-transform: uppercase;
}

html[dir="rtl"] .park-stats-heading h2 {
    font-family: 'Peyda', sans-serif;
    line-height: 1.35;
    text-transform: none;
}

.park-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #333;
    border-inline-start: 1px solid #333;
}

.park-stat {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    border-inline-end: 1px solid #333;
    border-bottom: 1px solid #333;
}

.park-stat strong {
    color: var(--color-red);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
}

.park-stat span {
    margin-top: 1.5rem;
    color: #d1d5db;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .park-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ================ REAL CONTACT DETAILS ================ */
.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.5rem 0 2rem;
    border-top: 1px solid #d1d5db;
}

.contact-details-list > a,
.contact-details-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #d1d5db;
}

.contact-details-list strong {
    font-size: 0.85rem;
}

.contact-details-list span {
    direction: ltr;
    text-align: end;
    font-size: 0.9rem;
}

.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-social-row a {
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.contact-social-row a:hover {
    text-decoration: underline;
}

.contact-pane:hover .contact-details-list > a,
.contact-pane:hover .contact-details-list > div,
.contact-pane:hover .contact-social-row a {
    color: #fff;
}

.contact-pane:hover .contact-details-list {
    border-color: rgba(255,255,255,0.35);
}

.contact-pane:hover .contact-details-list > a,
.contact-pane:hover .contact-details-list > div {
    border-color: rgba(255,255,255,0.35);
}

.event-location {
    margin-top: 1.25rem;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
}


/* ================= LOCAL PARK CONTENT PAGES ================= */
.park-page-hero {
    background: #0b0b0b;
    color: #fff;
    padding: 12rem 1.5rem 6rem;
    border-bottom: 18px solid var(--color-red);
}

.park-page-hero.compact {
    padding-bottom: 4rem;
}

.park-page-shell {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
}

.park-page-shell.narrow {
    max-width: 52rem;
}

.park-page-kicker {
    display: block;
    margin-bottom: 1rem;
    color: var(--color-red);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.park-page-hero h1 {
    max-width: 60rem;
    margin: 0 0 1.5rem;
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

html[dir="rtl"] .park-page-hero h1 {
    font-family: 'Peyda', sans-serif;
    font-weight: 900;
    line-height: 1.35;
    text-transform: none;
}

.park-page-hero p {
    max-width: 52rem;
    color: #d1d5db;
    font-size: 1.15rem;
    line-height: 1.9;
}

.park-page-body {
    background: #fff;
    padding: 5rem 1.5rem 7rem;
}

.park-page-section {
    display: grid;
    grid-template-columns: minmax(0, .45fr) minmax(0, 1fr);
    gap: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid #d1d5db;
}

.park-page-section:last-of-type {
    border-bottom: 1px solid #d1d5db;
}

.park-page-section h2 {
    font-size: 1.7rem;
    line-height: 1.35;
}

.park-page-section p {
    color: #374151;
    font-size: 1.05rem;
    line-height: 2;
}

.park-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2.5rem;
}

.park-page-stats {
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
}

.park-page-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.park-page-stat {
    min-height: 165px;
    padding: 2rem;
    border-inline-end: 1px solid #d1d5db;
}

.park-page-stat:first-child {
    border-inline-start: 1px solid #d1d5db;
}

.park-page-stat strong {
    display: block;
    color: var(--color-red);
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    line-height: 1;
}

.park-page-stat span {
    display: block;
    margin-top: 1.25rem;
    color: #374151;
    font-weight: 700;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.archive-card {
    display: block;
    color: #111;
    text-decoration: none;
    border-top: 4px solid #111;
    padding-top: 1rem;
}

.archive-card:hover {
    border-color: var(--color-red);
}

.archive-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 1rem;
}

.archive-card span {
    color: #6b7280;
    font-size: 0.8rem;
}

.archive-card h2 {
    margin-top: .6rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

.archive-card p {
    margin-top: .5rem;
    color: #6b7280;
}

.park-request-form {
    display: grid;
    gap: 1.25rem;
}

.request-field {
    display: grid;
    gap: .5rem;
}

.request-field label {
    font-weight: 800;
}

.request-field input,
.request-field textarea {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid #9ca3af;
    background: #fff;
    color: #111;
    outline: none;
}

.request-field input:focus,
.request-field textarea:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 2px rgba(204, 32, 39, .12);
}

.request-error {
    color: #b91c1c;
    font-size: .85rem;
}

.request-success {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-inline-start: 5px solid #15803d;
    background: #ecfdf5;
    color: #14532d;
}

@media (max-width: 800px) {
    .park-page-hero {
        padding-top: 10rem;
    }

    .park-page-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .park-page-stat-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .park-page-stat {
        border-inline-start: 1px solid #d1d5db;
        border-bottom: 1px solid #d1d5db;
    }
}


/* =========================================================
   INNER-PAGE HEADER FIX
   Keep this at the end of style.css so it wins over the
   legacy header declarations near the top of this file.
   ========================================================= */

.header-light-theme:not(.scrolled) {
    background: #ffffff;
    color: #111111;
    border-bottom: 1px solid #e5e7eb;
}

.header-light-theme:not(.scrolled) .header-top {
    border-bottom-color: #e5e7eb;
}

.header-light-theme:not(.scrolled) .park-brand,
.header-light-theme:not(.scrolled) .top-nav a,
.header-light-theme:not(.scrolled) .main-nav a {
    color: #111111;
}

.header-light-theme:not(.scrolled) .language-select {
    color: #cc2027;
}

@media (min-width: 1101px) {
    /* Header is about 100px tall: utility row + main navigation row. */
    .inner-page-offset {
        padding-top: 6.5rem;
    }

    .header-light-theme .header-main {
        min-height: 72px;
    }

    .header-light-theme .park-brand {
        align-self: center;
    }

    .header-light-theme .park-brand-logo {
        width: 48px;
        height: 48px;
        margin: 0;
    }

    .header-light-theme .park-brand-copy {
        justify-content: center;
    }

    .header-light-theme .main-nav {
        align-self: center;
    }

    /* English layout: menu left, brand right. */
    html[dir="ltr"] .header-light-theme .header-main {
        flex-direction: row-reverse;
    }

    html[dir="ltr"] .header-light-theme .main-nav {
        margin-left: 0;
        margin-right: auto;
        justify-content: flex-start;
        gap: 1.45rem;
    }

    html[dir="ltr"] .header-light-theme .park-brand {
        margin-left: 2rem;
        margin-right: 0;
    }

    /* Persian layout remains naturally RTL. */
    html[dir="rtl"] .header-light-theme .main-nav {
        gap: 1.45rem;
    }
}

@media (max-width: 1100px) {
    .inner-page-offset {
        padding-top: 6rem;
    }

    .header-light-theme:not(.scrolled) .main-nav {
        background: #000000;
    }

    .header-light-theme:not(.scrolled) .main-nav a {
        color: #ffffff !important;
    }
}


/* ================= PLATFORMS DIRECTORY ================= */
.platforms-list {
    margin-top: 1rem;
}

.platforms-empty {
    min-height: 280px;
    padding: 3rem;
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8fafc;
}

.platforms-empty-mark {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.platforms-empty h2 {
    margin-bottom: .75rem;
    font-size: 1.6rem;
}

.platforms-empty p {
    max-width: 38rem;
    color: #64748b;
    line-height: 1.8;
}


/* =========================================================
   CINEMATIC PLATFORM DIRECTORY
   Port of the supplied 21st.dev CinematicList interaction
   into the existing Django/CSS frontend.
   ========================================================= */

.platforms-page-body {
    padding-top: 4rem;
}

.platforms-page-body > .park-page-shell {
    max-width: 80rem;
}

.cinematic-platforms {
    width: 100%;
    padding: 1rem 0 2rem;
}

.cinematic-platforms-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.cinematic-platforms-heading h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

html[dir="rtl"] .cinematic-platforms-heading h2 {
    font-family: 'Peyda', sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.cinematic-platforms-heading > span {
    color: #737373;
    font-size: .875rem;
    font-weight: 500;
}

.cinematic-platform-list {
    display: flex;
    flex-direction: column;
    direction: ltr;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.cinematic-platform-item {
    position: relative;
    display: flex;
    width: 100%;
    height: 6rem;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    transition:
        height .7s cubic-bezier(.25,1,.5,1),
        background-color .35s ease;
}

.cinematic-platform-item:last-child {
    border-bottom: 0;
}

.cinematic-platform-item--disabled {
    cursor: default;
}

.cinematic-platform-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: hidden;
    background: #111;
    transition: opacity .7s ease-out;
}

.cinematic-platform-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: saturate(.92) contrast(1.03);
    transition:
        transform 1s ease-out,
        filter .7s ease;
}

.cinematic-platform-bg--fallback {
    background:
        radial-gradient(circle at 80% 10%, rgba(204,32,39,.4), transparent 34%),
        linear-gradient(135deg, #181818 0%, #050505 100%);
}

.cinematic-platform-bg--fallback img {
    object-fit: contain;
    padding: 4rem;
    opacity: .3;
    filter: grayscale(1) brightness(2.2);
}

.cinematic-platform-bg--nama {
    background:
        radial-gradient(circle at 22% 28%, rgba(204,32,39,.45), transparent 27%),
        linear-gradient(120deg, #171717, #050505);
}

.cinematic-platform-bg--map {
    background:
        radial-gradient(circle at 75% 35%, rgba(204,32,39,.28), transparent 30%),
        linear-gradient(135deg, #181818, #020202);
}

.cinematic-platform-bg--map img {
    opacity: .22;
    padding: 2rem 5rem;
}

.cinematic-platform-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.18) 55%, rgba(0,0,0,.08));
}

.cinematic-platform-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 3rem;
}

.cinematic-platform-left,
.cinematic-platform-right {
    display: flex;
    align-items: center;
}

.cinematic-platform-left {
    gap: 3rem;
    min-width: 0;
}

.cinematic-platform-right {
    gap: 2rem;
    margin-left: auto;
}

.cinematic-platform-id {
    flex: 0 0 auto;
    color: #a3a3a3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .875rem;
    font-weight: 600;
    transition: color .5s ease;
}

.cinematic-platform-title-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cinematic-platform-title-wrap h3 {
    margin: 0;
    color: #171717;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        transform .7s cubic-bezier(.25,1,.5,1),
        color .5s ease;
}

.cinematic-platform-mobile-meta {
    display: none;
    margin-top: .35rem;
    color: #a3a3a3;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.cinematic-platform-meta {
    color: transparent;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(2rem);
    transition:
        transform .7s cubic-bezier(.25,1,.5,1),
        opacity .7s ease,
        color .7s ease;
}

.cinematic-platform-action {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    color: #a3a3a3;
    font-size: 1.25rem;
    line-height: 1;
    transition:
        transform .5s ease,
        border-color .5s ease,
        background-color .5s ease,
        color .5s ease;
}

/* Keyboard users get the same cinematic reveal as hover users. */
.cinematic-platform-item:focus-visible {
    outline: 3px solid #cc2027;
    outline-offset: -3px;
}

@media (min-width: 768px) {
    .cinematic-platform-item:hover,
    .cinematic-platform-item:focus-visible {
        height: 25rem;
    }

    .cinematic-platform-item:hover .cinematic-platform-bg,
    .cinematic-platform-item:focus-visible .cinematic-platform-bg {
        opacity: 1;
    }

    .cinematic-platform-item:hover .cinematic-platform-bg img,
    .cinematic-platform-item:focus-visible .cinematic-platform-bg img {
        transform: scale(1);
        filter: saturate(1) contrast(1);
    }

    .cinematic-platform-item:hover .cinematic-platform-id,
    .cinematic-platform-item:focus-visible .cinematic-platform-id {
        color: rgba(255,255,255,.72);
    }

    .cinematic-platform-item:hover .cinematic-platform-title-wrap h3,
    .cinematic-platform-item:focus-visible .cinematic-platform-title-wrap h3 {
        color: #fff;
        transform: translateY(-.5rem);
        text-shadow: 0 2px 20px rgba(0,0,0,.25);
    }

    .cinematic-platform-item:hover .cinematic-platform-meta,
    .cinematic-platform-item:focus-visible .cinematic-platform-meta {
        color: #fff;
        opacity: 1;
        transform: translateY(0);
    }

    .cinematic-platform-item:hover .cinematic-platform-action,
    .cinematic-platform-item:focus-visible .cinematic-platform-action {
        border-color: #fff;
        background: #fff;
        color: #000;
        transform: scale(1.1) rotate(-45deg);
    }

    .cinematic-platform-item--disabled:hover .cinematic-platform-action {
        transform: scale(1.05);
    }
}

@media (max-width: 767px) {
    .platforms-page-body {
        padding-inline: 1rem;
    }

    .cinematic-platforms-heading {
        padding: 0 .75rem;
        margin-bottom: 2rem;
    }

    .cinematic-platforms-heading > span {
        display: none;
    }

    .cinematic-platform-content {
        padding: 0 1rem;
        gap: 1rem;
    }

    .cinematic-platform-left {
        gap: 1.25rem;
    }

    .cinematic-platform-title-wrap h3 {
        font-size: 1.55rem;
    }

    .cinematic-platform-mobile-meta {
        display: block;
        max-width: 13rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cinematic-platform-meta {
        display: none;
    }

    .cinematic-platform-right {
        gap: 0;
    }

    .cinematic-platform-action {
        width: 2.5rem;
        height: 2.5rem;
    }
}


/* ================= PLATFORMS DENSITY TUNING ================= */
.platforms-page-hero {
    padding: 3.5rem 1.5rem 2.75rem;
    border-bottom-width: 10px;
}

.platforms-page-hero .park-page-kicker {
    margin-bottom: .5rem;
}

.platforms-page-hero h1 {
    margin-bottom: .75rem;
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.platforms-page-hero p {
    max-width: 44rem;
    font-size: 1rem;
    line-height: 1.65;
}

.platforms-page-body {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.cinematic-platforms {
    padding-top: 0;
}

.cinematic-platforms-heading {
    margin-bottom: 1.5rem;
    padding-inline: .5rem;
}

.cinematic-platforms-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cinematic-platform-left {
    gap: 0;
}
