/* ========================================
   School Website Default Theme
   Mobile-first, institutional design
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #4a7db8;
    --accent-color: #e8a838;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --header-height: 70px;
    --hero-image-height: 600px;
    --hero-image-aspect-ratio: 3.2; /* 1920 / 600 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    transition: background var(--transition), box-shadow var(--transition);
    background: rgba(30, 58, 95, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.site-header.scrolled-deep {
    transition: background var(--transition), box-shadow var(--transition);
    background: rgba(30, 58, 95, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation - hidden on mobile */
.desktop-nav {
    display: none;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 998;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    transform: translateX(0);
}

/* Ensure header stays solid when menu is open */
.site-header.menu-open {
    background: var(--primary-color);
}

.nav-menu {
    list-style: none;
    padding: 1rem;
}

.nav-menu > li {
    border-bottom: 1px solid var(--border-color);
}

.nav-menu > li > a,
.nav-menu > li > .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
}

.nav-menu > li > a:hover,
.nav-menu > li > .dropdown-toggle:hover {
    color: var(--primary-color);
}

/* Dropdown Arrow */
.dropdown-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition);
}

.dropdown-toggle.active::after {
    transform: rotate(-135deg);
}

/* Dropdown Menu */
.dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    background: var(--bg-light);
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.dropdown-menu.active {
    max-height: 500px;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

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

.submenu-menu {
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    will-change: max-height;
}

.submenu-menu.active {
    opacity: 1;
}

.submenu-menu > li {
    border-left: 1px solid var(--border-color);
}

.submenu-menu li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.submenu-header {
    position: relative;
}

.submenu-header > a {
    display: block;
    padding: 0.75rem 1rem;
    line-height: 1.4;
    padding-right: 3rem;
}

.submenu-toggle {
    background: none;
    border: none;
    color: inherit;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 0.5rem;
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.submenu-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -58%) rotate(45deg);
    transition: transform var(--transition);
}

.submenu-toggle.active::after {
    transform: translate(-50%, -36%) rotate(-135deg);
}

.submenu-toggle:hover {
    background: var(--bg-light);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    margin-top: var(--header-height);
    height: auto;
    min-height: 460px;
    max-height: none;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-motto {
    font-style: italic;
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: #d4952a;
    border-color: #d4952a;
    color: #ffffff;
}

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

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 4rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ========================================
   Features / Info Cards
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 125, 184, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   News / Announcements
   ======================================== */
.news-filter {
    margin-bottom: 2rem;
}

.news-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(30, 58, 95, 0.12);
    background: #f8fafc;
}

.news-filter-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.news-filter-title svg {
    width: 22px;
    height: 22px;
    stroke: #4db2e4;
    stroke-width: 1.8;
    fill: none;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.news-filter-title span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.news-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.news-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #d5dbe4;
    background: #e9edf2;
    color: #2e3743;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.news-filter-chip:hover {
    border-color: rgba(30, 58, 95, 0.35);
    background: #e2e8f0;
    color: #1f2937;
}

.news-filter-chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news-card {
    display: block;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    color: inherit;
    text-decoration: none;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    color: inherit;
}

.news-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image svg {
    width: 48px;
    height: 48px;
    fill: white;
    opacity: 0.5;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.news-card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-empty-state {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.news-empty-state p {
    margin: 0;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .news-filter-bar {
        align-items: flex-start;
        padding: 1rem;
    }

    .news-filter-title {
        width: 100%;
    }

    .news-filter-title span {
        font-size: 1rem;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--bg-light);
}

.contact-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    color: #ffffff;
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: -2rem;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 125, 184, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--secondary-color);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: color var(--transition);
}

.contact-card-link:hover {
    color: var(--primary-color);
}

.contact-card-link svg {
    fill: currentColor;
}

/* Directions Buttons */
.directions-buttons {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.directions-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.directions-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-color);
    transition: all var(--transition);
    text-decoration: none;
}

.directions-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    color: var(--primary-color);
}

.directions-btn svg {
    flex-shrink: 0;
}

.directions-google:hover {
    border-color: #4285F4;
    color: #4285F4;
}

.directions-apple:hover {
    border-color: #000000;
    color: #000000;
}

.directions-waze:hover {
    border-color: #33CCFF;
    color: #00C4FF;
}

/* Contact Details */
.contact-card-details {
    text-align: left;
}

.contact-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-detail-row:last-child {
    border-bottom: none;
}

.contact-detail-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-detail-value {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

a.contact-detail-value {
    color: var(--primary-color);
}

a.contact-detail-value:hover {
    color: var(--accent-color);
}

/* Working Hours */
.working-hours-group + .working-hours-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.working-hours-title {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-light);
}

.working-hours-list {
    text-align: left;
}

.working-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.working-hours-row:last-child {
    border-bottom: none;
}

.working-hours-row .day {
    font-size: 0.9rem;
    color: var(--text-color);
}

.working-hours-row .hours {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.working-hours-row .hours.closed {
    color: #dc3545;
}

/* Map Section */
.contact-map-section {
    margin-top: 2rem;
    padding-bottom: 3rem;
}

.map-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-map {
    height: 350px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Full-width Map Hero (before cards) */
.contact-map-hero {
    width: 100%;
    margin-top: -2rem;
    position: relative;
    z-index: 1;
}

.contact-map-full {
    width: 100%;
    height: 300px;
    background: var(--bg-light);
}

.contact-map-full iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* OpenStreetMap specific */
#osm-map {
    z-index: 1;
}

#osm-map .leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
}

#osm-map .leaflet-popup-content {
    margin: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Text utilities */
.text-muted {
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   Contact Page Specific Styles
   ======================================== */
.page-header.page-header-contact {
    margin-top: var(--header-height);
    height: 250px;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-header.page-header-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.page-header.page-header-contact .page-header-contact-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-header.page-header-contact .container {
    position: relative;
    z-index: 2;
}

.contact-page-content {
    background: var(--bg-light);
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.contact-page-content .contact-cards {
    margin-top: 0;
}

.contact-page-content .contact-cards-main {
    grid-template-columns: 1fr;
}

.contact-hours-section {
    margin-top: 2rem;
}

.working-hours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.working-hours-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.working-hours-card .working-hours-title {
    margin-bottom: 0.75rem;
}

.contact-map-section-inline {
    margin-top: 2rem;
    padding-bottom: 0;
}

/* When map is present, cards don't need negative margin */
.contact-map-hero + .contact-page-content {
    padding-top: 2rem;
}

/* When no map, pull cards up into header */
.page-header-contact + .contact-page-content .contact-cards {
    margin-top: -3rem;
}

/* Active nav link */
.nav-menu a.active {
    color: var(--accent-color);
}

.desktop-nav .nav-menu > li > a.active {
    color: var(--accent-color);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form-section {
    margin-top: 2rem;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-section .section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #dc3545;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-color);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group.form-checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-checkbox label a:hover {
    color: var(--accent-color);
}

.form-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.form-actions .btn {
    min-width: 200px;
}

/* Form messages */
.form-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-message.success,
.form-message-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-message.error,
.form-message-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Form validation states */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #dc3545;
}

.form-group .error-message {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

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

    .contact-page-content .contact-cards-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .working-hours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .contact-form-section {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .contact-form-section {
        margin-top: 2rem;
        padding: 3.5rem;
    }

    .contact-form-section .section-subtitle {
        font-size: 1.75rem;
    }
}

/* ========================================
   Contact CTA Section (Homepage)
   ======================================== */
.contact-cta-section {
    background: var(--primary-color);
    padding: 4rem 0;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.contact-cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.contact-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-dark svg {
    fill: currentColor;
}

@media (min-width: 768px) {
    .contact-cta {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .contact-cta-content {
        flex: 1;
    }

    .contact-cta-actions {
        flex-direction: row;
        width: auto;
        max-width: none;
    }

    .contact-cta-content h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .contact-cta-section {
        padding: 5rem 0;
    }

    .contact-cta-content h2 {
        font-size: 2.25rem;
    }
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: #1a1a2e;
    color: #ffffff;
    padding: 3rem 0 0;
}

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

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--bg-white);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

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

.social-link svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero {
        height: calc(100vw / var(--hero-image-aspect-ratio));
        min-height: 420px;
        max-height: var(--hero-image-height);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-header h2 {
        font-size: 2.25rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* ========================================
   Responsive - Desktop
   ======================================== */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .desktop-nav {
        display: block;
    }

    .desktop-nav .nav-menu {
        display: flex;
        gap: 0;
        padding: 0;
    }

    .desktop-nav .nav-menu > li {
        border: none;
        position: relative;
    }

    .desktop-nav .nav-menu > li > a,
    .desktop-nav .nav-menu > li > .dropdown-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
        color: #ffffff;
    }

    .desktop-nav .nav-menu > li > a:hover,
    .desktop-nav .nav-menu > li > .dropdown-toggle:hover {
        color: var(--accent-color);
    }

    .desktop-nav .nav-menu > li > a {
        justify-content: center;
    }

    .desktop-nav .dropdown-toggle::after {
        width: 6px;
        height: 6px;
        margin-left: 0.5rem;
    }

    .desktop-nav .dropdown-toggle {
        justify-content: center;
    }

    .desktop-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        margin: 0;
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all var(--transition);
        max-height: none;
        overflow: visible;
    }

    .nav-menu > li:hover .dropdown-menu,
    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: none;
    }

    .dropdown-menu li a {
        padding: 0.625rem 1.25rem;
    }

    .desktop-nav .submenu-menu {
        margin: 0;
        padding: 0 0.75rem;
    }

    .desktop-nav .submenu-menu li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.88rem;
    }

    .desktop-nav .submenu-header > a {
        padding: 0.625rem 1.25rem;
        padding-right: 3rem;
    }

    .desktop-nav .submenu-toggle {
        width: 36px;
        height: 36px;
        right: 0.25rem;
    }

    .hero {
        height: var(--hero-image-height);
        min-height: var(--hero-image-height);
        max-height: var(--hero-image-height);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-content {
        padding: 4rem 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        margin-top: -3rem;
    }

    .contact-header {
        padding: 5rem 0;
    }

    .contact-header h2 {
        font-size: 2.5rem;
    }

    .contact-map {
        height: 400px;
    }

    .contact-map-full {
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .section {
        padding: 5rem 0;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Skip to content for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Generic Page Styles (Privacy, Terms, etc.)
   ======================================== */
.page-header {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: #ffffff;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    background: var(--bg-light);
    padding: 3rem 0 4rem;
}

.content-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Policy Sections */
.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.policy-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-section p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-section ul li {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.policy-section ul li strong {
    color: var(--primary-color);
}

/* Info Box */
.info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1rem 0;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.cookie-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.cookie-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.cookie-table tr:nth-child(even) {
    background: var(--bg-light);
}

.cookie-table tr:hover {
    background: rgba(74, 125, 184, 0.05);
}

.cookie-table code {
    background: var(--bg-light);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .page-header {
        padding-top: calc(var(--header-height) + 4rem);
        padding-bottom: 4rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .content-wrapper {
        padding: 3.5rem 4rem;
    }

    .policy-section h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   Breadcrumb Navigation
   ======================================== */

.breadcrumb-nav {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-home-icon {
    flex-shrink: 0;
}

.breadcrumb-item.active span {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
    color: var(--text-light);
    opacity: 0.5;
}

/* ========================================
   Page Layout with Sidebar
   ======================================== */

.page-layout-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-sidebar {
    width: 100%;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all var(--transition);
}

.sidebar-toggle:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
}

.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.sidebar-toggle-icon {
    transition: transform var(--transition);
}

.sidebar-nav {
    display: none;
    margin-top: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sidebar-nav.expanded {
    display: block;
}

.sidebar-title {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title a {
    color: inherit;
    text-decoration: none;
}

.sidebar-title a:hover {
    text-decoration: underline;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.sidebar-item {
    margin: 0;
}

.sidebar-item a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-item a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.sidebar-item.active a {
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary-color);
    font-weight: 500;
    border-left-color: var(--primary-color);
}

.page-article {
    flex: 1;
    min-width: 0;
}

.page-article-full {
    max-width: none;
}

/* Tablet and up */
@media (min-width: 768px) {
    .page-layout-with-sidebar {
        flex-direction: row;
        gap: 3rem;
    }

    .page-sidebar {
        width: 280px;
        flex-shrink: 0;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar-nav {
        display: block;
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .page-sidebar {
        width: 300px;
    }

    .page-layout-with-sidebar {
        gap: 4rem;
    }
}
