    .programs-masonry .program-title,
    .programs-masonry .program-content,
    .programs-masonry li p {
        font-size: 1.15em !important;
        color: #222 !important;
        font-weight: 700 !important;
        background: transparent !important;
        padding: 2px 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: visible !important;
        z-index: 2 !important;
        word-break: break-word !important;
        text-shadow: none !important;
        text-align: center !important;
        position: relative !important;
        max-width: 100vw !important;
    }
    .programs-masonry .program-content {
        min-height: unset !important;
        box-sizing: border-box !important;
    }
    .programs-masonry li {
        overflow: visible !important;
        min-height: unset !important;
        height: auto !important;
    }
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1b4f72 100%);
    --secondary-gradient: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    --accent-gradient: linear-gradient(135deg, #85c1e9 0%, #5dade2 100%);
    --glass-effect: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #1a365d;
    --text-light: #2c3e50;
    --shadow-primary: 0 20px 40px rgba(52, 152, 219, 0.3);
    --shadow-secondary: 0 10px 30px rgba(27, 79, 114, 0.2);
    --shadow-hover: 0 30px 60px rgba(52, 152, 219, 0.4);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    height: 100%;
    overflow-x: hidden;
    background-attachment: fixed;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(93, 173, 226, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(133, 193, 233, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

header {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background: var(--accent-gradient);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: var(--shadow-primary);
    border-radius: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    border-bottom: 5px solid #3498db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

.hidden-header {
    transform: translateY(-100%);
    opacity: 0;
}

header .inner-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

header h1, header p {
    margin: 0;
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-secondary);
    margin: 20px auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.5;
    border: 1px solid var(--glass-border);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes borderGlow {
    from {
        box-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(212, 163, 115, 1);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(74, 44, 42, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(74, 44, 42, 1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

header h1 {
    order: 1;
    margin-bottom: 10px;
    position: relative;
    font-size: 2em;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    word-wrap: break-word;
    text-align: center;
    margin: 10px 0;
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 50%, #bbdefb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    order: 2;
    font-size: 0.9em;
    padding: 8px 15px;
    max-width: 80%;
    color: rgba(255, 255, 255, 0.9);
}

header h2 {
    display: none;
}

.event-date, .countdown {
    font-size: 1.8em;
    color: var(--text-primary);
    background: var(--accent-gradient);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px 20px;
    margin: 10px auto;
    width: 520px;
    max-width: 100%;
    box-shadow: var(--shadow-secondary);
    text-align: center;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    line-height: 1.5;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
}

.event-date:hover, .countdown:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--secondary-gradient);
}

.container {
    width: 100%;
    margin: 0;
    max-width: none;
    text-align: center;
    background: var(--glass-effect);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-primary);
    padding: 30px 20px;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
    flex: 3;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.container h3 {
    font-size: 1.8em;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

ul li {
    background: var(--glass-effect);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-secondary);
    text-align: center;
    position: relative;
    width: 220px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

ul li:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--secondary-gradient);
}

ul li:hover img {
    filter: grayscale(0);
    border-color: #3498db;
}

ul li img {
    width: 100%;
    height: 150px;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    margin-bottom: 10px;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
}

ul li img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

ul li p {
    font-size: 1em;
    color: white;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
    text-align: center;
}

.container ul li img {
    cursor: pointer;
}

footer {
    width: 100%;
    margin: 0 auto;
    font-size: 1em;
    background: var(--accent-gradient);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    box-shadow: var(--shadow-primary);
    padding: 15px 0;
    display: block;
    text-align: center;
    margin: 0;
    border-top: 5px solid #3498db;
}

footer p {
    display: inline-block;
    background: var(--glass-effect);
    backdrop-filter: blur(20px);
    color: white;
    padding: 15px 25px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-secondary);
    margin: 10px auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-top: 20px;
}

footer .social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

footer .social-media a,
footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

footer .social-media img,
footer .social-icons img {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 79, 114, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass-effect);
    backdrop-filter: blur(20px);
    color: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-primary);
    max-width: 700px;
    width: 90%;
    text-align: left;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    font-size: 1.8em;
    margin: 0 0 20px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.modal-content p {
    font-size: 1.2em;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-text-content {
    font-size: 1.1em;
    line-height: 1.8;
    margin: 20px 0 0 0;
    text-align: justify;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: pre-line;
}

.modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.modal .close-button:hover {
    transform: scale(1.2);
    color: #5dade2;
}

/* Modal tartalom reszponzívvá tétele */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        max-width: 95%;
        max-height: 90vh;
    }
    
    .modal-content h3 {
        font-size: 1.5em;
        margin: 0 0 15px 0;
    }
    
    .modal-text-content {
        font-size: 1em;
        line-height: 1.6;
    }
    
    #modal-image {
        max-height: 200px;
        margin: 0 auto 15px auto;
    }
}

/* Fade-in animáció hozzáadása */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#modal-image {
    max-width: 100%;
    max-height: 300px;
    margin: 0 auto 20px auto;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: cover;
}

.hidden {
    display: none;
}

.visible {
    display: flex;
}

.countdown {
    font-size: 1.8em;
    color: #e74c3c;
    text-align: center;
    margin: 20px auto;
    font-weight: bold;
}

.organizer {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-primary);
    margin: 10px auto;
    font-weight: bold;
    background: var(--accent-gradient);
    padding: 15px 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-secondary);
    backdrop-filter: blur(20px);
}

.organizer-section {
    text-align: center;
    font-size: 1.2em;
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.8) 0%, rgba(187, 222, 251, 0.6) 100%);
    color: #2c3e50;
    padding: 18px 20px;
    margin: 8px 0;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    text-shadow: none;
}

#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 79, 114, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#image-modal.visible {
    display: flex;
    opacity: 1;
}

#image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#image-modal .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

#slideshow {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    height: 300px;
}

.slideshow-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slideshow-track {
    display: flex;
    transition: transform 0.3s linear;
    will-change: transform;
    width: auto;
    animation: scrollLeft linear infinite;
}

.slideshow-track img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    margin-right: 0;
    border-right: 2px solid #ffffff;
    transition: none;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 300px));
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 768px) {
    body, html {
        font-size: 14px;
        overflow-x: hidden;
    }

    header {
        padding: 20px;
        max-width: 800px;
        width: 100%;
        margin: 0 auto;
    }

    header h1 {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        font-size: 2em;
        text-align: center;
        margin-bottom: 10px;
    }

    header h2 {
        display: none;
    }

    header .inner-container {
        text-align: center;
    }

    header p {
        font-size: 1em;
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .container {
        padding: 15px 10px;
        margin: 0;
        text-align: center;
        box-sizing: border-box;
        width: 100%;
    }

    #weather-and-chat {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    ul {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    ul li {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    ul li img {
        height: 140px;
        width: 100%;
        object-position: center top;
    }

    .event-date, .countdown {
        font-size: 1.4em;
        padding: 12px 15px;
        margin: 10px auto;
        width: auto;
        max-width: calc(100% - 20px);
    }
    
    .gallery-button {
        font-size: 1.4em !important;
        padding: 12px 15px !important;
        width: auto !important;
        max-width: calc(100% - 20px) !important;
    }
    
    .container > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
    #instagram-section {
        margin-top: 20px;
    }
    
    .organizer-section {
        font-size: 1em;
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1.1em;
        text-align: center;
        padding: 10px;
    }

    ul li {
        width: 100%;
        flex: 1 1 calc(100% - 20px);
        padding: 10px;
        margin-bottom: 10px;
    }

    ul li img {
        height: 140px;
    }

    .container {
        padding: 15px;
    }

    .container h3 {
        font-size: 1.5em;
        text-align: center;
        margin-bottom: 20px;
    }

    header h1, header h2 {
        text-align: center;
        margin: 0 auto;
    }

    header h2 {
        margin-top: 10px;
    }

    footer {
        margin-top: 0;
    }

    .slideshow-track {
        animation: none;
    }

    @keyframes scrollLeft {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%);
        }
    }

    header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    header h2 {
        display: none;
    }

    .inner-container {
        gap: 10px;
    }

    #language-toggle {
        top: 5px;
        right: 5px;
        width: 40px;
    }
}

@media only screen and (max-width: 480px) {
    header h1 {
        font-size: 1.6em;
    }

    .container {
        padding: 10px 5px;
    }

    #weather-and-chat {
        gap: 10px;
        padding: 0 5px;
    }

    ul li {
        width: 100%;
        padding: 10px;
    }

    .gallery-button {
        font-size: 1em !important;
        padding: 10px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    header h1 {
        font-size: 1.5em;
    }

    header h2 {
        display: none;
    }

    .inner-container {
        gap: 5px;
    }

    #language-toggle {
        width: 35px;
    }

    .event-date, .countdown {
        font-size: 1.2em;
        padding: 10px 15px;
        width: auto;
        max-width: calc(100% - 20px);
    }
}

/* About Page Specific Styles */
.header-with-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--accent-gradient);
    border-bottom: 5px solid #3498db;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    width: 100%;
}

.header-content .logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.header-content .logo:hover {
    transform: scale(1.1);
}

.language-flags {
    display: flex;
    gap: 15px;
    align-items: center;
}

.language-flags .flag {
    width: 40px;
    height: 30px;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
}

.language-flags .flag:hover,
.language-flags .flag.active {
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

.about-content {
    max-width: 1000px;
    width: 100%;
    padding: 40px;
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.15) 0%, rgba(52, 152, 219, 0.1) 50%, rgba(133, 193, 233, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.2);
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5em;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.about-content h3 {
    font-size: 1.6em;
    color: white;
    margin: 30px 0 15px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.about-content p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.about-content ul li {
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    color: white;
    font-size: 1.05em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.about-content ul li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.quote-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(93, 173, 226, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.25);
    transition: transform 0.3s ease;
}

.quote-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.35);
}

.quote-text {
    font-size: 1.3em;
    font-style: italic;
    color: white;
    margin-bottom: 15px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quote-author {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(52, 152, 219, 0.5);
}

.stat-label {
    display: block;
    font-size: 1em;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.contact-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-title {
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-info {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-content .logo {
        width: 60px;
        height: 60px;
    }
    
    .about-content {
        padding: 25px 20px;
        margin: 20px 10px;
    }
    
    .about-content h2 {
        font-size: 2em;
    }
    
    .about-content h3 {
        font-size: 1.4em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quote-text {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 20px 15px;
        margin: 15px 5px;
    }
    
    .about-content h2 {
        font-size: 1.8em;
    }
    
    .about-content h3 {
        font-size: 1.3em;
    }
    
    .language-flags .flag {
        width: 35px;
        height: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
}

/* About Page Header with Dark Blue Stripe */
.about-header {
    background: var(--accent-gradient);
    border-bottom: 5px solid #1b4f72;
    box-shadow: var(--shadow-primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

button, .gallery-button, .modal .close-button {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover, .gallery-button:hover {
    transform: scale(1.1);
    background-color: #d46a6a;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 87, 34, 0.8);
    }
}

/* Enhanced Gallery Button - Optimized */
.gallery-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1em;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    border: none;
    border-radius: 15px;
    padding: 18px 25px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Modern Programs Masonry Layout - Optimized for balanced height */
.programs-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.programs-masonry li {
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.12) 0%, rgba(52, 152, 219, 0.08) 50%, rgba(133, 193, 233, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.25);
    border-radius: 18px;
    overflow: visible; /* allow text to expand fully */
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.15);
    cursor: pointer;
    position: relative;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Clean Hover Effects - Updated to match event date/countdown style */
.programs-masonry li:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--secondary-gradient);
    border-color: rgba(52, 152, 219, 0.4);
}

/* Wrapper to force every program image into the same aspect ratio (prevents layout jump / misalignment) */
.programs-masonry .program-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* Consistent ratio for all cards */
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #e6f2f8; /* subtle placeholder background while image loads */
}

.programs-masonry li img,
.programs-masonry .program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    margin: 0;
    border: none;
    display: block;
    transition: transform 0.3s ease;
}

.programs-masonry li:hover img,
.programs-masonry li:hover .program-image {
    transform: scale(1.02);
}

.programs-masonry .program-content {
    padding: 18px 20px;
    background: transparent;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 100px; /* allow a bit of flexibility if text wraps */
}

.programs-masonry li:hover .program-content {
    background: rgba(52, 152, 219, 0.08);
}

.programs-masonry li p {
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    gap: 4px;
}

.programs-masonry li:hover p {
    color: #1b4f72;
    transform: translateY(-1px);
}

.programs-masonry .emoji {
    font-size: 1.3em;
    display: block;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}
.programs-masonry .program-title {
    display: block;
    max-width: 100%;
    line-height: 1.25;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    padding: 0 4px;
    word-wrap: break-word;
    white-space: normal;
}
.programs-masonry .program-content {
    min-height: auto; /* dynamic height */
    padding-top: 10px;
    padding-bottom: 14px;
    padding-left: 8px;
    padding-right: 8px;
}
.programs-masonry .program-title.long { font-size: 0.85rem; }
.programs-masonry li:hover .program-title { color: #1b4f72; }

.programs-masonry li:hover .emoji {
    transform: scale(1.05) rotate(3deg);
}

/* Event Info Card - Optimized */
.event-info-card {
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.2) 0%, rgba(52, 152, 219, 0.15) 50%, rgba(133, 193, 233, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.25);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

/* Two-column layout for main page */
.two-column-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
    justify-content: space-between;
    max-width: 1200px; /* módosítva: kisebb max-width */
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;   /* padding hozzáadva, hogy ne lógjon ki */
    box-sizing: border-box;
}

.left-column,
.right-column {
    flex: 1;
    min-width: 280px; /* módosítva: kisebb min-width */
    width: 100%;
    box-sizing: border-box;
}

.right-column-content {
    margin-top: 120px; /* Lejjebb helyezi a galéria/rólunk gombokat */
}

@media (max-width: 1200px) {
    .two-column-layout {
        max-width: 100vw;
        padding: 0 10px;
        gap: 20px;
    }
    .left-column,
    .right-column {
        min-width: 220px;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .two-column-layout {
        flex-direction: column;
        gap: 15px;
        max-width: 100vw;
        padding: 0 6px;
    }
    .left-column,
    .right-column {
        min-width: 0;
        width: 100%;
    }
    .right-column-content {
        margin-top: 30px; /* Kisebb margin mobil nézeten */
    }
}

@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
        gap: 10px;
        max-width: 100vw;
        padding: 0 4px;
    }
    .left-column,
    .right-column {
        min-width: 0;
        width: 100%;
        padding: 0;
    }
    .left-column-content,
    .right-column-content {
        padding: 12px 4px;
    }
    .right-column-content {
        margin-top: 20px; /* Még kisebb margin kisebb képernyőkön */
    }
}

@media (max-width: 480px) {
    .two-column-layout {
        padding: 0 2px;
    }
    .left-column-content,
    .right-column-content {
        padding: 8px 2px;
    }
    .right-column-content {
        margin-top: 15px; /* Minimális margin nagyon kis képernyőkön */
    }
}

/* Program note kiemelése */
.program-note {
    display: block;
    background: var(--accent-gradient);
    color: white;
    font-size: 1.15em;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 18px;
    margin: 18px auto 22px auto;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.18);
    text-align: center;
    max-width: 480px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 1px solid var(--glass-border);
}

/* Mobilon is jól látszódjon */
@media (max-width: 768px) {
    .program-note {
        font-size: 1em;
        padding: 12px 10px;
        max-width: 98vw;
        margin: 12px auto 16px auto;
    }
}