:root {
    --canvas: #f6f1e6;
    --paper: #efe4d1;
    --paper-dark: #e4d5ba;
    --ink: #2b2420;
    --ink-soft: #453b34;
    --terracotta: #c1512f;
    --terracotta-dark: #9c3f23;
    --burgundy: #7a2e2e;
    --teal: #3f7d68;
    --gold: #c99a3e;
    --muted: #8a7f6d;
    --line: #d9cbae;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--canvas);
    background-image:
        radial-gradient(circle at 15% 8%, rgba(193,81,47,.04), transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(63,125,104,.05), transparent 45%);
    overflow-x: hidden;
}

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

.container-art { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, h4, .font-display { font-family: var(--font-display); color: var(--ink); }

.section-eyebrow {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--terracotta);
    display: inline-block;
    margin-bottom: .25rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title .brush-underline {
    display: block;
    width: 120px;
    height: 14px;
    margin-top: .35rem;
}

.section-lead { color: var(--ink-soft); max-width: 640px; }

.section-pad { padding: 5rem 0; }
@media (max-width: 767.98px) { .section-pad { padding: 3.25rem 0; } }

.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #f3ead9; }
.bg-ink .section-title, .bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #f3ead9; }

/* ---------- Navbar ---------- */
.art-navbar {
    background: rgba(246, 241, 230, .92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow .2s;
}
.art-navbar.scrolled { box-shadow: 0 4px 18px rgba(43,36,32,.08); }
.art-navbar .navbar-brand {
    font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0; flex-shrink: 1;
    max-width: calc(100vw - 90px);
}
.art-navbar .navbar-brand img { max-height: 36px; width: auto; }
.art-navbar .navbar-brand span { color: var(--terracotta); }
.art-navbar .navbar-toggler { flex-shrink: 0; padding: .25rem .4rem; }
@media (max-width: 400px) {
    .art-navbar .navbar-brand { font-size: 1.1rem; }
}
.art-navbar .nav-link {
    color: var(--ink-soft);
    font-weight: 500;
    position: relative;
    margin: 0 .35rem;
}
.art-navbar .nav-link::after {
    content: '';
    position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--terracotta);
    transition: width .25s ease;
}
.art-navbar .nav-link:hover::after, .art-navbar .nav-link.active::after { width: 100%; }
.art-navbar .nav-link.active { color: var(--terracotta); }
.btn-enroll {
    background: var(--terracotta);
    color: #fff !important;
    border-radius: 999px;
    padding: .5rem 1.4rem !important;
    font-weight: 600;
}
.btn-enroll:hover { background: var(--terracotta-dark); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(43,36,32,.07) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    pointer-events: none;
}
.hero .badge-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: .4rem 1rem;
    font-size: .82rem; font-weight: 600; color: var(--terracotta);
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.12;
    font-weight: 700;
}
.hero h1 .highlight { color: var(--terracotta); position: relative; }
.hero .lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn-art-primary {
    background: var(--ink); color: #fff; border-radius: .3rem;
    padding: .7rem 1.6rem; font-weight: 600; border: 2px solid var(--ink);
}
.btn-art-primary:hover { background: transparent; color: var(--ink); }
.btn-art-outline {
    background: transparent; color: var(--ink); border-radius: .3rem;
    padding: .68rem 1.6rem; font-weight: 600; border: 2px solid var(--ink);
}
.btn-art-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Cards ---------- */
.art-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .6rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.art-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(43,36,32,.1); }

.stat-block { text-align: center; }
.stat-block .stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--terracotta); }
.stat-block .stat-lbl { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.course-card { overflow: hidden; }
.course-card .course-img { height: 220px; object-fit: cover; width: 100%; }
.course-card .course-body { padding: 1.5rem; }
.course-card .badge-level { background: var(--paper-dark); color: var(--ink); font-weight: 600; }
.price-tag { font-family: var(--font-display); font-size: 1.6rem; color: var(--terracotta); font-weight: 700; }
.price-strike { text-decoration: line-through; color: var(--muted); font-size: 1rem; }

/* ---------- Courses slider (Swiper) ---------- */
.courses-swiper {
    padding: .5rem .25rem 1.75rem;
    overflow: visible;
}
.courses-swiper .swiper-slide {
    height: auto;
    display: flex;
}
.courses-swiper .swiper-slide .course-card {
    width: 100%;
}
.swiper-nav-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line); color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    transition: background .2s, color .2s, border-color .2s;
}
.swiper-nav-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.swiper-nav-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }
.courses-pagination { display: flex; align-items: center; gap: .4rem; }
.courses-pagination .swiper-pagination-bullet {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--line); opacity: 1; margin: 0 !important;
    transition: background .2s, width .2s;
}
.courses-pagination .swiper-pagination-bullet-active {
    background: var(--terracotta); width: 22px; border-radius: 5px;
}

/* ---------- Curriculum ---------- */
.curriculum-tabs .nav-link {
    border-radius: 999px; margin-right: .5rem; margin-bottom: .5rem;
    color: var(--ink-soft); font-weight: 600; border: 1px solid var(--line);
}
.curriculum-tabs .nav-link.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* Curriculum accordion - each week is a collapsible panel on a vertical
   timeline (dot + connecting line), all expanded by default. */
.curriculum-accordion .accordion-item {
    background: transparent;
    border: none;
    border-left: 3px solid var(--line);
    padding: 0 0 .25rem 1.25rem;
    position: relative;
    margin-bottom: 1rem;
}
.curriculum-accordion .accordion-item::before {
    content: '';
    position: absolute; left: -8px; top: 2px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--terracotta); border: 3px solid var(--canvas);
}
.curriculum-accordion .accordion-header { margin: 0; }
.curriculum-accordion .accordion-button {
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 .25rem 0 0;
    color: var(--terracotta);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    text-align: left;
}
.curriculum-accordion .accordion-button::after {
    display: none; /* replace Bootstrap's default chevron with our own icon below */
}
/* Explicitly beat Bootstrap's own .accordion-button:not(.collapsed) rule
   (same specificity as our base rule above, so it can otherwise win the
   cascade depending on stylesheet order) which paints the open header blue. */
.curriculum-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--terracotta);
    box-shadow: none;
}
.curriculum-accordion .accordion-arrow {
    color: var(--muted);
    font-size: .85rem;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.curriculum-accordion .accordion-button[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
    color: var(--terracotta);
}
.curriculum-accordion .accordion-body {
    padding: .4rem 0 0;
}

/* ---------- Batches ---------- */
.batch-card { border-left: 4px solid var(--teal); }
.batch-card.status-full { border-left-color: var(--muted); opacity: .85; }
.batch-card.status-closed { border-left-color: var(--muted); opacity: .7; }
.batch-status-badge { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .3rem .6rem; border-radius: .3rem; }
.status-open .batch-status-badge, .status-running .batch-status-badge { background: rgba(63,125,104,.12); color: var(--teal); }
.status-upcoming .batch-status-badge { background: rgba(201,154,62,.15); color: var(--gold); }
.status-full .batch-status-badge, .status-closed .batch-status-badge, .status-completed .batch-status-badge, .status-cancelled .batch-status-badge { background: rgba(138,127,109,.15); color: var(--muted); }

/* ---------- Instructor ---------- */
.instructor-photo { border-radius: 1rem; box-shadow: 0 20px 40px rgba(43,36,32,.15); }

/* ---------- Gallery ---------- */
.gallery-grid { column-count: 3; column-gap: 1rem; }
@media (max-width: 991.98px) { .gallery-grid { column-count: 2; } }
@media (max-width: 575.98px) { .gallery-grid { column-count: 1; } }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden; border-radius: .5rem; cursor: pointer; }
.gallery-item img { width: 100%; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,36,32,.75), transparent 55%);
    opacity: 0; transition: opacity .25s; display: flex; align-items: flex-end; padding: .9rem; color: #fff; font-size: .85rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-filter-btn { border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; background: #fff; font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.gallery-filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: .8rem; padding: 2rem; border: 1px solid var(--line); }
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--terracotta); line-height: 1; }
.testimonial-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item { background: transparent; border: none; border-bottom: 1px solid var(--line); }
.faq-accordion .accordion-button { background: transparent; font-weight: 600; color: var(--ink); padding: 1.1rem 0; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--terracotta); }
.faq-accordion .accordion-body { padding: 0 0 1.1rem; color: var(--ink-soft); }
.faq-accordion .accordion-button::after { margin-left: auto; }

/* ---------- Contact ---------- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}
.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.contact-icon {
    flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(193, 81, 47, .1);
    color: var(--terracotta);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.contact-info-link { color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-info-link:hover { color: var(--terracotta); }
.contact-social-link {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--paper); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem; text-decoration: none;
    transition: background .2s, color .2s;
}
.contact-social-link:hover { background: var(--terracotta); color: #fff; }
.contact-map-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem;
    aspect-ratio: 4/3;
    border-radius: .6rem;
    background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 10px, var(--paper-dark) 10px, var(--paper-dark) 20px);
    color: var(--muted);
    font-size: .9rem;
}
.contact-map-placeholder i { font-size: 1.8rem; color: var(--terracotta); }

/* ---------- Enrollment ---------- */
.enroll-panel { background: #fff; border-radius: 1rem; box-shadow: 0 25px 60px rgba(43,36,32,.15); }
.form-floating>label { color: var(--muted); }

/* ---------- Footer ---------- */
.art-footer { background: var(--ink); color: #d9cbae; padding: 3.5rem 0 1.5rem; }
.art-footer a { color: #e9dfc9; text-decoration: none; }
.art-footer a:hover { color: var(--terracotta); }
.art-footer .social-icons a {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
    display: inline-flex; align-items: center; justify-content: center; margin-right: .5rem;
}
.art-footer .social-icons a:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* ---------- Mobile drawer navigation (offcanvas) ---------- */
.offcanvas {
    --bs-offcanvas-width: min(340px, 86vw);
    z-index: 1091;
    background: var(--canvas);
}
.offcanvas-backdrop {
    z-index: 1085;
}
.offcanvas-backdrop.show {
    opacity: .55;
}
.offcanvas-header {
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.25rem;
}
.offcanvas-header .offcanvas-title {
    color: var(--ink);
    font-size: 1.25rem;
}
.offcanvas-body {
    padding: 0.5rem 0.75rem 1.5rem;
}
.offcanvas-body .navbar-nav {
    gap: .1rem;
}
.offcanvas-body .nav-item {
    border-bottom: 1px solid var(--line);
}
.offcanvas-body .nav-item:last-child {
    border-bottom: none;
    margin-top: .75rem;
}
.offcanvas-body .nav-link {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 1.05rem;
    padding: .9rem .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.offcanvas-body .nav-link .bi-chevron-right {
    font-size: .8rem;
    color: var(--muted);
}
.offcanvas-body .nav-link.btn-enroll {
    justify-content: center;
    padding: .8rem 1rem;
}

/* ---------- Floating actions ---------- */
.whatsapp-float {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1060;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: bottom .2s, opacity .2s;
}
.sticky-enroll-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
    background: var(--ink); color: #fff; padding: .7rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem;
    box-shadow: 0 -6px 20px rgba(0,0,0,.15);
    padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { .sticky-enroll-bar { display: none !important; } }

/* Keep the WhatsApp button clear of the sticky mobile enroll bar, and pad
   the page bottom so the bar never covers the last bit of footer content. */
@media (max-width: 767.98px) {
    body.has-sticky-cta .whatsapp-float { bottom: 5.25rem; }
    body.has-sticky-cta { padding-bottom: 3.75rem; }
}

/* Hide floating buttons while the mobile drawer is open so they don't
   sit on top of it. */
body.drawer-open .whatsapp-float,
body.drawer-open .sticky-enroll-bar {
    display: none !important;
}

/* ---------- Section background image (CMS-uploaded) ---------- */
.has-bg-image {
    background-size: cover;
    background-position: center;
    position: relative;
}
.has-bg-image::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(246,241,230,.90);
    z-index: 0;
}
.has-bg-image.bg-paper::before { background: rgba(239,228,209,.90); }
.has-bg-image.bg-ink::before { background: rgba(43,36,32,.86); }
.has-bg-image > .container-art { position: relative; z-index: 1; }

.hero.has-bg-image::before { background: rgba(246,241,230,.72); }

.course-banner {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: .6rem;
    margin-bottom: 1.75rem;
}

/* Per-week image gallery slider */
.week-gallery {
    position: relative;
    margin: .85rem 0 1.1rem;
}
.week-images-swiper {
    border: 6px solid var(--ink);
    border-radius: .5rem;
    background: var(--ink);
    overflow: hidden;
    /* Shrink-wraps to however many images actually exist instead of
       always reserving space for a fixed slide count. */
    width: fit-content;
    max-width: 100%;
    /* Swiper's own default CSS centers .swiper with auto margins - override
       so the frame lines up flush-left under the heading/description above. */
    margin-left: 0;
    margin-right: 0;
}
.week-images-swiper .swiper-slide {
    height: auto;
    width: 150px;
    padding: 6px;
    box-sizing: border-box;
    background: var(--paper);
}
.week-images-swiper .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--paper);
    border-radius: .15rem;
    display: block;
    /* Casual-copy deterrent only - a rendered image can never be fully
       hidden from the browser (DevTools/screenshots always see it). */
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
@media (max-width: 575.98px) {
    .week-images-swiper .swiper-slide { width: 110px; }
}
.week-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--ink);
    border: none; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    z-index: 2;
    transition: background .2s, color .2s;
}
.week-gallery-nav:hover { background: var(--terracotta); color: #fff; }
.week-gallery-nav.swiper-button-disabled { opacity: .3; pointer-events: none; }
.week-gallery-prev { left: -14px; }
.week-gallery-next { right: -14px; }
@media (max-width: 480px) {
    .week-gallery-prev { left: -8px; }
    .week-gallery-next { right: -8px; }
}

.why-card-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: .5rem;
    margin-bottom: .75rem;
}

/* ---------- Divider ---------- */
.brush-divider { display: block; width: 100%; height: 24px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .art-card, .gallery-item img { transition: none; }
}

/* ---------- Utility ---------- */
.text-terracotta { color: var(--terracotta); }
.text-muted-soft { color: var(--muted); }
.badge-soft { background: var(--paper-dark); color: var(--ink); font-weight: 600; }
