/**
 * eFit Dashboard Styles v3.0.0
 *
 * DASHBOARD v3.0 - ENHANCED UX STYLES
 * Priority: Grade -> Deadlines -> Actions -> Activity -> Analytics
 *
 * WCAG 2.2 AAA Compliant
 * Bootstrap 5.3.8 Compatible
 */

/* ============================================================================
   CSS Custom Properties
   ============================================================================ */
:root {
    --grade-a: #059669;
    --grade-b: #0891b2;
    --grade-c: #ca8a04;
    --grade-d: #ea580c;
    --grade-f: #dc2626;
    --primary-600: #0066cc;
    --primary-700: #0052a3;
    --success-500: #22c55e;
    --warning-500: #f59e0b;
    --danger-500: #ef4444;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-500: #3b82f6;
    --primary-800: #1e40af;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* ============================================================================
   SKIP LINKS - Hidden until focused (WCAG Accessibility)
   Use position:fixed to escape #wrapper positioning context
   ============================================================================ */
.skipLinks,
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    z-index: 99999;
    transition: top 0.2s ease;
}

.skipLinks:focus,
.skip-link:focus {
    top: 1rem;
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.skip-links {
    position: fixed;
    height: 0;
    overflow: visible;
    width: 100%;
}

/* ============================================================================
   SIDEBAR LAYOUT FIX - Student Dashboard
   ============================================================================ */

/* Override #wrapper 90% width to eliminate gaps */
#wrapper {
    width: 100% !important;
    margin: 0 !important;
}

/* Sidebar positioning */
.admin-sidebar,
#left-menu.admin-sidebar {
    width: 240px;
    background: #ffffff;
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    border-right: 1px solid var(--neutral-200);
    transition: width 0.3s ease;
}

/* Remove extra margin from navbar - hamburger should be next to logo */
.navbar-custom {
    margin-left: 0 !important;
    flex: 1;
}

/* Content page margin to account for sidebar - ultra specific selectors */
.content-page,
body .content-page,
#wrapper .content-page,
body #wrapper .content-page,
div.content-page {
    margin-left: 240px !important;
    border-left: none !important;
    padding-left: 0 !important;
}

/* Enlarged/collapsed sidebar state */
.enlarged .admin-sidebar,
.enlarged #left-menu.admin-sidebar {
    width: 70px;
}

.enlarged .content-page,
body.enlarged .content-page,
body.enlarged #wrapper .content-page {
    margin-left: 70px !important;
}

/* Override mobile-first media query from style.css on larger screens */
@media (min-width: 769px) {
    .content-page,
    body .content-page,
    #wrapper .content-page,
    body #wrapper .content-page,
    div.content-page {
        margin-left: 240px !important;
        border-left: none !important;
        padding-left: 0 !important;
    }
    .enlarged .content-page,
    body.enlarged .content-page,
    body.enlarged #wrapper .content-page {
        margin-left: 70px !important;
    }
}

/* Dashboard Main Container */
.dashboard-main {
    background: linear-gradient(180deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    min-height: auto;
    padding-bottom: 3rem;
    flex: 1 0 auto; /* Allow flexbox parent to control height, don't overlap footer */
}

/* Fix footer positioning - override absolute to work with flexbox layout */
.content-page .content {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 70px) !important;
}

.content-page .content > main,
.content-page .content > .dashboard-main,
.content-page .content > .container-fluid {
    flex: 1 0 auto;
}

.content-page .content .footer,
.content .footer,
footer.footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

/* ============================================================================
   COMPACT HEADER BAR (Replaces Hero)
   ============================================================================ */
.dashboard-header-bar {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.header-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-600);
    object-fit: cover;
}

.header-greeting h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
    line-height: 1.3;
}

.header-sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--neutral-600);
}

.sync-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-500);
    animation: pulse-sync 2s infinite;
}

.sync-indicator.warning {
    background: var(--warning-500);
}

.sync-indicator.error {
    background: var(--danger-500);
    animation: none;
}

@keyframes pulse-sync {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .sync-indicator { animation: none; }
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-header-primary {
    background: var(--primary-600);
    color: white;
    border: none;
}

.btn-header-primary:hover {
    background: var(--primary-700);
    color: white;
}

.btn-header-secondary {
    background: white;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.btn-header-secondary:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
    border-color: var(--neutral-400);
}

/* ============================================================================
   GRADE HERO CARD - PRIMARY FOCUS
   ============================================================================ */
.grade-hero-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--neutral-200);
}

.grade-hero-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 991.98px) {
    .grade-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.grade-display {
    text-align: center;
}

.grade-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-md);
}

.grade-circle.grade-a { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.grade-circle.grade-b { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.grade-circle.grade-c { background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%); }
.grade-circle.grade-d { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.grade-circle.grade-f { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }

.grade-letter {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.grade-percent {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-top: 0.25rem;
}

.grade-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grade-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.grade-progress-text {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    margin: 0;
}

.grade-progress-text strong {
    color: var(--neutral-900);
}

.grade-progress-bar {
    height: 10px;
    background: var(--neutral-200);
    border-radius: 5px;
    overflow: hidden;
    max-width: 300px;
}

.grade-progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.grade-progress-fill.grade-a { background: var(--grade-a); }
.grade-progress-fill.grade-b { background: var(--grade-b); }
.grade-progress-fill.grade-c { background: var(--grade-c); }
.grade-progress-fill.grade-d { background: var(--grade-d); }
.grade-progress-fill.grade-f { background: var(--grade-f); }

.grade-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    min-width: 180px;
}

.quick-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
}

.quick-stat-icon.steps { background: var(--primary-600); }
.quick-stat-icon.minutes { background: #7c3aed; }
.quick-stat-icon.heart { background: #e11d48; }

.quick-stat-content {
    display: flex;
    flex-direction: column;
}

.quick-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.2;
}

.quick-stat-label {
    font-size: 0.75rem;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================================================
   ACTION ITEMS - URGENT TASKS
   ============================================================================ */
.action-items-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--warning-500);
}

.action-items-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.action-items-header i {
    font-size: 1.25rem;
    color: var(--warning-500);
}

.action-items-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.action-items-count {
    background: var(--warning-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    margin-left: auto;
}

.action-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.2s ease;
}

.action-item:hover {
    background: white;
    border-color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.action-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.action-item-icon.sync { background: #dbeafe; color: #1d4ed8; }
.action-item-icon.test { background: #fef3c7; color: #92400e; }
.action-item-icon.paper { background: #e0e7ff; color: #4338ca; }
.action-item-icon.avatar { background: #fce7f3; color: #be185d; }

.action-item-content {
    flex: 1;
    min-width: 0;
}

.action-item-title {
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
}

.action-item-meta {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    margin: 0;
}

.action-item-meta.urgent {
    color: var(--danger-500);
    font-weight: 600;
}

.action-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--primary-600);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
    min-width: 44px;
    transition: background 0.2s ease;
}

.action-item-btn:hover {
    background: var(--primary-700);
    color: white;
}

.action-item-btn-solid {
    background: #1e40af;
    color: #fff;
    border: 1px solid #1e3a8a;
}

.action-item-btn-solid:hover {
    background: #1e3a8a;
    color: #fff;
}

.no-actions-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #dcfce7;
    border-radius: var(--radius-md);
    color: #166534;
}

.no-actions-message i {
    font-size: 1.5rem;
}

/* ============================================================================
   DEADLINES CARD - HIGH PRIORITY IN SIDEBAR
   ============================================================================ */
.deadlines-priority-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fbbf24;
}

.deadlines-priority-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.deadlines-priority-header i {
    font-size: 1.5rem;
    color: #92400e;
}

.deadlines-priority-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #78350f;
    margin: 0;
}

.deadline-priority-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--warning-500);
}

.deadline-priority-item:last-child {
    margin-bottom: 0;
}

.deadline-priority-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.deadline-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #92400e;
}

.deadline-countdown i {
    font-size: 1rem;
}

.deadline-date {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    margin-top: 0.25rem;
}

.no-deadlines-msg {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    color: #166534;
}

.no-deadlines-msg i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ============================================================================
   PROGRESS & TRENDS SECTION
   ============================================================================ */
.progress-trends-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .progress-trends-row {
        grid-template-columns: 1fr;
    }
}

.card-widget {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--neutral-200);
}

.card-widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.card-widget-header i {
    font-size: 1.25rem;
    color: var(--primary-600);
}

.card-widget-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

/* Semester Progress */
.semester-progress-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-visual {
    position: relative;
}

.progress-track {
    height: 12px;
    background: var(--neutral-200);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-600) 0%, #7c3aed 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--neutral-600);
}

.progress-label i {
    font-size: 0.875rem;
}

.progress-percentage {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-600);
}

/* Trends */
.trends-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trend-box {
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    text-align: center;
}

.trend-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.trend-value.positive { color: var(--grade-a); }
.trend-value.negative { color: var(--danger-500); }
.trend-value.neutral { color: var(--neutral-600); }

.trend-label {
    font-size: 0.75rem;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Assessment Status */
.assessment-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
}

.assessment-status-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.assessment-badges-row {
    display: flex;
    gap: 0.75rem;
}

.assessment-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
}

.assessment-badge.complete {
    background: #dcfce7;
    color: #166534;
}

.assessment-badge.incomplete {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================================================
   CHARTS SECTION
   ============================================================================ */
.charts-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.charts-tabs {
    display: flex;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.charts-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-600);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-height: 44px;
}

.charts-tab:hover {
    color: var(--primary-600);
    background: white;
}

.charts-tab.active {
    color: var(--primary-600);
    background: white;
    border-bottom-color: var(--primary-600);
}

.charts-tab:focus-visible {
    outline: 3px solid var(--primary-600);
    outline-offset: -3px;
}

.chart-panel {
    padding: 1.5rem;
}

.chart-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0 0 1rem 0;
}

.chart-container {
    height: 280px;
}

.chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--neutral-600);
    text-align: center;
}

.chart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chart-empty p {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.chart-empty small {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.chart-data-table {
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
}

.chart-data-table table {
    margin: 0;
    font-size: 0.8125rem;
}

/* ============================================================================
   LEADERBOARD - COLLAPSIBLE
   ============================================================================ */
.leaderboard-section {
    margin-bottom: 1.5rem;
}

.leaderboard-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    cursor: pointer;
}

.leaderboard-header:hover {
    background: var(--neutral-100);
}

.leaderboard-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.leaderboard-title i {
    font-size: 1.25rem;
    color: #ca8a04;
}

.leaderboard-title h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.leaderboard-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.leaderboard-toggle i {
    transition: transform 0.3s ease;
}

.leaderboard-toggle.collapsed i {
    transform: rotate(-180deg);
}

.leaderboard-body {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.leaderboard-body.collapsed {
    max-height: 0;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: var(--neutral-50);
}

.leaderboard-table th {
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-600);
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.leaderboard-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--neutral-100);
    vertical-align: middle;
}

.leaderboard-table tbody tr:hover {
    background: var(--neutral-50);
}

.leaderboard-table tr.rank-gold {
    background: linear-gradient(90deg, #fef9c3 0%, white 100%);
}

.leaderboard-table tr.rank-silver {
    background: linear-gradient(90deg, #f1f5f9 0%, white 100%);
}

.leaderboard-table tr.rank-bronze {
    background: linear-gradient(90deg, #fed7aa 0%, white 100%);
}

.rank-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rank-number {
    font-weight: 700;
    color: var(--neutral-700);
    min-width: 24px;
}

.rank-medal {
    font-size: 1.25rem;
}

.participant-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neutral-200);
}

.participant-name {
    font-weight: 600;
    color: var(--neutral-900);
}

.metric-steps,
.metric-minutes {
    font-weight: 600;
    color: var(--neutral-800);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: var(--primary-600);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 999px;
}

.clap-wrapper {
    display: flex;
    align-items: center;
}

.clap-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
}

.clap-btn:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.clap-btn::before {
    content: '\1F44F';
}

.leaderboard-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--neutral-600);
}

.leaderboard-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.leaderboard-empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0 0 0.5rem 0;
}

.leaderboard-empty-state p {
    margin: 0;
    font-size: 0.9375rem;
}

.btn-join-leaderboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-join-leaderboard:hover {
    background: #fde68a;
    color: #78350f;
}

/* DataTables Pagination - Improved Contrast */
.leaderboard-section .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--neutral-700);
    font-weight: 600;
    min-width: 38px;
    min-height: 38px;
}

.leaderboard-section .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.leaderboard-section .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.leaderboard-section .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-600);
    color: white !important;
    border-color: var(--primary-600);
    font-weight: 700;
}

.leaderboard-section .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.leaderboard-section .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: var(--neutral-100);
    color: var(--neutral-400);
    border-color: var(--neutral-200);
    cursor: not-allowed;
}

/* ============================================================================
   SIDEBAR CARDS
   ============================================================================ */
.sidebar-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.sidebar-card-header i {
    font-size: 1.25rem;
    color: var(--primary-600);
}

.sidebar-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.sidebar-card-body {
    padding: 1.25rem 1.5rem;
}

/* Notifications */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--neutral-300);
}

.notification-item:last-child {
    margin-bottom: 0;
}

.notification-item.success { border-left-color: var(--success-500); }
.notification-item.warning { border-left-color: var(--warning-500); }
.notification-item.info { border-left-color: var(--primary-600); }
.notification-item.highlight { border-left-color: #7c3aed; background: #f5f3ff; }

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.notification-icon.success { background: #dcfce7; color: #166534; }
.notification-icon.warning { background: #fef3c7; color: #92400e; }
.notification-icon.info { background: #dbeafe; color: #1e40af; }
.notification-icon.star { background: #f3e8ff; color: #7c3aed; }
.notification-icon.trophy { background: #fef3c7; color: #ca8a04; }
.notification-icon.game { background: #fce7f3; color: #be185d; }
.notification-icon.fact { background: #e0e7ff; color: #4338ca; }

.notification-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.25rem 0;
}

.notification-content p {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.4;
}

.notification-action {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
}

.notification-action:hover {
    text-decoration: underline;
}

/* Course Info */
.course-list {
    margin: 0;
}

.course-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

.course-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.course-item:first-child {
    padding-top: 0;
}

.course-item dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    min-width: 120px;
    flex-shrink: 0;
}

.course-item dt i {
    color: var(--primary-600);
    font-size: 1rem;
}

.course-item dd {
    margin: 0;
    font-weight: 500;
    color: var(--neutral-800);
    word-break: break-word;
}

/* Nutrition Card */
.nutrition-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.nutrition-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.nutrition-header i {
    font-size: 1.25rem;
    color: #7c3aed;
}

.nutrition-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.nutrition-body {
    padding: 1.5rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 575.98px) {
    .nutrition-grid {
        grid-template-columns: 1fr;
    }
}

.nutrition-chart {
    height: 180px;
}

.macro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.macro-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

.macro-item:last-child {
    border-bottom: none;
}

.macro-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.macro-dot.carbs { background: var(--primary-600); }
.macro-dot.protein { background: #059669; }
.macro-dot.fat { background: #7c3aed; }

.macro-name {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

.macro-value {
    font-weight: 700;
    color: var(--neutral-900);
}

.nutrition-empty {
    text-align: center;
    padding: 2rem;
    color: var(--neutral-600);
}

.nutrition-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.nutrition-empty h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0 0 0.5rem 0;
}

.nutrition-empty p {
    font-size: 0.875rem;
    margin: 0;
}

/* Daily Fact */
.daily-fact-card {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #a5b4fc;
}

.daily-fact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.daily-fact-header i {
    font-size: 1.5rem;
    color: #4338ca;
}

.daily-fact-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #312e81;
    margin: 0;
}

.daily-fact-content {
    font-size: 0.9375rem;
    color: #3730a3;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */
@media (max-width: 767.98px) {
    .grade-hero-card {
        padding: 1.5rem;
    }

    .grade-circle {
        width: 120px;
        height: 120px;
    }

    .grade-letter {
        font-size: 2.75rem;
    }

    .header-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn-header {
        flex: 1;
        justify-content: center;
    }

    .quick-stat-item {
        min-width: auto;
    }

    /* Mobile Color Contrast Fixes - WCAG 2.2 AAA Compliance */

    /* .header-title - darken for better contrast */
    .header-title {
        color: var(--neutral-800);
    }

    /* .course-item dt - darken labels for better contrast */
    .course-item dt {
        color: var(--neutral-700);
    }

    /* Chart data table - improve text contrast */
    .chart-data-table summary {
        color: var(--neutral-800);
        font-weight: 600;
    }

    .chart-data-table table {
        color: var(--neutral-800);
    }

    .chart-data-table th {
        color: var(--neutral-900);
    }

    .chart-data-table td {
        color: var(--neutral-800);
    }

    /* Footer - improve text contrast on mobile */
    .footer,
    footer.footer {
        color: var(--neutral-700);
    }

    .footer a,
    footer.footer a {
        color: var(--primary-700);
    }

    .footer strong,
    footer.footer strong {
        color: var(--neutral-900);
    }

    /* Additional mobile contrast improvements */

    /* .text-muted - override to meet WCAG AA */
    .text-muted {
        color: var(--neutral-700) !important;
    }

    /* Labels and captions - ensure readability */
    .quick-stat-label,
    .trend-label,
    .deadline-date,
    .assessment-status-title {
        color: var(--neutral-700);
    }

    /* Notification content - ensure readability */
    .notification-content p {
        color: var(--neutral-700);
    }

    /* Daily fact and sidebar content */
    .daily-fact-content,
    .sidebar-card-body {
        color: var(--neutral-800);
    }

    /* Leaderboard table text */
    .leaderboard-table th {
        color: var(--neutral-800);
    }

    /* Sync status text */
    .header-sync-status {
        color: var(--neutral-700);
    }

    /* Grade progress text */
    .grade-progress-text {
        color: var(--neutral-700);
    }

    /* Navbar links - improve contrast */
    .navbar-custom .nav-link {
        color: var(--neutral-800);
    }

    .navbar-custom .nav-link:hover,
    .navbar-custom .nav-link:focus {
        color: var(--neutral-900);
    }

    /* Fix dropdown menu on mobile - ensure it opens properly */
    .navbar-custom .dropdown-menu,
    .navbar-custom .dropdown-menu.show,
    .profile-dropdown {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        top: 100% !important;
        z-index: 1050 !important;
        display: none;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        min-width: 180px;
    }

    .navbar-custom .dropdown-menu.show,
    .navbar-custom .dropdown.show .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ensure dropdown toggle is clickable */
    .navbar-custom .nav-link.dropdown-toggle,
    .navbar-custom .nav-user {
        position: relative;
        z-index: 1001;
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
    }

    /* Ensure topbar is above other content and clickable */
    .topbar {
        z-index: 1050 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        pointer-events: auto !important;
    }

    .topbar * {
        pointer-events: auto;
    }

    .navbar-custom {
        pointer-events: auto !important;
    }

    .topbar-right-menu {
        position: relative;
        z-index: 1051;
        pointer-events: auto !important;
    }

    .topbar-right-menu .dropdown,
    .topbar-right-menu .nav-item {
        position: relative;
        pointer-events: auto !important;
    }

    /* Ensure nav-link is clickable */
    .nav-link.nav-user,
    .navbar-custom .nav-link {
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
}

/* Fix for dropdown-menu-animated - override hidden state when .show is added */
.dropdown-menu-animated.show,
.dropdown.show .dropdown-menu-animated,
.show > .dropdown-menu-animated {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Global dropdown menu show state - ensure visibility on all screen sizes */
.topbar .navbar-custom .dropdown-menu.show,
.topbar .navbar-custom .profile-dropdown.show,
.topbar-right-menu .dropdown-menu.show,
.topbar-right-menu .profile-dropdown.show,
ul.dropdown-menu.dropdown-menu-end.profile-dropdown.show,
ul.dropdown-menu.show,
ul.profile-dropdown.show,
.dropdown-menu.show,
.profile-dropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    z-index: 99999 !important;
    background-color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    min-width: 180px !important;
    padding: 0.5rem 0 !important;
    transform: none !important;
    margin: 0 !important;
    clip: auto !important;
    overflow: visible !important;
    height: auto !important;
    width: auto !important;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 3px solid var(--primary-600);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary-600);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .grade-circle {
        border: 3px solid currentColor;
    }

    .card-widget,
    .sidebar-card,
    .charts-card {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   EBOOK STYLES - WCAG 2.2 AAA Compliant
   ============================================================================ */

/* Ebook Main Container */
.ebook-main {
    background: linear-gradient(180deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    min-height: 100vh;
    padding-bottom: 3rem;
}

/* Ebook Content Container */
.ebook-content {
    padding: 1.5rem;
}

/* Objectives Section */
.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary-600);
    transition: all 0.2s ease;
}

.objective-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.objective-item:last-child {
    margin-bottom: 0;
}

.objective-icon {
    color: var(--primary-600);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.objective-text {
    color: var(--neutral-800);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Ebook Sections */
.ebook-section {
    margin-bottom: 2.5rem;
}

.ebook-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--neutral-900);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-600);
    margin-bottom: 1.25rem;
}

.ebook-section-title i {
    color: var(--primary-600);
    font-size: 1.25rem;
}

.ebook-section-content {
    color: var(--neutral-700);
    line-height: 1.7;
}

.ebook-section-content p {
    margin-bottom: 1rem;
}

.ebook-section-content p:last-child {
    margin-bottom: 0;
}

.ebook-section-content strong,
.ebook-section strong,
.section-note strong {
    color: var(--neutral-900);
    font-weight: 700;
}

/* Ebook Card Grid */
.ebook-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.ebook-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ebook-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ebook-card-image {
    padding: 1.5rem;
    text-align: center;
    background: var(--neutral-50);
}

.ebook-card-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.ebook-card-body {
    padding: 1.5rem;
}

.ebook-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    text-align: center;
}

.ebook-card-text {
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* Info Boxes - Modern Gradient Style */
.info-box {
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.info-box:last-child {
    margin-bottom: 0;
}

.info-box--primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
}

.info-box--success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.info-box--info {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
}

.info-box-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-box-content {
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

/* Feature List with Icons */
.ebook-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.ebook-feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.ebook-feature-item:hover {
    border-color: var(--primary-600);
    box-shadow: var(--shadow-md);
}

.ebook-feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-600);
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-icon.success { background: #059669; }
.feature-icon.warning { background: #f59e0b; }
.feature-icon.danger { background: #ef4444; }
.feature-icon.info { background: #0891b2; }

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.375rem 0;
}

.feature-description {
    color: var(--neutral-700);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Calculator Widget */
.calculator-widget {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    max-width: 500px;
    margin: 2rem auto;
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    border-bottom: 1px solid var(--neutral-200);
}

.calculator-header i {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.calculator-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.calculator-form {
    padding: 1.5rem;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.calculator-form .form-group {
    margin-bottom: 1.25rem;
}

.calculator-form .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.calculator-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--neutral-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calculator-form .form-control:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.btn-calculator,
a.btn-calculator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.875rem 1.5rem;
    background: var(--primary-600);
    color: white !important;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    min-height: 48px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-calculator:hover,
a.btn-calculator:hover {
    background: var(--primary-700);
    color: white !important;
}

.btn-calculator:active {
    transform: scale(0.98);
}

.btn-calculator:focus-visible {
    outline: 3px solid var(--primary-600);
    outline-offset: 2px;
}

.calculator-result {
    margin: 0 1.5rem 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

.calculator-result.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.calculator-result.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Video Embed */
.video-embed {
    margin: 2rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    background: var(--neutral-900);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    color: var(--neutral-600);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Ebook Table */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.table-wrapper:focus {
    outline: 3px solid var(--primary-600);
    outline-offset: 2px;
}

.ebook-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9375rem;
}

.ebook-table thead {
    background: var(--primary-600);
}

.ebook-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ebook-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--neutral-200);
    color: var(--neutral-700);
}

.ebook-table tbody tr:hover {
    background: var(--neutral-50);
}

.ebook-table tbody tr:last-child td {
    border-bottom: none;
}

/* Summary Section */
.summary-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-top: 2.5rem;
    border-left: 4px solid var(--primary-600);
    box-shadow: var(--shadow-md);
}

.summary-section h3 {
    color: var(--neutral-900);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25rem;
    background: var(--primary-600);
    border-radius: 2px;
}

.summary-section h4 {
    color: var(--neutral-800);
    font-size: 1.0625rem;
    margin: 1.5rem 0 0.75rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
}

.summary-section h4:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.summary-section p {
    color: var(--neutral-700);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.summary-section ul {
    padding-left: 1.5rem;
    color: var(--neutral-700);
}

.summary-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* PowerPoint Embed */
.powerpoint-embed {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.powerpoint-embed iframe {
    display: block;
    width: 100%;
    min-height: 450px;
    border: none;
}

/* Terminology List */
.terminology-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.terminology-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    border: 1px solid var(--neutral-200);
    transition: all 0.2s ease;
}

.terminology-item:hover {
    border-color: var(--primary-600);
    background: var(--neutral-50);
}

.terminology-item:last-child {
    margin-bottom: 0;
}

.terminology-icon {
    color: var(--primary-600);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.terminology-text {
    color: var(--neutral-700);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.terminology-text strong {
    color: var(--neutral-900);
    font-weight: 600;
}

/* Quote/Blockquote Box */
.ebook-quote {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid #059669;
    position: relative;
}

.ebook-quote::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: #059669;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.ebook-quote blockquote {
    font-style: italic;
    color: var(--neutral-800);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0 0 0.75rem 0;
    padding-left: 1.5rem;
}

.ebook-quote figcaption {
    color: #166534;
    font-weight: 600;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
}

.ebook-quote figcaption cite {
    font-style: normal;
}

/* Stage/Process Steps */
.ebook-steps {
    margin: 1.5rem 0;
}

.ebook-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.ebook-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-600);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.375rem 0;
}

.step-description {
    color: var(--neutral-700);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Risk Factors / Two Column Layout */
.ebook-two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.ebook-column-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
}

.ebook-column-card > p:first-child {
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-600);
}

/* Image with Caption */
.ebook-figure {
    margin: 2rem 0;
    text-align: center;
}

.ebook-figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.ebook-figure figcaption {
    margin-top: 0.75rem;
    color: var(--neutral-600);
    font-size: 0.875rem;
    font-style: italic;
}

/* External Link Styling */
.ebook-section-content a,
.ebook-card-text a,
.feature-description a,
.summary-section a {
    color: var(--primary-600);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ebook-section-content a:hover,
.ebook-card-text a:hover,
.feature-description a:hover,
.summary-section a:hover {
    color: var(--primary-700);
}

.ebook-section-content a:focus-visible,
.ebook-card-text a:focus-visible,
.feature-description a:focus-visible,
.summary-section a:focus-visible {
    outline: 3px solid var(--primary-600);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Alert/Callout Box */
.ebook-callout {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.ebook-callout--info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.ebook-callout--success {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.ebook-callout--warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.ebook-callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ebook-callout--info .ebook-callout-icon { color: #1d4ed8; }
.ebook-callout--success .ebook-callout-icon { color: #166534; }
.ebook-callout--warning .ebook-callout-icon { color: #92400e; }

.ebook-callout-content {
    flex: 1;
}

.ebook-callout-content p {
    margin: 0;
    line-height: 1.6;
}

.ebook-callout--info .ebook-callout-content { color: #1e40af; }
.ebook-callout--success .ebook-callout-content { color: #166534; }
.ebook-callout--warning .ebook-callout-content { color: #92400e; }

/* Inline Icon List (used for stages, processes) */
.ebook-icon-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 1.25rem 0 0.5rem 0;
}

.ebook-icon-heading i {
    color: var(--primary-600);
}

/* Ebook Responsive */
@media (max-width: 767.98px) {
    .ebook-card-grid {
        grid-template-columns: 1fr;
    }

    .ebook-two-column {
        grid-template-columns: 1fr;
    }

    .ebook-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }

    .ebook-section-title {
        font-size: 1.25rem;
    }

    .calculator-widget {
        margin: 1.5rem 0;
        max-width: 100%;
    }

    .ebook-quote {
        padding: 1.25rem 1.5rem;
    }

    .ebook-quote::before {
        display: none;
    }

    .ebook-quote blockquote,
    .ebook-quote figcaption {
        padding-left: 0;
    }
}

/* High Contrast Mode for eBook */
@media (prefers-contrast: high) {
    .ebook-card,
    .ebook-feature-item,
    .calculator-widget,
    .terminology-item,
    .ebook-column-card {
        border-width: 2px;
    }

    .info-box,
    .ebook-callout {
        border-width: 2px;
    }

    .objective-item,
    .ebook-step {
        border-left-width: 4px;
    }
}

/* ============================================================================
   EBOOK CLEAN STYLES - Minimal Icon Usage
   ============================================================================ */

/* Numbered Objectives List */
.objectives-list-numbered {
    list-style: none;
    counter-reset: objective-counter;
    padding: 0;
    margin: 0;
}

.objectives-list-numbered li {
    counter-increment: objective-counter;
    padding: 0.875rem 1rem 0.875rem 3rem;
    position: relative;
    border-bottom: 1px solid var(--neutral-200);
    color: var(--neutral-800);
    line-height: 1.6;
}

.objectives-list-numbered li:last-child {
    border-bottom: none;
}

.objectives-list-numbered li::before {
    content: counter(objective-counter);
    position: absolute;
    left: 0.75rem;
    top: 0.875rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-600);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dimensions Grid - Clean Cards */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.dimension-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dimension-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.dimension-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-700);
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-100);
}

.dimension-card p {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* Stages List - Clean Numbered Steps */
.stages-list {
    margin: 1.5rem 0;
}

.stage-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.stage-item:last-child {
    border-bottom: none;
}

.stage-num {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.stage-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.25rem 0;
}

.stage-content p {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.process-item {
    padding: 1rem 1.25rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.5;
    border-left: 3px solid var(--primary-600);
}

.process-item strong {
    color: var(--neutral-900);
}

/* Simple List - No Icons */
.simple-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
    color: var(--neutral-700);
}

.simple-list li {
    padding: 0.375rem 0;
    line-height: 1.6;
}

.simple-list li strong {
    color: var(--neutral-900);
}

/* Barrier Cards */
.barrier-cards {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.barrier-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--neutral-200);
    border-left: 4px solid #f59e0b;
    box-shadow: var(--shadow-sm);
}

.barrier-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.barrier-card p {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* Tips List */
.tips-list {
    margin: 1.5rem 0;
}

.tip-item {
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-700);
    margin: 0 0 0.5rem 0;
}

.tip-item p {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* Blockquote */
.ebook-blockquote {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-left: 4px solid var(--primary-600);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--neutral-800);
    line-height: 1.7;
}

.ebook-blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-700);
    font-size: 0.9375rem;
}

/* Component Grid */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.component-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.component-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.component-item p {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* Success Steps */
.success-steps {
    list-style: none;
    counter-reset: success-counter;
    padding: 0;
    margin: 1.5rem 0;
}

.success-steps li {
    counter-increment: success-counter;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-800);
    line-height: 1.6;
}

.success-steps li::before {
    content: counter(success-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary-600);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Terminology Grid */
.terminology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.term-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    border: 1px solid var(--neutral-200);
}

.term-item dt {
    font-weight: 700;
    color: var(--primary-700);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.term-item dd {
    font-size: 0.875rem;
    color: var(--neutral-700);
    line-height: 1.5;
    margin: 0;
}

/* Clean Card Headers (no icons) */
.ebook-card-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    border-bottom: 1px solid var(--neutral-200);
}

.ebook-card-header h2,
.ebook-card-header h3,
.ebook-card-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

/* Clean Section Titles (no icons by default) */
.ebook-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--neutral-900);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-600);
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   PREMIUM EBOOK DESIGN SYSTEM
   World-class design patterns for modern content presentation
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Hero Section - Bold, impactful opening
   ----------------------------------------------------------------------------- */
.ebook-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.ebook-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ebook-hero-content {
    position: relative;
    z-index: 1;
}

.ebook-hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.ebook-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.ebook-hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

/* BEM-style Hero Components */
.ebook-hero__content { position: relative; z-index: 1; }
.ebook-hero__eyebrow { display: inline-block; background: rgba(255,255,255,0.2); color: white; padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: 0.05em; }
.ebook-hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: white; line-height: 1.15; margin: 0 0 1rem 0; letter-spacing: -0.02em; }
.ebook-hero__description { font-size: 1.125rem; color: white; line-height: 1.7; margin: 0; max-width: 600px; }

/* Learning Objectives Section */
.ebook-objectives {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.ebook-objectives__header {
    text-align: center;
    margin-bottom: 2rem;
}

.ebook-objectives__eyebrow {
    display: inline-block;
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.ebook-objectives__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin: 0;
}

.ebook-objectives__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.objective-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.objective-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.objective-card__number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.objective-card__text {
    color: var(--neutral-700);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    padding-top: 0.25rem;
}

/* Objectives Responsive */
@media (max-width: 767.98px) {
    .ebook-objectives { padding: 1.5rem; }
    .ebook-objectives__grid { grid-template-columns: 1fr; }
    .ebook-objectives__title { font-size: 1.5rem; }
}

.ebook-hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ebook-hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* -----------------------------------------------------------------------------
   Objectives Card - Compact learning goals
   ----------------------------------------------------------------------------- */
.objectives-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.objectives-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--neutral-200);
}

.objectives-card-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.objectives-count {
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.objectives-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.objective-chip {
    background: var(--neutral-100);
    color: var(--neutral-700);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.objective-chip:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-200);
}

/* -----------------------------------------------------------------------------
   Bento Grid - Modern feature showcase
   ----------------------------------------------------------------------------- */
.feature-section {
    margin-bottom: 3rem;
}

.feature-section-header {
    margin-bottom: 1.5rem;
}

.feature-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.feature-section-header p {
    color: var(--neutral-600);
    margin: 0;
}

.feature-bento {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bento-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.bento-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.bento-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.75rem 0;
}

.bento-card p {
    color: var(--neutral-700);
    line-height: 1.65;
    margin: 0;
}

.bento-large {
    grid-row: span 2;
}

.bento-accent {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bento-accent h3,
.bento-accent p {
    color: white;
}

.bento-stat {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

.bento-stat-label {
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0.9;
    color: white;
}

/* -----------------------------------------------------------------------------
   Section Headers - Modern typography hierarchy
   ----------------------------------------------------------------------------- */
.section-header-centered {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-left {
    margin-bottom: 2rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.section-header-centered h2,
.section-header-left h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.section-header-centered p,
.section-header-left p {
    color: var(--neutral-600);
    font-size: 1.0625rem;
    margin: 0;
}

/* -----------------------------------------------------------------------------
   Dimensions Showcase - Featured + Grid layout
   ----------------------------------------------------------------------------- */
.dimensions-section {
    margin-bottom: 3rem;
}

.dimensions-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dimension-featured {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border: 2px solid var(--primary-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dimension-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-600);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.dimension-featured h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-800);
    margin: 0 0 0.5rem 0;
}

.dimension-featured p {
    color: var(--primary-700);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

.dimensions-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.dimension-mini {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.dimension-mini:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.dimension-num {
    width: 28px;
    height: 28px;
    background: var(--neutral-100);
    color: var(--neutral-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dimension-mini:hover .dimension-num {
    background: var(--primary-600);
    color: white;
}

.dimension-mini span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
}

/* -----------------------------------------------------------------------------
   Resource Link Bar - Clean navigation
   ----------------------------------------------------------------------------- */
.resource-link-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-600);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--neutral-200);
    transition: all 0.2s ease;
}

.resource-link:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

/* -----------------------------------------------------------------------------
   Content Cards - Flexible content containers
   ----------------------------------------------------------------------------- */
.content-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.content-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.75rem 0;
}

.content-card p {
    color: var(--neutral-600);
    line-height: 1.7;
    margin: 0;
}

.content-card p + p {
    margin-top: 0.75rem;
}

.content-card-header {
    padding: 1.25rem 1.5rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.content-card-header h2,
.content-card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.content-card-body {
    padding: 1.5rem;
}

.lead-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
}

.lead-text:last-child {
    margin-bottom: 0;
}

.cdc-widget-wrapper {
    margin: 1.5rem 0;
}

.resource-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* -----------------------------------------------------------------------------
   Split Content - Text + Widget side by side
   ----------------------------------------------------------------------------- */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: 1.5rem 0 2rem;
}

.split-text {
    padding-right: 1rem;
}

.split-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 1rem 0;
}

.split-text p {
    color: var(--neutral-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.split-text p:last-child {
    margin-bottom: 0;
}

.split-text .resource-links {
    margin-top: auto;
    padding-top: 1rem;
}

.split-widget {
    display: flex;
    flex-direction: column;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--neutral-200);
}

.split-widget iframe {
    flex: 1;
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: var(--radius-md);
    background: white;
}

.widget-body {
    padding: 1rem;
    padding-bottom: 0.5rem;
}

.widget-body .usa-form-group {
    margin-bottom: 1rem;
}

.widget-body .button,
.widget-body .continue-button,
.widget-body .submit-button {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   Major Section - Large topic containers
   ----------------------------------------------------------------------------- */
.major-section {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2.5rem;
    padding: 2rem;
}

.major-section-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(to bottom, var(--neutral-50) 0%, white 100%);
    border-bottom: 1px solid var(--neutral-100);
}

.major-section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.section-intro {
    color: var(--neutral-600);
    font-size: 1rem;
    margin: 0;
    max-width: 800px;
}

.major-section-body {
    padding: 2rem;
}

/* -----------------------------------------------------------------------------
   Model Showcase - Transtheoretical Model display
   ----------------------------------------------------------------------------- */
.model-showcase {
    padding: 2rem;
}

.model-intro {
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-200);
    display: inline-block;
}

/* -----------------------------------------------------------------------------
   Stages Timeline - Visual progression
   ----------------------------------------------------------------------------- */
.stages-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stage-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.stage-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.stage-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.stage-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.stage-card p {
    color: var(--neutral-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 52px;
}

.stage-card-final {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-color: var(--primary-200);
}

.stage-card-final .stage-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Timeline Container - Alternative timeline layout */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-500), var(--primary-300));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.timeline-marker {
    position: absolute;
    left: -2.75rem;
    top: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%) !important;
    color: white !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    z-index: 1;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.75rem 0;
}

.timeline-content p {
    color: var(--neutral-600);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.timeline-tag {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .timeline-container {
        padding-left: 1rem;
    }

    .timeline-container::before {
        left: 10px;
    }

    .timeline-item {
        margin-left: 1rem;
        padding: 1.25rem;
    }

    .timeline-marker {
        left: -2rem;
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

/* -----------------------------------------------------------------------------
   Process Grid - Action steps
   ----------------------------------------------------------------------------- */
.processes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.process-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.process-card:hover {
    border-left-color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.process-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.process-card p {
    font-size: 0.875rem;
    color: var(--neutral-600);
    line-height: 1.55;
    margin: 0 0 1rem 0;
}

.process-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.process-tag {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.process-cards .process-card {
    border-left: none;
    border: 1px solid var(--neutral-200);
    padding: 1.5rem;
}

.process-cards .process-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.75rem 0;
}

/* -----------------------------------------------------------------------------
   Callout Boxes - Highlighted information
   ----------------------------------------------------------------------------- */
.callout-box {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.callout-box p {
    color: var(--primary-800);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0;
}

.callout-box p + p {
    margin-top: 1rem;
}

.callout-muted {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
}

.callout-muted p {
    color: var(--neutral-700);
}

/* -----------------------------------------------------------------------------
   Video Pair - Side by side videos
   ----------------------------------------------------------------------------- */
.video-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.video-pair iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
}

/* -----------------------------------------------------------------------------
   Barriers Stack - Vertical list with icons
   ----------------------------------------------------------------------------- */
.barriers-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.barrier-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.barrier-item:hover {
    border-color: var(--amber-300);
    background: var(--amber-50);
}

.barrier-phase {
    background: var(--amber-100);
    color: var(--amber-700);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.barrier-item span:last-child {
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

/* -----------------------------------------------------------------------------
   Risk Comparison - Side by side columns
   ----------------------------------------------------------------------------- */
.risk-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.risk-column {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.risk-modifiable {
    border-top: 4px solid #10b981;
}

.risk-fixed {
    border-top: 4px solid var(--neutral-400);
}

.risk-column-header {
    padding: 1rem 1.25rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.risk-column-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.risk-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.risk-badge-green {
    background: #d1fae5;
    color: #065f46;
}

.risk-badge-gray {
    background: var(--neutral-200);
    color: var(--neutral-600);
}

.risk-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.risk-list li {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--neutral-100);
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

.risk-list li:last-child {
    border-bottom: none;
}

/* Comparison Columns - Enhanced side-by-side comparison */
.comparison-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-column {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-column:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.comparison-column--left {
    border-top: 4px solid var(--amber-500);
}

.comparison-column--right {
    border-top: 4px solid #ef4444;
}

.comparison-header {
    padding: 1.5rem;
    background: linear-gradient(to bottom, var(--neutral-50), white);
    border-bottom: 1px solid var(--neutral-100);
    text-align: center;
}

.comparison-header h3 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin: 0;
}

.comparison-column--left .comparison-header h3 {
    color: var(--amber-700);
}

.comparison-column--right .comparison-header h3 {
    color: #dc2626;
}

.comparison-content {
    padding: 1.5rem;
}

.comparison-content p {
    color: var(--neutral-700);
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.comparison-content p:last-of-type {
    margin-bottom: 1.25rem;
}

.comparison-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
}

.comparison-column--left .comparison-badge {
    background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
    color: var(--amber-800);
    border: 1px solid var(--amber-200);
}

.comparison-column--right .comparison-badge {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.comparison-content .comparison-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .comparison-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* -----------------------------------------------------------------------------
   Tips Section - Numbered advice cards
   ----------------------------------------------------------------------------- */
.tips-section {
    padding: 2rem;
    background: var(--neutral-50);
}

.tips-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tip-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.2s ease;
}

.tip-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tip-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tip-card p {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.55;
    margin: 0;
}

/* -----------------------------------------------------------------------------
   Featured Quote - Highlighted quotation
   ----------------------------------------------------------------------------- */
.featured-quote {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.featured-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 10rem;
    font-family: Georgia, serif;
    color: rgba(255,255,255,0.1);
    line-height: 1;
}

.featured-quote blockquote {
    position: relative;
    z-index: 1;
    margin: 0;
}

.featured-quote blockquote p,
.featured-quote > p {
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.featured-quote blockquote cite,
.featured-quote > cite {
    display: block;
    color: white;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 600;
}

.featured-quote em {
    color: white;
    font-style: italic;
}

/* -----------------------------------------------------------------------------
   Walking Showcase - Statistics display
   ----------------------------------------------------------------------------- */
.walking-showcase {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    margin: 2rem 0;
}

.walking-stat {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    border-bottom: 1px solid var(--neutral-200);
}

.stat-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-current {
    opacity: 0.7;
}

.stat-goal .stat-value {
    color: var(--primary-600);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-arrow {
    font-size: 2rem;
    color: var(--primary-500);
}

.activity-levels {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.level-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.level-item:hover {
    background: var(--neutral-50);
}

.level-active {
    background: var(--primary-50);
}

.level-steps {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.level-active .level-steps {
    color: var(--primary-600);
}

.level-name {
    font-size: 0.8125rem;
    color: var(--neutral-600);
}

/* -----------------------------------------------------------------------------
   Components Section - Fitness components display
   ----------------------------------------------------------------------------- */
.components-section {
    padding: 2rem;
}

.component-category {
    margin-bottom: 2rem;
}

.component-category:last-child {
    margin-bottom: 0;
}

.component-category h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-200);
}

.components-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.component-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.component-card:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
    transform: translateY(-2px);
}

.component-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.component-card p {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   Benefits Split - Two column comparison
   ----------------------------------------------------------------------------- */
.benefits-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.benefits-column {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.benefits-up {
    border-top: 4px solid #10b981;
}

.benefits-down {
    border-top: 4px solid #ef4444;
}

.benefits-column h4 {
    padding: 1rem 1.25rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.benefits-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-column li {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--neutral-100);
    font-size: 0.875rem;
    color: var(--neutral-700);
}

.benefits-column li:last-child {
    border-bottom: none;
}

/* -----------------------------------------------------------------------------
   Skill Components - Tag cloud
   ----------------------------------------------------------------------------- */
.skill-components {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.skill-tag {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--primary-600);
    color: white;
}

/* -----------------------------------------------------------------------------
   Info Cards Row - Horizontal info blocks
   ----------------------------------------------------------------------------- */
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.75rem 0;
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

.info-card ul {
    margin: 0.75rem 0 0 0;
    padding-left: 1.25rem;
}

.info-card li {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin-bottom: 0.375rem;
}

/* -----------------------------------------------------------------------------
   PAR-Q Section - Assessment introduction
   ----------------------------------------------------------------------------- */
.parq-intro {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.parq-intro h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 1rem 0;
}

.parq-intro p {
    color: var(--neutral-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.parq-intro p:last-child {
    margin-bottom: 0;
}

.parq-intro .btn-calculator,
.parq-intro a.btn-calculator {
    display: inline-flex;
    background: var(--primary-600);
    color: white !important;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
}

.parq-intro .btn-calculator:hover,
.parq-intro a.btn-calculator:hover {
    background: var(--primary-700);
    color: white !important;
}

.school-note {
    background: var(--amber-50);
    border: 1px solid var(--amber-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.school-note p {
    color: var(--amber-800);
    font-size: 0.9375rem;
    margin: 0;
}

.pdf-embed-wrapper {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 2rem;
}

.pdf-embed-wrapper iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius-md);
}

/* -----------------------------------------------------------------------------
   Success Section - Call to action
   ----------------------------------------------------------------------------- */
.success-section {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 2rem 0;
    text-align: center;
    color: white;
}

.success-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 2rem 0;
    color: white;
}

.success-path {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.success-step {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    min-width: 200px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.success-step:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.success-step strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.success-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: white;
    color: var(--primary-700);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.success-cta {
    font-size: 1.125rem;
    margin: 0;
}
.success-cta p {
    color: rgba(255,255,255,0.95);
    margin: 0;
}
.success-cta strong {
    color: white;
}

/* -----------------------------------------------------------------------------
   Terminology Section - Definitions grid
   ----------------------------------------------------------------------------- */
.terminology-section {
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
}

.terminology-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.terms-grid .term-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--neutral-200);
}

.terms-grid .term-item dt {
    font-weight: 700;
    color: var(--primary-700);
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

.terms-grid .term-item dd {
    font-size: 0.875rem;
    color: var(--neutral-600);
    line-height: 1.55;
    margin: 0;
}

/* -----------------------------------------------------------------------------
   Summary Section - Module wrap-up
   ----------------------------------------------------------------------------- */
.summary-section {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    margin-top: 2rem;
}

.summary-section .summary-header {
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    padding: 1.5rem 2rem;
    text-align: left;
    margin-bottom: 0;
}

.summary-section .summary-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.summary-content {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.summary-item:hover {
    background: var(--neutral-50);
}

.summary-item::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.summary-item span {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.5;
}

/* ==========================================================================
   PREMIUM RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 991.98px) {
    .ebook-hero {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .ebook-hero-visual {
        order: -1;
        margin-bottom: 1rem;
    }

    .feature-bento {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-row: auto;
    }

    .dimensions-showcase {
        grid-template-columns: 1fr;
    }

    .split-content {
        grid-template-columns: 1fr;
    }

    .video-pair {
        grid-template-columns: 1fr;
    }

    .risk-comparison {
        grid-template-columns: 1fr;
    }

    .benefits-split {
        grid-template-columns: 1fr;
    }

    .stat-comparison {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-arrow {
        transform: rotate(90deg);
    }

    .activity-levels {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .ebook-hero {
        padding: 1.5rem;
    }

    .ebook-hero-title {
        font-size: 1.5rem;
    }

    .objectives-card {
        padding: 1.25rem;
    }

    .objectives-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .major-section-header,
    .major-section-body,
    .model-showcase,
    .components-section,
    .tips-section {
        padding: 1.25rem;
    }

    .success-section {
        padding: 2rem 1.5rem;
    }

    .success-path {
        flex-direction: column;
    }

    .featured-quote {
        padding: 1.5rem;
    }

    .featured-quote blockquote p {
        font-size: 1.0625rem;
    }

    .dimensions-grid-compact {
        grid-template-columns: 1fr;
    }

    .stages-timeline .stage-card p {
        padding-left: 0;
    }

    .resource-link-bar {
        flex-direction: column;
    }

    .resource-link {
        justify-content: center;
    }
}

/* Legacy Clean Styles Responsive */
@media (max-width: 767.98px) {
    .dimensions-grid,
    .component-grid,
    .process-grid,
    .terminology-grid {
        grid-template-columns: 1fr;
    }

    .stage-item {
        flex-direction: column;
        text-align: center;
    }

    .stage-num {
        margin: 0 auto;
    }
}

/* ============================================================================
   MODULE 3 - ADDITIONAL PREMIUM COMPONENTS
   ============================================================================ */

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* Stat Showcase */
.stat-showcase {
    display: grid;
    gap: 1.5rem;
}

.stat-item {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--primary-200);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-700);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-800);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Info Highlight Box */
.info-highlight {
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%);
    border-left: 4px solid var(--amber-700);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.info-highlight strong {
    color: var(--amber-800);
}

/* Callout Section */
.callout-section {
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    margin: 3rem 0;
}

.callout-content {
    max-width: 800px;
    margin: 0 auto;
}

.callout-section .section-eyebrow {
    color: var(--primary-300);
}

.callout-section h2 {
    color: white;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.callout-section p {
    color: var(--neutral-300);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.callout-section p strong {
    color: white;
}

.callout-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.callout-highlight p {
    margin: 0;
}

/* Classification Grid */
.classification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.classification-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: transform 0.2s ease;
}

.classification-card:hover {
    transform: translateY(-2px);
}

.classification-icon {
    font-size: 2rem;
    color: var(--primary-600);
    margin-bottom: 1rem;
    display: block;
}

.classification-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.classification-card p {
    color: var(--neutral-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Fiber Cards */
.fiber-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.fiber-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.fiber-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    border-bottom: 1px solid var(--neutral-200);
}

.fiber-card--slow .fiber-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-bottom-color: var(--amber-200);
}

.fiber-card--fast-a .fiber-header {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-bottom-color: var(--primary-200);
}

.fiber-card--fast-b .fiber-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border-bottom-color: #fecaca;
}

.fiber-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-600);
    margin-bottom: 0.5rem;
}

.fiber-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.fiber-content {
    padding: 1.5rem;
}

.fiber-content p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.fiber-traits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fiber-traits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--neutral-700);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--neutral-100);
}

.fiber-traits li:last-child {
    border-bottom: none;
}

.fiber-traits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-600);
    font-weight: 700;
}

/* Story Section */
.story-section {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--neutral-700);
}

.story-text p {
    margin-bottom: 1.25rem;
}

.story-text em {
    color: var(--neutral-800);
    font-style: italic;
}

.story-image {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 200px;
}

.story-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}

.story-highlight {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #dc2626;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.story-highlight p {
    margin: 0;
    color: #991b1b;
    font-weight: 600;
}

/* Calculator Section Enhanced */
.calculator-section {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    margin: 3rem 0;
    overflow: hidden;
    box-sizing: border-box;
}

.calculator-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.calculator-section .calculator-header {
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    text-align: center;
}

.calculator-section .calculator-form {
    text-align: left;
}

.calculator-section .section-eyebrow {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
}

.calculator-section .calculator-header h3 {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.calculator-section .calculator-header p {
    color: white !important;
    margin-bottom: 2rem;
}

.calculator-section .calculator-label {
    color: white !important;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.calculator-label {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-input {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.calculator-input[type="number"] {
    -moz-appearance: textfield;
}

.calculator-input[type="number"]::-webkit-inner-spin-button,
.calculator-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calculator-input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.calculator-input:focus {
    outline: none;
    border-color: white !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

.calculator-button {
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-700);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculator-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculator-result {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
}

.calculator-result--success {
    background: rgba(34, 197, 94, 0.3);
    color: white;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.calculator-result--error {
    background: rgba(239, 68, 68, 0.3);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

/* Guidelines Grid */
.guidelines-intro {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.guidelines-intro p {
    margin: 0 0 0.75rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.guidelines-intro p:last-child {
    margin-bottom: 0;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.guideline-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.guideline-card--wide {
    grid-column: 1 / -1;
}

.guideline-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.guideline-icon {
    font-size: 1.5rem;
}

.guideline-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.guideline-card p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

.guideline-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.5rem;
    color: var(--neutral-600);
}

.guideline-card li {
    margin-bottom: 0.5rem;
}

.rep-ranges p,
.set-ranges p {
    margin: 0.5rem 0;
    font-size: 0.9375rem;
}

/* Principles Section */
.principles-section {
    margin: 3rem 0;
}

.principle-block {
    background: white;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.principle-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    border-bottom: 1px solid var(--neutral-200);
}

.principle-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-600);
    font-family: system-ui, -apple-system, sans-serif;
}

.principle-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.principle-content {
    padding: 2rem;
}

.principle-content p {
    color: var(--neutral-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.principle-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--neutral-700);
}

.principle-content li {
    margin-bottom: 0.5rem;
}

.principle-examples {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.principle-example {
    background: var(--neutral-50);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    font-size: 0.9375rem;
}

.principle-example strong {
    color: var(--neutral-900);
}

.principle-note {
    background: var(--amber-50);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--amber-700);
    color: var(--amber-800);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.legend-callout {
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--amber-200);
}

.legend-callout h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--amber-800);
    margin-bottom: 0.75rem;
}

.legend-callout p {
    color: var(--amber-800);
    margin: 0;
}

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

.progression-method {
    background: var(--neutral-50);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

.progression-method strong {
    color: var(--neutral-900);
}

/* Periodization Phases */
.section-intro {
    font-size: 1.0625rem;
    color: var(--neutral-700);
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.phase-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: transform 0.2s ease;
}

.phase-card:hover {
    transform: translateY(-2px);
}

.phase-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.phase-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.phase-card p {
    color: var(--neutral-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Functional Benefits */
.functional-benefits {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.functional-benefit {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--neutral-300);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.functional-benefit strong {
    color: white;
}

/* Muscle Groups Grid */
.muscle-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.muscle-group-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: box-shadow 0.2s ease;
}

.muscle-group-card:hover {
    box-shadow: var(--shadow-md);
}

.muscle-group-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.muscle-group-card p {
    color: var(--neutral-600);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.exercise-examples {
    display: block;
    font-size: 0.8125rem;
    color: var(--primary-600);
    font-weight: 600;
}

/* DOMS Tips */
.doms-tips {
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--primary-100);
}

.doms-tips h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: 1rem;
}

.doms-tips ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--neutral-700);
}

.doms-tips li {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-content .section-eyebrow {
    color: var(--primary-200);
}

.cta-content h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--primary-200);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.cta-button,
a.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white !important;
    color: var(--primary-700) !important;
    text-decoration: none !important;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover,
a.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-800) !important;
    background: white !important;
}

/* Summary Section Enhanced */
.summary-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.summary-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.summary-objectives {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.summary-objective {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.objective-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.objective-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.objective-steps {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--neutral-700);
    line-height: 1.7;
}

.objective-steps li {
    margin-bottom: 0.5rem;
}

.comparison-mini {
    display: grid;
    gap: 1rem;
}

.comparison-mini-item {
    background: var(--neutral-50);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
}

.comparison-mini-item strong {
    color: var(--neutral-900);
}

.benefits-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits-summary li {
    padding: 0.75rem 1rem;
    padding-left: 2rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--neutral-700);
    position: relative;
    border: 1px solid var(--neutral-100);
}

.benefits-summary li::before {
    content: "✓";
    position: absolute;
    left: 0.75rem;
    color: var(--primary-600);
    font-weight: 700;
}

.fitt-summary {
    display: grid;
    gap: 0.5rem;
}

.fitt-item {
    padding: 0.75rem 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-100);
}

.fitt-item strong {
    color: var(--primary-600);
}

/* PowerPoint Section */
.powerpoint-section {
    margin: 3rem 0;
}

.powerpoint-section .section-header {
    margin-bottom: 1.5rem;
}

/* Structure Levels */
.structure-level {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.structure-level:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.structure-level h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.structure-level p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* Contract Info */
.contract-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contract-info p {
    margin: 0;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.contract-info p strong {
    color: var(--neutral-900);
    display: block;
    margin-bottom: 0.5rem;
}

/* Comparison Image */
.comparison-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--neutral-200);
}

/* Module 3 Responsive */
@media (max-width: 767.98px) {
    .benefits-grid,
    .classification-grid,
    .fiber-cards,
    .guidelines-grid,
    .periodization-phases,
    .muscle-groups-grid {
        grid-template-columns: 1fr;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
    }

    .story-image {
        float: none;
        margin: 0 auto 1.5rem;
        display: block;
    }

    .summary-objective {
        flex-direction: column;
        text-align: center;
    }

    .objective-marker {
        margin: 0 auto;
    }

    .callout-section,
    .calculator-section,
    .cta-section,
    .story-section {
        padding: 2rem 1.5rem;
    }

    .principle-header {
        padding: 1.25rem 1.5rem;
    }

    .principle-content {
        padding: 1.5rem;
    }

    .progression-methods {
        grid-template-columns: 1fr;
    }

    .benefits-summary {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   MODULE 4 - NUTRITION PREMIUM COMPONENTS
   ============================================================================ */

/* Function Cards */
.function-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.function-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    text-align: center;
    transition: transform 0.2s ease;
}

.function-card:hover {
    transform: translateY(-2px);
}

.function-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.function-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.function-card p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* Nutrient Type Items */
.nutrient-type-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.nutrient-type-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nutrient-type-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.nutrient-type-item p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* Nutrient Showcase */
.nutrient-showcase {
    display: grid;
    gap: 1rem;
}

.nutrient-stat {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--primary-200);
}

.nutrient-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-700);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.nutrient-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-800);
}

/* Guidelines Cards */
.guidelines-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.guideline-block {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    align-items: flex-start;
}

.guideline-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.guideline-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.guideline-info p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* Principles Callout */
.principles-callout {
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--amber-200);
}

.principles-callout h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--amber-800);
    margin-bottom: 1rem;
}

.principles-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.principle-item {
    color: var(--amber-800);
    line-height: 1.6;
}

.principle-item strong {
    color: var(--amber-900);
}

/* Vitamins Section */
.vitamins-section {
    margin: 3rem 0;
}

.vitamins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.vitamin-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: box-shadow 0.2s ease;
}

.vitamin-card:hover {
    box-shadow: var(--shadow-md);
}

.vitamin-letter {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--amber-100) 0%, var(--amber-200) 100%);
    color: var(--amber-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.vitamin-card--mineral .vitamin-letter {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    color: var(--primary-800);
}

.vitamin-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.vitamin-info p {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

/* Macro Overview */
.macro-overview {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.macro-overview p {
    margin: 0;
    color: var(--neutral-700);
    line-height: 1.6;
}

/* Macro Cards */
.macro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.macro-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.macro-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.macro-card--carbs .macro-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
}

.macro-card--protein .macro-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
}

.macro-card--fats .macro-header {
    background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 100%);
}

.macro-icon {
    font-size: 2rem;
}

.macro-header h3 {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.macro-cal {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-600);
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
}

.macro-content {
    padding: 1.5rem;
}

.macro-content p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.macro-range {
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.macro-percent {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-700);
}

.macro-label {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

/* Water Callout */
.water-callout {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--primary-200);
}

.water-callout h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: 1rem;
}

.water-callout p {
    color: var(--primary-900);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.water-callout p:last-child {
    margin-bottom: 0;
}

/* Essential Nutrients Grid */
.nutrients-showcase {
    margin: 3rem 0;
}

.essential-nutrients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.essential-nutrient {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: transform 0.2s ease;
}

.essential-nutrient:hover {
    transform: translateY(-2px);
}

.essential-nutrient .nutrient-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.essential-nutrient h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.essential-nutrient p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* Protein Info */
.protein-info {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.protein-info p {
    color: var(--neutral-700);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.protein-info p:last-child {
    margin-bottom: 0;
}

/* Protein Cards */
.protein-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.protein-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.protein-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.protein-card p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.protein-card p:last-child {
    margin-bottom: 0;
}

.protein-tip {
    background: var(--primary-50);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

/* Amino Acid Info */
.amino-acid-info {
    background: var(--amber-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--amber-200);
}

.amino-acid-info p {
    color: var(--amber-800);
    line-height: 1.6;
    margin: 0;
}

/* Fats Section */
.fats-section {
    margin: 3rem 0;
}

.fats-intro {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.fats-intro p {
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* Fat Types */
.fat-types {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.fat-type {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.fat-type--saturated {
    border-left: 4px solid var(--amber-700);
}

.fat-type--unsaturated {
    border-left: 4px solid #22c55e;
}

.fat-type--trans {
    border-left: 4px solid #dc2626;
}

.fat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.fat-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.fat-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fat-badge--limit {
    background: var(--amber-100);
    color: var(--amber-800);
}

.fat-badge--good {
    background: #dcfce7;
    color: #166534;
}

.fat-badge--avoid {
    background: #fee2e2;
    color: #991b1b;
}

.fat-type p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* Food Labels Section */
.food-labels-section {
    margin: 3rem 0;
}

.food-label-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.food-label-image figure {
    margin: 0;
}

.food-label-image img {
    max-width: 200px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.food-label-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin-top: 0.75rem;
}

.food-label-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.food-label-info p {
    color: var(--neutral-600);
    margin-bottom: 1rem;
}

.calc-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-example {
    background: var(--neutral-50);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

/* Label Components */
.label-components {
    margin-top: 2rem;
}

.label-components h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.component-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.component-item strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.component-item p {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

.resource-link {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

.resource-link a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
}

.resource-link a:hover {
    text-decoration: underline;
}

/* MyPlate Section */
.myplate-section {
    margin: 3rem 0;
}

.myplate-intro {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.myplate-intro p {
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

.myplate-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.myplate-tip {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.tip-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.myplate-tip h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.myplate-tip p {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

.myplate-widget {
    margin-top: 2rem;
}

.myplate-widget .video-container {
    padding-bottom: 0;
    height: auto;
    min-height: 280px;
    background: white;
}

.myplate-widget .video-container iframe {
    position: relative;
    height: 280px;
}

.widget-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin-top: 0.75rem;
}

/* Strategies Section */
.strategies-section {
    margin: 3rem 0;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.strategy-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: box-shadow 0.2s ease;
}

.strategy-card:hover {
    box-shadow: var(--shadow-md);
}

.strategy-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.strategy-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.strategy-card p {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

/* Objective List */
.objective-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--neutral-700);
}

.objective-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Module 4 Responsive */
@media (max-width: 767.98px) {
    .function-cards,
    .vitamins-grid,
    .macro-cards,
    .essential-nutrients-grid,
    .protein-cards,
    .components-grid,
    .myplate-tips,
    .strategies-grid {
        grid-template-columns: 1fr;
    }

    .food-label-content {
        grid-template-columns: 1fr;
    }

    .food-label-image {
        text-align: center;
    }

    .guideline-block {
        flex-direction: column;
        text-align: center;
    }

    .guideline-number {
        margin: 0 auto;
    }
}

/* ============================================================================
   MODULE 5 - WEIGHT MANAGEMENT PREMIUM COMPONENTS
   ============================================================================ */

/* Effects Grid */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.effect-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.effect-card--danger { border-top: 4px solid #dc2626; }

.effect-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.effect-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.75rem; }
.effect-card p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* Warning Callout */
.warning-callout {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #fecaca;
}

.warning-callout h4 { font-size: 1.125rem; font-weight: 700; color: #991b1b; margin-bottom: 0.75rem; }
.warning-callout p { color: #7f1d1d; line-height: 1.6; margin: 0; }

/* Measurement Methods */
.measurement-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.measurement-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.measurement-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.measurement-card h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.measurement-card p { font-size: 0.875rem; color: var(--neutral-600); margin: 0; line-height: 1.5; }

/* Input With Select */
.input-with-select {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.input-with-select .calculator-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.calculator-select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 0.9375rem;
    cursor: pointer;
    min-width: 70px;
    max-width: 90px;
    flex-shrink: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    box-sizing: border-box;
}

.calculator-select option {
    background: var(--primary-700);
    color: white;
}

.calculator-select:focus {
    outline: none;
    border-color: white !important;
}

/* Calculator Section Layout Improvements */
.calculator-section {
    margin: 2.5rem 0;
}

.calculator-section .calculator-form {
    margin-top: 1.5rem;
}

.calculator-inputs {
    margin-bottom: 1.5rem;
    width: 100%;
    overflow: hidden;
}

.calculator-inputs--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
}

@media (max-width: 576px) {
    .calculator-section {
        padding: 1.5rem;
    }

    .calculator-inputs--grid {
        grid-template-columns: 1fr;
    }

    .input-with-select {
        flex-wrap: wrap;
    }

    .calculator-select {
        min-width: 60px;
        max-width: 80px;
    }
}

.calculator-container--large {
    max-width: 700px;
    width: 100%;
    overflow: hidden;
}

/* Energy Items */
.energy-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--neutral-200); }
.energy-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.energy-item h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.energy-item p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* Balance Visual */
.balance-visual {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--primary-200);
}

.balance-equation { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.balance-side { display: flex; align-items: center; gap: 0.5rem; }
.balance-label { font-size: 1.125rem; font-weight: 700; color: var(--primary-700); }
.balance-sign { font-size: 1.5rem; font-weight: 700; color: var(--primary-600); }
.balance-note { font-size: 0.9375rem; color: var(--primary-800); margin: 0; }

/* Factors Grid */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.factor-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.factor-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.factor-card h4 { font-size: 0.9375rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.factor-card p { font-size: 0.8125rem; color: var(--neutral-600); margin: 0; line-height: 1.5; }

/* Calorie Minimums */
.calories-section { margin: 3rem 0; }

.calorie-minimums {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
}

.calorie-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.calorie-card--female { border-top: 4px solid #ec4899; }
.calorie-card--male { border-top: 4px solid var(--primary-600); }

.calorie-gender { display: block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--neutral-600); margin-bottom: 0.5rem; }
.calorie-amount { display: block; font-size: 2.5rem; font-weight: 800; color: var(--neutral-900); line-height: 1; }
.calorie-unit { display: block; font-size: 0.875rem; color: var(--neutral-600); margin-top: 0.5rem; }

/* Macro Ratio Cards */
.macro-ratio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.macro-ratio-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.macro-ratio-card--carbs { border-top: 4px solid var(--amber-700); }
.macro-ratio-card--protein { border-top: 4px solid #dc2626; }
.macro-ratio-card--fat { border-top: 4px solid #22c55e; }

.macro-ratio-header { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.macro-ratio-icon { font-size: 1.75rem; }
.macro-ratio-header h3 { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin: 0; }
.macro-ratio-value { font-size: 2rem; font-weight: 800; color: var(--primary-700); margin-bottom: 0.75rem; }
.macro-ratio-card p { font-size: 0.875rem; color: var(--neutral-600); margin: 0; line-height: 1.5; }

/* Fats Reminder */
.fats-reminder {
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--neutral-200);
}

.fats-reminder h4 { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 1rem; text-align: center; }
.fats-comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.fat-type-box { padding: 1rem; border-radius: var(--radius-md); font-size: 0.9375rem; }
.fat-type-box--unhealthy { background: #fee2e2; color: #991b1b; }
.fat-type-box--healthy { background: #dcfce7; color: #166534; }

/* Calculator Variants */
.calculator-section--alt { background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%); }
.calculator-section--inline { background: transparent; padding: 0; margin-top: 2rem; }
.calculator-section--inline .calculator-container { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%); border-radius: var(--radius-2xl); padding: 2rem; }

/* BMR Factors */
.bmr-factors { display: grid; gap: 1rem; margin-top: 1.5rem; }
.bmr-factor { background: rgba(255, 255, 255, 0.1); padding: 1rem; border-radius: var(--radius-md); color: var(--neutral-300); }
.bmr-factor strong { color: white; }

/* MET Formula */
.met-formula { background: var(--neutral-50); border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 2rem; text-align: center; border: 1px solid var(--neutral-200); }
.met-formula h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 1rem; }
.formula-box { background: var(--neutral-900); color: #22c55e; padding: 1rem 1.5rem; border-radius: var(--radius-md); display: inline-block; font-family: monospace; font-size: 1rem; }
.formula-note { font-size: 0.875rem; color: var(--neutral-600); margin-top: 1rem; margin-bottom: 0; }

/* Examples Section */
.examples-section { margin: 3rem 0; }
.examples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.example-card { background: white; border-radius: var(--radius-xl); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.example-activity { display: block; font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.75rem; }
.example-calc { font-size: 0.8125rem; color: var(--neutral-500); font-family: monospace; margin-bottom: 0.5rem; }
.example-result { font-size: 1.5rem; font-weight: 800; color: var(--primary-700); margin-bottom: 0.5rem; }
.example-duration { font-size: 0.875rem; color: var(--neutral-600); }

/* Rule Section */
.rule-section { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%); border-radius: var(--radius-2xl); padding: 3rem; margin: 3rem 0; text-align: center; }
.rule-content .section-eyebrow { color: var(--primary-200); }
.rule-section h2 { color: white; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.rule-highlight { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.rule-number { font-size: 3rem; font-weight: 800; color: white; }
.rule-text { font-size: 1.125rem; color: var(--primary-200); }
.rule-section p { color: var(--primary-200); margin-bottom: 1rem; }
.rule-recommendation { background: rgba(255, 255, 255, 0.1); padding: 1rem 1.5rem; border-radius: var(--radius-md); color: white; display: inline-block; }

/* Weight Loss Steps */
.weight-loss-steps { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.wl-step { background: var(--neutral-50); padding: 1rem; border-radius: var(--radius-md); font-size: 0.9375rem; color: var(--neutral-700); border: 1px solid var(--neutral-200); }
.wl-step strong { color: var(--primary-600); }

/* Content Image */
.content-image { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* SMART Section */
.smart-section { margin: 3rem 0; }
.smart-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 2rem 0; }
.smart-item { background: white; border-radius: var(--radius-xl); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.smart-letter { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); color: white; font-size: 1.5rem; font-weight: 800; border-radius: 50%; margin: 0 auto 1rem; }
.smart-info strong { display: block; font-size: 1rem; color: var(--neutral-900); margin-bottom: 0.25rem; }
.smart-info p { font-size: 0.8125rem; color: var(--neutral-600); margin: 0; line-height: 1.4; }

/* Activity Recommendations */
.activity-recommendations { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.activity-rec { padding: 1rem; border-radius: var(--radius-md); font-size: 0.9375rem; }
.activity-rec--lose { background: var(--amber-50); color: var(--amber-800); border: 1px solid var(--amber-200); }
.activity-rec--maintain { background: var(--primary-50); color: var(--primary-800); border: 1px solid var(--primary-200); }

/* Intensity Section */
.intensity-section { margin: 3rem 0; }
.intensity-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.intensity-card { background: white; border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.intensity-card--moderate { border-top: 4px solid var(--amber-700); }
.intensity-card--vigorous { border-top: 4px solid #dc2626; }
.intensity-card h4 { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.75rem; }
.intensity-card p { color: var(--neutral-600); margin-bottom: 1rem; line-height: 1.6; }
.intensity-card ul { margin: 0; padding-left: 1.25rem; color: var(--neutral-700); }
.intensity-card li { margin-bottom: 0.5rem; }

/* Maintain Pillars */
.maintain-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.maintain-pillar { background: white; border-radius: var(--radius-xl); padding: 2rem; text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.pillar-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.maintain-pillar h4 { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.75rem; }
.maintain-pillar p { color: var(--neutral-600); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

/* Disorders Section */
.disorders-section { margin: 3rem 0; }
.disorders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.disorder-card { background: white; border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.disorder-card h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.75rem; }
.disorder-card p { color: var(--neutral-600); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

.hope-message { background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%); border-radius: var(--radius-xl); padding: 2rem; text-align: center; border: 1px solid #a7f3d0; }
.hope-message h4 { font-size: 1.125rem; font-weight: 700; color: #166534; margin-bottom: 0.75rem; }
.hope-message p { color: #14532d; line-height: 1.7; margin: 0; }

/* Diets Section */
.diets-section { margin: 3rem 0; }
.diets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.diet-card { background: white; border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.diet-icon { font-size: 1.75rem; display: block; margin-bottom: 0.75rem; }
.diet-card h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.diet-card p { color: var(--neutral-600); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Change Section */
.change-section { background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%); border-radius: var(--radius-2xl); padding: 3rem; margin: 3rem 0; text-align: center; border: 1px solid var(--amber-200); }
.change-content .section-eyebrow { color: var(--amber-700); }
.change-section h2 { color: var(--amber-900); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.change-section p { color: var(--amber-800); line-height: 1.7; max-width: 700px; margin: 0 auto 1rem; }
.change-section p:last-child { margin-bottom: 0; }

/* Summary Grid */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.summary-card { background: white; border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); position: relative; padding-left: 4rem; }
.summary-num { position: absolute; left: 1rem; top: 1.5rem; width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; }
.summary-card h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.summary-card p { color: var(--neutral-600); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Module 5 Responsive */
@media (max-width: 767.98px) {
    .effects-grid, .measurement-methods, .factors-grid, .macro-ratio-cards, .examples-grid, .intensity-cards, .maintain-pillars, .disorders-grid, .diets-grid, .summary-grid { grid-template-columns: 1fr; }
    .calorie-minimums, .fats-comparison { grid-template-columns: 1fr; }
    .smart-grid { grid-template-columns: repeat(2, 1fr); }
    .smart-item:last-child { grid-column: span 2; }
    .rule-highlight { flex-direction: column; gap: 0.5rem; }
    .calculator-inputs--grid { grid-template-columns: 1fr; }
}

/* ========================================
   MODULE 6 - FLEXIBILITY STYLES
   ======================================== */

/* Posture Section */
.posture-section { background: linear-gradient(135deg, var(--primary-50) 0%, white 100%); border-radius: var(--radius-xl); padding: 2rem; margin: 2rem 0; border: 1px solid var(--primary-100); }
.posture-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.posture-tip { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; align-items: flex-start; gap: 1rem; }
.posture-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; flex-shrink: 0; }
.posture-tip h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.posture-tip p { color: var(--neutral-600); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Stretching Section */
.stretching-section { margin: 2rem 0; }
.stretching-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.stretch-type { background: white; border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stretch-type:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stretch-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--neutral-100); }
.stretch-badge { padding: 0.375rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stretch-badge--dynamic { background: var(--amber-100); color: var(--amber-800); }
.stretch-badge--static { background: var(--primary-100); color: var(--primary-800); }
.stretch-badge--pnf { background: linear-gradient(135deg, var(--primary-100) 0%, var(--amber-100) 100%); color: var(--neutral-800); }
.stretch-type h4 { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin: 0; }
.stretch-type p { color: var(--neutral-600); line-height: 1.7; margin: 0 0 0.75rem; }
.stretch-type p:last-child { margin-bottom: 0; }

/* Sensor Info */
.sensor-info { background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%); border-radius: var(--radius-xl); padding: 2rem; margin: 2rem 0; }
.sensor-info h4 { font-size: 1.25rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 1rem; }
.sensor-info p { color: var(--neutral-700); line-height: 1.7; }

/* Postural Problems Section */
.postural-problems-section { margin: 2rem 0; }
.postural-problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.postural-problem { background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); padding-bottom: 1.5rem; }
.problem-header { background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.problem-header h3 { color: white; font-size: 1.125rem; font-weight: 700; margin: 0; }
.problem-header h4 { color: white; font-size: 1.125rem; font-weight: 700; margin: 0; }
.problem-icon { font-size: 1.5rem; margin-right: 0.5rem; }
.postural-problem > p { padding: 0 1.5rem; color: var(--neutral-600); line-height: 1.7; margin: 0 0 1rem; }
.postural-problem > .problem-solution { margin: 0 1.5rem 1rem; }
.problem-solution { background: var(--primary-50); border-radius: var(--radius-lg); padding: 1rem; border-left: 4px solid var(--primary-500); }
.problem-solution h5 { font-size: 0.875rem; font-weight: 700; color: var(--primary-800); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.problem-solution p { color: var(--primary-700); margin: 0; font-size: 0.9375rem; }
/* Video container inside postural problem cards */
.postural-problem .video-container { margin: 0 1.5rem; padding-bottom: 56.25%; border-radius: var(--radius-lg); overflow: hidden; }
.postural-problem .video-container iframe { border-radius: var(--radius-lg); }

/* Myofascial Info */
.myofascial-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.myofascial-item { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); }
.myofascial-item h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.myofascial-item p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* Gluteal Symptoms */
.gluteal-symptoms { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.gluteal-symptoms span { background: var(--amber-100); color: var(--amber-800); padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 500; }

/* Prevention Steps */
.prevention-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.prev-step { background: var(--primary-50); border-radius: var(--radius-lg); padding: 1rem; text-align: center; border: 1px solid var(--primary-100); }
.prev-step span { display: block; width: 32px; height: 32px; background: var(--primary-600); color: white; border-radius: 50%; margin: 0 auto 0.75rem; line-height: 32px; font-weight: 700; font-size: 0.875rem; }
.prev-step p { color: var(--primary-800); font-size: 0.875rem; margin: 0; font-weight: 500; }

/* Stretch Regions Section */
.stretch-regions-section { margin: 2rem 0; }
.stretch-regions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.stretch-region { background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); padding-bottom: 1.5rem; }
.stretch-region h4 { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); color: white; padding: 1rem 1.5rem; margin: 0; font-size: 1rem; font-weight: 700; }
.stretch-region > div { padding: 1.5rem; }
.stretch-region p { color: var(--neutral-600); line-height: 1.7; margin: 0; padding: 1rem 1.5rem 0; }

/* ACSM Section */
.acsm-section { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%); border-radius: var(--radius-xl); padding: 2.5rem; margin: 2rem 0; color: white; }
.acsm-content h3 { color: white; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.acsm-content > p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.acsm-guidelines { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.acsm-guideline { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid rgba(255,255,255,0.2); }
.acsm-guideline h4 { color: white; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.acsm-guideline p { color: rgba(255,255,255,0.95); margin: 0; font-size: 1.125rem; font-weight: 600; }
.acsm-note { margin-top: 1.5rem; padding: 1rem 1.25rem; background: rgba(255,255,255,0.1); border-radius: var(--radius-lg); border-left: 4px solid rgba(255,255,255,0.5); }
.acsm-note p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.9375rem; }

/* Module 6 Responsive */
@media (max-width: 767.98px) {
    .posture-tips, .stretching-types, .postural-problems, .myofascial-info, .prevention-steps, .stretch-regions-grid, .acsm-guidelines { grid-template-columns: 1fr; }
    .posture-section, .acsm-section { padding: 1.5rem; }
    .gluteal-symptoms { justify-content: center; }
}

/* ========================================
   MODULE 7 - RELEVANT FITNESS TOPICS STYLES
   ======================================== */

/* Myth Section */
.myth-section { background: white; border-radius: var(--radius-xl); padding: 2rem; margin: 2rem 0; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.myth-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--neutral-100); }
.myth-number { display: inline-block; background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%); color: white; padding: 0.375rem 1rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.myth-title { font-size: 1.5rem; font-weight: 700; color: var(--neutral-900); margin: 0; }
.myth-content { display: grid; gap: 1.5rem; }

/* Myth Box */
.myth-box { border-radius: var(--radius-lg); overflow: hidden; }
.myth-box--false { background: var(--amber-50); border: 1px solid var(--amber-200); }
.myth-box--true { background: var(--primary-50); border: 1px solid var(--primary-200); }
.myth-box__header { padding: 1rem 1.5rem; }
.myth-box--false .myth-box__header { background: linear-gradient(135deg, var(--amber-100) 0%, var(--amber-50) 100%); }
.myth-box--true .myth-box__header { background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%); }
.myth-box__badge { display: inline-block; padding: 0.375rem 0.875rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.myth-box__badge--false { background: var(--amber-700); color: white; }
.myth-box__badge--true { background: var(--primary-600); color: white; }
.myth-box__body { padding: 1.5rem; }
.myth-box__body p { color: var(--neutral-700); line-height: 1.7; margin: 0 0 1rem; }
.myth-box__body p:last-child { margin-bottom: 0; }

/* Myths Grid */
.myths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.myth-card { background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.myth-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.myth-card__header { background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--amber-200); }
.myth-card__number { width: 36px; height: 36px; background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.myth-card__title { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin: 0; }
.myth-card__body { padding: 1.5rem; }
.myth-card__body p { color: var(--neutral-600); line-height: 1.7; margin: 0; }

/* Safety Section */
.safety-section { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%); border-radius: var(--radius-xl); padding: 3rem 2rem; margin: 2rem 0; }
.section-header--light .section-eyebrow--light { color: rgba(255,255,255,0.8); }
.section-title--light { color: white; }
.section-description--light { color: rgba(255,255,255,0.9); }
.safety-tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.safety-tip { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid rgba(255,255,255,0.15); display: flex; gap: 1rem; }
.safety-tip__number { width: 40px; height: 40px; background: rgba(255,255,255,0.2); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.safety-tip__content h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.safety-tip__content p { color: rgba(255,255,255,0.9); font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.safety-reminder { background: rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 1.25rem; border-left: 4px solid rgba(255,255,255,0.5); }
.safety-reminder p { color: rgba(255,255,255,0.9); margin: 0; line-height: 1.7; }

/* Supplement Factors */
.supplement-factors { margin: 2rem 0; }
.factors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.factor-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.factor-card__icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.factor-card__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.factor-card__content p { color: var(--neutral-600); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

/* Supplement Callout & Recommendation */
.supplement-callout { background: var(--primary-50); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--primary-500); }
.supplement-callout h4 { color: var(--primary-800); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.supplement-callout p { color: var(--primary-700); margin: 0; line-height: 1.7; }
.recommendation-box { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; }
.recommendation-box h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.recommendation-box p { color: rgba(255,255,255,0.95); margin: 0; line-height: 1.7; }

/* Evaluation Tips */
.evaluation-tips { display: grid; gap: 1rem; margin: 1.5rem 0; }
.eval-tip { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.eval-tip__number { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.eval-tip__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.eval-tip__content p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* Reliable Sources */
.reliable-sources { background: var(--primary-50); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; }
.reliable-sources h4 { color: var(--primary-800); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.sources-list { display: grid; gap: 0.75rem; }
.source-link { display: block; background: white; border-radius: var(--radius-md); padding: 1rem; border: 1px solid var(--primary-200); text-decoration: none; transition: all 0.2s ease; }
.source-link:hover { border-color: var(--primary-400); box-shadow: var(--shadow-sm); }
.source-name { display: block; font-weight: 700; color: var(--primary-700); margin-bottom: 0.25rem; }
.source-desc { display: block; font-size: 0.875rem; color: var(--neutral-600); line-height: 1.5; }

/* Facility Factors */
.facility-factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.facility-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.facility-card__icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%); color: white; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; flex-shrink: 0; }
.facility-card__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.facility-card__content p { color: var(--neutral-600); font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.facility-summary { background: var(--neutral-50); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; border: 1px solid var(--neutral-200); }
.facility-summary p { color: var(--neutral-700); line-height: 1.7; margin: 0; }

/* Pregnancy Section */
.pregnancy-section { margin: 2rem 0; }
.pregnancy-guidelines { display: grid; gap: 1rem; margin: 1.5rem 0; }
.pregnancy-guideline { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.pregnancy-guideline__icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.pregnancy-guideline__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.pregnancy-guideline__content p { color: var(--neutral-600); line-height: 1.6; margin: 0; }
.pregnancy-intro { color: var(--neutral-700); line-height: 1.7; margin: 1.5rem 0; }
.pregnancy-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.pregnancy-benefit { background: var(--primary-50); border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid var(--primary-100); }
.pregnancy-benefit h4 { font-size: 0.9375rem; font-weight: 700; color: var(--primary-800); margin-bottom: 0.5rem; }
.pregnancy-benefit p { color: var(--primary-700); font-size: 0.875rem; line-height: 1.6; margin: 0; }
.pregnancy-key-guidelines { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; }
.pregnancy-key-guidelines h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.pregnancy-key-guidelines p { color: rgba(255,255,255,0.95); margin: 0; line-height: 1.7; }

/* Certification Section */
.certification-alert { background: var(--amber-50); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--amber-500); }
.certification-alert p { color: var(--amber-800); margin: 0; line-height: 1.7; font-weight: 500; }
.certification-tips { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.cert-tip { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); }
.cert-tip__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.cert-tip__number { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.cert-tip__header h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin: 0; }
.cert-tip p { color: var(--neutral-600); line-height: 1.7; margin: 0; }
.certification-warning { background: var(--amber-50); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; border: 1px solid var(--amber-200); }
.certification-warning h4 { color: var(--amber-800); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.certification-warning p { color: var(--amber-700); margin: 0; line-height: 1.7; }

/* Module Summary */
.module-summary { background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%); border-radius: var(--radius-xl); padding: 2.5rem 2rem; margin: 2rem 0; border: 1px solid var(--neutral-200); }
.summary-objectives { display: grid; gap: 1.25rem; }
.summary-objective { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1.25rem; }
.summary-objective__number { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; flex-shrink: 0; }
.summary-objective__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.summary-objective__content p { color: var(--neutral-600); line-height: 1.7; margin: 0; }

/* Module 7 Responsive */
@media (max-width: 767.98px) {
    .myth-section { padding: 1.5rem; }
    .myths-grid, .safety-tips-grid, .factors-grid, .facility-factors, .pregnancy-benefits { grid-template-columns: 1fr; }
    .safety-section { padding: 2rem 1.5rem; }
    .myth-content { gap: 1rem; }
}

/* ========================================
   MODULE 8 - WELLNESS ISSUES STYLES
   ======================================== */

/* Risk Factors Grid */
.risk-factors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.risk-card { background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.risk-card__header { padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.risk-card--modifiable .risk-card__header { background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); }
.risk-card--non-modifiable .risk-card__header { background: linear-gradient(135deg, var(--neutral-600) 0%, var(--neutral-700) 100%); }
.risk-card__badge { padding: 0.375rem 0.75rem; background: rgba(255,255,255,0.2); color: white; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.risk-card__header h3 { color: white; font-size: 1.125rem; font-weight: 700; margin: 0; }
.risk-card__body { padding: 1.5rem; }
.risk-card__image { display: block; max-width: 150px; margin: 0 auto 1rem; border-radius: var(--radius-lg); }
.risk-card__body p { color: var(--neutral-600); line-height: 1.7; margin: 0 0 1rem; }
.risk-card__body p:last-child { margin-bottom: 0; }

/* Causes Section */
.causes-section { background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%); border-radius: var(--radius-xl); padding: 3rem 2rem; margin: 2rem 0; }
.causes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.cause-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid rgba(255,255,255,0.1); display: flex; gap: 1rem; transition: all 0.2s ease; }
.cause-card:hover { background: rgba(255,255,255,0.12); }
.cause-card__rank { width: 40px; height: 40px; background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.cause-card__content h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 0.375rem; }
.cause-card__content p { color: rgba(255,255,255,0.8); font-size: 0.875rem; line-height: 1.5; margin: 0; }
.causes-reminder { background: rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 1.25rem; border-left: 4px solid var(--amber-500); }
.causes-reminder p { color: rgba(255,255,255,0.9); margin: 0; line-height: 1.7; }

/* Cholesterol Types */
.cholesterol-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.cholesterol-card { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.cholesterol-card--good { background: var(--primary-50); border: 2px solid var(--primary-200); }
.cholesterol-card--bad { background: var(--amber-50); border: 2px solid var(--amber-200); }
.cholesterol-card__header { padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.cholesterol-card--good .cholesterol-card__header { background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%); }
.cholesterol-card--bad .cholesterol-card__header { background: linear-gradient(135deg, var(--amber-100) 0%, var(--amber-50) 100%); }
.cholesterol-card__label { padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 700; }
.cholesterol-card--good .cholesterol-card__label { background: var(--primary-600); color: white; }
.cholesterol-card--bad .cholesterol-card__label { background: var(--amber-700); color: white; }
.cholesterol-card__header h4 { font-size: 1rem; font-weight: 700; margin: 0; }
.cholesterol-card--good .cholesterol-card__header h4 { color: var(--primary-800); }
.cholesterol-card--bad .cholesterol-card__header h4 { color: var(--amber-800); }
.cholesterol-card__body { padding: 1.5rem; }
.cholesterol-card--good .cholesterol-card__body p { color: var(--primary-700); }
.cholesterol-card--bad .cholesterol-card__body p { color: var(--amber-700); }
.cholesterol-card__body p { line-height: 1.7; margin: 0; }

/* Cholesterol Alert */
.cholesterol-alert { background: var(--amber-50); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--amber-500); }
.cholesterol-alert h4 { color: var(--amber-800); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.cholesterol-alert p { color: var(--amber-700); margin: 0; line-height: 1.7; }

/* Lifestyle Grid */
.lifestyle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.lifestyle-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.lifestyle-card__icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.lifestyle-card__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.lifestyle-card__content p { color: var(--neutral-600); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

/* Diabetes Types */
.diabetes-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.diabetes-card { background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.diabetes-card__header { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); padding: 1rem 1.5rem; display: flex; justify-content: center; }
.diabetes-card__type { background: rgba(255,255,255,0.2); color: white; padding: 0.5rem 1.5rem; border-radius: var(--radius-full); font-weight: 700; font-size: 0.875rem; }
.diabetes-card__body { padding: 1.5rem; }
.diabetes-card__body h4 { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.75rem; }
.diabetes-card__body p { color: var(--neutral-600); line-height: 1.7; margin: 0; }

/* Diabetes Warning */
.diabetes-warning { background: var(--amber-50); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--amber-500); }
.diabetes-warning h4 { color: var(--amber-800); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.diabetes-warning p { color: var(--amber-700); margin: 0; line-height: 1.7; }

/* Disorders Grid */
.disorders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.disorder-card { background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.disorder-card__header { background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%); padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--neutral-200); }
.disorder-card__header h4 { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); margin: 0; }
.disorder-card__body { padding: 1.5rem; }
.disorder-card__body p { color: var(--neutral-600); line-height: 1.7; margin: 0; }

/* Treatment Box */
.treatment-box { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; }
.treatment-box h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.treatment-box p { color: rgba(255,255,255,0.95); margin: 0; line-height: 1.7; }

/* Cancer Info */
.cancer-info { margin: 1.5rem 0; }
.cancer-types-info { background: var(--neutral-50); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.cancer-types-info h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 1rem; }
.tumor-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tumor-type { padding: 1rem; border-radius: var(--radius-md); }
.tumor-type--benign { background: var(--primary-50); border: 1px solid var(--primary-200); }
.tumor-type--malignant { background: var(--amber-50); border: 1px solid var(--amber-200); }
.tumor-type h5 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.5rem; }
.tumor-type--benign h5 { color: var(--primary-800); }
.tumor-type--malignant h5 { color: var(--amber-800); }
.tumor-type p { font-size: 0.875rem; line-height: 1.6; margin: 0; }
.tumor-type--benign p { color: var(--primary-700); }
.tumor-type--malignant p { color: var(--amber-700); }
.cancer-info > p { color: var(--neutral-700); line-height: 1.7; margin: 0 0 1rem; }

/* Prevention Section */
.prevention-section { margin: 2rem 0; }
.prevention-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.prevention-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.prevention-card__number { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.prevention-card__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.prevention-card__content p { color: var(--neutral-600); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

/* Substance Section */
.substance-section { margin: 2rem 0; }
.substance-content { margin: 1.5rem 0; }
.substance-intro { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.substance-image { max-width: 200px; border-radius: var(--radius-lg); border: 1px solid var(--neutral-200); padding: 0.5rem; background: white; }
.substance-text { flex: 1; min-width: 280px; }
.substance-text p { color: var(--neutral-700); line-height: 1.7; margin: 0 0 1rem; }
.substance-text p:last-child { margin-bottom: 0; }

/* Alcohol College Warning */
.alcohol-college-warning { background: var(--amber-50); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--amber-500); }
.alcohol-college-warning h4 { color: var(--amber-800); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.alcohol-college-warning p { color: var(--amber-700); margin: 0; line-height: 1.7; }

/* Emergency Box */
.emergency-box { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); border-radius: var(--radius-xl); overflow: hidden; margin: 1.5rem 0; }
.emergency-box__header { padding: 1rem 1.5rem; background: rgba(0,0,0,0.1); display: flex; justify-content: center; }
.emergency-badge { background: white; color: #dc2626; padding: 0.5rem 1.5rem; border-radius: var(--radius-full); font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; }
.emergency-box__body { padding: 1.5rem; }
.emergency-box__body h4 { color: white; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.emergency-box__body p { color: rgba(255,255,255,0.95); margin: 0; line-height: 1.7; }

/* Symptoms Box */
.symptoms-box { background: var(--neutral-50); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; }
.symptoms-box h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 1rem; }
.symptoms-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.symptom-tag { background: white; color: var(--neutral-700); padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 500; border: 1px solid var(--neutral-200); }

/* Effects Grid (Module 8) */
.effects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.effect-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); border-top: 4px solid var(--amber-500); }
.effect-card h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.effect-card p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* Vaping Warning */
.vaping-warning { background: var(--amber-50); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; border: 1px solid var(--amber-200); }
.vaping-warning h4 { color: var(--amber-800); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.vaping-warning p { color: var(--amber-700); margin: 0 0 0.75rem; line-height: 1.7; }
.vaping-warning p:last-child { margin-bottom: 0; }

/* Drugs Info */
.drugs-info { margin: 1.5rem 0; }
.drugs-info p { color: var(--neutral-700); line-height: 1.7; margin: 0 0 1rem; }
.drugs-info p:last-child { margin-bottom: 0; }

/* Fentanyl Warning */
.fentanyl-warning { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; }
.fentanyl-warning__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.warning-badge { background: white; color: #dc2626; padding: 0.375rem 0.875rem; border-radius: var(--radius-full); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.fentanyl-warning h4 { color: white; font-size: 1rem; font-weight: 700; margin: 0; }
.fentanyl-warning > p { color: rgba(255,255,255,0.95); margin: 0; line-height: 1.7; }

/* STD Section */
.std-section { margin: 2rem 0; }
.std-prevention-grid { display: grid; gap: 1rem; }
.std-prevention-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.std-prevention-card__number { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.std-prevention-card__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.std-prevention-card__content p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* Stress Section */
.stress-section { margin: 2rem 0; }
.stress-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.stress-card { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.stress-card--eustress { background: var(--primary-50); border: 2px solid var(--primary-200); }
.stress-card--distress { background: var(--amber-50); border: 2px solid var(--amber-200); }
.stress-card__header { padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.stress-card--eustress .stress-card__header { background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%); }
.stress-card--distress .stress-card__header { background: linear-gradient(135deg, var(--amber-100) 0%, var(--amber-50) 100%); }
.stress-card__badge { padding: 0.375rem 0.875rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.stress-card--eustress .stress-card__badge { background: var(--primary-600); color: white; }
.stress-card--distress .stress-card__badge { background: var(--red-700); color: white; }
.stress-card__header h4 { font-size: 1.125rem; font-weight: 700; margin: 0; }
.stress-card--eustress .stress-card__header h4 { color: var(--primary-800); }
.stress-card--distress .stress-card__header h4 { color: var(--red-800); }
.stress-card__body { padding: 1.5rem; }
.stress-card--eustress .stress-card__body p { color: var(--primary-700); }
.stress-card--distress .stress-card__body p { color: var(--amber-700); }
.stress-card__body p { line-height: 1.7; margin: 0; }

/* Exercise Stress Box */
.exercise-stress-box { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; }
.exercise-stress-box h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.exercise-stress-box p { color: rgba(255,255,255,0.95); margin: 0; line-height: 1.7; }

/* Stress Techniques */
.stress-techniques { display: grid; gap: 1rem; margin: 1.5rem 0; }
.technique-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.technique-card__number { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.technique-card__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.technique-card__content p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* Back Care Section */
.back-care-section { margin: 2rem 0; }
.back-tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.back-tip { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); display: flex; gap: 1rem; }
.back-tip__number { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.back-tip__content h4 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.5rem; }
.back-tip__content p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* Section Note */
.section-note { background: var(--neutral-50); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin: 1.5rem 0; color: var(--neutral-700); line-height: 1.7; border-left: 4px solid var(--neutral-300); }

/* Module 8 Responsive */
@media (max-width: 767.98px) {
    .risk-factors-grid, .causes-grid, .cholesterol-types, .lifestyle-grid, .diabetes-types, .disorders-grid, .tumor-comparison, .prevention-grid, .effects-grid, .stress-types, .back-tips-grid { grid-template-columns: 1fr; }
    .causes-section { padding: 2rem 1.5rem; }
    .substance-intro { flex-direction: column; align-items: center; }
    .substance-image { margin-bottom: 1rem; }
    .symptoms-grid { justify-content: center; }
}

/* ============================================================================
   NUTRITION PAGE STYLES
   ============================================================================ */

/* Nutrition Hero Card */
.nutrition-hero {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fbbf24;
}

.nutrition-hero__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nutrition-hero__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.nutrition-hero__content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #78350f;
    margin: 0 0 0.5rem 0;
}

.nutrition-hero__content p {
    color: #92400e;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 600px;
}

@media (max-width: 767.98px) {
    .nutrition-hero__inner {
        flex-direction: column;
        text-align: center;
    }
    .nutrition-hero__content p {
        max-width: 100%;
    }
}

/* Macro Stats Grid */
.macro-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .macro-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .macro-stats-grid {
        grid-template-columns: 1fr;
    }
}

.macro-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.macro-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.macro-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.macro-stat-card__icon--calories {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.macro-stat-card__icon--carbs {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.macro-stat-card__icon--protein {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.macro-stat-card__icon--fat {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
}

.macro-stat-card__content {
    flex: 1;
    min-width: 0;
}

.macro-stat-card__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    line-height: 1.2;
}

.macro-stat-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Date Selection Card */
.date-selection-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.date-selection-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.date-selection-card__header i {
    font-size: 1.25rem;
    color: var(--primary-600);
}

.date-selection-card__header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.date-selection-card__body {
    padding: 1.5rem;
}

.date-selection-card__info {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #22c55e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-selection-card__info i {
    font-size: 1.25rem;
    color: #166534;
    flex-shrink: 0;
}

.date-selection-card__info p {
    color: #166534;
    margin: 0;
    font-size: 0.9375rem;
}

.date-form {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.date-form__hint {
    color: var(--neutral-600);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.date-form__suggestion {
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.date-form__suggestion strong {
    color: var(--primary-600);
    font-weight: 700;
}

.date-form .form-floating {
    margin-bottom: 1rem;
}

.date-form .form-control {
    border-radius: var(--radius-md);
    border: 2px solid var(--neutral-200);
    padding: 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-form .form-control:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
    outline: none;
}

.btn-generate-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
    box-shadow: var(--shadow-md);
}

.btn-generate-report:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, #003d7a 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-generate-report:focus-visible {
    outline: 3px solid var(--primary-600);
    outline-offset: 2px;
}

/* Chart Cards */
.chart-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.chart-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.chart-card__header i {
    font-size: 1.25rem;
    color: #7c3aed;
}

.chart-card__header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.chart-card__body {
    padding: 1.5rem;
    min-height: 320px;
}

/* Daily Summary Cards Grid */
.daily-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .daily-summary-grid {
        grid-template-columns: 1fr;
    }
}

.daily-summary-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.daily-summary-card__header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-bottom: 1px solid var(--primary-200);
    text-align: center;
}

.daily-summary-card__date {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-800);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.daily-summary-card__body {
    padding: 1.25rem;
}

.daily-summary-card__macros {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.daily-macro {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.daily-macro__value {
    font-size: 1.25rem;
    font-weight: 800;
}

.daily-macro__value--carbs { color: #3b82f6; }
.daily-macro__value--protein { color: #22c55e; }
.daily-macro__value--fat { color: #f59e0b; }

.daily-macro__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Food Log Table Card */
.food-log-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.food-log-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    flex-wrap: wrap;
}

.food-log-card__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.food-log-card__title i {
    font-size: 1.25rem;
    color: var(--primary-600);
}

.food-log-card__title h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.food-log-card__body {
    padding: 1.5rem;
}

/* Modern Data Table */
.nutrition-data-table {
    width: 100%;
    border-collapse: collapse;
}

.nutrition-data-table thead {
    background: var(--neutral-50);
}

.nutrition-data-table th {
    padding: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    text-align: left;
    border-bottom: 2px solid var(--neutral-200);
}

.nutrition-data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-100);
    font-size: 0.9375rem;
    color: var(--neutral-800);
}

.nutrition-data-table tbody tr {
    transition: background-color 0.15s ease;
}

.nutrition-data-table tbody tr:hover {
    background: var(--neutral-50);
}

.nutrition-data-table .food-name {
    font-weight: 600;
    color: var(--neutral-900);
}

.nutrition-data-table .numeric {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Report Footer */
.report-generated {
    text-align: center;
    padding: 1.5rem;
    color: var(--neutral-500);
    font-size: 0.875rem;
    border-top: 1px solid var(--neutral-100);
    margin-top: 1rem;
}

.report-generated i {
    margin-right: 0.5rem;
}

/* Print Styles */
@media print {
    .nutrition-hero,
    .date-selection-card,
    .btn-generate-report,
    .header-actions,
    .dashboard-header-bar {
        break-inside: avoid;
    }

    .chart-card,
    .food-log-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--neutral-300);
    }
}

/* Nutrition Page Responsive */
@media (max-width: 767.98px) {
    .nutrition-hero {
        padding: 1.5rem;
    }

    .nutrition-hero__icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .nutrition-hero__content h1 {
        font-size: 1.25rem;
    }

    .chart-card__body {
        padding: 1rem;
        min-height: 280px;
    }

    .daily-summary-card__macros {
        gap: 0.5rem;
    }
}

/* ============================================================================
   ADMIN SIDEBAR STYLES
   ============================================================================ */

/* Sidebar Container - Use consistent 240px width with student sidebar */
.admin-sidebar {
    background: white;
    border-right: 1px solid var(--neutral-200);
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    width: 240px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

/* User Profile Section */
.sidebar-profile {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-profile__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-profile__info {
    flex: 1;
    min-width: 0;
}

.sidebar-profile__name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile__role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Course Selector */
.sidebar-course-select {
    padding: 1rem 1.25rem;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.sidebar-course-select__label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.sidebar-course-select__dropdown {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-800);
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-course-select__dropdown:hover {
    border-color: var(--primary-600);
}

.sidebar-course-select__dropdown:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* Navigation Container */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

/* Menu Section */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu Item */
.sidebar-menu__item {
    margin-bottom: 0.125rem;
}

/* Menu Link/Button - Base Styles */
.sidebar-menu__link,
.sidebar-menu__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-700);
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.sidebar-menu__link:hover,
.sidebar-menu__toggle:hover {
    background: var(--neutral-50);
    color: var(--primary-600);
}

.sidebar-menu__link:focus-visible,
.sidebar-menu__toggle:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: -2px;
}

/* Active State */
.sidebar-menu__link--active,
.sidebar-menu__link--active:hover {
    background: linear-gradient(90deg, var(--primary-50) 0%, transparent 100%);
    color: var(--primary-600);
    border-left: 3px solid var(--primary-600);
    padding-left: calc(1.25rem - 3px);
    font-weight: 600;
}

/* Menu Icon */
.sidebar-menu__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-menu__link:hover .sidebar-menu__icon,
.sidebar-menu__toggle:hover .sidebar-menu__icon,
.sidebar-menu__link--active .sidebar-menu__icon {
    opacity: 1;
}

/* Toggle Arrow */
.sidebar-menu__arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.sidebar-menu__toggle[aria-expanded="true"] .sidebar-menu__arrow {
    transform: rotate(180deg);
}

/* Submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
    background: var(--neutral-50);
}

.sidebar-submenu.show {
    max-height: 500px;
}

.sidebar-submenu__item {
    margin: 0;
}

.sidebar-submenu__link {
    display: block;
    padding: 0.625rem 1.25rem 0.625rem 3.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-submenu__link::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neutral-300);
    transition: background 0.15s ease;
}

.sidebar-submenu__link:hover {
    background: var(--neutral-100);
    color: var(--primary-600);
}

.sidebar-submenu__link:hover::before {
    background: var(--primary-600);
}

.sidebar-submenu__link--active {
    color: var(--primary-600);
    font-weight: 600;
    background: var(--primary-50);
}

.sidebar-submenu__link--active::before {
    background: var(--primary-600);
}

/* Menu Divider */
.sidebar-menu__divider {
    height: 1px;
    background: var(--neutral-200);
    margin: 0.75rem 1.25rem;
}

/* Menu Section Header */
.sidebar-menu__header {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.sidebar-footer__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.sidebar-footer__link:hover {
    background: white;
    color: var(--danger-500);
}

.sidebar-footer__link i {
    font-size: 1rem;
}

/* Collapsed State - For Mobile Toggle */
.admin-sidebar--collapsed {
    transform: translateX(-100%);
}

/* Sidebar Overlay - For Mobile */
.sidebar-overlay {
    position: fixed;
    top: 70px; /* Start below topbar */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below topbar (1050) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .sidebar-overlay,
    .admin-sidebar,
    #left-menu.admin-sidebar,
    .side-menu {
        transition: none !important;
    }
}

/* Mobile Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--neutral-700);
}

/* Sidebar Responsive */
@media (max-width: 991.98px) {
    /* Force hide sidebar completely when collapsed on mobile */
    .admin-sidebar,
    #left-menu.admin-sidebar,
    .side-menu,
    body.enlarged .admin-sidebar,
    body.enlarged #left-menu.admin-sidebar,
    body.enlarged .side-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 240px !important;
        height: calc(100vh - 70px) !important;
        transform: translateX(-100%) !important;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        z-index: 1000 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* When hamburger clicked, .enlarged is removed, show sidebar */
    body:not(.enlarged) .admin-sidebar,
    body:not(.enlarged) #left-menu.admin-sidebar,
    body:not(.enlarged) .side-menu {
        transform: translateX(0) !important;
        overflow-y: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Legacy .show class support */
    .admin-sidebar.show,
    #left-menu.admin-sidebar.show,
    .side-menu.show {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    /* Content takes full width on mobile */
    .content-page,
    body .content-page,
    body.enlarged .content-page,
    body.enlarged #wrapper .content-page {
        margin-left: 0 !important;
    }

    /* Restore full sidebar appearance on mobile (override collapsed styles) */
    .enlarged #left-menu .sidebar-menu__link,
    .enlarged #left-menu .sidebar-menu__toggle {
        font-size: 0.8125rem !important;
        justify-content: flex-start !important;
        padding: 0.4375rem 0.625rem !important;
    }

    .enlarged #left-menu .sidebar-menu__icon {
        margin-right: 0.5rem !important;
    }

    .enlarged #left-menu .sidebar-menu__arrow {
        display: inline-block !important;
    }

    /* Restore full sidebar profile appearance on mobile - high specificity to override sidebar.php */
    body.enlarged #left-menu.admin-sidebar .sidebar-profile,
    body:not(.enlarged) #left-menu.admin-sidebar .sidebar-profile {
        padding: 1rem !important;
        justify-content: flex-start !important;
        display: flex !important;
        align-items: center !important;
    }

    body.enlarged #left-menu.admin-sidebar .sidebar-profile__avatar,
    body:not(.enlarged) #left-menu.admin-sidebar .sidebar-profile__avatar {
        display: block !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        margin-right: 0.75rem !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
    }

    body.enlarged #left-menu.admin-sidebar .sidebar-profile__info,
    body:not(.enlarged) #left-menu.admin-sidebar .sidebar-profile__info,
    body.enlarged #left-menu.admin-sidebar .sidebar-course-select,
    body:not(.enlarged) #left-menu.admin-sidebar .sidebar-course-select {
        display: block !important;
    }

    /* Disable desktop flyout menus on mobile */
    .enlarged #left-menu .sidebar-menu__item > div[id$="-collapse"] {
        position: static !important;
        width: 100% !important;
        left: auto !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    /* Hide tooltips on mobile */
    .enlarged #left-menu a.sidebar-menu__link[data-tooltip]:hover::after,
    .enlarged #left-menu a.sidebar-menu__link[data-tooltip]:hover::before {
        display: none !important;
    }
}

/* Badge in Menu */
.sidebar-menu__badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--primary-600);
    color: white;
    border-radius: var(--radius-full);
}

.sidebar-menu__badge--warning {
    background: var(--warning-500);
    color: #78350f;
}

.sidebar-menu__badge--success {
    background: var(--success-500);
}

/* ============================================================================
   Floating Label Form Styles (merged from form.css)
   ============================================================================ */

/* horizontal line on signin.php */
p.newto {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

p.newto:before,
p.newto:after {
    content: '';
    border-top: 1px solid;
    border-top-color: lightgray;
    margin: 0 20px 0 0;
    flex: 1 0 20px;
}

p.newto:after {
    margin: 0 0 0 20px;
}
/* end horizontal line on signin.php */

.has-float-label {
    position: relative;
}

.has-float-label label {
    position: absolute;
    cursor: text;
    font-size: 75%;
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
    top: -.9em;
    left: .75rem;
    z-index: 3;
    line-height: 1;
    padding: 0 1px;
}

.has-float-label label::after {
    content: " ";
    display: block;
    position: absolute;
    background: #fff;
    height: 2px;
    top: 50%;
    left: -.2em;
    right: -.2em;
    z-index: -1;
    color: #67696A;
}

.has-float-label .form-control::-webkit-input-placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.has-float-label .form-control:placeholder-shown:not(:focus)::-webkit-input-placeholder {
    opacity: 0;
}

.has-float-label .form-control:placeholder-shown:not(:focus)+label {
    font-size: 110%;
    opacity: .9;
    vertical-align: middle;
    color: #67696A;
}

.input-group .has-float-label {
    display: table-cell;
}

.input-group .has-float-label .form-control {
    border-radius: .25rem;
}

.input-group .has-float-label:not(:last-child) .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.input-group .has-float-label:not(:first-child) .form-control {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    margin-left: -1px;
}

select,
textarea,
input {
    margin-bottom: 1rem;
}
