/* Banner Section */
.banner-section {
    margin-top: 120px;
    position: relative;
}

.carousel-item {
    max-height: 70vh;
    background-size: cover;
    background-position: center;
}

/* Banner carousel images only */
#bannerCarousel .carousel-item img {
    width: 100%;
    object-fit: cover;
}

.carousel-item.clickable {
    cursor: pointer;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(203, 153, 126, 0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Types Section */
.types-section {
    background-color: white;
    position: relative;
    z-index: 1;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    transition: transform 0.3s ease;
    background: transparent; /* Eltüntetjük a kártya hátterét */
    border: none;
    box-shadow: none; /* Alapértelmezetten nincs árnyék a kereten */
    margin-bottom: 2rem;
}

/* A képkeret, ami egységesíti a különböző méretű PNG-ket */
.type-card-img-wrapper {
    width: 100%;
    height: 200px; /* Itt állítsd be a kívánt fix magasságot */
    display: flex;
    align-items: flex-end; /* Ez tolja az összes képet az aljára */
    justify-content: center;
    overflow: visible;
}

.type-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Megtartja az arányokat és nem vágja le a PNG-t */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1)); /* PNG-hez illő árnyék */
}

/* Hover effekt: a kép kicsit megemelkedik és megnő */
.type-card:hover img {
    transform: translateY(-15px) scale(1.05);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
}

/* Az overlay-t átalakítjuk sima szövegdobozzá */
.type-card-overlay {
    position: static; /* Kikerül a kép fölül */
    background: none !important;
    padding: 0;
    text-align: center;
    width: 100%;
}

.type-card-content {
    transform: none;
}

.type-card h3 {
    color: var(--primary-color); /* Primary szín használata */
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: none; /* Eltüntetjük a fekete árnyékot */
    transition: color 0.3s ease;
}

.type-card:hover h3 {
    opacity: 0.8; /* Egy kis visszajelzés hoverre */
}

/* Ha van leírás (p tag), az is kapjon színt */
.type-card p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    text-shadow: none;
}

/* Animáció a belépéshez (JS-hez) */
.type-card.animate {
    opacity: 1;
    transform: translateY(0);
}
/* Schedule Section */

#stundenplan {
    background-color: var(--alt-bg);
}

/* Schedule Layout */
.schedule-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
}

.schedule-wrapper::-webkit-scrollbar { display: none; }

.schedule-day {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    padding: 20px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

/* Kiúszás balra (Next gomb) */
@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-100px); }
}

/* Kiúszás jobbra (Prev gomb) */
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* Beúszások (maradnak a korábbiak) */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Osztályok alkalmazása */
.exit-left { animation: slideOutLeft 0.3s ease-in forwards !important; }
.exit-right { animation: slideOutRight 0.3s ease-in forwards !important; }
.enter-right { animation: slideInRight 0.4s ease-out forwards; }
.enter-left { animation: slideInLeft 0.4s ease-out forwards; }

.schedule-day {
    opacity: 0; /* Alapállapot, az enter hozza be */
    transition: opacity 0.2s ease;
}

/* Tablet & Desktop Layout */
@media (min-width: 992px) {
    .schedule-wrapper {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 12px;
        overflow: visible;
        scroll-snap-type: none;
    }
    .schedule-day {
        flex: none;
        height: 100%; /* Equal height for all columns */
        width: 100%;
    }
}

.schedule-day.today {
    border: 2px solid #0d6efd;
    background-color: #f8fbff;
}

.schedule-day-header {
    text-align: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.schedule-day-name { font-weight: 800; color: #333; }
.schedule-day-date { font-size: 0.85rem; color: #888; }

.classes-container { flex-grow: 1; }

.schedule-class {
    display: block;
    text-decoration: none !important;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.schedule-class:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.schedule-class-type { font-weight: bold; font-size: 0.9rem; }
.schedule-class-time { font-size: 0.8rem; margin: 4px 0; }
.schedule-class-location { font-size: 0.75rem; opacity: 0.8; }
.schedule-class-badges {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.schedule-class-badges .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.schedule-empty {
    color: #bbb;
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s, color 0.3s;
    padding: 1rem;
}

.contact-item:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contact-item span {
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--alt-bg);
    min-height: 400px;
}

#testimonialsCarousel {
    min-height: 350px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#testimonialsCarousel .carousel-inner {
    min-height: 350px;
    width: 100%;
    height: 350px;
}

/* Testimonial carousel items - reset banner styles */
#testimonialsCarousel .testimonial-carousel-item {
    height: auto;
    min-height: 350px;
    background-size: initial;
    background-position: initial;
}

.testimonial-item {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-name {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-stars {
    color: #FFC107;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 50px;
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
    filter: invert(50%);
    width: 30px;
    height: 30px;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--secondary-color);
    color: white;
}

.newsletter-section .section-title {
    color: white;
}

.newsletter-section .section-title::after {
    background-color: white;
}

.newsletter-section p {
    color: white;
}

#newsletterMessage {
    text-align: center;
    font-weight: bold;
}

#newsletterMessage.success {
    color: #28a745;
}

#newsletterMessage.error {
    color: #dc3545;
}


/* Video Gallery Section */
.video-gallery-section {
    background-color: var(--alt-bg);
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #000;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-card video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 1.5rem;
    color: white;
}

.video-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    color: white;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(203, 153, 126, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.3s;
}

.video-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-color);
}

/* Pricing Section */
.pricing-section {
    background-color: var(--light-bg);
}

/* Custom 5-column layout for pricing */
.col-lg-15 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 991px) {
    .col-lg-15 {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .col-lg-15 {
        width: 100%;
    }
}

.pricing-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.pricing-card-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-card-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pricing-card-currency {
    font-size: 1.2rem;
    color: #666;
}

.pricing-card-description {
    font-size: 1rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Popup Modal */
#promoPopup .modal-dialog {
    /* Eltávolítjuk a fix 90vw-t, és hagyjuk, hogy a tartalom méretezze */
    width: fit-content; 
    max-width: 90vw;
    margin: 5vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#promoPopup .modal-content {
    background-color: transparent;
    border: none;
    /* Kivesszük a fix magasságot, hogy ne nyújtsa meg a keretet feleslegesen */
    height: auto; 
    width: fit-content;
    position: relative; /* Biztosítjuk a gomb pozicionálását */
}

#promoPopup .modal-body {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#promoPopup .btn-close {
    position: absolute;
    /* Maradhat a negatív érték, így pont a kép sarkán fog "ülni" */
    top: -15px;
    right: -15px;
    z-index: 1060;
    background-color: white;
    border-radius: 50%;
    opacity: 1;
    width: 2.5em;
    height: 2.5em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#promoPopup img {
    display: block; /* Megszünteti az inline elemek alatti üres sávot */
    max-width: 90vw;
    max-height: 80vh; /* Kicsit vegyük lejjebb, hogy maradjon hely a gombnak felül */
    width: auto;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}

#promoPopup img.not-clickable {
    cursor: default;
}

/* Responsive */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .contact-info {
        flex-direction: column;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.input-group {
    gap: 3px;
}
