/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b9d77;
    /* Sage Green */
    --primary-dark: #7a8c68;
    --background-color: #fafaf8;
    /* Cream/Off-white */
    --text-color: #2d2d2d;
    /* Charcoal */
    --accent-color: #e8e6df;
    /* Light Grey/Beige */
    --white: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/raj-tree-pose-at-varanasi.JPG?v=2');
    background-size: 100% auto;
    background-position: center 90px;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 40vh;
    padding-bottom: 3rem;
}

/* Fallback for missing hero image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e6df 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* CTA Button */
.cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
}

.cta-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.article-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-link:hover {
    border-color: var(--primary-dark);
}

/* Sections General */
section {
    padding: 8rem 0;
}

section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.about-image {
    position: relative;
    background-color: var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Classes Section */
.classes {
    background-color: var(--background-color);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.class-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.card-image {
    height: 250px;
    background-color: var(--accent-color);
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.class-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.class-card p {
    color: #666;
    font-size: 1rem;
}

/* Locations Section */
.locations-section {
    margin-top: 4rem;
    text-align: center;
}

.locations-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-weight: 400;
}

.locations-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.location-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.location-item.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.location-item.featured .location-city {
    color: rgba(255, 255, 255, 0.85);
}

.location-icon {
    font-size: 1.5rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.location-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.location-city {
    font-size: 0.85rem;
    color: #888;
}

/* Image Placeholder Styling */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #999;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.image-placeholder::after {
    content: 'Image Placeholder';
}

/* Contact Section */
.contact {
    background-color: var(--white);
    text-align: center;
}

.contact p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #555;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.phone-cta {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.phone-cta:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Footer */
footer {
    background-color: #262626;
    color: #999;
    padding: 4rem 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.license {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    nav {
        padding: 1rem 5%;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 300px;
        order: -1;
        /* Image on top on mobile */
    }

    section {
        padding: 5rem 0;
    }
}

/* Resources Section */
.resources {
    background-color: var(--background-color);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.resource-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.resource-content {
    padding: 2rem;
    flex-grow: 1;
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-dark);
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
}

.quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #666;
    font-family: var(--font-body);
}

/* Resume Section */
.resume-section {
    margin-top: 2rem;
    text-align: left;
}

.resume-section h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.experience-list,
.cert-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li,
.cert-list li {
    margin-bottom: 1rem;
}

.experience-list strong {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
}

.experience-list p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Modals */
.class-card {
    cursor: pointer;
}

dialog.modal {
    border: none;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: auto;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    padding: 2rem;
    position: relative;
    background: var(--white);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-color);
}

.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.modal p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

/* Animation for Modal */
dialog[open] {
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Private Lessons Section */
.private-lessons {
    background-color: var(--white);
    padding: 8rem 0;
}

.private-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.private-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.private-text .lead {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
}

.private-text h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.benefits-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.private-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

.cta-container {
    margin-top: 2.5rem;
}

.private-image {
    position: relative;
    background-color: var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.private-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive for Private Lessons */
@media (max-width: 768px) {
    .private-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .private-image {
        order: -1;
    }
}

.modal-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Location Tag */
.location-tag {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Video Thumbnails */
.video-thumbnail {
    height: 200px;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.video-thumbnail:hover {
    background-color: #444;
}

.play-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.resource-card {
    cursor: pointer;
}

/* Video Modals */
dialog.modal-video {
    max-width: 900px;
    width: 90%;
    background: transparent;
    box-shadow: none;
}

.video-modal-content {
    padding: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 12px;
}

.video-modal-content .close-btn {
    color: white;
    top: -30px;
    right: 0;
    font-size: 2rem;
    opacity: 0.8;
}

.video-modal-content .close-btn:hover {
    opacity: 1;
}

.video-modal-content .video-wrapper {
    padding-bottom: 56.25%;
    height: 0;
    position: relative;
    background: black;
}

/* Contact Form Modal */
.contact-form-modal {
    max-width: 500px;
}

.contact-form-modal h3 {
    margin-bottom: 0.5rem;
}

.contact-form-modal>p {
    color: #666;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.contact-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#contactSuccess {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

#contactSuccess h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-form-modal.success .contact-form {
    display: none;
}

.contact-form-modal.success #contactSuccess {
    display: block;
}