:root {
    --primary-color: #FF6F61;    /* Coral */
    --secondary-color: #17A2B8;  /* Turquoise */
    --accent-color: #00B074;     /* Green */
    --highlight-color: #FFF5F2;  /* Light Coral */
    --text-color: #2B2B2B;
    --light-text: #5A4F4F;
    --background-color: #FFFFFF;
    --section-bg: #FFF5F2; /* Changed from #F6F7F8 to match --highlight-color */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Add padding for fixed header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

main {
    background: var(--background-color);
}

/* Dropdown Menu Styles (Nested List Approach) */
.nav-item.dropdown {
    position: relative; /* Parent needs relative positioning */
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the parent link */
    left: 0;
    background-color: var(--background-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0; /* Padding around the list */
    margin: 0; /* Reset margin */
    min-width: 200px; /* Minimum width */
    z-index: 1001;
    border-radius: 0 0 8px 8px;
}

.dropdown-menu li {
    width: 100%;
}

/* Style for links within dropdown menus */
.dropdown-menu .sub-link { /* Changed selector to use .sub-link */
    padding: 1rem 1.5rem !important; /* Further increased horizontal padding and made important */
    white-space: nowrap;
    color: var(--text-color);
    font-size: 0.95rem; /* Slightly smaller font */
    font-weight: 400; /* Normal weight for dropdown items */
    display: block; /* Make links block-level */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Remove underline effect from dropdown links */
.dropdown-menu .sub-link::after { /* Changed selector */
    display: none;
}

.dropdown-menu .sub-link:hover,
.dropdown-menu .sub-link.current-lang { /* Changed selector */
    background-color: var(--highlight-color);
    color: var(--primary-color);
    font-weight: bold; /* Add bold font weight for current language */
}

/* Show dropdown on hover for desktop */
@media (min-width: 769px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}
/* .active class is used for mobile toggle via JS (see below) */


/* Style for the CTA item link */
.nav-cta-item .nav-link {
    padding: 8px 18px !important; /* Adjust padding to match button look */
    border-radius: 50px; /* Make it round */
    margin-left: 1rem; /* Add some space from other items */
    color: var(--light-text); /* Set initial text color to match other nav links */
    /* Inherits .btn and .btn-outline styles via class for border */
    /* Hover effect is handled by .btn-outline:hover */
}
/* Remove underline effect specifically for CTA */
.nav-cta-item .nav-link::after {
    display: none !important;
}

/* Header & Navigation */
header {
    background-color: var(--background-color);
    padding: 1.2rem 1rem;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: flex-end; /* Align text to bottom of logo */
    gap: 0.8rem; /* Space between logo icon and text */
}

.logo-icon {
    height: 50px; /* Smaller for better proportion */
    width: auto;
}

.logo-text {
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Removed .nav-right-group styles */

/* Language Selector Item Styles (within nav-menu) */
.language-item .nav-link {
    padding: 0.5rem; /* Padding around the icon */
    display: inline-flex; /* Align icon nicely */
    align-items: center;
    justify-content: center;
    line-height: 1; /* Prevent extra space */
}

.language-item .nav-link svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor; /* Inherit color from nav-link */
}

/* Remove underline from language toggle icon */
.language-item > .nav-link::after {
    display: none;
}

/* Position language dropdown menu */
.language-menu {
    right: -30%; /* Move 30% of its width to the right of the icon */
    left: auto;
    min-width: 160px; /* Increased width by ~30% (was 120px) */
    /* margin-top: 0.5rem; /* Removed margin causing the gap */
}
/* End Language Selector Styles */


.nav-menu {
    display: flex;
    align-items: center; /* Vertically align items */
    list-style: none;
    gap: 2rem; /* Adjust gap between top-level items */
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
}

/* Style for all top-level and dropdown links */
.nav-menu .nav-link {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 0; /* Padding for underline effect */
    position: relative; /* Needed for underline */
    display: block; /* Ensure block for padding/underline */
}

.nav-menu .nav-link:visited {
    color: var(--light-text);
}

/* Underline effect for non-button, non-icon links */
.nav-menu > .nav-item:not(.nav-cta-item):not(.language-item) > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

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

/* Activate underline on hover for relevant links */
.nav-menu > .nav-item:not(.nav-cta-item):not(.language-item) > .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    /* background-color: var(--highlight-color); Removed */
    padding: 6rem 1rem; /* Increased top/bottom padding for more height */
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 1)), /* Gradient: More dim at top, fades to white at bottom */
        url('img/hero.png'); /* Background image */
    background-repeat: no-repeat; /* Ensure background never repeats */
    background-size: cover; /* Ensure background covers the entire area */
    background-position: center; /* Start centered */
    color: white; /* Change default text color in hero to white for better contrast */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color); /* Changed text color to primary (Coral) */
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2); /* Re-added subtle shadow for contrast */
}

.hero p {
    font-size: 1.2rem; /* Slightly larger paragraph */
    color: var(--light-text); /* Changed text color to light-text for better contrast */
    margin-bottom: 2rem;
    max-width: 700px; /* Allow slightly wider text */
    margin-left: auto;
    margin-right: auto;
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.5); Removed shadow as text is dark now */
}

/* Removed .hero::before rule */


/* Life at Kita Section */
.life-at-kita {
    padding: 4rem 0;
    text-align: center;
    background: #FFF8F6;
}

.life-at-kita > * {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.life-at-kita h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Facilities Section */
.facilities-section {
    padding: 4rem 2rem;
    background: #FFF8F6;
}

.facilities-section > * {
    max-width: 1320px;
    margin: 0 auto;
}

.facilities-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.facilities-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Styles for location-section, location-container, map-container (in main), location-info, location-description removed */

.section-description { /* Style for the description under H2 */
    font-size: 1.2rem;
    color: var(--light-text);
    text-align: center;
    line-height: 1.8;
    max-width: 800px; /* Limit width */
    margin: 0 auto 3rem auto; /* Center and add bottom margin */
}

.facilities-container {
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(3, 1fr); /* Create three equal columns */
    gap: 1.5rem; /* Adjust gap between grid items */
}

.facility-item {
    display: flex; /* Use flexbox for vertical stacking */
    flex-direction: column; /* Stack items vertically */
    gap: 1rem; /* Gap between image and text */
    align-items: stretch; /* Stretch items to fill width */
    background: white;
    padding: 1.5rem; /* Adjust padding */
    border-radius: 15px;
    box-shadow: 4px 4px 0 rgba(255, 111, 97, 0.2);
    text-align: center; /* Center text below image */
}

/* Removed alternating styles (.facility-item:nth-child(even)) */

.facility-image {
    width: 100%; /* Image takes full width of the item */
    aspect-ratio: 1 / 1; /* Make image square */
    object-fit: cover; /* Cover the square area */
    /* margin: 0 auto; Removed */
    display: block;
    border-radius: 10px; /* Keep rounded corners */
}

.facility-text {
    /* padding: 0 1rem; Optional: Add padding if needed */
}

.facility-text h4 {
    color: var(--primary-color);
    font-size: 1.3rem; /* Slightly smaller heading */
    margin-bottom: 0.5rem; /* Reduced margin */
}

.facility-text p {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 992px) { /* Adjusted breakpoint for 3->2 columns */
    .facilities-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
        gap: 1.5rem;
    }

    .facility-item {
        /* Flex direction column is already set */
        padding: 1rem;
    }
    /* Removed direction override */

    .facility-image {
        /* aspect-ratio: 1/1; Keep square aspect ratio */
        /* height: 200px; Removed fixed height */
    }

    .facility-text h4 {
        font-size: 1.3rem;
    }

    .facility-text p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) { /* Added breakpoint for 2->1 column */
    .facilities-container {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}

/* Daily Routine Section */
.daily-routine-section {
    padding: 4rem 0;
    margin-top: 4rem;
}

.daily-routine-content {
    max-width: 1200px;
    margin: 0 auto;
}

.daily-routine-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.intro-text {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-container {
    /* display: flex; Removed */
    /* justify-content: center; Removed */
    /* margin-top: 2rem; Removed - Moved to .daily-schedule */
}

.daily-schedule { /* Removed .weekly-schedule selector */
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 4px 4px 0 rgba(255, 111, 97, 0.2);
    /* align-self: start; Removed - Parent no longer flex */
    max-width: 600px; /* Limit width of the daily schedule */
    width: 100%; /* Allow shrinking */
    margin: 2rem auto 0 auto; /* Added auto margins for centering and top margin */
}

.daily-schedule h3 { /* Removed .weekly-schedule selector */
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    list-style: none;
    padding: 0;
}

.timeline li {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

.time {
    color: var(--primary-color);
    font-weight: bold;
    min-width: 120px;
    margin-right: 1rem;
}

/* Removed .week-grid, .day-card styles */

@media (max-width: 768px) {
    /* Removed .schedule-container media query */

    .timeline li {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .time {
        margin-bottom: 0.3rem;
    }

    /* Removed .day-card media query */
}

/* Organization Section Styles Removed */

/* Gallery Section (Embedded Iframe) */
.gallery-section {
    padding: 4rem 2rem;
    background: #FFF0ED; /* Set specific background color */
    text-align: center;
}

.gallery-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem; /* Reduced margin */
}

/* Use existing section-description style for gallery text */

.embedded-gallery-iframe-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Limit max width */
    margin: 2rem auto 0 auto; /* Center the container */
    aspect-ratio: 16 / 9; /* Adjust aspect ratio as needed */
    overflow: hidden;
    border-radius: 15px;
    background-color: #FF6F61; /* Placeholder background - Use primary color */
    box-shadow: 6px 6px 0 rgba(255, 111, 97, 0.2); /* Consistent shadow */
}

.gallery-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px; /* Match container */
}

/* Élysée 2020 Label Section */
.elysee-section {
    padding: 4rem 2rem;
    background: var(--background-color);
}

.elysee-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 6px 6px 0 rgba(255, 111, 97, 0.2);
}

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

.elysee-badge {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.elysee-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.elysee-content p {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.elysee-content ul {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.elysee-content ul li {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .elysee-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .elysee-badge {
        max-width: 250px;
    }

    .elysee-content h2 {
        font-size: 1.7rem;
        text-align: center;
    }

    .elysee-content p {
        font-size: 1rem;
    }

    .elysee-content ul li {
        font-size: 1rem;
    }
}
/* End Élysée Section */

/* Team Section */
.team-section {
    padding: 4rem 0;
    background: #FFF0ED;
    text-align: center;
}

.team-section > * {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.team-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.team-section p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.team-section ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    text-align: center;
    justify-content: center;
    max-width: 1320px;
    margin: 0 auto;
}

.team-section li {
    color: var(--light-text);
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-section li:hover {
    transform: translateY(-5px);
}

.educator-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.educator-name {
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.educator-role {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.educator-specialization {
    font-size: 0.85rem;
    color: var(--text-color);
    font-style: italic;
}

@media (max-width: 1024px) {
    .team-section ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-section ul {
        grid-template-columns: 1fr;
    }
}

/* Team Recruitment Styling */
.team-recruitment {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-recruitment a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.team-recruitment a:hover {
    border-bottom-color: var(--primary-color);
}


@media (max-width: 768px) {
    .info-columns {
        grid-template-columns: 1fr;
    }
    
    .pedagogic-concept {
        padding: 3rem 1rem;
    }

    .pedagogic-concept h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .concept-item {
        padding: 1.5rem;
    }
}

/* Pedagogic Concept Section */
.pedagogic-concept {
    padding: 4rem 2rem;
    max-width: 1320px;
    margin: 0 auto;
    background: var(--background-color);
}

.pedagogic-concept h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.concept-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.concept-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.concept-item.reverse {
    direction: rtl;
}

.concept-item.reverse .concept-text {
    direction: ltr;
}

.concept-image {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 6px 6px 0 rgba(255, 111, 97, 0.2);
}

.concept-icon {
    width: 270px;
    height: 270px;
    display: block;
    object-fit: contain;
}

.concept-text {
    padding: 2rem;
}

.concept-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 500;
}

.concept-text p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .concept-item,
    .concept-item.reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        direction: ltr;
    }

    .concept-image {
        padding: 2rem;
    }

    .concept-icon {
        width: 180px;
        height: 180px;
    }

    .concept-text {
        padding: 1rem;
    }

    .concept-text h3 {
        font-size: 1.6rem;
    }

    .concept-container {
        gap: 2rem;
    }
}

/* Contact Form */
.contact-form {
    padding: 3rem 2rem;
    background-color: var(--primary-color);
}

.contact-form h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 1rem;
    font-weight: bold;
}

input:not([type="checkbox"]), select, textarea {
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 rgba(255, 111, 97, 0.15);
    width: 100%;
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    min-height: 2.4rem;
    line-height: 1;
}

.checkbox-label:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid white;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    position: relative;
    background: transparent;
    transition: all 0.2s ease;
    vertical-align: middle; /* Align checkbox vertically with text */
}

input[type="checkbox"]:checked {
    background-color: white;
    border-color: white;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

input[type="checkbox"]:hover {
    border-color: var(--highlight-color);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background-color: white;
    box-shadow: 4px 4px 0 rgba(255, 111, 97, 0.25);
    transform: translateY(-2px);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
    margin: 0.5rem;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    /* background-color: var(--primary-color); /* Keep background transparent */
    color: var(--primary-color); /* Change text color to primary on hover */
    /* Border color remains var(--primary-color) from .btn-outline */
}

button[type="submit"] {
    font-family: inherit;
    cursor: pointer;
    background-color: var(--highlight-color);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0 rgba(255, 111, 97, 0.3);
}

button[type="submit"]:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(255, 111, 97, 0.4);
}

/* Footer */
.footer-dark {
    background-color: #333;
    color: #fff;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 3rem;
    align-items: start;
}

.footer-column { /* Container for sections within a column */
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Space between sections in the same column */
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Default alignment */
}

/* Removed rule that centered items in the last column */

.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-section p {
    margin-bottom: 0.8rem;
    color: #ccc;
}

.footer-map-container {
    width: 100%;
    max-width: 400px; /* Limit map width */
    margin-bottom: 1.5rem;
}

.location-map { /* Re-styling map for footer */
    width: 100%;
    aspect-ratio: 4 / 3; /* Adjust aspect ratio if needed */
    border: none;
    border-radius: 10px;
    box-shadow: 4px 4px 0 rgba(255, 111, 97, 0.2);
}

.opening-hours {
    text-align: left; /* Align opening hours text to the left */
}

.opening-hours p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #888;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Keep single column */
        gap: 2.5rem; /* Adjust gap */
    }

    .footer-column,
    .footer-section {
        align-items: flex-start; /* Align items to the start (left) */
        text-align: left; /* Align text to the left */
    }

    .footer-section ul {
        text-align: left; /* Align quick links to the left */
    }

    .footer-map-container {
        max-width: 90%; /* Allow map to be wider on mobile */
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span {
    background-color: var(--primary-color);
}

.hamburger.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* Responsive Design */
/* Modal System Styles Removed */
/* ... (all modal styles down to the media query) ... */
/* Gallery Modal Specific Styles Removed */
/* ... (gallery iframe styles within modal context) ... */

@media (max-width: 768px) {
    /* Modal media queries removed */

    /* Adjust embedded gallery aspect ratio for mobile if needed */
    .embedded-gallery-iframe-container {
        aspect-ratio: 4 / 3; /* More square on mobile */
        max-width: 100%; /* Allow full width */
    }
}

/* Ensure the modal body can expand to fit content */
/* Modal body styles removed */

/* Make gallery content take full height in modal */
/* Gallery modal content styles removed */

/* >>> The entire block above containing the incorrect @media query and modal styles is removed <<< */

@media (max-width: 768px) {
    main {
        background: linear-gradient(
            to bottom,
            var(--background-color) 0%,
            var(--background-color) 50%,
            var(--primary-color) 100%
        );
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Stack items vertically */
        width: 100%;
        text-align: center;
        padding: 1rem 0; /* Vertical padding */
        gap: 0; /* Reset gap, manage spacing with padding */
        background-color: var(--background-color); /* Ensure background */
        position: absolute; /* Position below header */
        top: 100%; /* Place it right below the header */
        left: 0;
        box-shadow: 0 4px 15px rgba(255, 111, 97, 0.1); /* Add shadow */
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    /* Style individual nav items in mobile */
    .nav-menu .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--highlight-color); /* Separator */
    }
    .nav-menu .nav-item:last-child {
        border-bottom: none;
    }

    /* Style links in mobile */
    .nav-menu .nav-link {
        padding: 1rem 1.5rem; /* Generous padding for tapping */
        width: 100%;
        font-size: 1.1rem;
    }

     /* Remove underline effect in mobile */
    .nav-menu .nav-link::after {
        display: none;
    }

    /* Style CTA button in mobile */
    .nav-cta-item .nav-link {
        display: inline-block; /* Allow button styling */
        width: auto; /* Don't force full width */
        margin: 1rem auto; /* Center button */
        padding: 0.8rem 1.8rem !important; /* Mobile padding */
        border-width: 2px; /* Ensure border visible */
    }

    /* Style language icon in mobile */
    .language-item {
        order: -1; /* Move language selector to the top in mobile */
        border-bottom: none; /* No separator for the first item */
    }
    .language-item .nav-link {
        display: inline-flex; /* Center icon */
        width: auto; /* Don't force full width */
        padding: 0.8rem; /* Padding around icon */
    }
    .language-item .nav-link svg {
        width: 2rem; /* Slightly larger icon */
        height: 2rem;
    }


    .concept-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .concept-item {
        padding: 1.5rem 1rem; /* Existing style */
    }

    .concept-item h3 {
        font-size: 1.2rem; /* Existing style */
    }

    .concept-item p {
        font-size: 0.95rem; /* Existing style */
    }

    /* Removed old .nav-menu.active styles */
    /* Removed old .nav-cta-button mobile styles */

    .main-nav {
        flex-wrap: wrap; /* Keep wrapping */
        position: relative; /* Needed for absolute positioning of mobile menu */
    }
    /* Keep logo and hamburger order */
    .main-nav > .logo { order: 1; }
    .main-nav > .hamburger { order: 2; }
    /* The nav-menu ul is now the direct child */
    .main-nav > .nav-menu {
        order: 3; /* Place menu below logo/hamburger */
        width: 100%; /* Take full width */
    }
    /* Removed rules for .nav-right-group and its contents */

    .hero {
        padding: 4rem 1rem; /* Reduced padding for mobile */
        /* background-repeat: no-repeat; /* This is now global */
        /* background-size: cover; /* This is global, and animation is off via 1024px query */
        /* animation: none; /* This is now handled by the (max-width: 1024px) query */
    }

    .hero h1 {
        font-size: 2rem; /* Existing style */
    }

    /* Mobile Dropdown Adjustments */
    .nav-menu .nav-item.dropdown {
        width: 100%; /* Dropdown takes full width */
        position: relative; /* Ensure context for static menu */
    }

    .nav-menu .dropdown-toggle {
        /* Inherits .nav-link styles */
        display: flex; /* Use flex to add arrow */
        justify-content: center; /* Center text */
        align-items: center; /* Align text and arrow */
        gap: 0.5rem; /* Space between text and arrow */
    }

    /* Add dropdown arrow for mobile */
    .nav-menu .dropdown-toggle::after {
        content: '▼'; /* Simple arrow */
        display: inline-block;
        font-size: 0.7em;
        transition: transform 0.3s ease;
    }
    .nav-menu .dropdown.active > .dropdown-toggle::after {
         transform: rotate(180deg); /* Rotate arrow when open */
    }


    .nav-menu .dropdown-menu {
        position: static; /* Static positioning within the flow */
        display: none; /* Hidden by default, shown by JS toggle */
        width: 100%;
        background-color: rgba(0,0,0,0.03); /* Subtly different background */
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        border-top: 1px solid var(--highlight-color); /* Separator line */
    }

    /* Show dropdown menu in mobile when parent is active */
    .nav-menu .nav-item.dropdown.active > .dropdown-menu {
        display: block;
    }

    /* Style links within mobile dropdown */
    .nav-menu .dropdown-menu .sub-link { /* Changed selector */
        padding: 0.8rem 2rem; /* Keep mobile padding as is, or adjust if needed */
        font-size: 1rem;
        text-align: center;
        color: var(--light-text); /* Slightly lighter text */
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Faint separator */
    }
     .nav-menu .dropdown-menu li:last-child .nav-link {
        border-bottom: none;
    }

    .nav-menu .dropdown-menu .sub-link:hover { /* Changed selector */
        background-color: var(--highlight-color);
        color: var(--primary-color);
    }

    /* Specific mobile styles for language dropdown */
    .language-item .dropdown-menu {
        background-color: transparent; /* Match main mobile menu bg */
        border-top: none; /* No top border needed */
    }
    .language-item .dropdown-menu .sub-link { /* Changed selector */
         color: var(--text-color); /* Use standard text color */
         padding: 0.8rem 1.5rem; /* Keep mobile padding for language links */
    }
}
