/*
 * The Art of Service - Lifestyle Cooking
 * Main Stylesheet
 *
 * Table of Contents:
 * 1. Reset & Base Styles
 * 2. Navigation
 * 3. Hero Section
 * 4. Buttons
 * 5. Philosophy/About Section
 * 6. Instructor Story
 * 7. Testimonials & Gallery
 * 8. FAQ Section
 * 9. Contact Form
 * 10. Footer
 * 11. Animations
 * 12. Responsive Design
 */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Lato', 'Arial', sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tangerine', cursive;
    font-weight: 700;
}

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

/* ============================================
   2. NAVIGATION
   ============================================ */
.navbar {
    background-color: #1a1a1a;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid #8b7355;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #d4af37;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

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

.nav-links a {
    color: #d4d4d4;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #d4af37;
}

/* ============================================
   3. HERO SECTION
   ============================================ */
.hero {
    background-image: url('images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f5f5f5;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(80, 40, 40, 0.85) 0%, rgba(26, 26, 26, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: calc(50% - 75px);
    left: 0;
    right: 0;
    min-height: 280px;
    height: auto;
    padding: 2rem 0;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.65);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 20px;
    transform: translateY(-90px);
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: -1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d4af37;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
    font-style: normal;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.2s ease;
}

/* ============================================
   4. BUTTONS
   ============================================ */
.btn {
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    display: inline-block;
    border: 1px solid;
}

.btn-primary {
    background-color: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

.btn-primary:hover {
    background-color: transparent;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.btn-secondary:hover {
    background-color: #d4af37;
    color: #1a1a1a;
}

.btn-small {
    padding: 10px 28px;
    font-size: 0.8rem;
    background-color: transparent;
    color: #8b7355;
    border-color: #8b7355;
}

.btn-small:hover {
    background-color: #8b7355;
    color: #fff;
}

/* ============================================
   5. PHILOSOPHY/ABOUT SECTION
   ============================================ */
.philosophy-section {
    padding: 40px 20px 20px 20px;
    background-color: #faf8f5;
    position: relative;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: calc(1rem + 40px);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: 3px;
    background: linear-gradient(to right, transparent, #d4af37 20%, #d4af37 80%, transparent);
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.3);
    z-index: 10;
}

.philosophy-section::after {
    content: '';
    position: absolute;
    bottom: calc(20px + 1rem);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: 3px;
    background: linear-gradient(to right, transparent, #d4af37 20%, #d4af37 80%, transparent);
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.3);
    z-index: 10;
}

.philosophy-cards-title {
    text-align: center;
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 2px;
    padding-top: 0;
    position: relative;
}

.philosophy-intro {
    text-align: center;
    max-width: 714px;
    margin: -2rem auto 5rem;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4a4a4a;
    font-weight: 300;
}

/* Service Architecture (Philosophy page component) */
.service-architecture {
    max-width: 800px;
    margin: -1.5rem auto 0;
    perspective: 1000px;
}

.architecture-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.pillar {
    background: #ffffff;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid #e8e8e8;
    border-top: 3px solid #8b7355;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

.pillar::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 2rem;
    background: linear-gradient(to bottom, #d0d0d0, transparent);
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border-top-color: #502828;
}

.pillar-icon {
    font-size: 2.5rem;
    margin: 0;
    filter: grayscale(30%) opacity(0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar h3 {
    font-family: 'Courgette', cursive;
    font-size: 1.3rem;
    color: #2a2a2a;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-style: normal;
    text-transform: none;
}

.pillar p {
    font-family: 'Courgette', cursive;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #999;
    margin: 0;
    font-weight: 400;
    opacity: 0.85;
}

.architecture-foundation {
    background: #fafafa;
    padding: 1.5rem 3rem;
    text-align: center;
    border: 1px solid #e8e8e8;
    border-top: 2px solid #2a2a2a;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-top: 2rem;
}

.architecture-foundation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
}

.foundation-content h3 {
    font-family: 'Courgette', cursive;
    font-size: 1.4rem;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: none;
}

.foundation-content p {
    font-family: 'Courgette', cursive;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #999;
    max-width: 650px;
    margin: 0 auto;
    font-style: normal;
    font-weight: 400;
    opacity: 0.85;
}

/* ============================================
   6. INSTRUCTOR STORY
   ============================================ */
.instructor-story {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 1rem auto;
    background: #fff;
    padding: 4rem;
    box-shadow: 0 8px 40px rgba(80, 40, 40, 0.1);
    position: relative;
}

.story-image {
    flex: 0 0 350px;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(80, 40, 40, 0.15);
}

.image-quote {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #502828;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
    position: relative;
}

.image-quote::before {
    content: '"';
    position: absolute;
    top: -0.3rem;
    left: 0.5rem;
    font-size: 4rem;
    color: #ccc;
    font-family: Georgia, serif;
    font-weight: bold;
    line-height: 1;
    opacity: 0.5;
}

.story-text {
    flex: 1;
}

.story-lead {
    font-size: 1.3rem;
    line-height: 2;
    color: #502828;
    margin-bottom: 2rem;
    font-weight: 400;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.2rem;
}

.teaching-philosophy {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.teaching-philosophy h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    margin-left: -0.5rem;
    color: #502828;
    text-align: center;
}

.philosophy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.point h4 {
    font-size: 1.5rem;
    color: #8b4444;
    margin-bottom: 0.3rem;
}

.point p {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}


.gallery-grid {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(80, 40, 40, 0.2);
    min-height: 600px;
    background-color: #1a1a1a;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.gallery-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 600px;
    object-fit: contain;
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.carousel-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: #d4af37;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.carousel-dots {
    text-align: center;
    padding: 20px 0;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #8b4444;
    transform: scale(1.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   7. TESTIMONIALS & GALLERY
   ============================================ */
.testimonials {
    padding: 10px 20px 20px 20px;
    background-color: #faf8f5;
}

.testimonials h2 {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 2px;
    padding-top: 0;
    position: relative;
}

.testimonials-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 1rem auto;
    background: #fff;
    padding: 4rem 4rem 4rem 4rem;
    box-shadow: 0 8px 40px rgba(80, 40, 40, 0.1);
    position: relative;
    align-items: center;
}

.testimonials-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: 3px;
    background: linear-gradient(to right, transparent, #d4af37 20%, #d4af37 80%, transparent);
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.3);
}

.testimonials-layout::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: 3px;
    background: linear-gradient(to right, transparent, #d4af37 20%, #d4af37 80%, transparent);
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.3);
}

.gallery-column {
    width: 100%;
}

.testimonial-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: -69px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background: linear-gradient(135deg, rgba(40, 35, 32, 0.95) 0%, rgba(20, 18, 17, 0.95) 100%);
    padding: 2rem 2rem .4rem 2rem;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-left: 2px solid #8b4444;
    transition: all 0.3s ease;
}

.testimonial:hover {
    background: linear-gradient(135deg, rgba(80, 40, 40, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-left-width: 4px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.9;
    color: #ffffff;
}

.testimonial .author {
    font-weight: 400;
    color: #d4af37;
    font-style: normal;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

/* ============================================
   9. CONTACT FORM
   ============================================ */
.contact {
    padding: 0px 20px 30px 20px;
    background-color: #fafafa;
    position: relative;
}


#faq.contact::before {
    display: none;
}

.contact h2 {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 0px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4a4a4a;
    font-style: normal;
}

.contact-intro a {
    color: #8b4444;
    text-decoration: none;
    border-bottom: 1px solid #8b4444;
    transition: all 0.3s ease;
}

.contact-intro a:hover {
    color: #d4af37;
    border-bottom-color: #d4af37;
}

/* ============================================
   8. FAQ SECTION
   ============================================ */
.faq-section {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: #fff;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #d4af37;
}

.faq-item.featured {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
    border: 2px solid #d4af37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.faq-item.featured .faq-question {
    color: #502828;
    font-weight: 500;
}

.faq-item.featured .faq-answer {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 0 2rem !important;
}

.faq-item.featured .faq-answer.active {
    padding: 1.5rem 2rem 2rem 2rem !important;
    max-height: 1000px;
}

.faq-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.faq-pricing-section h4 {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: #502828;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-pricing-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-pricing-section li {
    padding: 0.5rem 0;
    line-height: 1.7;
    color: #4a4a4a;
    position: relative;
    padding-left: 1.5rem;
}

.faq-pricing-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.faq-pricing-section strong {
    color: #2a2a2a;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-family: 'Lato', 'Arial', sans-serif;
    color: #2a2a2a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #8b4444;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #d4af37;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin: 0;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 16px 20px;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Lato', 'Arial', sans-serif;
    transition: all 0.3s;
    background-color: #fff;
    width: 100%;
}

.form-row input,
.form-row select {
    width: 100%;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
    color: #999;
}

.contact-form select:valid {
    color: #1a1a1a;
}

.contact-form select option {
    padding: 10px;
    color: #1a1a1a;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.contact-form button {
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    align-self: center;
    width: auto;
}

/* ============================================
   10. FOOTER
   ============================================ */
.footer {
    background-color: #1a1a1a;
    color: #d4d4d4;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #8b7355;
}

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

.footer p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 2.5rem;
}

.social-links a {
    color: #d4d4d4;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.social-links a:hover {
    color: #d4af37;
}

/* ============================================
   11. ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   12. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 10px;
    }

    .logo {
        font-size: 1rem;
        text-align: center;
        width: 100%;
        letter-spacing: 1.5px;
    }

    .nav-links {
        flex-direction: row;
        gap: 0;
        width: 100%;
        justify-content: space-between;
        padding: 0;
    }

    .nav-links li {
        flex: 1;
        text-align: center;
    }

    .nav-links a {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        padding: 0.3rem 0.2rem;
        display: block;
    }

    .hero-content {
        padding: 1.5rem 10px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.75rem;
    }

    .architecture-pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pillar::after {
        display: none;
    }

    .pillar {
        padding: 2rem 1.5rem;
    }

    .pillar h3 {
        font-size: 2rem;
    }

    .pillar-icon {
        font-size: 2.5rem;
    }

    .architecture-foundation {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }

    .foundation-content h3 {
        font-size: 2rem;
    }

    .foundation-content p {
        font-size: 1rem;
    }

    .testimonials-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonial-column {
        margin-top: 0;
    }

    .instructor-story {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .story-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .story-lead {
        font-size: 1.15rem;
    }

    .story-text p {
        font-size: 1rem;
    }

    .teaching-philosophy h3 {
        font-size: 2rem;
        text-align: center;
    }

    .philosophy-points {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        min-height: 300px;
    }

    .gallery-item img {
        height: 300px;
    }

    .carousel-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .carousel-dots {
        padding: 10px 0;
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .contact-intro {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10px;
    }

    .contact-intro br {
        content: " ";
        display: inline;
    }

    .contact-intro br::after {
        content: " ";
        white-space: pre;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

}