/* Base Styles */
:root {
    --primary-color: #1a3a1f;
    --primary-light: #2c5a33;
    --primary-dark: #0a2a0f;
    --accent-color: #c28260;
    --accent-light: #e2a280;
    --background-color: #f5f1ec;
    --text-color: #333;
    --light-text: #fff;
    --milk-color: #f9f5f0;
    --pale-pink: #f5e6e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gochi Hand', cursive;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn:hover::after {
    background: currentColor;
    left: 5%;
    right: 5%;
    height: 2px;
    opacity: 0.7;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.primary-btn:active {
    transform: translateY(-1px);
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
}

.main-nav a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.main-nav a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    background-image: url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--light-text);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 58, 31, 0.8), rgba(26, 58, 31, 0.6));
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    transform: translateY(-2rem);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.hero-content h2::after {
    background-color: var(--light-text);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-divider path {
    fill: var(--background-color);
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background-color: var(--milk-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    margin-bottom: 1rem;
}

/* Classes Section */
.classes-section {
    padding: 5rem 0;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.class-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.class-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.class-card h3, .class-card p {
    padding: 0 1.5rem;
}

.class-card h3 {
    margin-top: 1.5rem;
}

.class-card p:last-child {
    padding-bottom: 1.5rem;
}

/* Mudras Section */
.mudras-section {
    padding: 5rem 0;
    background-color: var(--pale-pink);
}

.mudras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.mudra-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mudra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mudra-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.mudra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Teachers Section */
.teachers-section {
    padding: 5rem 0;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.teacher-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.teacher-card h3, .teacher-card p {
    padding: 0 1.5rem;
}

.teacher-card h3 {
    margin-top: 1.5rem;
}

.teacher-card p:last-child {
    padding-bottom: 1.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--milk-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.gallery-item p {
    background-color: white;
    padding: 1rem;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 1rem;
}

.contact-form form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--light-text);
    padding: 3rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: var(--light-text);
    margin: 0;
}

.footer-nav {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
}

.footer-policies {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
}

.footer-contact {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
}

.footer-hours {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
}

.footer-policies-2 {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
}

.footer-bottom {
    grid-column: 2;
    grid-row: 3;
    text-align: center;
    margin-top: 1rem;
}

.footer-policies-3 {
    grid-column: 3;
    grid-row: 3;
    text-align: right;
}

footer a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .footer-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-nav {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-policies {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }

    .footer-contact {
        grid-column: 2;
        grid-row: 2;
    }

    .footer-hours {
        grid-column: 1;
        grid-row: 3;
        text-align: left;
    }

    .footer-policies-2 {
        grid-column: 2;
        grid-row: 3;
        text-align: right;
    }

    .footer-bottom {
        grid-column: 1 / span 2;
        grid-row: 4;
    }

    .footer-policies-3 {
        grid-column: 2;
        grid-row: 3;
        text-align: right;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        height: 70vh;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo,
    .footer-nav,
    .footer-policies,
    .footer-contact,
    .footer-hours,
    .footer-policies-2,
    .footer-bottom,
    .footer-policies-3 {
        grid-column: 1;
        text-align: center;
    }

    .footer-logo {
        grid-row: 1;
    }

    .footer-nav {
        grid-row: 2;
    }

    .footer-policies {
        grid-row: 3;
    }

    .footer-contact {
        grid-row: 4;
    }

    .footer-hours {
        grid-row: 5;
    }

    .footer-policies-2 {
        grid-row: 6;
    }

    .footer-policies-3 {
        grid-row: 7;
    }

    .footer-bottom {
        grid-row: 8;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .benefits-grid,
    .classes-grid,
    .mudras-grid,
    .teachers-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}