/* 
Theme Name: Hospitalet Para Athletics Theme
Description: Custom styles based on the project prototype.
*/

:root {
    /* Colors */
    --color-primary: #f97316;
    /* Tailwind orange-500 */
    --color-primary-hover: #c2410c;
    /* Tailwind orange-700 */
    --color-dark: #1f2937;
    /* Tailwind gray-800 */
    --color-light: #f3f4f6;
    /* Tailwind gray-100 */
    --color-white: #ffffff;
    --color-text-body: #4b5563;
    /* Tailwind gray-600 */
    --color-text-light: #9ca3af;
    /* Tailwind gray-400 */
    --color-border: #e5e7eb;
    /* Tailwind gray-200 */

    /* Gradients */
    --gradient-hero: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    --gradient-text: linear-gradient(to right, #fb923c, #dc2626);
    /* orange-400 to red-600 */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 0.75rem;
    /* 12px */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset / Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-secondary {
    background-color: var(--color-light);
    color: var(--color-text-body);
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-primary-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-primary-dark:hover {
    background-color: #111827;
}

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 2rem;
}

/* 1. Header & Navigation */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 120px;
    margin-top: 10px;
    /* Mobile size */
    width: 160px !important;
    transition: height 0.3s ease;
}

@media (min-width: 768px) {
    .logo-img {
        margin-top: 10px;
        height: 130px;
        width: 200px !important;
        /* Desktop size */
    }
}

.desktop-menu {
    display: none;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: block;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-body);
    font-family: var(--font-heading);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.has-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-body);
}

.dropdown li a:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

#mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-body);
    cursor: pointer;
}

.site-header.shadow-active {
    box-shadow: var(--shadow-xl);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-nav-links {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-body);
    font-weight: 600;
    border-radius: 0.5rem;
    font-family: var(--font-heading);
    flex-grow: 1;
    /* Allow link to take available space */
}

.results-link {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #fff7ed;
    /* orange-50 */
    color: var(--color-primary);
}

/* Mobile Accordion Styles */
.mobile-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    color: var(--color-text-body);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-dropdown-menu {
    border-left: 2px solid var(--color-border);
    margin-left: 1.5rem;
    padding-left: 0.5rem;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.mobile-dropdown-menu.hidden {
    display: none;
}

.mobile-sub-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-body);
    font-size: 0.9rem;
}

.mobile-sub-link:hover {
    color: var(--color-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Hero Section */
.hero-section {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../assets/img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    margin-top: 0;
    /* Override because fixed header sits on top usually, but visual design shows hero under header maybe? Or header is sticky? Standard is content pushes down. */
    /* If header is fixed, we might need padding-top on body, but hero is h-screen so it should just be behind or start after? */
    /* Tailwind 'fixed' header means it overlays content. The hero has specific styles. */
}

@media (max-width: 767px) {
    .hero-section {
        height: 80vh;
        padding-bottom: 6rem;
        /* Push content up to make room for overlap */
    }
}


/* Fix for fixed header overlap if not transparent */
body {
    padding-top: var(--header-height);
}

/* Wait, usually hero *starts* at top and header is over it transparently, OR header is white and hero is below. Prototype has white header. So PADDING TOP is correct. */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

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

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description span {
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 300;
    color: #e5e7eb;
    /* gray-200 */
    /* margin-bottom: 2.5rem; */
}

.hero-date {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.material-symbols-outlined {
    color: var(--color-primary);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 1.5rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

@media (max-width: 767px) {
    .scroll-indicator {
        bottom: 5rem;
        /* Above the 6rem overlap of features section */
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* 3. Features Section */
.features-section {
    padding: 2rem 0;
    background-color: var(--color-light);
    /* margin-top: -2rem; */
    /* Negative margin to overlap hero? Prototype says -mt-2 rounded-t-3xl. */
    position: relative;
    z-index: 10;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: -6rem;
    /* Pull up to overlap hero */
}

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

.feature-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
}

.highlight-card {
    border-top: 4px solid var(--color-primary);
}

.icon-circle {
    width: 4rem;
    height: 4rem;
    background-color: #ffedd5;
    /* orange-100 */
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.card-link {
    color: var(--color-primary);
    font-weight: 700;
}

.card-link:hover {
    text-decoration: underline;
}

/* 4. Live Results */
.results-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.badge-live {
    background-color: #dc2626;
    /* red-600 */
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-text-body);
    margin-bottom: 3rem;
}

.results-table-container {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Ensure generic styling on mobile */
}

.results-table th {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    text-align: left;
}

.results-table td {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-body);
    font-size: 0.875rem;
}

.results-table tr:hover {
    background-color: var(--color-light);
}

.badge-country {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.bg-yellow {
    background-color: #fef08a;
    color: #854d0e;
}

.bg-blue {
    background-color: #bfdbfe;
    color: #1e40af;
}

.badge-pos {
    padding: 0.25rem 0.75rem;
    background-color: var(--color-light);
    color: var(--color-dark);
    border-radius: 9999px;
    font-size: 0.75rem;
    display: inline-block;
}

.badge-pos.first {
    background-color: #bbf7d0;
    /* green-200 */
    color: #15803d;
    /* green-700 */
    font-weight: 700;
}

/* 5. News Section */
.news-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    /* gray-50 */
}

.border-highlight {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

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

.news-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-xl);
}

.news-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.875rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    color: var(--color-dark);
}

.news-content p {
    color: var(--color-text-body);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.news-link:hover {
    text-decoration: underline;
}

/* 6. CTA Section */
.cta-section {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* 7. Footer */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #4b5563;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    /* gray-300 */
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    /* gray-700 */
    padding-top: 2rem;
    text-align: center;
    /* gray-500 */
    font-size: 0.875rem;
}

/* 8. Sponsors Section */
.sponsors-section {
    padding: 4rem 0;
    background-color: #f9fafb;
    /* gray-50 */
    border-top: 1px solid var(--color-border);
}

.sponsors-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sponsor-group h4 {
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.sponsor-group h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 0.5rem auto 0;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    /* Removed mask-image as it's not needed for static content */
    display: flex;
    justify-content: center;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* Allow wrapping for static view */
    gap: 3rem;
    /* Spacing between logos */
    /* Removed animation: scroll */
    padding: 0 1rem;
}

/* Removed animation-play-state: paused on hover */

.sponsor-logo {
    height: 3.5rem;
    /* h-14 approx */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    object-fit: contain;
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.sponsor-item-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
    color: inherit;
    text-decoration: none;
}

.sponsor-item-stacked p {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    max-width: 210px;
    /* Force wrap */
    color: var(--color-text-body);
    transition: color 0.3s ease;
}

.sponsor-item-stacked:hover p {
    color: var(--color-primary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move -50% because we will duplicate content. Content width needs to be enough to fill screen */
}

@media (max-width: 768px) {
    .marquee-track {
        gap: 2rem;
        animation-duration: 20s;
        /* Faster on smaller screens effectively */
    }

    .sponsor-logo {
        height: 2.5rem;
    }
}

/* News Page Styles moved to css/news-style.css */

/* 5. Presentation & Organizers Section (Redesign) */
.presentation-section {
    background-color: var(--color-light);
    padding: 5rem 0;
}

/* Grid Layout */
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .presentation-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        /* Center vertical alignment for side-by-side content */
    }
}

.mb-16 {
    margin-bottom: 2rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

/* Welcome Card */
.welcome-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    /* rounded-xl */
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-card .section-title {
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.welcome-text-content p {
    margin-bottom: 1rem;
    color: var(--color-text-body);
    font-size: 1.05rem;
}

/* Entity Cards */
.entities-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.entity-card {
    background-color: var(--color-white);
    /* or #f9fafb for gray-50 */
    border-radius: 0.5rem;
    /* rounded-lg */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

@media (min-width: 640px) {

    /* sm breakpoint */
    .entity-card {
        flex-direction: row;
        align-items: center;
    }
}

.entity-image {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    justify-content: center;
}

.entity-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.entity-content {
    flex-grow: 1;
}

.entity-content h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.entity-content p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.entity-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.entity-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Video Utilities */
.video-wrapper {
    width: 100%;
    height: 100%;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.w-full {
    width: 100%;
}

.rounded-xl {
    border-radius: 1rem;
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Official Poster Section */
.poster-section {
    /*background-color: #f9fafb;*/
    /* gray-50 */
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

@media (max-width: 767px) {
    .poster-section {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
}

.container-poster {
    max-width: 42rem;
    /* max-w-lg */
    margin: 0 auto;
}

.poster-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* shadow-2xl */
    transition: transform 0.5s ease;
}

.poster-image:hover {
    transform: scale(1.05);
}


/* 9. Development Warning Modal */
.dev-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dev-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dev-modal-card {
    background-color: var(--color-white);
    width: 90%;
    max-width: 480px;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.dev-modal-overlay.active .dev-modal-card {
    transform: scale(1);
}

.dev-modal-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.dev-modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.dev-modal-body {
    color: var(--color-text-body);
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dev-modal-body p {
    margin-bottom: 0.75rem;
}

.dev-modal-btn {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dev-modal-btn:hover {
    background-color: var(--color-primary-hover);
}

/* Ensure hidden utility exists if used elsewhere */
.hidden {
    display: none !important;
}

/* 10. i18n Language Switcher */
.lang-switcher-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.lang-menu {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem 0;
    overflow: hidden;
}

.lang-menu.hidden {
    display: none;
}

.lang-option {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-body);
    transition: all 0.2s ease;
    text-align: center;
}

.lang-option:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

.lang-option.active {
    color: var(--color-primary);
    font-weight: 700;
}

#i18n-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-body);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

#i18n-btn:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Mobile Responsiveness for i18n Switcher */
@media (max-width: 768px) {
    .lang-switcher-container {
        bottom: 1rem;
        right: 1rem;
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }

    .lang-switcher-container:hover,
    .lang-switcher-container:focus-within {
        opacity: 1;
    }

    #i18n-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }

    .lang-option {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* 11. Cookie Consent Banner & Third-Party Embed Placeholders */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background-color: rgba(31, 41, 55, 0.97);
    color: var(--color-white);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.25);
    padding: 1rem 0;
}

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
    }
}

.cookie-banner-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e5e7eb;
    margin: 0;
}

.cookie-banner-icon {
    color: var(--color-primary);
    margin-right: 0.45rem;
}

.cookie-banner-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 0.35rem;
}

.cookie-banner-link:hover {
    color: #fb923c;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    border-radius: 9999px;
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.cookie-btn-accept:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid #6b7280;
}

.cookie-btn-reject:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.08);
}

.embed-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.9rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #e5e7eb;
    border: 1px solid #374151;
}

.embed-consent-map {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.embed-consent-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.embed-consent-placeholder p {
    max-width: 28rem;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    color: #d1d5db;
}

.cookie-prefs-box {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--color-light);
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-prefs-status {
    margin: 0;
    color: var(--color-dark);
}

/* End of Style.css */