:root {
    --primary-color: #007559;
    --bg-light: #fafafa;
    --text-dark: #131415;
    --text-light: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
    --border-radius: 20px;
    --card-shadow: rgba(92, 92, 92, 0.3) 0px 0px 3px 3px;
    --btn-shadow: rgba(0, 0, 0, 0.2) 0px 4px 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-playfair {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.dark-text {
    color: var(--text-dark);
}

.white-text {
    color: var(--text-light);
}

.green-text {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography specifics */
.hero-headline {
    font-size: 50px;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero-subheadline {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto 30px;
}

.section-headline {
    font-size: 56px;
    margin-bottom: 30px;
}

.section-subheadline {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-subtext-small {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-dark:hover {
    box-shadow: 0 10px 30px rgba(0, 117, 89, 0.4);
}

/* Section Spacing & Headlines */
.timetable-section,
.classes-overview-section,
.specialist-overview-section,
.results-grid-section,
.pricing-section,
.testimonials-section {
    padding: 60px 0;
}

.classes-overview-section {
    background: #fafafa;
}

.results-grid-section {
    background: #fff;
}

.section-headline {
    font-size: 56px;
    margin-bottom: 24px;
}

.specialist-overview-section {
    padding-top: 0;
    /* Tighten gap between Core and Specialist */
}

.results-grid-section,
.pricing-section,
.footer-section {
    padding-top: 20px;
    /* Reduction for Results, Pricing and Footer gaps */
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    background-image: url('/images/classes/QJjc2XOh1nfqYUe0CoQcRIzPH2c.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Slightly adjusted to center form more naturally */
    gap: 60px;
    align-items: center;
}

.hero-headline {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

.underline-highlight {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 4px;
    text-decoration-color: var(--primary-color);
}

.hero-subheadline {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ffffff;
}

.hero-trust-elements {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #ffffff;
    /* White text for contrast */
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars {
    color: #FACC15;
    font-size: 20px;
}

.location-copy {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.micro-copy-premium {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

/* Centering the form card */
.hero-form-container {
    display: flex;
    justify-content: center;
}

/* Glass Form Card */
.glass-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 117, 89, 0.2);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.form-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 35px;
    text-align: center;
}

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

.premium-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    font-family: var(--font-body);
}

.btn-premium-submit {
    width: 100%;
    padding: 22px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-heading);
    margin-top: 25px;
}

/* Timetable Section */
.timetable-section {
    background: #fff;
}

.timetable-container {
    max-width: 1100px;
    margin: 0 auto;
}

.timetable-wrapper {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.timetable-disclaimer {
    background: #fff9c4;
    padding: 20px 30px;
    border-left: 5px solid #fbc02d;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 12px;
    font-size: 17px;
}

/* Class Grids */
.class-grid {
    display: grid;
    gap: 40px;
    margin-top: 60px;
}

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

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
    height: 280px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.card-content {
    padding: 40px;
    /* More spacing inside cards */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-duration {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.card-text {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-card {
    margin-top: auto;
    width: 100%;
}

/* Pricing Section - Ported from PT */
.pricing-section {
    background-color: #fafafa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card .card-image-wrapper {
    height: 220px;
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 52px;
    color: #111;
    font-weight: 900;
    margin: 15px 0;
}

/* Marquee Carousel */
.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 60px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-row {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    gap: 25px;
    padding-right: 25px;
}

.marquee-content img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.marquee-left-right {
    animation: scroll-left-right 75s linear infinite;
}

.marquee-right-left {
    animation: scroll-right-left 75s linear infinite;
}

@keyframes scroll-left-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right-left {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Testimonials Wrapper */
.testimonial-wrapper {
    position: relative;
    background-image: url('/images/IMG_9255.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    overflow: hidden;
    padding: 100px 80px;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 95%;
    margin: 60px auto;
}

.testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    /* Darker for better contrast */
}

.testimonial-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 60px;
}

.video-carousel-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: center;
}

.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Nav */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Footer Section */
.footer-section {
    background: #ffffff;
    color: #131415;
    padding: 60px 0 60px;
    border-top: 1px solid #eee;
}

.footer-headline {
    color: #131415 !important;
    font-size: 56px !important;
    margin-bottom: 20px;
}

.footer-subtext {
    color: #555;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.legal-text {
    margin-top: 60px;
    color: #999;
    font-size: 13px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.survey-card {
    background: #fff;
    width: 95%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
}

.survey-step {
    display: none;
}

.survey-step.active {
    display: block;
}

.option-btn {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
}

.option-btn:hover {
    background: #f9f9f9;
    border-color: var(--primary-color);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text-content {
        text-align: center;
    }

    .hero-subheadline {
        margin: 0 auto 30px;
    }

    .hero-form-container {
        justify-content: center;
    }

    .grid-3,
    .grid-2,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-headline {
        font-size: 36px;
    }

    .section-headline {
        font-size: 32px !important;
    }

    .footer-headline {
        font-size: 32px !important;
    }

    /* Center stars under text in hero on mobile */
    .hero-trust-elements {
        align-items: center !important;
        text-align: center;
    }

    .rating-box {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .testimonial-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .testimonial-wrapper {
        padding: 60px 20px;
        width: 100%;
        margin: 40px 0;
        border-radius: 0;
    }

    .video-carousel-placeholder {
        max-width: 100%;
    }
}