/*
Theme Name: CODEPIE 5.0
Theme URI: https://codepie.eu
Description: Modern, professional WordPress theme for the CODEPIE 5.0 EU project. Features a clean, corporate design with blue/white/dark gray color scheme.
Version: 1.0
Author: CODEPIE Team
Author URI: https://codepie.eu
Tags: education, eu-project, corporate, modern, responsive
Text Domain: codepie
*/

/* ========================================
   CSS VARIABLES - Color Palette
   ======================================== */
:root {
    --primary-blue: #0066CC;
    --dark-blue: #003399;
    --light-blue: #4A90E2;
    --accent-blue: #6CB4E8;
    --dark-gray: #2C3E50;
    --medium-gray: #5A6C7D;
    --light-gray: #ECF0F1;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #D5D8DC;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--light-gray);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px var(--shadow-hover);
}

/* Top Bar - Logo Left, Title Center, EU Flag Right */
.header-top-bar {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.header-logo-left {
    justify-self: start;
}

.header-logo-left img {
    height: 70px;
    width: auto;
}

.site-branding-center {
    text-align: center;
    justify-self: center;
    max-width: 600px;
}

.site-title {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0 0 8px 0;
}

.site-title a {
    color: var(--primary-blue);
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
    opacity: 0.85;
}

.header-eu-flag-right {
    justify-self: end;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.header-eu-flag-right img {
    height: 50px;
    width: auto;
}

.eu-text {
    font-size: 0.7rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    font-weight: 500;
    max-width: 100px;
    line-height: 1.2;
}

/* Project Name Ticker */
.project-ticker {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.project-ticker::before,
.project-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.project-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-blue), transparent);
}

.project-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-blue), transparent);
}

.ticker-track {
    display: inline-block;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-content {
    display: inline-block;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ticker-dot {
    display: inline-block;
    margin: 0 40px;
    color: var(--accent-blue);
    font-size: 0.6rem;
    vertical-align: middle;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

/* Pause ticker on hover for readability */
.project-ticker:hover .ticker-track {
    animation-play-state: paused;
}

/* Navigation Menu - Below Logo */
.main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
    background-color: var(--light-gray);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 10px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, var(--light-blue) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
    background-size: cover;
}

/* ========================================
   PAGE HEADER (Title without image)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.page-header .page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header .page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    font-weight: 400;
}

/* ========================================
   SPLIT LAYOUT: Image + Content Side by Side
   ======================================== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.split-section .image-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    padding: 40px;
    overflow: hidden;
}

.split-section .image-side img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.split-section .content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: var(--white);
}

.split-section .content-side h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.split-section .content-side p,
.split-section .content-side li {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Reverse layout (image on right) */
.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

/* Alternate background colors */
.split-section.alt .image-side {
    background: var(--white);
}

.split-section.alt .content-side {
    background: var(--light-gray);
}

/* Hero split with gradient background on content side */
.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.split-hero .image-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    padding: 40px;
}

.split-hero .image-side img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.split-hero .content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
}

.split-hero .content-side h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.split-hero .content-side p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0;
}

.split-hero.reverse {
    direction: rtl;
}

.split-hero.reverse > * {
    direction: ltr;
}

@media (max-width: 900px) {
    .split-section,
    .split-hero {
        grid-template-columns: 1fr;
    }
    
    .split-section,
    .split-section.reverse,
    .split-hero,
    .split-hero.reverse {
        direction: ltr;
    }
    
    .split-section .image-side,
    .split-hero .image-side {
        min-height: 300px;
        order: -1;
    }
    
    .split-section .content-side,
    .split-hero .content-side {
        padding: 40px 20px;
    }
    
    .split-hero .content-side h1 {
        font-size: 2rem;
    }
    
    .page-header .page-title {
        font-size: 2rem;
    }
}

/* ========================================
   HERO SECTION (Legacy - with overlay)
    background-position: center;
    background-repeat: no-repeat;
}

/* Better overlay - gradient from dark to transparent */
.hero-section.with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 51, 153, 0.7) 0%,
        rgba(0, 102, 204, 0.5) 50%,
        rgba(74, 144, 226, 0.3) 100%
    );
    z-index: 1;
}

/* Additional vignette effect to darken edges */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 20px;
}

/* Enhanced text readability */
.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.7),
                 0 0 20px rgba(0,0,0,0.5);
    background: rgba(0, 51, 153, 0.3);
    padding: 15px 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7),
                 0 0 15px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 25px;
    border-radius: 6px;
    backdrop-filter: blur(3px);
    display: inline-block;
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 20px;
    border-radius: 6px;
    backdrop-filter: blur(3px);
    display: inline-block;
}

/* Image Feature Section - lighter overlay */
.image-feature-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.image-feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.image-feature-section .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

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

.btn-secondary:hover {
    background-color: var(--light-gray);
    color: var(--dark-blue);
}

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

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

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 20px auto 0;
}

/* ========================================
   CARDS
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.card-content {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   PROJECT INFO ROW (Info Card + Visitor Counter)
   ======================================== */
.project-info-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin: 60px auto;
    max-width: 1000px;
}

.project-info-card {
    flex: 1;
    background: var(--white);
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info-item {
    font-size: 1.15rem;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
}

.project-info-item:first-child {
    margin-bottom: 20px;
}

.visitor-counter-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a5a9c 100%);
    color: var(--white);
    padding: 40px 45px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 84, 166, 0.3);
}

.visitor-counter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
}

.visitor-counter-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.visitor-counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

.visitor-counter-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .project-info-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .project-info-card,
    .visitor-counter-card {
        width: 100%;
    }
    
    .visitor-counter-card {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .project-info-card {
        padding: 30px;
    }
    
    .visitor-counter-card {
        padding: 25px 30px;
    }
    
    .visitor-counter-number {
        font-size: 2rem;
    }
    
    .visitor-counter-icon {
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    min-height: 150px;
    text-decoration: none;
    cursor: pointer;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--shadow-hover);
    text-decoration: none;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

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

.footer-partners {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-partners img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-partners img:hover {
    opacity: 1;
}

.footer-disclaimer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #E0E0E0;
}

.footer-disclaimer p {
    color: #E0E0E0;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #D0D0D0;
}

.footer-bottom p {
    color: #D0D0D0;
    margin-bottom: 0;
}

/* Footer Menu Styles */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-blue);
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

/* Contact Page Links */
.email-link {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.email-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.social-link:hover {
    color: #1877F2;
    transform: translateX(5px);
}

.facebook-icon {
    width: 28px;
    height: 28px;
    color: #1877F2;
    transition: transform 0.3s ease;
}

.social-link:hover .facebook-icon {
    transform: scale(1.1);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
        padding: 12px 20px;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        padding: 8px 15px;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    /* Stack header on mobile */
    .header-top-bar {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .header-logo-left,
    .header-eu-flag-right {
        justify-self: center;
    }
    
    .header-logo-left img {
        height: 60px;
    }
    
    .header-eu-flag-right {
        flex-direction: row;
        gap: 10px;
    }
    
    .header-eu-flag-right img {
        height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-tagline {
        font-size: 0.65rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .main-navigation {
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        box-shadow: 0 4px 20px var(--shadow);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        margin: 10px auto;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        padding: 10px 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 8px 12px;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .header-logo-left img {
        height: 50px;
    }
    
    .header-eu-flag-right img {
        height: 35px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-tagline {
        display: none; /* Hide on mobile - ticker shows the name */
    }
    
    .ticker-content {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .ticker-dot {
        margin: 0 25px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

