/* ============================================
   TrustedPeps - Professional Medical Design
   Clean, Trustworthy, Evidence-Based
   ============================================ */

/* CSS Variables for Consistent Theming - Modern Design System */
:root {
    /* Primary Colors - Dark Navy Palette */
    --primary: #1a2540;
    --primary-dark: #0f1419;
    --primary-light: #f1f3f6;

    /* Accent Colors - Teal for Modern Trust */
    --accent: #17a2b8;
    --accent-light: #e0f7fa;

    /* Semantic Colors */
    --success: #27ae60;
    --success-light: #d5f4e6;
    --warning: #f39c12;
    --warning-light: #fef5e7;
    --danger: #e74c3c;
    --danger-light: #fadbd8;

    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-muted: #95a5a6;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #f1f3f6;

    /* Border Colors */
    --border-color: #e8ebed;
    --border-light: #f0f1f3;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 64px;

    /* Shadow System */
    --shadow-none: none;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s ease;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
}

.brand-text {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: var(--space-md) 0;
    min-width: 220px;
}

.dropdown-item {
    padding: var(--space-md) var(--space-lg);
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: none;
    color: white;
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

/* ============================================
   Page Header (for sub-pages consistency)
   ============================================ */
.page-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    margin-top: 80px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.6;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.25rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: none;
    max-width: 360px;
}

.hero-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ============================================
   Notice Banner
   ============================================ */
.notice-banner {
    background-color: #fef3cd;
    border-bottom: 1px solid #ffc107;
    padding: 0.875rem 0;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notice-icon {
    font-size: 1.25rem;
    color: #997404;
}

.notice-text {
    color: #664d03;
    font-size: 0.9375rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* Quick Access Section */
.quick-access-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-2xl);
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    height: 100%;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.quick-card:hover {
    box-shadow: var(--shadow-md);
    background-color: var(--primary-light);
    transform: translateY(-4px);
    color: var(--text-primary);
}

.quick-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.quick-card h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.quick-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
    line-height: 1.5;
}

.quick-card-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
}

.quick-card:hover .quick-card-link {
    color: var(--primary);
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
    background-color: var(--bg-section);
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: none;
    height: 100%;
}

.category-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.category-header.weight-loss {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.category-header.healing {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
}

.category-header.cognitive {
    background: linear-gradient(135deg, var(--success), var(--primary));
    color: white;
}

.category-header i {
    font-size: 1.25rem;
}

.category-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.category-body {
    padding: 1.25rem 1.5rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-light);
}

.category-list li:last-child {
    border-bottom: none;
}

.peptide-name {
    font-weight: 500;
    color: var(--text-primary);
}

.status-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.approved {
    background-color: var(--success-light);
    color: #0a5239;
}

.status-badge.trials {
    background-color: #cff4fc;
    color: #055160;
}

.status-badge.research {
    background-color: #fff3cd;
    color: #664d03;
}

.category-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.category-link:hover {
    color: var(--primary-dark);
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.trust-items {
    margin-top: 1.5rem;
}

.trust-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.trust-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trust-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.sources-card {
    background: var(--bg-section);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: none;
}

.sources-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.sources-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.sources-list i {
    color: var(--success);
}

.sources-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.sources-note i {
    color: var(--primary);
    margin-right: 0.25rem;
}

/* Safety Section */
.safety-section {
    padding: 60px 0;
    background-color: var(--bg-section);
}

.safety-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--danger);
    box-shadow: var(--shadow-sm);
}

.safety-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8d7da;
    color: var(--danger);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.safety-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.safety-card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.safety-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.safety-list li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.safety-emphasis {
    font-weight: 600;
    color: var(--danger);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-muted);
    padding: 60px 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    background: white;
    color: var(--primary-dark);
}

.footer-brand .brand-text {
    color: white;
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer h6 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-legal {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ============================================
   Peptide Cards (Database Page)
   ============================================ */
.search-section {
    padding: 2rem 0;
    background-color: var(--bg-section);
}

.peptides-section {
    padding: 3rem 0 2rem;
    background-color: var(--bg-section);
}

.peptide-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.peptide-card:hover {
    box-shadow: var(--shadow-md);
}

.peptide-card-header {
    background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.peptide-card h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.peptide-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.peptide-card-body {
    padding: 1.5rem;
}

.info-group {
    margin-bottom: 1rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.info-content {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.status-approved {
    background-color: var(--success-light);
    color: #0a5239;
}

.status-research {
    background-color: #fff3cd;
    color: #664d03;
}

.status-trials {
    background-color: #cff4fc;
    color: #055160;
}

/* ============================================
   Peptide Database - Table Layout
   ============================================ */
.category-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.category-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 3px solid #0d6efd;
    margin-bottom: 2rem;
}

.category-header-bar h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    letter-spacing: -0.5px;
}

.peptide-count {
    background-color: #0d6efd;
    color: white;
    padding: 12px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
}

.peptide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.peptide-table thead {
    background-color: var(--primary);
    position: sticky;
    top: 0;
}

.peptide-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: white;
    border-bottom: 2px solid var(--primary-dark);
}

.peptide-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.peptide-row {
    background-color: white;
}

.peptide-row:nth-child(even) {
    background-color: var(--bg-section);
}

.peptide-row:hover {
    background-color: var(--accent-light);
}

.peptide-row:last-child td {
    border-bottom: none;
}

/* Column widths */
.col-name { width: 15%; min-width: 140px; }
.col-status { width: 10%; min-width: 100px; }
.col-uses { width: 20%; }
.col-dosing { width: 30%; min-width: 280px; }
.col-trials { width: 25%; }

.peptide-name-cell strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.peptide-name-cell .generic-name {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.col-uses {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Mini dosing table inside main table */
.dosing-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.dosing-mini-table thead {
    background: var(--primary-light);
}

.dosing-mini-table th {
    padding: 0.5rem 0.625rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--primary);
    border: none;
}

.dosing-mini-table td {
    padding: 0.375rem 0.625rem;
    border: none;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.dosing-mini-table tbody tr:first-child td {
    border-top: none;
}

.dosing-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff3cd;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    color: #664d03;
    line-height: 1.4;
}

/* Trial results styling */
.trial-info {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.trial-results {
    background: var(--success-light);
    padding: 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #0a5239;
    line-height: 1.5;
}

.trial-results strong {
    color: var(--success);
}

.result-highlight {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.6875rem;
}

/* Category navigation */
.category-nav .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Responsive adjustments for peptide table */
@media (max-width: 1200px) {
    .peptide-table {
        font-size: 0.8125rem;
    }

    .peptide-table th,
    .peptide-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 992px) {
    .category-header-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .peptide-table thead {
        display: none;
    }

    .peptide-table tbody tr {
        display: block;
        border-bottom: 2px solid var(--border-color);
        padding: 1rem;
    }

    .peptide-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
    }

    .peptide-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-primary);
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .col-name, .col-status, .col-uses, .col-dosing, .col-trials {
        width: 100%;
        min-width: auto;
    }
}

/* ============================================
   Calculator Pages
   ============================================ */
.calculator-section {
    padding: 100px 0 60px;
    background-color: var(--bg-section);
    min-height: 100vh;
}

.calculator-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.calculator-card h5 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.calculator-card .text-muted {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.calculator-card label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.calculator-card .form-control,
.calculator-card .form-select {
    border-radius: var(--radius-md);
    border-color: var(--border-color);
    padding: 0.625rem 0.875rem;
}

.calculator-card .form-control:focus,
.calculator-card .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.calculator-card .btn-primary {
    margin-top: 1rem;
}

.result-box {
    background-color: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.all-in-one {
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.all-in-one h5 {
    color: var(--primary);
}

.calculator-guide {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.calculator-guide h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.guide-content {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.guide-content ul {
    margin-bottom: 0;
}

.reconstitution-guide {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
}

.reconstitution-guide h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* ============================================
   Weight Loss Calculator
   ============================================ */
.disclaimer-box {
    background-color: #fff3cd;
    border: 1px solid #ffda6a;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.disclaimer-title {
    color: #664d03;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.disclaimer-list {
    margin: 1rem 0;
    color: #664d03;
    padding-left: 1.25rem;
}

.disclaimer-list li {
    margin-bottom: 0.5rem;
}

.disclaimer-footer {
    color: #664d03;
    font-size: 0.9375rem;
    margin: 1rem 0 0;
}

.result-card {
    background: var(--primary-light);
    border: 1px solid #b6d4fe;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}

.result-label {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.result-value {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.milestone-table,
.weekly-table {
    width: 100%;
    border-collapse: collapse;
}

.milestone-table thead,
.weekly-table thead {
    background-color: var(--primary);
}

.milestone-table th,
.weekly-table th {
    padding: 0.875rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    border-bottom: 2px solid var(--primary-dark);
}

.milestone-table td,
.weekly-table td {
    padding: 0.875rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9375rem;
}

.milestone-table tbody tr,
.weekly-table tbody tr {
    background-color: white;
}

.milestone-table tbody tr:nth-child(even),
.weekly-table tbody tr:nth-child(even) {
    background-color: var(--bg-section);
}

.milestone-table tbody tr:hover,
.weekly-table tbody tr:hover {
    background-color: var(--accent-light);
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 1.5rem 0;
}

#resultsContainer {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Vendor Page Styles
   ============================================ */
.vendor-disclaimer {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.vendor-disclaimer .disclaimer-title {
    color: #991b1b;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.vendor-disclaimer p {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.vendor-disclaimer .disclaimer-list {
    color: var(--text-primary);
    margin: 1rem 0;
    padding-left: 1.25rem;
}

.vendor-disclaimer .disclaimer-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.vendor-disclaimer .disclaimer-footer {
    background-color: #fee2e2;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    color: #991b1b;
    font-size: 0.9375rem;
}

.methodology-section {
    background: var(--bg-white);
    border-left: 4px solid var(--primary);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.methodology-section h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.methodology-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

.methodology-item {
    background: var(--bg-section);
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.methodology-weight {
    background-color: var(--primary);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    height: fit-content;
}

.methodology-details strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.methodology-details small {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.8125rem;
}

.vendor-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
    transition: var(--transition);
}

.vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vendor-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-weight: 700;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.vendor-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
    font-size: 1.125rem;
}

.vendor-name .badge {
    font-size: 0.625rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.trust-score {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.trust-score-high {
    background-color: var(--success-light);
    border: 1px solid var(--success);
}

.trust-score-medium {
    background-color: var(--warning-light);
    border: 1px solid var(--warning);
}

.trust-score-low {
    background-color: var(--danger-light);
    border: 1px solid var(--danger);
}

.score-number {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.score-stars {
    display: block;
    font-size: 1.125rem;
    margin-top: 0.25rem;
    letter-spacing: 2px;
}

.trust-score-high .score-number { color: #0a5239; }
.trust-score-medium .score-number { color: #664d03; }
.trust-score-low .score-number { color: #842029; }

.vendor-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.vendor-features {
    background-color: var(--bg-section);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.feature {
    color: var(--text-primary);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature:last-child {
    margin-bottom: 0;
}

.vendor-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vendor-links .btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
}

.red-flag-section {
    background-color: #fff3cd;
    border: 2px solid #ffda6a;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.red-flag-section h5 {
    color: #664d03;
    margin-bottom: 1rem;
}

.red-flag-item {
    background: var(--bg-white);
    border: 1px solid #ffda6a;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.red-flag-item:last-child {
    margin-bottom: 0;
}

.red-flag-item h6 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.legal-notice {
    background-color: var(--bg-white);
    border-left: 4px solid var(--danger);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-notice h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-notice ul {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1.25rem;
}

.legal-notice li {
    margin-bottom: 0.5rem;
}

.research-sources {
    background-color: var(--bg-section);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.research-sources h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.research-sources a {
    color: var(--primary);
}

.research-sources a:hover {
    text-decoration: underline;
}

.research-links-section {
    background-color: var(--primary-light);
    border-top: 1px solid #b6d4fe;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.875rem;
    margin: 1rem -1.5rem -1.5rem;
}

.research-label {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.6875rem;
}

.research-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.research-link {
    display: inline-block;
    background-color: var(--bg-white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.research-link:hover {
    background-color: var(--primary);
    color: white;
}

/* ============================================
   NEW Vendor Card with Transparent Scoring
   ============================================ */
.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.vendor-grade {
    font-weight: 800;
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    line-height: 1;
}

.grade-a { background: #d1fae5; color: #065f46; }
.grade-b { background: #dbeafe; color: #1e40af; }
.grade-c { background: #fef3c7; color: #92400e; }
.grade-d { background: #fed7aa; color: #c2410c; }
.grade-e { background: #fee2e2; color: #991b1b; }
.grade-f { background: #fee2e2; color: #991b1b; }

.vendor-score-summary {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 0.75rem 0;
    border: 1px solid #93c5fd;
}

.score-percent {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vendor-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.highlight-tag {
    background: var(--bg-section);
    border: none;
    color: var(--text-primary);
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.highlight-tag.warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

/* Score Breakdown - Shows the Math */
.score-breakdown {
    background: var(--bg-section);
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.breakdown-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8125rem;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.75fr 0.75fr;
    gap: 0.5rem;
    padding: 0.375rem 0;
    align-items: center;
}

.breakdown-row.score-warning {
    background: #fef2f2;
    margin: 0 -0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
}

.breakdown-row.no-data {
    opacity: 0.5;
}

.source-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.source-name i {
    width: 14px;
    text-align: center;
    color: var(--text-secondary);
}

.source-score {
    color: var(--text-secondary);
}

.source-weight {
    color: var(--text-muted, #9ca3af);
    font-size: 0.6875rem;
}

.source-contribution {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.breakdown-detail {
    color: var(--text-muted, #9ca3af);
    font-size: 0.625rem;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-color);
}

.total-label {
    font-weight: 700;
    color: var(--text-primary);
}

.total-score {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* Peptide Vendor Recommendations */
.col-vendors {
    width: 180px;
    min-width: 160px;
}

.vendor-recs {
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.vendor-recs.no-data {
    text-align: center;
    padding: 0.75rem;
}

.vendor-recs-header {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--border-light);
}

.vendor-recs-header i {
    color: #f59e0b;
}

.vendor-rec-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
    font-size: 0.6875rem;
}

.vendor-rec-rank {
    font-weight: 700;
    color: var(--text-secondary);
    width: 1rem;
}

.vendor-rec-name {
    flex: 1;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-rec-name:hover {
    text-decoration: underline;
}

.vendor-rec-grade {
    font-weight: 700;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

/* Poor grade vendor warnings */
.vendor-recs.poor-grades {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.vendor-recs-header.vendor-warning {
    color: #991b1b;
    border-bottom-color: #fecaca;
}

.vendor-recs-header.vendor-warning i {
    color: #dc2626;
}

.vendor-rec-warning {
    font-size: 0.5625rem;
    color: #991b1b;
    padding: 0.125rem 0 0.25rem 1.25rem;
    font-style: italic;
}

/* ============================================
   About Page
   ============================================ */
.about-section {
    padding: 100px 0 60px;
    background: var(--bg-section);
}

.about-section h2 {
    margin-bottom: 1.5rem;
}

.about-section p,
.about-section ul {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.about-section ul {
    padding-left: 1.25rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

.disclaimer-section {
    padding: 40px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffda6a;
    color: #664d03;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--bg-section);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* ============================================
   Form Controls
   ============================================ */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border-color: var(--border-color);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.form-control-lg,
.form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-visual {
        margin-top: 2.5rem;
    }

    .trust-section .sources-card {
        margin-top: 2.5rem;
    }

    .safety-icon {
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 110px 0 50px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .methodology-breakdown {
        grid-template-columns: 1fr;
    }

    .vendor-card {
        margin-bottom: 1.25rem;
    }

    .vendor-links {
        flex-direction: column;
    }

    .vendor-rank {
        position: static;
        width: auto;
        height: auto;
        display: inline-flex;
        padding: 0.375rem 0.625rem;
        margin-right: 0.5rem;
        border-radius: var(--radius-sm);
    }

    .research-links {
        flex-direction: column;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer .col-lg-2,
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* ============================================
   Utilities
   ============================================ */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Safety Warnings Footer Row (Peptide Database)
   ============================================ */
.warning-footer-row {
    background: transparent !important;
}

.warning-footer-row:hover {
    background: transparent !important;
}

.warning-footer-row td {
    padding: 0 !important;
    border-bottom: 2px solid var(--border-color) !important;
}

.warning-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #fef8f8;
    border-top: 1px dashed #fecaca;
}

.warning-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    flex: 1 1 auto;
    min-width: 300px;
}

.warning-tag.danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #dc2626;
}

.warning-tag.danger i {
    color: #dc2626;
}

.warning-tag.warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.warning-tag.warning i {
    color: #f59e0b;
}

.warning-tag.caution {
    background: #ecfdf5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.warning-tag.caution i {
    color: #10b981;
}

.warning-tag a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.warning-tag a:hover {
    text-decoration: underline;
}

/* Multi-Category Badge */
.multi-category-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    margin-top: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ============================================
   Peptide Database - Larger Font Sizes
   ============================================ */
.peptide-table {
    font-size: 1rem;
}

.peptide-table th {
    font-size: 0.875rem;
    padding: 1rem 1.25rem;
}

.peptide-table td {
    padding: 1.25rem;
    font-size: 0.9375rem;
}

.peptide-name-cell strong {
    font-size: 1.125rem;
}

.peptide-name-cell .generic-name {
    font-size: 0.875rem;
}

.col-uses {
    font-size: 0.9375rem;
}

/* Dosing mini table - larger fonts */
.dosing-mini-table {
    font-size: 0.875rem;
}

.dosing-mini-table th {
    font-size: 0.75rem;
    padding: 0.625rem 0.75rem;
}

.dosing-mini-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.dosing-note {
    font-size: 0.8125rem;
    padding: 0.625rem;
}

/* Trial info - larger fonts */
.trial-info {
    font-size: 0.9375rem;
}

.trial-results {
    font-size: 0.875rem;
    padding: 0.75rem;
}

.result-highlight {
    font-size: 0.75rem;
}

/* Category section header */
.category-header-bar {
    margin-bottom: 1.5rem;
    margin-left: 15px;
}

.category-header-bar h3 {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
}

/* Category navigation */
.category-nav .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Search input */
.search-section .section-title {
    font-size: 2rem;
}

.search-section .section-subtitle {
    font-size: 1.125rem;
}

#searchInput {
    font-size: 1.125rem;
}

/* Vendor recommendations in peptide table */
.vendor-recs-header {
    font-size: 0.75rem;
}

.vendor-rec-item {
    font-size: 0.8125rem;
}

.vendor-rec-grade {
    font-size: 0.6875rem;
}

/* Hide Canvas Background - Not Used in New Design */
#moleculeCanvas {
    display: none;
}

/* ============================================
   IMAGE INTEGRATION & VISUAL ENHANCEMENTS
   ============================================ */

/* Enhanced Hero Section with Background Image */
.page-header.with-bg-image {
    background: linear-gradient(135deg, rgba(26, 37, 64, 0.85) 0%, rgba(15, 20, 25, 0.85) 100%),
                url('../images/hero-lab-scientist.jpg') center/cover no-repeat;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Image Section - Side by Side with Text */
.image-text-section {
    padding: 0;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.image-text-section.alternate {
    flex-direction: row-reverse;
}

.image-text-section img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.image-text-section img:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.image-text-content {
    flex: 1;
}

.image-text-content h3 {
    font-size: 1.875rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.image-text-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Research Highlights Grid with Images */
.research-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.research-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: none;
}

.research-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.research-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.research-card-content {
    padding: 1.75rem;
}

.research-card-content h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.research-card-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.research-card-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Hero Image Overlay */
.image-overlay-section {
    position: relative;
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.image-overlay-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem 2rem;
}

.image-overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-overlay-content p {
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* Responsive Images */
@media (max-width: 768px) {
    .image-text-section {
        flex-direction: column !important;
        gap: 2rem;
    }

    .image-text-section img {
        max-width: 100%;
    }

    .page-header.with-bg-image {
        background-attachment: scroll;
        min-height: 350px;
    }

    .research-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   CATEGORY SIDEBAR NAVIGATION
   ============================================ */

.category-sidebar {
    padding: 1.5rem 1.25rem;
    background: #f5f7fa;
    border-radius: 8px;
    border-left: 5px solid #0d6efd;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: #212529;
    margin-bottom: 1rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.25rem;
}

.category-list a {
    display: block;
    padding: 0.875rem 1rem;
    color: #212529;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.category-list a:hover {
    background-color: #e7f1ff;
    color: #0d6efd;
    border-left-color: #0d6efd;
    padding-left: 1.25rem;
}

.category-list a.active {
    background-color: #0d6efd;
    color: white;
    font-weight: 700;
    border-left-color: #0b5ed7;
}

.category-list a.active:hover {
    background-color: #0b5ed7;
    border-left-color: #0a58ca;
}

/* ============================================
   RESPONSIVE CATEGORY SIDEBAR
   ============================================ */

@media (max-width: 991.98px) {
    .category-sidebar {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .category-list a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   DROPDOWN CATEGORY MENU
   ============================================ */

#peptidesCategoryDropdown {
}

#peptidesCategoryDropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

#peptidesCategoryDropdown .dropdown-item:hover {
    background-color: #0d6efd;
    color: white;
}

#peptidesCategoryDropdown .dropdown-divider {
    margin: 0.5rem 0;
}

