/* Global Styles */
:root {
    --primary-color: #e85a19; /* Orange from logo */
    --secondary-color: #333333; /* Dark gray */
    --accent-color: #f8b62d; /* Yellow/gold from logo */
    --text-color: #333;
    --light-text: #fff;
    --background-light: #f5f5f5;
    --background-dark: #333333;
    --border-radius: 30px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

html {
    font-size: 16px; /* Base font size for rem units */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1221px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    background-color: #f8b62d; /* Yellow/gold accent color */
    padding: 5px 0;
    text-align: right;
}

.login-link a {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: bold;
}

/* Header */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--light-text);
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: -5px;
}

.logo-text p {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    margin-left: 20px;
    z-index: 1001;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
}

nav ul {
    display: flex;
}

nav ul li {
    position: relative;
    margin-right: 20px;
}

nav ul li a {
    color: var(--light-text);
    padding: 10px 0;
    display: block;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
}

.dropdown-content a {
    padding: 10px 15px;
    display: block;
    font-size: 0.9rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Nested Dropdown Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
}

/* Only show submenu when hovering over the link, not the entire dropdown-submenu */
.dropdown-submenu > a:hover + .submenu,
.dropdown-submenu .submenu:hover {
    display: block;
}

.dropdown-submenu a i {
    float: right;
    margin-top: 3px;
}

.header-buttons {
    display: flex;
    align-items: center;
}

.shop-link {
    color: var(--light-text);
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.shop-link i {
    margin-left: 5px;
}

.book-lesson-btn {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s;
}

.book-lesson-btn:hover {
    background-color: #e09a1e; /* Darker yellow */
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 80px 0 0;
    position: relative;
    margin-bottom: 50px; /* Added margin to create space for the wave */
}

.hero-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Classes page specific hero styles */
.classes-page .hero {
    padding: 40px 0 0; /* Reduced padding for classes page */
}

.classes-page .hero-content,
.classes-page .hero-image {
    padding-bottom: 100px; /* Reduced padding for classes page */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    padding-bottom: 150px; /* Increased padding to make room for the larger wave */
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 150px; /* Increased padding to make room for the larger wave */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-style: italic;
    margin-bottom: 20px;
}

.description {
    margin-bottom: 30px;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-btn {
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.cta-btn.primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 165px;
}

.cta-btn.primary:hover {
    background-color: #c44b14; /* Darker orange */
}

.cta-btn.secondary {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.cta-btn.secondary:hover {
    background-color: #e09a1e; /* Darker yellow */
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 14em; /* Increased height for better visibility */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,96L80,106.7C160,117,320,139,480,138.7C640,139,800,117,960,117.3C1120,117,1280,139,1360,149.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 10; /* Added z-index to ensure it appears above other elements */
}

.custom-shape-divider-bottom-1747277618 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1747277618 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.custom-shape-divider-bottom-1747277618 .shape-fill {
    fill: #FFFFFF;
}

/* Welcome Section */

.welcome .container {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.welcome-text {
    flex: 1;
    min-width: 300px;
}

.welcome-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Mission Statement with music note underline */
#mission-statement {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

#mission-statement::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color) 90%, transparent 90%);
}

#mission-statement::before {
    content: "\f001"; /* Music note icon from Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: -10px;
    right: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    transform: rotate(15deg);
    animation: gentle-bounce 2s infinite ease-in-out;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0) rotate(15deg);
    }
    50% {
        transform: translateY(-5px) rotate(15deg);
    }
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-video {
    flex: 1;
    min-width: 300px;
}

.video-container {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-container h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.play-button {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.play-button i {
    font-size: 1.8rem;
}

/* Promotional Section */
.promo {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
    background-image: linear-gradient(to right, var(--primary-color), #d14b12);
}

.promo h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.promo p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
}

/* Lessons Section */
.lessons {
    padding: 80px 0;
    background-color: var(--background-light);
}

.lessons h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 50px;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.lesson-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.lesson-card:hover {
    transform: translateY(-10px);
}

.lesson-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lesson-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.lesson-card p {
    padding: 0 20px 20px;
}

.learn-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.testimonials h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 50px;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: 20px;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 30px;
}

.quote::before, .quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.quote::before {
    left: 0;
    top: -10px;
}

.quote::after {
    right: 0;
    bottom: -10px;
}

.author {
    font-weight: bold;
    color: var(--primary-color);
    font-style: italic;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
    background-image: linear-gradient(to right, var(--accent-color), #e09a1e);
}

/* Content Section Styles for Classes and Testimonials Pages */
.content-section {
    padding-bottom: 80px;
    background-color: #ffffff;
}

/* Testimonials Page Styles */
.testimonials-page .hero {
    padding: 40px 0 0; /* Reduced padding for testimonials page */
}

.testimonials-page .hero-content,
.testimonials-page .hero-image {
    padding-bottom: 100px; /* Reduced padding for testimonials page */
}

.content-block {
    margin-bottom: 50px;
}

.content-block h2 {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
}

/* Testimonials Grid Styles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    padding: 25px;
    flex-grow: 1;
    border-left: 4px solid var(--primary-color);
}

.testimonial-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-style: italic;
    color: #444;
}

.testimonial-content p:last-child {
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background-color: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.author-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.author-info h4 {
    margin: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.content-block p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.centered-buttons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

/* Active link in navigation */
nav ul li a.active {
    color: var(--accent-color);
    font-weight: bold;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 95%;
    position: relative;
    text-align: center;
    margin: 0 10px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content img {
    max-width: 100%;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 992px) {
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        z-index: 1000;
    }
    
    nav.active {
        max-height: 500px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        overflow: visible;
        display: block;
        padding: 10px 0;
    }
    
    nav ul {
        display: none;
        padding: 20px;
        margin: 0;
    }
    
    nav.active ul {
        display: block !important;
    }
    
    /* Ensure mobile menu is visible on top of other content */
    header {
        position: relative;
        z-index: 1000;
    }
    
    nav ul li {
        margin: 0 0 15px 0;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        width: 100%;
    }
    
    .dropdown-submenu .submenu {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        padding-left: 20px;
    }
    
    .header-buttons {
        margin-left: auto;
    }
    
    .hero-split {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        padding-bottom: 100px;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .hero-image img {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .welcome .container {
        flex-direction: column;
    }
    
    .welcome-text, .welcome-video {
        width: 100%;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slider {
        width: 95%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 5px;
    }
    
    .newsletter-form button {
        width: 100%;
        border-radius: 5px;
    }
}

@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .book-lesson-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .content-block ol, .content-block ul {
        padding-left: 20px;
    }
    
    .testimonial-content {
        padding: 15px;
    }
    
    .testimonial-author {
        padding: 10px 15px;
    }
}

/* Additional responsive fixes for very small screens */
@media (max-width: 400px) {
    .hero {
        padding: 60px 0 0;
    }
    
    .hero-content, .hero-image {
        padding-bottom: 80px;
    }
    
    .wave-divider {
        height: 10em;
    }
    
    .custom-shape-divider-bottom-1747277618 svg {
        height: 60px;
    }
}

/* Placeholder for logo if image is not available */
.logo img {
    background-color: var(--accent-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Placeholder for images if not available */
.lesson-card img, .modal-content img {
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.lesson-card img::after {
    content: "Image";
}