/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0a0a0a;
    --primary-green: #19A68E;
    --accent-coral: #FF7F5C;
    --light-coral: #FFB39E;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --font-merriweather: 'Merriweather', serif;
    --font-source: 'Source Sans Pro', sans-serif;
}

body {
    font-family: var(--font-source);
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-merriweather);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header and Navigation */
.header {
    background-color: var(--primary-black);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-family: var(--font-merriweather);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--primary-green);
    color: var(--primary-black);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--light-coral);
}

.wave-divider-top, .wave-divider-bottom {
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-green),
        var(--primary-green) 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 2rem 0;
    position: relative;
}

.wave-divider-top::after, .wave-divider-bottom::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0 10 Q 25 0, 50 10 T 100 10" stroke="%2319A68E" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat-x;
    background-size: 100px 20px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial {
    background: rgba(25, 166, 142, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--primary-green);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial cite {
    color: var(--light-coral);
    font-style: normal;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-coral);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--accent-coral);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.thin-line-accent {
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 0 auto 3rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Instructors */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.instructor-card {
    background: var(--gray-light);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 0 0 2rem;
    transition: transform 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
}

.instructor-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.instructor-card h3 {
    margin: 1.5rem 0 0.5rem;
}

.qualification {
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Programs */
.programs {
    background-color: var(--gray-light);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-card h3, .program-card p {
    padding: 0 1.5rem;
}

.program-card h3 {
    margin: 1.5rem 0 1rem;
}

.program-card p {
    margin-bottom: 1.5rem;
}

/* Schedule */
.schedule-table {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.schedule-day {
    flex: 1;
    background: var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-medium);
    align-items: center;
}

.schedule-item:last-child {
    border-bottom: none;
}

.time {
    font-weight: 600;
    color: var(--primary-green);
}

.level {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Benefits */
.infographic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-card svg {
    margin-bottom: 1.5rem;
}

/* Home Exercises */
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.exercise-card {
    background: var(--gray-light);
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 1.5rem;
}

.exercise-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.exercise-card h3 {
    margin: 1.5rem 1.5rem 1rem;
}

.exercise-card p {
    padding: 0 1.5rem;
}

/* Community */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.quote-banner {
    background: var(--primary-green);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-family: var(--font-merriweather);
    font-size: 1.5rem;
    font-style: italic;
}

/* Contact Section */
.contact {
    background: var(--gray-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--accent-coral);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 166, 142, 0.3);
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col-1 {
    grid-row: 1;
}

.footer-col-2 {
    grid-row: 2;
    grid-column: 2;
}

.footer-col-3 {
    grid-row: 1;
    grid-column: 3;
}

.footer-col-4 {
    grid-row: 2;
    grid-column: 4;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light-coral);
}

.footer p {
    margin-bottom: 0.5rem;
}

.events-list,
.footer-nav,
.legal-links {
    list-style: none;
}

.events-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.events-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent-coral);
    border-radius: 50%;
}

.footer-nav a,
.legal-links a {
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.legal-links a:hover {
    color: var(--light-coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content,
    .instructor-grid,
    .programs-grid,
    .infographic,
    .exercises-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-table {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-col-1 { grid-row: 1; grid-column: 1; }
    .footer-col-2 { grid-row: 2; grid-column: 1; }
    .footer-col-3 { grid-row: 1; grid-column: 2; }
    .footer-col-4 { grid-row: 2; grid-column: 2; }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .about-content,
    .instructor-grid,
    .programs-grid,
    .infographic,
    .exercises-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col-1,
    .footer-col-2,
    .footer-col-3,
    .footer-col-4 {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .schedule-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .level {
        margin-top: 0.5rem;
    }
}

@media (max-width: 375px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Pulse Animation for Buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 166, 142, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 166, 142, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 166, 142, 0);
    }
}

.cta-button:hover,
.submit-button:hover {
    animation: pulse 1.5s infinite;
}

/* Policy Pages Styles */
.policy-page {
    background: var(--gray-light);
    min-height: 100vh;
}

.policy-header {
    background: var(--primary-black);
    color: var(--white);
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.policy-header h1 {
    text-align: center;
    margin-bottom: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--light-coral);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--white);
}

.policy-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: left;
}

.policy-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

.policy-update {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-medium);
}

/* Cookies Page Specific */
.cookie-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 15px;
}

.cookie-intro svg {
    margin-bottom: 1rem;
}

.cookie-types {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
}

.cookie-type {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-medium);
}

.cookie-type:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-type h3 {
    color: var(--accent-coral);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Terms Page Specific */
.terms-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.terms-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.terms-card:hover {
    transform: translateY(-5px);
}

.terms-icon {
    margin-bottom: 1rem;
}

.terms-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.terms-contact {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

/* Thank You Page */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-green) 100%);
}

.thank-you-content {
    text-align: center;
    background: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 2rem;
}

.thank-you-content svg {
    margin-bottom: 2rem;
}

.thank-you-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.thank-you-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.thank-you-content .cta-button {
    margin-top: 2rem;
}

/* Responsive Styles for Policy Pages */
@media (max-width: 1024px) {
    .terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .policy-content {
        padding: 2rem;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .thank-you-content {
        padding: 2rem;
    }
    
    .thank-you-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .policy-content {
        padding: 1.5rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .terms-card {
        padding: 1.5rem;
    }
    
    .thank-you-content {
        padding: 1.5rem;
    }
}