/* ============================================================
   The Veil Brand Kit + LMS Layout Structure
============================================================ */

:root {
    --bone:      #F5F1EC;
    --ivory:     #FAF7F2;
    --veil:      #E8E1D6;
    --ink:       #1C1B18;
    --graphite:  #4A4742;
    --rose-nude: #C9A89A;
    --gold:      #9A7B4F;

    --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --sans:  "Inter", "Helvetica Neue", system-ui, sans-serif;
    --mono:  "JetBrains Mono", ui-monospace, monospace;

    --maxw:   1440px;
    --narrow: 720px;
    --pad-x:  clamp(1.25rem, 4vw, 2.5rem);
    --ease:   cubic-bezier(.2,.6,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bone);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; transition: color 300ms var(--ease), border-color 300ms var(--ease); }
a:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* Typography Basics */
h1, h2, h3, .h1, .h2, .h3, .display-6 { font-family: var(--serif) !important; font-weight: 300 !important; color: var(--ink) !important; letter-spacing: -0.015em; }
h4, h5, h6, .h4, .h5, .h6 { font-family: var(--serif) !important; font-weight: 400 !important; color: var(--ink) !important; }
p, .typography { font-family: var(--sans); color: var(--graphite); line-height: 1.65; font-size: 1rem; }
.text-muted { color: var(--graphite) !important; }
.text-primary { color: var(--ink) !important; }
.text-success { color: var(--gold) !important; }

/* ---------- EXACT BRAND COMPONENTS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.95rem 1.6rem; font-family: var(--sans); font-weight: 500;
    font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: 999px !important; cursor: pointer;
    white-space: nowrap; transition: background 300ms var(--ease), color 300ms var(--ease),
border-color 300ms var(--ease), transform 300ms var(--ease),
box-shadow 300ms var(--ease);
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(28, 27, 24, 0.28); border-bottom: 1px solid transparent; }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink) !important; color: var(--bone) !important; border-color: var(--ink) !important; }
.btn--primary:hover { background: transparent !important; color: var(--ink) !important; }
.btn--gold { background: var(--gold) !important; color: var(--bone) !important; border-color: var(--gold) !important; }
.btn--gold:hover { background: transparent !important; color: var(--gold) !important; }
.btn--ghost { background: transparent !important; color: var(--ink) !important; border-color: var(--ink) !important; }
.btn--ghost:hover { background: var(--ink) !important; color: var(--bone) !important; }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.7rem; }

.chapter__cta {
    display: inline-block; font-family: var(--sans); font-size: 0.7rem;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
    border-bottom: 1px solid var(--gold); padding-bottom: 2px; white-space: nowrap;
    transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
.chapter__cta:hover { color: var(--gold); border-bottom-color: transparent; }

.pill {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0.95rem; border: 1px solid var(--veil);
    border-radius: 999px; font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--graphite);
    background: rgba(255,255,255,0.55); white-space: nowrap;
}
.pill--gold { color: var(--gold); border-color: var(--gold); background: var(--ivory); }

.input-sample {
    width: 100%; max-width: 26rem; padding: 0.85rem 1rem; font-family: var(--sans);
    font-size: 1rem; color: var(--ink); background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--veil); border-radius: 12px;
    transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.input-sample:focus { border-color: var(--gold); outline: none; background: rgba(255, 255, 255, 0.85); box-shadow: none; }

.card-sample, .component-row {
    background: var(--ivory) !important;
    border: 1px solid var(--veil) !important;
    border-radius: 20px !important;
    padding: 1.5rem;
}

/* ---------- LMS LAYOUT STRUCTURE ---------- */
.wrapper { display: flex; flex: 1; overflow: hidden; background-color: var(--bone); }
.main-panel { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; background-color: var(--bone); }

/* Sidebar */
.sidebar {
    min-width: 260px; max-width: 260px; background: var(--ivory); border-right: 1px solid var(--veil);
    min-height: 100vh; display: flex; flex-direction: column; z-index: 1040; transition: transform 0.3s var(--ease);
}
@media (max-width: 991.98px) {
    .sidebar { position: fixed; transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
}
.sidebar .brand {
    height: 70px; padding: 0 1.5rem; display: flex; align-items: center; background-color: var(--ivory);
    color: var(--ink); border-bottom: 1px solid var(--veil); font-family: var(--serif);
    font-size: 1.6rem; font-style: italic; letter-spacing: -0.015em;
}
.sidebar .brand img { filter: brightness(0) saturate(100%) invert(8%) sepia(10%) saturate(792%) hue-rotate(8deg) brightness(97%) contrast(93%); }
.sidebar ul { padding: 0; margin-top: 10px; list-style: none; flex-grow: 1; overflow-y: auto; }
.sidebar a {
    display: flex; align-items: center; color: var(--graphite); text-decoration: none;
    font-family: var(--sans); font-weight: 500; text-transform: uppercase; font-size: 0.72rem;
    letter-spacing: 0.18em; padding: 1rem 1.5rem; transition: all 0.2s ease; border-bottom: none;
}
.sidebar a i { color: var(--gold); margin-right: 15px; font-size: 1rem; }
.sidebar a:hover { background: var(--bone); color: var(--ink); }
.sidebar a.active { background: rgba(232, 225, 214, 0.35); color: var(--ink); border-left: 3px solid var(--gold); }
.sidebar-footer { padding: 1rem; background-color: var(--ivory); border-top: 1px solid var(--veil); }

/* Topbar */
.topbar {
    height: 70px; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1020; background: var(--ivory); border-bottom: 1px solid var(--veil);
}

/* Utilities & Overrides for Bootstrap */
.card { background: var(--ivory) !important; border: 1px solid var(--veil) !important; border-radius: 20px !important; box-shadow: none !important; }
.card-header { background: transparent !important; border-bottom: 1px solid var(--veil) !important; }
.progress { background-color: var(--veil) !important; border-radius: 999px !important; overflow: hidden; box-shadow: none !important; }
.progress-bar.bg-primary { background-color: var(--ink) !important; }
.progress-bar.bg-success { background-color: var(--gold) !important; }
.bg-primary.rounded-circle { background-color: var(--ink) !important; color: var(--bone) !important; border: 1px solid var(--veil); }
.list-group-item { background: transparent !important; border-color: var(--veil) !important; }
.list-group-item.bg-light { background: rgba(232, 225, 214, 0.35) !important; }
.table { color: var(--ink) !important; }
.table thead th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--graphite); border-bottom: 1px solid var(--veil) !important; }
.table tbody td { border-bottom: 1px solid var(--veil) !important; }

/* Course Player Elements */
.player-wrapper { display: flex; height: 100vh; position: relative; }
.course-content { flex: 1; overflow-y: auto; position: relative; display: flex; flex-direction: column; background: var(--bone); }
.content-container { max-width: 1000px; width: 100%; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem); }
.course-sidebar { width: 350px; background: var(--ivory); border-right: 1px solid var(--veil); overflow-y: auto; flex-shrink: 0; transition: transform 0.3s var(--ease); z-index: 1040; height: 100%; }
.course-sidebar .sticky-top { background: var(--bone) !important; border-bottom: 1px solid var(--veil) !important; }
.module-header { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; color: var(--gold); padding: 2.5rem 20px 10px; letter-spacing: 0.22em; }
.lesson-link { display: flex; align-items: center; padding: 14px 20px; text-decoration: none; color: var(--graphite); border-bottom: 1px solid var(--veil); transition: all 0.3s var(--ease); font-family: var(--sans); font-size: 0.95rem; }
.lesson-link:hover { background: var(--bone); color: var(--ink); border-bottom: 1px solid var(--veil); }
.lesson-link.active { background: rgba(232, 225, 214, 0.35); color: var(--ink); border-left: 3px solid var(--gold); font-weight: 500; }
.lesson-icon { margin-right: 12px; font-size: 1.1rem; color: var(--rose-nude); transition: color 0.3s var(--ease); }
.lesson-link.active .lesson-icon { color: var(--gold); }
.lesson-link.viewed .lesson-icon { color: var(--ink); }
.module-step { background-color: var(--veil) !important; border-radius: 4px; transition: background-color 300ms var(--ease); }
.module-step.completed { background-color: var(--ink) !important; }
.module-step.active { background-color: var(--gold) !important; }
.ratio, audio { border-radius: 14px !important; overflow: hidden; border: 1px solid var(--veil); }
.form-check-input { width: 1.2rem; height: 1.2rem; border: 1px solid var(--graphite); background-color: var(--ivory); }
.form-check-input:checked { background-color: var(--ink) !important; border-color: var(--ink) !important; }
.form-check-input:focus { box-shadow: none !important; border-color: var(--gold) !important; }


/* ---------------------------------------------------------
   COURSE PLAYER SPECIFICS & COLOR INVERSIONS
   --------------------------------------------------------- */
/* 1. Main Content Area (White for readability) */
.course-content, .main-panel {
    background-color: #FFFFFF !important;
}

/* 2. Sidebar Area (Bone to visually separate from content) */
.course-sidebar, .sidebar {
    background-color: var(--bone) !important;
    border-right: 1px solid var(--veil) !important;
}
.course-sidebar .sticky-top {
    background-color: var(--bone) !important;
    border-bottom: 1px solid var(--veil) !important;
}

/* 3. Kill Bootstrap's Lingering Blues/Purples Globally */
.text-primary { color: var(--ink) !important; }
.bg-primary { background-color: var(--ink) !important; color: var(--bone) !important; }
.bg-primary.bg-opacity-10 { background-color: rgba(154, 123, 79, 0.1) !important; /* Soft Gold */ }
.spinner-border.text-primary { color: var(--gold) !important; }

/* 4. Active Sidebar Links */
.lesson-link.active {
    background-color: var(--ivory) !important;
    color: var(--ink) !important;
    border-left: 3px solid var(--gold) !important;
    font-weight: 500;
}
.lesson-link.active .lesson-icon { color: var(--gold) !important; }
.lesson-link:hover { background-color: var(--ivory) !important; }

.guarantees-sample__item {
    display: flex;
    align-items: flex-start; /* Keeps the number aligned to the top of the text */
    gap: 1.5rem; /* Adjusts space between the number and the text */
}

.guarantees-sample__item div {
    flex: 1; /* Ensures the text takes up the remaining space */
}



.section--padded {
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

main.content {
    padding: 10px;
}

/* Responsive adjustment */
@media (min-width: 768px) {
    .section--padded {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}