/* ============================================
   East Devon Art Academy - Site Stylesheet
   Clean, modern design inspired by WP test site
   Font: League Spartan (bold headings, clean body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@300;400;500;600;700&display=swap');

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

:root {
    --color-primary: #1a1a2e;
    --color-accent: #c9a84c;
    --color-accent-hover: #b8932e;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f5f2;
    --color-bg-dark: #1a1a2e;
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-text-muted: #999;
    --color-white: #fff;
    --color-border: #e8e8e8;
    --color-red: #c0392b;
    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'League Spartan', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

html { font-size: 19px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

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

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.0; font-weight: 500; }
h1 { font-size: 3.8rem; margin-bottom: 1.2rem; letter-spacing: -1px; }
h2 { font-size: 2.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 500; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* --- Header --- */
.site-header {
    background: var(--color-primary);
    color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-white);
    flex-shrink: 0;
}
.header-logo img {
    height: 50px;
    width: auto;
    border-radius: 4px;
}
.header-logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: max-content;
}
.header-logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0.9;
    white-space: nowrap;
}

/* --- Navigation --- */
.main-nav { display: flex; align-items: center; }
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    padding: 0;
    margin: 0;
}
.main-nav a {
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Video Background (Vimeo iframe) */
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 177.78vh; /* 16:9 ratio */
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    border: none;
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.15) 0%, rgba(26,26,46,0.08) 50%, rgba(26,26,46,0.25) 100%);
    z-index: 1;
}
/* Fallback image overlay (no video pages) */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/header.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}
.hero.has-video::after { display: none; }
.hero .container { position: relative; z-index: 2; }
.hero h1 {
    color: var(--color-white);
    font-size: 4.5rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 0.95;
}
.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero .location {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: 6px;
}
.hero-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    font-size: 1.2rem;
    transition: background 0.2s;
    text-decoration: none;
}
.hero-socials a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
}
.btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
    background: transparent;
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}
.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-dark:hover {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
}
.section-alt {
    background: var(--color-bg-alt);
}
.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-white);
}
.section-dark h2,
.section-dark h3 { color: var(--color-white); }
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    margin-bottom: 0.6rem;
}
.section-header p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0.5rem auto 0;
    font-weight: 300;
}
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}
.card {
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.card-body {
    padding: 2rem;
}
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.6rem; font-weight: 500; }
.card-body p { color: var(--color-text-light); font-size: 0.95rem; font-weight: 300; }

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
}

/* --- Workshop Card --- */
.workshop-card {
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 300px 1fr;
    margin-bottom: 2.5rem;
}
.workshop-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}
.workshop-card .workshop-info {
    padding: 2rem;
}
.workshop-card h3 { color: var(--color-primary); margin-bottom: 0.3rem; }
.workshop-card .workshop-date {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}
.workshop-card .workshop-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-top: 1rem;
}
.workshop-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.workshop-status.full { background: var(--color-red); color: var(--color-white); }
.workshop-status.available { background: #2e7d32; color: var(--color-white); }
.workshop-status.limited { background: #f57c00; color: var(--color-white); }

/* --- Workshop Website Link --- */
.workshop-website {
    margin-bottom: 0.5rem;
}

/* --- Workshop Filters --- */
.workshop-filters {
    background: var(--color-white);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.workshop-filters h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.filter-reset-row {
    margin-bottom: 0.8rem;
}
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    background: transparent;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}
.filter-tag input[type="checkbox"] {
    display: none;
}
.filter-tag:hover {
    background: rgba(201,168,76,0.15);
}
.filter-tag.active {
    background: var(--color-accent);
    color: var(--color-white);
}
.reset-tag {
    border-width: 3px;
    font-weight: 600;
}

/* --- Workshop Count --- */
.workshop-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

/* --- Past Workshops Link --- */
.past-workshops-link {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
.past-workshops-link a {
    font-size: 0.9rem;
    font-weight: 400;
}

/* --- Workshop Tags on Card --- */
.workshop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.workshop-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: rgba(201,168,76,0.12);
    color: var(--color-accent);
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- Tutor Profile --- */
.tutor-profile {
    background: var(--color-white);
    border-radius: 0;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.tutor-profile h3 { margin-bottom: 1rem; }
.tutor-images {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.tutor-images img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

/* --- Schedule Table --- */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.schedule-table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}
.schedule-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--color-bg-alt); }

/* --- Info Box --- */
.info-box {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem 2rem;
    border-radius: 0 6px 6px 0;
    margin: 2rem 0;
}
.info-box.urgent {
    border-left-color: var(--color-red);
    background: #fde8e8;
}

/* --- Information Pages --- */
.faq-list {
    max-width: 950px;
    margin: 0 auto;
}
.faq-item {
    margin: 0 0 1.25rem;
}
.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}
.location-map {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}
.location-map img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.location-map figcaption {
    margin-top: 0.8rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}
.resource-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.6rem;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}
.section-alt .resource-card {
    background: var(--color-white);
}
.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}
.resource-card p:last-child {
    margin-bottom: 0;
}
.resource-card-featured {
    border-top: 4px solid var(--color-accent);
}
.resource-meta {
    margin-top: 1rem;
    color: var(--color-text-light);
}
.compact-resource-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.materials-reassurance {
    max-width: 760px;
    margin: 2.5rem auto 0;
    text-align: center;
}

/* --- Contact Bar --- */
.contact-bar {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 1rem 0;
    text-align: center;
    font-size: 1.1rem;
}
.contact-bar a { color: var(--color-white); text-decoration: underline; }

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col a { color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--color-white); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; font-weight: 300; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 300;
}

/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    font-size: 1.2rem;
    transition: background 0.2s;
}
.social-links a:hover { background: var(--color-accent); }

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: 8px; }

/* --- Feature List --- */
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    font-size: 1.05rem;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* --- Page Header --- */
.page-header {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 5rem 0;
    text-align: center;
}
.page-header h1 { color: var(--color-white); font-size: 3.5rem; font-weight: 500; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin-top: 0.8rem; font-weight: 300; letter-spacing: 1px; }

/* --- Workshop List (compact) --- */
.workshop-list {
    list-style: none;
    padding: 0;
}
.workshop-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.workshop-list .ws-name { font-weight: 600; flex: 1; min-width: 250px; }
.workshop-list .ws-date { color: var(--color-accent); min-width: 200px; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .workshop-card { grid-template-columns: 1fr; }
    .workshop-card img { height: 240px; }
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .two-col.reverse { direction: ltr; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    .hero { min-height: 60vh; padding: 5rem 0; }
    .hero h1 { font-size: 3rem; }
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .page-header { padding: 3.5rem 0; }
    .page-header h1 { font-size: 2.8rem; }
    .tutor-images img { width: 150px; height: 150px; }
    .schedule-table { font-size: 0.9rem; }
    .schedule-table th, .schedule-table td { padding: 0.8rem 1rem; }
    .contact-bar { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    html { font-size: 16px; }
    .main-nav ul { 
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 999;
    }
    .main-nav ul.open { display: flex; }
    .main-nav a { padding: 0.7rem 1rem; font-size: 0.9rem; }
    .menu-toggle { display: block; }
    .header-logo-text { font-size: 1rem; }
    .header-logo-text small { font-size: 0.55rem; letter-spacing: 1px; }
    .header-logo img { height: 40px; }
    .container { padding: 0 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
    .gallery-item img { height: 180px; }
    .card-grid { grid-template-columns: 1fr; }
    .hero { min-height: 50vh; padding: 4rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 0.9rem; letter-spacing: 1px; }
    .hero .location { font-size: 0.85rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 80%; text-align: center; }
    .hero-logo { width: 70px; margin-bottom: 1rem; }
    .hero-socials { margin-top: 1.5rem; }
    .hero-socials a { width: 38px; height: 38px; font-size: 1rem; }
    .page-header { padding: 2.5rem 0; }
    .page-header h1 { font-size: 2rem; }
    .page-header p { font-size: 0.95rem; }
    .section { padding: 3rem 0; }
    .section-header { margin-bottom: 2rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    .two-col { gap: 1.5rem; }
    .info-box { padding: 1.2rem 1.5rem; }
    .workshop-card .workshop-info { padding: 1.5rem; }
    .tutor-profile { padding: 1.5rem; }
    .tutor-images { gap: 0.6rem; }
    .tutor-images img { width: 120px; height: 120px; }
    .feature-list li { font-size: 0.95rem; }
    .schedule-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .contact-bar { font-size: 0.85rem; padding: 0.8rem 0; }
    .contact-bar .container { display: flex; flex-direction: column; gap: 0.3rem; }
    .footer-col h4 { font-size: 0.9rem; }
    .social-links { justify-content: flex-start; }
    .social-links a { width: 36px; height: 36px; font-size: 1rem; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .testimonial { padding: 1.5rem 1rem; }
    .testimonial blockquote { font-size: 0.95rem; }
    .booking-placeholder { padding: 2.5rem 1.5rem; min-height: 200px; }
    .btn { padding: 0.8rem 2rem; font-size: 0.8rem; }
    .workshop-list li { flex-direction: column; align-items: flex-start; }
    .workshop-list .ws-name { min-width: auto; }
    .workshop-list .ws-date { min-width: auto; }
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.testimonial {
    text-align: center;
    padding: 2.5rem 2rem;
}
.testimonial-stars {
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
}
.testimonial blockquote {
    font-size: 1.05rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}
.section-dark .testimonial blockquote { color: rgba(255,255,255,0.85); }
.testimonial cite {
    font-style: normal;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}
.section-dark .testimonial cite { color: rgba(255,255,255,0.5); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-red { color: var(--color-red); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* --- Map Embed --- */
.map-embed {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.map-embed iframe {
    display: block;
    width: 100%;
    min-height: 450px;
}
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- Booking Placeholder --- */
.booking-placeholder {
    background: var(--color-bg-alt);
    border: 2px dashed var(--color-border);
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.booking-placeholder h3 { margin-bottom: 1rem; }
.booking-placeholder .text-muted { color: var(--color-text-muted); font-size: 0.9rem; }
.ticket-tailor-embed { margin: 0 auto; max-width: 800px; }

/* --- Workshop Status as Link --- */
a.workshop-status {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
a.workshop-status:hover {
    opacity: 0.85;
    color: var(--color-white);
}

/* --- Tutor Gallery Grid (tiles) --- */
.tutor-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}
.tutor-tile {
    text-decoration: none;
    color: var(--color-primary);
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tutor-tile:hover {
    transform: translateY(-6px);
    color: var(--color-primary);
}
.tutor-tile-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: var(--color-bg-alt);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.tutor-tile-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.tutor-tile:hover .tutor-tile-img-wrap img {
    transform: scale(1.06);
}
.tutor-tile-name {
    text-align: center;
    padding: 0.8rem 0.4rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* --- Breadcrumb --- */
.breadcrumb {
    margin-bottom: 1rem;
}
.breadcrumb a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--color-white);
}

/* --- Tutor Detail Page --- */
.tutor-detail-content {
    max-width: 900px;
    margin: 0 auto;
}
.tutor-bio {
    margin-bottom: 3rem;
    font-size: 1.05rem;
    line-height: 1.8;
}
.tutor-bio p {
    margin-bottom: 1.2rem;
}
.text-muted {
    color: var(--color-text-muted);
    font-style: italic;
}

/* --- Tutor Slideshow --- */
.tutor-slideshow {
    position: relative;
    margin-bottom: 3rem;
    background: var(--color-bg-alt);
    overflow: hidden;
}
.slideshow-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--color-bg-alt);
}
.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26,26,46,0.5);
    color: var(--color-white);
    border: none;
    font-size: 1.6rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.slideshow-btn:hover {
    background: rgba(26,26,46,0.8);
}
.slideshow-prev { left: 0; }
.slideshow-next { right: 0; }
.slideshow-dots {
    text-align: center;
    padding: 0.8rem 0;
    background: rgba(0,0,0,0.03);
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active {
    background: var(--color-accent);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* --- Tutor Contact Info --- */
.tutor-contact {
    margin-bottom: 3rem;
}
.contact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}
.contact-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    min-width: 80px;
}
.contact-list a {
    word-break: break-word;
}

/* --- Tutor Workshops Section --- */
.tutor-workshops {
    margin-top: 1rem;
}
.tutor-workshops h2 {
    margin-bottom: 2rem;
}
.tutor-workshops .workshop-card {
    margin-bottom: 2rem;
}
.workshop-past {
    opacity: 0.6;
}

/* --- Responsive: Tutor Grid --- */
@media (max-width: 1100px) {
    .tutor-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
@media (max-width: 900px) {
    .tutor-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    .slideshow-track { aspect-ratio: 4 / 3; }
}
@media (max-width: 768px) {
    .tutor-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .tutor-tile-name { font-size: 0.9rem; padding: 0.6rem 0.3rem; }
    .slideshow-btn { font-size: 1.2rem; padding: 0.5rem 0.7rem; }
    .lightbox-btn { font-size: 1.5rem; padding: 0.7rem 0.9rem; }
    .contact-list { flex-direction: column; gap: 0.8rem; }
    .tutor-workshops .workshop-card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tutor-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

/* --- Editor markers (invisible to user) --- */
[data-editable],
[data-image],
[data-video],
[data-block],
[data-field] {
    /* No visual change - markers are invisible */
}

/* Workshop guidance and direct links from the editor. */
.workshop-notice { background: #fbe5e5; border-left-color: #d99595; margin: 1.5rem 0 2rem; }
.workshop-card { scroll-margin-top: 110px; }
.workshop-card:target { outline: 3px solid #c9a84c; outline-offset: 5px; }
