/* Dance Teacher - Elegant & Creative Theme */

/* 1. Global Styles & Variables */
/* --------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;600&display=swap');

:root {
    --bg: #121212;
    --card-bg: #1A1A1A;
    --hero-bg: #121212;
    --hero-text: #FFFFFF;
    --accent: #C5A059;
    --accent-hover: #D4B06A;
    --accent-contrast: #121212;
    --secondary: #FFFFFF;
    --text: #FFFFFF;
    --muted: #888888;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --footer-bg: #0A0A0A;
    /* Darker than body */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--text);
}

h1 {
    font-size: clamp(3rem, 6vw + 1rem, 4rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2.5rem, 5vw + 1rem, 3.2rem);
    text-align: center;
    margin-bottom: 70px;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.5rem, 3.5vw + 0.5rem, 1.8rem);
    line-height: 1.4;
}

/* Constrain text width for readability */
/* Constrain text width for readability - Golden Ratio */
p,
li {
    max-width: 65ch;
    /* Roughly 650px for optimal reading */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    /* Luxury breathing room */
}


section {
    padding: 120px 0;
    background-color: transparent;
    overflow: hidden;
    border-bottom: 0.5px solid var(--accent);
    /* High-end gold separator */
}

section:last-of-type {
    border-bottom: none;
}

/* 2. Header & Navigation */
/* --------------------------------- */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* Overlapping Welcome Image - Breaks the boxy feel */
@media (min-width: 992px) {
    .welcome-image img {
        margin-top: -100px;
        position: relative;
        z-index: 10;
        border: 10px solid var(--card-bg);
        /* Separation from hero */
        border-radius: 4px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }
}

header.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

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

nav li {
    margin-left: 35px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover,
.dropbtn:hover {
    color: var(--accent);
}

.dropbtn {
    background: none;
    border: none;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--card-shadow);
    z-index: 1;
    border-radius: 5px;
    margin-top: 0;
    border: 1px solid var(--muted);
}

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

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--accent);
    color: var(--accent-contrast);
}

.dropdown-container:hover .dropdown-content {
    display: block;
    padding-top: 10px;
    /* Add padding to create a buffer zone */
}

.menu-icon {
    display: none;
}


/* 3. Hero Section */
/* --------------------------------- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://stockcake.com/i/energetic-dance-class_67615_88874.jpg') center/cover no-repeat;
    background-attachment: scroll;
    background-color: var(--bg);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-text);
    text-align: center;
    padding: 0;
    position: relative;
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    z-index: 2;
}

.hero h1 {
    color: var(--hero-text);
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-size: clamp(3.5rem, 7vw, 5rem);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
}

/* 4. Buttons */
/* --------------------------------- */
.btn {
    background-color: var(--accent);
    color: var(--accent-contrast);
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-tertiary {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.2s ease;
}

.btn-tertiary:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover,
.dropbtn:hover {
    color: var(--accent);
    transform: translateY(-2px);
}


/* 5. Content Sections & Cards */
/* --------------------------------- */
.welcome {
    background-color: var(--card-bg);
}

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

.welcome-text {
    flex: 1;
}

.welcome-image {
    flex: 1;
    overflow: hidden;
    /* Hide overflow within the image container */
}

.welcome-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.featured-classes {
    background-color: transparent;
}

.class-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(197, 160, 89, 0.2);
    /* 1px Gold Border (Framed Look) */
    border-radius: 2px;
    overflow: hidden;
    /* Ensure image scale doesn't overflow */
    box-shadow: none;
    text-align: left;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* All cards follow the same column layout now */

/* Gallery Frame Effect for Grid Images */
.card-image {
    padding: 10px;
    /* Frame thickness */
    border: 1px solid rgba(212, 175, 89, 0.3);
    /* Gold Frame */
    background-clip: content-box;
    /* Ensures padding is transparent/bg color */
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Consistent styling for all cards */
.card .card-image {
    aspect-ratio: 4/5;
    /* Elegant Portrait Ratio */
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card h3 {
    margin: 20px 20px 10px;
    font-size: 1.5rem;
}

.card p {
    margin: 0 20px 20px;
    font-size: 0.95rem;
    color: #cccccc;
}

.btn-tertiary {
    margin: 0 20px 20px;
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

section:nth-of-type(odd) {
    background-color: var(--card-bg);
}

.card-icon {
    font-size: 50px;
    color: var(--accent);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
    background-color: transparent;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--muted);
    box-shadow: var(--card-shadow);
    display: flex;
    /* Make it a flex container */
    flex-direction: column;
    /* Stack children vertically */
}

.testimonial-text {
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    /* Vertically align image and text */
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

/* Specific adjustments for testimonial images */
.testimonial-author img[src*="client1.jpg"] {
    object-position: 20% center;
}

.testimonial-author img[src*="client2.jpg"] {
    object-position: center center;
    /* Ensure client2 is centered */
}

.testimonial-author img[src*="client3.jpg"] {
    object-position: center 20%;
}

/* Blog */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-post {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--muted);
    box-shadow: var(--card-shadow);
}

.blog-post img,
.blog-post iframe {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-post h3,
.blog-post p {
    padding: 0 20px;
}

.blog-post h3 {
    margin-top: 20px;
}

.blog-post .post-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.blog-post .btn-tertiary {
    display: block;
    padding: 20px;
}


/* 6. Page-Specific (About, Offerings, Contact) */
/* --------------------------------- */
.about-content,
.offering-page .about-content {
    display: flex;
    align-items: stretch;
    gap: 50px;
}

.about-image,
.offering-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-image img,
.offering-image img,
.about-image-container img {
    width: 100%;
    height: auto;
    /* Allow height to adjust based on content */
    max-height: 600px;
    /* Maintain a maximum height if desired, or remove */
    object-fit: contain;
    /* Ensure the whole image is visible */
    border-radius: 8px;
}

.contact-intro-text {
    text-align: center;
}

.contact-form-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--muted);
    margin-bottom: 50px;
}

.contact-details-section {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid transparent;
    /* Make border invisible */
    text-align: center;
}

.contact-info-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-info,
.contact-image {
    flex: 1;
}



form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--muted);
    border-radius: 2px;
    /* Increased border-radius */
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: #1A1A1A;
    /* Dark inputs */
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Added transition */
}

form input:-webkit-autofill,
form input:-webkit-autofill:hover,
form input:-webkit-autofill:focus,
form textarea:-webkit-autofill,
form textarea:-webkit-autofill:hover,
form textarea:-webkit-autofill:focus,
form select:-webkit-autofill,
form select:-webkit-autofill:hover,
form select:-webkit-autofill:focus {
    border: 1px solid var(--accent);
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0px 1000px var(--card-bg) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group {
    position: relative;
    z-index: 1;
}

.form-group.dropdown-fix {
    padding-bottom: 10em;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

form button {
    align-self: center;
}

.btn-service-page {
    margin-top: 40px;
    /* Increased margin-top */
}

/* Schedule */
.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--muted);
    padding: 15px;
}

.schedule-table th {
    background-color: var(--card-bg);
    color: var(--text);
}

.schedule-table td.has-class {
    background-color: var(--card-bg);
    font-weight: 600;
}

.schedule-table td.has-class a {
    color: var(--accent);
    text-decoration: none;
}

/* 7. Footer */
/* --------------------------------- */
footer {
    background-color: var(--footer-bg);
    color: var(--muted);
    padding: 60px 0 30px;
}

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

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--text);
    margin-bottom: 20px;
}

.social-links a {
    color: var(--muted);
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

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

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent);
}

.footer-contact a {
    color: var(--muted);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--muted);
    font-size: 0.9rem;
}

.developer-credit a {
    color: var(--accent);
    text-decoration: none;
}


/* 8. Responsive Design */
/* --------------------------------- */


@media (max-width: 992px) {

    /* Show hamburger menu and hide nav links on mobile */
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--card-bg);
        position: absolute;
        top: 75px;
        left: 0;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text);
        transition: color 0.3s ease;
        /* Add transition for smooth effect */
    }

    .menu-icon:hover {
        color: var(--accent);
    }

    .class-cards {
        grid-template-columns: 1fr;
    }

    .class-cards .card:nth-child(1) {
        flex-direction: column;
    }

    .class-cards .card:nth-child(1) .card-image {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .testimonial-cards,
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-cards {
        display: block;
        /* Force block-level display for cards */
    }

    .testimonial-card {
        margin-bottom: 80px;
        /* Increased margin for clear separation */
    }

    .welcome-content,
    .about-content,
    .offering-page .about-content,
    .contact-info-container {
        flex-direction: column;
    }

    .welcome-image,
    .about-image,
    .offering-image {
        margin-top: 30px;
    }

    .welcome-text,
    .about-text {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

}

@media (max-width: 768px) {


    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    h3 {
        font-size: 1.3rem;
    }

    .schedule-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .schedule-table table {
        width: 100%;
        min-width: 600px;
        /* Ensure a minimum width to force scrolling */
    }

    .schedule-table th,
    .schedule-table td {
        white-space: nowrap;
        /* Prevent text from wrapping */
    }

    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 15px;
    }

    .class-cards,
    .testimonial-cards,
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .welcome-content,
    .about-content,
    .offering-page .about-content,
    .contact-info-container {
        flex-direction: column;
        gap: 30px;
    }

    .welcome-image,
    .about-image,
    .offering-image {
        margin-top: 20px;
    }

    .welcome-text,
    .about-text {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .offering-image {
        margin: 0 auto;
    }

    .contact-image img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}




.cta-buttons {
    display: flex;
    gap: 15px;
    /* Adjust the space between buttons */
    margin-top: 20px;
    /* Space above the buttons */
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 13px 30px;
    /* Adjust padding to match the primary button's height */
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--accent-contrast);
}

.developer-credit {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--muted);
}

.developer-credit p {
    margin-bottom: 10px;
}

.developer-credit a {
    color: var(--muted);
    text-decoration: underline;
}

.developer-credit a:hover {
    color: var(--accent);
}

.disclaimer {
    font-style: italic;
    color: var(--muted);
}

/* Keyframe Animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        animation: fadeInUp 1.5s ease-out forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

/* Custom AOS Override for 20px Subtle Motion */
[data-aos="fade-up"] {
    transform: translate3d(0, 20px, 0);
}

[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
}

.client-showcase {
    padding: 100px 0;
    background-color: var(--bg);
}

.client-showcase h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
    color: var(--text);
}

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

.showcase-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--muted);
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.showcase-image-container {
    position: relative;
    height: 250px;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.05);
}

.showcase-content {
    padding: 30px;
}

.showcase-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.showcase-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--accent);
    color: var(--accent-contrast);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive adjustments for the new section */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}



.confirmation-section {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg);
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirmation-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.confirmation-content h1 {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 20px;
}

.confirmation-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-text);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 28, 0.7);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero .cta-content i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.page-hero .cta-content h2 {
    font-size: clamp(2.5rem, 5vw + 1rem, 3.2rem);
    margin-bottom: 20px;
    color: var(--hero-text);
}

.page-hero .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.placeholder-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    /* Adjust as needed */
    text-align: center;
}

.placeholder-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

/* Responsive Overrides */

/* Tablet Styles */

/* Tablet Styles */
@media (min-width: 768px) {

    .welcome-content,
    .about-content,
    .offering-page .about-content,
    .contact-info-container {
        flex-direction: row;
        /* Restored to row */
        text-align: left;
        /* Restored to left */
        justify-content: center;
        /* Center content when image is removed */
    }

    .welcome-text,
    .about-text {
        text-align: left;
        /* Restored to left */
    }

    .contact-info {
        text-align: center;
        /* Center text for desktop */
    }

    .class-cards,
    .testimonial-cards,
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: left;
    }

    .footer-contact p {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .welcome-content,
    .about-content,
    .offering-page .about-content,
    .contact-info-container {
        flex-direction: column;
        text-align: center;
    }

    .welcome-text,
    .about-text {
        text-align: center;
    }

    .welcome-image {
        max-width: 70%;
        /* Limit image width on tablets */
        margin: 0 auto;
        /* Center the image */
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .class-cards,
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .class-cards .card:last-child:nth-child(odd),
    .blog-posts .blog-post:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        text-align: center;
        /* Center the content */
        gap: 20px;
        /* Adjust gap for stacked layout */
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
        /* Ensure all sections are centered */
    }

    .footer-contact p {
        justify-content: center;
        /* Ensure content within p tags is centered */
    }
}

/* Desktop Styles */
@media (min-width: 992px) and (max-width: 1200px) {
    nav a {
        font-size: 0.9rem;
    }

    nav li {
        margin-left: 25px;
    }
}

@media (min-width: 1024px) {

    .class-cards,
    .testimonial-cards,
    .blog-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
    .container {
        max-width: 1360px;
    }
}

/* Schedule Scroll Fix for Mid-sized Devices */
@media (min-width: 800px) and (max-width: 991px) {
    .schedule-table {
        overflow-x: auto;
    }
}

.btn-ghost {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background-color: var(--accent);
    color: var(--accent-contrast);
}

.trust-strip {
    background-color: var(--card-bg);
    padding: 15px 0;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--muted);
}


.card-image {
    height: 220px;
    /* Or any fixed height */
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card {
    padding: 0;
    /* Remove padding from the card itself */
    text-align: left;
    /* Align text to the left */
}

.card h3,
.card p,
.card .btn-tertiary {
    padding: 0 20px;
    /* Add padding to the content */
}

.card h3 {
    margin-top: 20px;
}

.card p {
    margin-bottom: 20px;
}

.card .btn-tertiary {
    display: inline-block;
    margin-bottom: 20px;
}

.blog-post .post-meta {
    padding: 0 20px;
}

.blog-post .btn-tertiary {
    padding-left: 20px;
    padding-bottom: 20px;
}

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

.youtube-video {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--muted);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-video:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offering-page .about-image-container {
    height: 500px;
    /* Set a fixed height for the container */
    border-radius: 8px;
}

section.offering-page .about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* This will display the full image */
}

.schedule-hero {
    position: relative;
}

.schedule-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.schedule-hero .hero-content {
    position: relative;
    z-index: 2;
}

.about-page-image-container img {
    height: auto !important;
    /* Allow height to adjust based on content */
    object-fit: contain !important;
}

/* Premium Polish: Global Text Constraints for About/FAQ */
.about-text p,
.faq-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure inputs are dark on Contact Page specifically if not covered */
.contact-form-container input,
.contact-form-container textarea,
.contact-form-container select {
    background-color: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus,
.contact-form-container select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 1px var(--accent);
}