/* ===========================
   CSS Reset and Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    /* Primary Colors */
    --sage-green: #7A9B8E;
    --warm-gray: #6B6B6B;
    
    /* Secondary Colors */
    --soft-blue: #8FB4CC;
    --warm-beige: #F5F0E8;
    
    /* Accent Colors */
    --coral: #E89F87;
    --deep-teal: #4A6B6B;
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #E5E5E5;
    --charcoal: #2D2D2D;
    --lighter-gray: #8B8B8B;
    
    /* Typography */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 24px;
    --font-3xl: 32px;
    --font-4xl: 40px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ===========================
   Base Typography
   =========================== */
body {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-base);
    line-height: 1.5;
    color: var(--warm-gray);
    background-color: var(--off-white);
}

h1 {
    font-size: var(--font-4xl);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--font-3xl);
    font-weight: 600;
    line-height: 1.25;
    color: var(--charcoal);
    margin: var(--space-xl) 0 var(--space-md) 0;
}

h3 {
    font-size: var(--font-2xl);
    font-weight: 500;
    line-height: 1.33;
    color: var(--warm-gray);
    margin: var(--space-lg) 0 var(--space-sm) 0;
}

h4 {
    font-size: var(--font-xl);
    font-weight: 500;
    line-height: 1.4;
    color: var(--warm-gray);
    margin: var(--space-md) 0 var(--space-sm) 0;
}

p {
    margin-bottom: var(--space-md);
}

.body-large {
    font-size: var(--font-lg);
    line-height: 1.56;
}

.body-small {
    font-size: var(--font-sm);
    line-height: 1.43;
}

.caption {
    font-size: var(--font-xs);
    line-height: 1.33;
    color: var(--lighter-gray);
    letter-spacing: 0.01em;
}

.reading-content {
    font-family: 'Merriweather', serif;
    font-size: var(--font-base);
    line-height: 1.75;
    max-width: 680px;
}

/* ===========================
   Links
   =========================== */
a {
    color: var(--soft-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

a.inline-link {
    color: var(--sage-green);
    text-decoration: underline;
}

/* ===========================
   Lists
   =========================== */
ul, ol {
    margin-left: 20px;
    margin-bottom: var(--space-md);
}

ul li, ol li {
    margin-bottom: var(--space-sm);
}

ul li::marker {
    color: var(--sage-green);
}

ol li::marker {
    color: var(--sage-green);
    font-weight: 500;
}

/* ===========================
   Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xxl) 0;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: var(--font-base);
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 120px;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--sage-green);
    color: white !important; /* Force white text */
}

.btn-primary:hover {
    background: #6B8A7F;
    color: white !important; /* Keep white on hover */
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary {
    background: white;
    color: var(--sage-green);
    border: 2px solid var(--sage-green);
}

.btn-secondary:hover {
    background: rgba(122, 155, 142, 0.1);
    text-decoration: none;
}

.btn-text {
    background: none;
    color: var(--soft-blue);
    padding: 8px 12px;
    min-width: auto;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================
   Cards
   =========================== */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--font-xl);
    font-weight: 500;
    color: var(--charcoal);
    margin: 0;
}

.card-subtitle {
    font-size: var(--font-sm);
    color: var(--lighter-gray);
    margin-top: var(--space-xs);
}

.card-body {
    color: var(--warm-gray);
}

.card-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: var(--space-sm);
}

/* ===========================
   Site Header
   =========================== */
.site-header {
    background: white;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.logo {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--sage-green);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li a {
    color: var(--warm-gray);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) 0;
    transition: color 0.2s ease;
}

.nav-menu li a:hover {
    color: var(--sage-green);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-lg);
    color: var(--warm-gray);
    cursor: pointer;
}

/* ===========================
   Site Footer
   =========================== */
.site-footer {
    background: var(--charcoal);
    color: var(--light-gray);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    color: white;
    font-size: var(--font-base);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

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

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #3A3A3A;
    padding-top: var(--space-lg);
    text-align: center;
    font-size: var(--font-sm);
}

.footer-bottom a {
    color: var(--light-gray);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: none;
}

/* ===========================
   Forms
   =========================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.form-label.required::after {
    content: '*';
    color: var(--coral);
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: var(--font-base);
    color: var(--warm-gray);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--soft-blue);
    border-width: 2px;
    padding: 11px 15px;
}

.form-input.error {
    border-color: var(--coral);
    border-width: 2px;
    padding: 11px 15px;
}

.form-helper {
    font-size: 12px;
    color: var(--lighter-gray);
    margin-top: var(--space-xs);
}

.form-helper.error {
    color: var(--coral);
}

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

select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.radio-wrapper, .checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-wrapper input, .checkbox-wrapper input {
    position: absolute;
    opacity: 0;
}

.radio-custom, .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    margin-right: var(--space-sm);
    position: relative;
    transition: all 0.2s ease;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-wrapper input:checked ~ .radio-custom,
.checkbox-wrapper input:checked ~ .checkbox-custom {
    background: var(--sage-green);
    border-color: var(--sage-green);
}

.radio-wrapper input:checked ~ .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-wrapper input:checked ~ .checkbox-custom::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-gray);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-switch-track {
    background: var(--sage-green);
}

.toggle-switch input:checked + .toggle-switch-track .toggle-slider {
    transform: translateX(24px);
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ===========================
   Callouts & Alerts
   =========================== */
.callout {
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
}

.callout-icon {
    margin-right: var(--space-md);
    font-size: 20px;
}

.callout-content h4 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 16px;
}

.callout-content p {
    margin: 0;
    font-size: 14px;
}

.callout.info {
    background: rgba(143, 180, 204, 0.1);
    border-left: 4px solid var(--soft-blue);
}

.callout.info .callout-icon {
    color: var(--soft-blue);
}

.callout.success {
    background: rgba(122, 155, 142, 0.1);
    border-left: 4px solid var(--sage-green);
}

.callout.success .callout-icon {
    color: var(--sage-green);
}

.callout.warning {
    background: rgba(232, 159, 135, 0.1);
    border-left: 4px solid var(--coral);
}

.callout.warning .callout-icon {
    color: var(--coral);
}

.tip-box {
    background: var(--warm-beige);
    border: 1px solid #E5D4C1;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: var(--space-md);
}

.tip-box .tip-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: var(--space-xs);
}

/* ===========================
   Lists & Checklists
   =========================== */
.checklist {
    list-style: none;
    margin-left: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    margin-right: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox.checked {
    background: var(--sage-green);
    border-color: var(--sage-green);
}

.checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

/* ===========================
   Blockquotes
   =========================== */
blockquote {
    border-left: 4px solid var(--sage-green);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-style: italic;
    color: var(--deep-teal);
}

blockquote cite {
    display: block;
    margin-top: var(--space-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    color: var(--warm-gray);
}

blockquote cite::before {
    content: '— ';
}

/* ===========================
   Code & Technical
   =========================== */
code {
    background: #F5F5F5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', monospace;
    font-size: 14px;
    color: #D73A49;
}

pre {
    background: var(--charcoal);
    color: #F8F8F2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: var(--space-md);
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ===========================
   Tables
   =========================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-md);
}

th {
    background: var(--warm-beige);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--light-gray);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 14px;
}

tr:hover {
    background: var(--off-white);
}

/* ===========================
   Quiz Elements
   =========================== */
.quiz-question {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--sage-green);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-right: var(--space-md);
}

.answer-option {
    padding: 16px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option:hover {
    border-color: var(--soft-blue);
}

.answer-option.selected {
    border-color: var(--sage-green);
    background: rgba(122, 155, 142, 0.05);
}

.quiz-progress {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.quiz-progress-fill {
    height: 100%;
    background: var(--sage-green);
    width: 40%;
    transition: width 0.3s ease;
}

/* ===========================
   Accordions
   =========================== */
.accordion-item {
    margin-bottom: var(--space-sm);
}

.accordion-header {
    background: white;
    padding: 20px 24px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.accordion-header:hover {
    background: var(--off-white);
}

.accordion-icon {
    color: var(--sage-green);
    transition: transform 0.2s ease;
}

.accordion-item.open .accordion-header {
    border-radius: 8px 8px 0 0;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    background: var(--off-white);
    padding: 20px 24px;
    border: 1px solid var(--light-gray);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.accordion-item.open .accordion-content {
    display: block;
}

/* ===========================
   Audio Player
   =========================== */
.audio-player {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.play-button {
    width: 48px;
    height: 48px;
    background: var(--sage-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.play-button:hover {
    background: #6B8A7F;
}

.play-button::after {
    content: '▶';
    color: white;
    font-size: 16px;
    margin-left: 3px;
}

.play-button.playing::after {
    content: '❚❚';
    margin-left: 0;
}

.audio-progress {
    flex: 1;
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.audio-progress-fill {
    height: 100%;
    background: var(--sage-green);
    border-radius: 3px;
    width: 30%;
}

.audio-time {
    font-size: 14px;
    color: var(--warm-gray);
    min-width: 80px;
}

/* ===========================
   Module Cards
   =========================== */
.module-card {
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--sage-green);
}

.module-card.completed::before {
    background: var(--sage-green);
}

.module-card.in-progress::before {
    background: var(--soft-blue);
}

.module-card.locked::before {
    background: var(--light-gray);
}

.module-card.locked {
    opacity: 0.6;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--warm-beige);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 24px;
}

/* ===========================
   Navigation Components
   =========================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

.breadcrumb-item {
    color: var(--warm-gray);
}

.breadcrumb-item a {
    color: var(--warm-gray);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--sage-green);
}

.breadcrumb-separator {
    color: var(--lighter-gray);
}

.breadcrumb-item.active {
    color: var(--sage-green);
    font-weight: 500;
}

.tabs {
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: var(--space-lg);
}

.tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-lg);
}

.tab {
    padding: var(--space-md) 0;
    color: var(--warm-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--sage-green);
}

.tab.active {
    color: var(--sage-green);
    border-bottom-color: var(--sage-green);
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--warm-gray);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--sage-green);
    color: var(--sage-green);
}

.page-link.active {
    background: var(--sage-green);
    color: white;
    border-color: var(--sage-green);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================
   Progress Indicators
   =========================== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: var(--sage-green);
    transition: width 0.3s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--warm-gray);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: var(--space-xl);
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--light-gray);
    z-index: 0;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step.completed .step-circle {
    background: var(--sage-green);
    border-color: var(--sage-green);
    color: white;
}

.step.active .step-circle {
    border-color: var(--sage-green);
    color: var(--sage-green);
}

.step-label {
    font-size: 14px;
    color: var(--warm-gray);
    text-align: center;
}

/* ===========================
   Modals
   =========================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-gray);
    font-size: 24px;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--charcoal);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* ===========================
   Badges & Tags
   =========================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-default {
    background: var(--light-gray);
    color: var(--warm-gray);
}

.badge-primary {
    background: var(--sage-green);
    color: white;
}

.badge-info {
    background: var(--soft-blue);
    color: white;
}

.badge-warning {
    background: var(--coral);
    color: white;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 14px;
    background: var(--warm-beige);
    color: var(--warm-gray);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #E5D4C1;
}

.tag-remove {
    margin-left: var(--space-sm);
    cursor: pointer;
    color: var(--lighter-gray);
    font-size: 16px;
    line-height: 1;
}

.tag-remove:hover {
    color: var(--warm-gray);
}

/* ===========================
   User Elements
   =========================== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    background: var(--sage-green);
    color: white;
}

.avatar.large {
    width: 60px;
    height: 60px;
    font-size: 20px;
}

.avatar.small {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--charcoal);
}

.user-info p {
    margin: 0;
    font-size: 14px;
    color: var(--lighter-gray);
}

/* ===========================
   Notifications
   =========================== */
.notification {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    background: white;
    border-radius: 8px;
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-icon {
    font-size: 20px;
}

.notification.success {
    border-left: 4px solid var(--sage-green);
}

.notification.success .notification-icon {
    color: var(--sage-green);
}

.notification.error {
    border-left: 4px solid var(--coral);
}

.notification.error .notification-icon {
    color: var(--coral);
}

/* ===========================
   Search
   =========================== */
.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--light-gray);
    border-radius: 22px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--soft-blue);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lighter-gray);
}

/* ===========================
   Dropdown
   =========================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin-top: var(--space-xs);
    display: none;
    z-index: 100;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--warm-gray);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--off-white);
}

.dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: var(--space-xs) 0;
}

/* ===========================
   Tooltips
   =========================== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--charcoal);
}

/* ===========================
   File Upload
   =========================== */
.file-upload {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--sage-green);
    background: var(--off-white);
}

.file-upload.drag-over {
    border-color: var(--soft-blue);
    background: rgba(143, 180, 204, 0.05);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--lighter-gray);
    margin-bottom: var(--space-md);
}

.file-upload-text {
    color: var(--warm-gray);
    margin-bottom: var(--space-sm);
}

.file-upload-hint {
    font-size: 14px;
    color: var(--lighter-gray);
}

/* ===========================
   Video Player
   =========================== */
.video-player {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-play-button:hover {
    transform: scale(1.1);
}

.video-play-button::after {
    content: '▶';
    font-size: 30px;
    color: var(--charcoal);
    margin-left: 5px;
}

/* ===========================
   Ratings
   =========================== */
.rating {
    display: flex;
    gap: var(--space-xs);
}

.star {
    font-size: 20px;
    color: var(--light-gray);
    cursor: pointer;
    transition: color 0.2s ease;
}

.star.filled {
    color: #FFB800;
}

.star:hover,
.star.hover {
    color: #FFB800;
}

/* ===========================
   Stats
   =========================== */
.stat-card {
    text-align: center;
    padding: var(--space-lg);
}

.stat-value {
    font-size: 36px;
    font-weight: 600;
    color: var(--sage-green);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 14px;
    color: var(--lighter-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-change {
    font-size: 14px;
    margin-top: var(--space-sm);
}

.stat-change.positive {
    color: var(--sage-green);
}

.stat-change.negative {
    color: var(--coral);
}

/* ===========================
   Timeline
   =========================== */
.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
}

.timeline-marker {
    position: absolute;
    left: -20px;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--sage-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--sage-green);
    border-radius: 50%;
}

.timeline-content {
    background: white;
    padding: var(--space-md);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-size: 12px;
    color: var(--lighter-gray);
    margin-bottom: var(--space-xs);
}

/* ===========================
   Loading & States
   =========================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    background: rgba(232, 159, 135, 0.1);
    border-left: 4px solid var(--coral);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
}

.success-message {
    background: rgba(122, 155, 142, 0.1);
    border-left: 4px solid var(--sage-green);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--light-gray);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    h1 {
        font-size: var(--font-3xl);
    }
    
    h2 {
        font-size: var(--font-2xl);
    }
    
    .reading-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin-bottom: var(--space-sm);
    }
    
    .card-footer {
        flex-direction: column;
    }
}

/* ===========================
   Utility Classes
   =========================== */

/* Text Alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Text Sizes */
.text-sm { font-size: var(--font-sm); }
.text-lg { font-size: var(--font-lg); }

/* Max Width Containers */
.max-width-600 { max-width: 600px; margin: 0 auto; }
.max-width-800 { max-width: 800px; margin: 0 auto; }
.max-width-900 { max-width: 900px; margin: 0 auto; }

/* Margin Utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-xxl { margin-bottom: var(--space-xxl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-xxl { margin-top: var(--space-xxl); }

/* Padding Utilities */
.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }

.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }

/* Button Modifiers */
.btn-large {
    font-size: 18px;
    padding: 16px 32px;
}

.btn-small {
    font-size: 14px;
    padding: 8px 16px;
    min-width: 80px;
}

/* ===========================
   Grid Utilities
   =========================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-lg);
}

.grid-gap-sm { gap: var(--space-sm); }
.grid-gap-md { gap: var(--space-md); }

/* ===========================
   Background Sections
   =========================== */
.section-beige {
    background: var(--warm-beige);
    padding: var(--space-xl) 0;
}

.section-gray {
    background: #F9F9F9;
    padding: var(--space-xl) 0;
}

/* ===========================
   List Utilities
   =========================== */
.list-none {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-none li {
    padding: var(--space-xs) 0;
}

/* ===========================
   Notice/Alert Boxes
   =========================== */
.notice-box {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--off-white);
}

.notice-box.success {
    background: #F0F9F5;
}

/* ===========================
   Display Utilities
   =========================== */
.d-grid { display: grid; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ===========================
   Responsive Grid
   =========================== */
@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-3-mobile-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .grid-3-mobile-2 {
        grid-template-columns: 1fr;
    }
}

/* Text colors */
.text-soft-blue { color: var(--soft-blue); }
.text-deep-teal { color: var(--deep-teal); }

/* Backgrounds */
.bg-soft-blue { background-color: var(--soft-blue); }
.bg-deep-teal { background-color: var(--deep-teal); }
.section-soft-blue { background-color: rgba(143, 180, 204, 0.1); }

/* Button variations */
.btn-info {
    background: var(--soft-blue);
    color: white;
}

.btn-info:hover {
    background: #7FA4BC;
}

/* Card variations */
.card-highlight-blue {
    border-left: 4px solid var(--soft-blue);
}

/* Badge variations */
.badge-info already exists but we could add:
.badge-teal {
    background: var(--deep-teal);
    color: white;
}

.section-header-teal h2 {
    color: var(--deep-teal);
}

/* Legal/Policy Content Styles */
.reading-content h2 {
    margin-top: 40px;
    color: var(--sage-green);
}

.reading-content h3 {
    margin-top: 30px;
    font-size: var(--font-lg);
}

.reading-content h4 {
    margin-top: 20px;
    font-size: var(--font-base);
    font-weight: 600;
}

.reading-content h2.text-deep-teal {
    color: var(--deep-teal);
}

.reading-content ul,
.reading-content ol {
    margin-left: 30px;
}

.reading-content address {
    font-style: normal;
    background: var(--warm-beige);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.reading-content table {
    margin: var(--space-lg) 0;
}

/* Spacing for legal content components */
.reading-content .callout,
.reading-content .tip-box,
.reading-content .card {
    margin: var(--space-xl) 0;
}

/* ===========================
   Navigation States
   =========================== */
.nav-menu a.active {
    color: var(--sage-green);
    font-weight: 600;
}

/* ===========================
   Background Sections (add to existing section)
   =========================== */
.section-gray {
    background: #F9F9F9;
    padding: var(--space-xl) 0;
}

/* ===========================
   Button Utilities (add to existing button section)
   =========================== */
.btn-full-width {
    width: 100%;
}

.btn-coral {
    background: var(--coral);
    color: white !important;
}

.btn-coral:hover {
    background: #D98F77;
    color: white !important;
    transform: translateY(-1px);
    text-decoration: none;
}