/* Általános stílusok */
body {
    margin: 0;
    line-height: 1.6;
    background-image: url('kepek/hatter2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    /* ÚJ: Megakadályozza az oldalsó csúszkálást (Horizontal Scroll) mobil nézetben */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

p {
    color: #FFD700;
    font-family: 'Open Sans', sans-serif;
}

a {
    color: #FFD700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Színek definiálása */
:root {
    --blue: #007bff;
    --yellow: #FFD700;
    --red: #dc3545;
}

/* Box stílusok */
.text-box {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blue-background {
    background-color: var(--blue);
}
.blue-background p {
    color: var(--yellow);
}

.yellow-background {
    background-color: var(--yellow);
}
.yellow-background h3,
.yellow-background p,
.yellow-background a {
    color: var(--blue) !important;
}

.red-background {
    background-color: var(--red);
}
.red-background p {
    color: var(--yellow);
}


/* Fejléc és navigáció */
.navigation {
    background-color: var(--blue);
    padding: 15px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation .nav-links {
    margin-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation .nav-links a {
    color: var(--yellow);
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
}

.navigation .nav-links a:hover {
    color: white;
    text-decoration: none;
}

/* Hamburger menü (mobilra) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--yellow);
    margin: 5px 0;
    transition: 0.4s;
}

/* Reszponzív navigáció */
@media (max-width: 768px) {
    .navigation {
        justify-content: space-between;
    }
    .navigation .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--blue);
        position: absolute;
        top: 60px;
        left: 0;
        padding-bottom: 10px;
        margin: 0;
    }
    .hamburger-menu {
        display: block;
    }
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
}


/* Hero szekció */
.hero-section {
    position: relative;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    padding: 20px;
}

.hero-text .main-heading {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text .sub-heading {
    font-size: 1.5em;
    color: var(--yellow);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.scroll-down-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
}

.scroll-down-arrow a {
    color: var(--yellow);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Általános szekció stílusok */
.section {
    padding: 60px 0;
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--yellow);
}

/* Rólunk szekció */
.about-us {
    background-color: var(--blue);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    text-align: left;
    color: var(--yellow);
}

.about-text p {
    font-size: 1.1em;
    color: var(--yellow);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.info-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(33% - 40px);
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.info-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 1em;
}

/* Kártya színek */
.info-card:nth-child(3n+1) {
    background-color: var(--blue);
}
.info-card:nth-child(3n+1) .icon,
.info-card:nth-child(3n+1) h3,
.info-card:nth-child(3n+1) p {
    color: var(--yellow);
}

.info-card:nth-child(3n+2) {
    background-color: var(--yellow);
}
.info-card:nth-child(3n+2) .icon,
.info-card:nth-child(3n+2) h3 {
    color: var(--blue);
}
.info-card:nth-child(3n+2) p {
    color: var(--blue);
}

.info-card:nth-child(3n+3) {
    background-color: var(--red);
}
.info-card:nth-child(3n+3) .icon,
.info-card:nth-child(3n+3) h3,
.info-card:nth-child(3n+3) p {
    color: var(--yellow);
}


/* Mit kínálunk? szekció */
#offers {
    background-color: var(--red);
}

#offers h2 {
    color: var(--yellow);
}

#offers p {
    color: var(--yellow);
}


.offer-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.offer-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(25% - 40px);
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.offer-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.offer-card p {
    color: var(--yellow);
}

/* Offer kártya színek */
.offer-card:nth-child(4n+1) {
    background-color: var(--blue);
}
.offer-card:nth-child(4n+1) h3,
.offer-card:nth-child(4n+1) p {
    color: var(--yellow);
}

.offer-card:nth-child(4n+2) {
    background-color: var(--yellow);
}
.offer-card:nth-child(4n+2) h3,
.offer-card:nth-child(4n+2) p {
    color: var(--blue) !important;
}

.offer-card:nth-child(4n+3) {
    background-color: var(--red);
}
.offer-card:nth-child(4n+3) h3,
.offer-card:nth-child(4n+3) p {
    color: var(--yellow);
}

.offer-card:nth-child(4n+4) {
    background-color: var(--blue);
}
.offer-card:nth-child(4n+4) h3,
.offer-card:nth-child(4n+4) p {
    color: var(--yellow);
}


/* Programok szekció */
#programs {
    background-color: var(--blue);
}

#programs h2 {
    color: var(--yellow);
}

#programs p {
    color: var(--yellow);
}

.program-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.program-card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(33% - 40px);
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.program-card img {
    max-width: 100%;
    border-radius: 8px;
    margin: 0 auto 15px;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.program-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.program-card p {
    font-size: 0.95em;
}

/* Program kártya színek */
.program-card:nth-child(3n+1) {
    background-color: var(--blue);
}
.program-card:nth-child(3n+1) h3,
.program-card:nth-child(3n+1) p {
    color: var(--yellow);
}

.program-card:nth-child(3n+2) {
    background-color: var(--yellow);
}
.program-card:nth-child(3n+2) h3,
.program-card:nth-child(3n+2) p {
    color: var(--blue) !important;
}

.program-card:nth-child(3n+3) {
    background-color: var(--red);
}
.program-card:nth-child(3n+3) h3,
.program-card:nth-child(3n+3) p {
    color: var(--yellow);
}


/* Galéria szekció */
.gallery-section {
    background-color: var(--red);
}

.gallery-section h2 {
    color: var(--yellow);
}

.gallery-section p {
    color: var(--yellow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-link:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-link:hover img {
    transform: scale(1.05);
}

/* Kapcsolat szekció */
.contact-section {
    background-color: var(--blue);
    padding-bottom: 100px;
}

.contact-section h2 {
    color: var(--yellow);
}

.contact-intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--yellow);
}

.contact-card-and-form-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-box {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(50% - 60px);
    box-sizing: border-box;
    text-align: center;
}

/* Kapcsolattartó kártya kék háttérrel */
.contact-card-box {
    background-color: var(--blue);
}
.contact-card-box h3,
.contact-card-box p,
.contact-card-box a {
    color: var(--yellow);
}

/* A kapcsolattartó kártya adatainak nagyobb betűmérete */
.contact-card-box p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.contact-card-box a {
    font-size: 1.1em;
}

.contact-profile-pic-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    /* MÓDOSÍTOTT: Lekerekített sarkú négyzet */
    border-radius: 15px; 
    overflow: hidden;
    /* ÚJ: Középre igazítja a képet, ha kisebb a konténernél */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-profile-pic {
    width: 100%;
    height: 100%;
    /* MÓDOSÍTOTT: A kép kitölti a konténert (cover) és középen marad */
    object-fit: cover; 
    /* MÓDOSÍTOTT: Lekerekített sarkú négyzet */
    border-radius: 15px; 
    background-color: white;
}

.neon-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* MÓDOSÍTOTT: Lekerekített sarkú négyzet */
    border-radius: 15px; 
    border: 4px solid var(--yellow);
    box-shadow: 0 0 10px var(--yellow), 0 0 20px var(--yellow), 0 0 30px var(--yellow);
    animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
    from {
        box-shadow: 0 0 5px var(--yellow), 0 0 10px var(--yellow), 0 0 15px var(--yellow);
    }
    to {
        box-shadow: 0 0 10px var(--yellow), 0 0 20px var(--yellow), 0 0 30px var(--yellow);
    }
}

.contact-box h3 {
    margin-bottom: 15px;
    color: var(--yellow);
}

.contact-box p {
    margin-bottom: 10px;
    color: var(--yellow);
}

.contact-box a {
    color: var(--yellow);
    font-weight: bold;
    /* ÚJ: Megakadályozza a hosszú szöveg túlcsordulását */
    word-wrap: break-word;
}

.contact-box .facebook-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3b5998;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-box .facebook-link:hover {
    background-color: #2d4373;
}

/* Kapcsolati űrlap KÜLSŐ BOX STÍLUSA */
.contact-form-box {
    background-color: var(--blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-form-box h3,
.contact-form-box label {
    color: var(--yellow);
}

.contact-form-box h3 {
    text-align: center;
}

/* Űrlap elemek stílusa */
.contact-form-box form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.contact-form label {
    text-align: left;
    width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    /* EREDETI MARGÓ EZ VOLT: margin-bottom: 20px; */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
}

.contact-form textarea {
    resize: vertical;
    /* EZ A FRISSÍTÉS! Növelt alsó margó, hogy a gomb lejjebb kerüljön. */
    margin-bottom: 30px; 
}

/* Küldés gomb stílusa - FIXÁLVA, ID-VEL MEGERŐSÍTVE */
#contact-form button {
    /* Alapállapot: Sárga háttér, Kék szöveg */
    background-color: var(--yellow) !important;
    color: var(--blue) !important;
    padding: 12px 25px;
    border: 2px solid var(--yellow);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: auto;
    max-width: 200px;
    margin: 0 auto; /* Középen tartja a gombot */
    display: block;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#contact-form button:hover {
    /* Hover állapot: Kék háttér, Sárga szöveg */
    background-color: var(--blue) !important;
    color: var(--yellow) !important;
    border-color: var(--yellow);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--blue);
    color: var(--yellow);
    padding: 20px 0;
    text-align: center;
    position: relative;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.footer p {
    margin: 5px 0;
    color: var(--yellow);
}

.footer a {
    color: var(--yellow);
    font-weight: bold;
}

.footer a:hover {
    color: white;
}

.ai-credit {
    font-size: 0.9em;
    margin-top: 10px;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--blue);
    color: var(--yellow);
    padding: 15px 20px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 3px solid var(--yellow);
}

.cookie-text a {
    color: var(--yellow);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cookie-buttons button {
    background-color: var(--yellow);
    color: var(--blue);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-buttons button:hover {
    background-color: var(--red);
    color: var(--yellow);
}

#reject-cookies {
    background-color: var(--red);
    color: var(--yellow);
}

#reject-cookies:hover {
    background-color: #a00;
}

/* Lebegő süti ikon */
.cookie-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--yellow);
    color: var(--blue);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cookie-toggle-button:hover {
    transform: scale(1.1);
    background-color: white;
}

/* Lightbox galéria és popup stílusok */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #f1f1f1;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: 0.3s;
}

.lightbox-nav:hover {
    color: #bbb;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}


/* Reszponzív design */
@media (max-width: 992px) {
    .hero-text .main-heading {
        font-size: 2.8em;
    }

    .hero-text .sub-heading {
        font-size: 1.2em;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text, .about-image {
        flex: none;
        width: 100%;
    }

    .info-card, .offer-card, .program-card {
        width: 100%;
    }

    .contact-card-and-form-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-box {
        width: 90%;
    }

    .contact-form label {
        text-align: center;
    }
    
    .cookie-toggle-button {
        bottom: 75px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .navigation {
        padding: 10px 20px;
    }
    .navigation .nav-links a {
        margin: 0 10px;
        font-size: 1em;
    }

    .hero-text .main-heading {
        font-size: 2em;
    }

    .hero-text .sub-heading {
        font-size: 1em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
        box-sizing: border-box;
    }

    .cookie-buttons {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }
    .cookie-buttons button {
        margin: 5px;
        width: auto;
    }

    .contact-card-box p,
    .contact-card-box a {
        display: block;
        text-align: center;
        margin: 5px 0;
        /* ÚJ: Fixen kisebb betűméret e-mail címre és telefonszámra a mobilkártyán */
        font-size: 0.85em; 
        /* ÚJ: Biztosítja, hogy az e-mail cím ne lógjon ki */
        overflow-wrap: break-word; 
    }
}

/* Felugró ablak (popup) stílusa */
.popup {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: var(--blue);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 2px solid var(--yellow);
}

.popup-content h3 {
    color: var(--yellow);
    margin: 0 0 10px;
}

.popup-content p {
    color: var(--yellow);
    margin: 0;
    font-size: 1.1em;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--yellow);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: white;
}

/* Intersection Observer alap stílusok a beúszó animációhoz */
.offer-card, .info-card, .program-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease-out;
}

.offer-card.visible, .info-card.visible, .program-card.visible {
    opacity: 1;
    transform: translateY(0);
}