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

body {
    font-family: "Neue Montreal", sans-serif;
    color: #333;
    background-color: #f9f7f4;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(239, 234, 228, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(239, 234, 228, 0.95);
}

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

.logo {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    color: #48606b;
    text-decoration: none;
}

.logo span {
    color: #a78a6b;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #48606b;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #a78a6b;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a78a6b;
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #48606b;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("../images/incense_burning.jpg") no-repeat center center/cover;
    color: #efeae4;
}

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

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

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: #a78a6b;
    color: #efeae4;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #a78a6b;
}

.btn:hover {
    background: transparent;
    color: #a78a6b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: #a78a6b;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #a78a6b;
    color: #efeae4;
}

/* Classes Section */
.section-title {
    text-align: center;
    margin: 80px 0 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #7a90a8;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #a78a6b;
}

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

.class-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #efeae4;
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    height: 100%; /* Full height to fill grid cell */
}

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

.class-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    flex-shrink: 0;
}

.class-card:hover .class-img {
    transform: scale(1.05);
}

.class-content {
    padding: 20px;
    color: #a78a6b; /* Adjusted text color for contrast */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.class-content h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.class-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #48606b;
    flex-shrink: 0;
    /*overflow-wrap: break-word;*/
    hyphens: auto;
}

/* About Section */
.about {
    background: #f0ebe6;
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #a78a6b;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #48606b;
}

.instructor {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.instructor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid #a78a6b;
    flex-shrink: 0; /* Prevents flex container from shrinking this item */
    align-self: flex-start; 
}

.instructor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h4 {
    font-size: 1.3rem;
    color: #7a90a8;
    margin-bottom: 5px;
}

.instructor-info p {
    margin: 0;
    color: #777;
    font-style: italic;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

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

.testimonial-card {
    background: #f9f7f4;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: #a78a6b;
    opacity: 0.2;
    font-family: "Playfair Display", serif;
}

.testimonial-content {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.client {
    display: flex;
    align-items: center;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1.1rem;
    color: #7a90a8;
    margin-bottom: 5px;
}

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

/* Contact Section */
.contact {
    background:
        linear-gradient(rgba(72, 96, 107, 0.6), rgba(72, 96, 107, 0.6)),
        url("../images/pigeon-dl.jpeg") no-repeat center center/cover;
    padding: 80px 0;
    color: #efeae4;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #a78a6b;
}

/* Footer */
footer {
    background: #48606b;
    color: #efeae4;
    padding: 50px 0 20px;
}

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

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #a78a6b;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #a78a6b;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #bbb;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #48606b;
    color: #efeae4;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #a78a6b;
    transform: translateY(-3px);
}

.social-links img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(1) sepia(5%) saturate(400%)
        hue-rotate(180deg) brightness(95%) contrast(85%);
    transition: filter 0.3s ease;
}

/* On hover, make white like the font icon */
.social-links a:hover img {
    filter: brightness(0) invert(1);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #a78a6b;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #efeae4;
    font-size: 0.9rem;
}

.quote-container {
    margin: 2rem 0;
    position: relative;
}

.source {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #48606b;
    margin-bottom: 0.5rem;
}

.main-quote {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.5;
    color: #a78a6b;
    position: relative;
    padding: 1rem 0;
}

.main-quote::before,
.main-quote::after {
    content: '"';
    font-size: 2rem;
    color: #a78a6b;
    position: absolute;
}

.main-quote::before {
    top: 0.25rem;
    left: -0.75rem;
}

.main-quote::after {
    bottom: 0.25rem;
    right: -0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-content {
        flex-direction: column;
    }
}

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

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #efeae4;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: all 0.3s ease;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .btn {
        padding: 12px 25px;
    }

    .btn-outline {
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .classes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .class-card {
        height: auto; /* Allow cards to expand naturally */
        display: flex;
        flex-direction: column;
    }

    .class-img {
        height: 180px;
        object-fit: cover;
    }

    .class-content {
        padding: 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .class-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .class-content p {
        font-size: 0.95rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .btn {
        align-self: flex-start;
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .yoga-quote {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .main-quote {
        font-size: 1.2rem;
    }
}

/* === Mobile Navigation Enhancements === */

/* When menu is active (handled by JS) */
nav ul.active {
  left: 0;
}

/* Animate the hamburger icon into an "X" when open */
.mobile-menu-btn.open i {
  transition: transform 0.3s ease, color 0.3s ease;
  transform: rotate(90deg);
  color: #a78a6b;
}

/* Optional smoother transition when menu slides in */
nav ul {
  transition: left 0.3s ease-in-out;
}

/* Prevent background scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}
