/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   Origins & Memory (Происхождение и память)
   ========================================================================== */

:root {
    --bg-warm-ivory: #F7F3EC;
    --text-charcoal: #333333;
    --text-muted: #666666;
    --primary-navy: #14284B;
    --primary-navy-light: #1c3866;
    --accent-gold: #B08A3E;
    --accent-gold-light: #c9a357;
    --accent-gold-dark: #8a6a2a;
    --border-light: rgba(176, 138, 62, 0.2);
    --border-medium: rgba(20, 40, 75, 0.15);
    --card-bg: #FCFAF7;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lora', Palatino, serif;
    --font-sans: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --sidebar-width: 290px;
    --shadow-soft: 0 4px 20px rgba(20, 40, 75, 0.05);
    --shadow-hover: 0 10px 30px rgba(176, 138, 62, 0.08);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-warm-ivory);
    color: var(--text-charcoal);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-gold-dark);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: #FFFFFF;
    border-right: 1px solid var(--border-light);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-brand {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px double var(--border-light);
}

.logo-container {
    width: auto;
    height: 48px;
    margin: 0 auto 1.2rem auto;
    display: flex;
    justify-content: center;
}

.project-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.brand-tagline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.35rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--primary-navy);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
}

.nav-link i {
    margin-right: 0.85rem;
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    background-color: var(--bg-warm-ivory);
    color: var(--accent-gold-dark);
}

.nav-link.active i {
    color: var(--primary-navy);
    transform: scale(1.1);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2.5rem 4rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Utility Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-medium);
}

.breadcrumbs {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background-color: #FFFFFF;
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
}

.lang-btn {
    border: none;
    background: none;
    padding: 0.4rem 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--primary-navy);
}

.lang-btn.active {
    background-color: var(--primary-navy);
    color: var(--bg-warm-ivory);
}

/* Mobile Header */
.mobile-header {
    display: none;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 200;
}

.mobile-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* ==========================================================================
   PAGE SECTIONS & ANIMATION
   ========================================================================== */

.page-container {
    flex: 1;
}

.page-section {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   HERO / HOME STYLES
   ========================================================================== */

.hero-section {
    text-align: center;
    padding: 3.5rem 1rem 4.5rem 1rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px double var(--border-light);
}

.hero-logo-box {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem auto;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.35rem;
    max-width: 760px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-charcoal);
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn i {
    margin-right: 0.6rem;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-navy-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 40, 75, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.btn-secondary:hover {
    background-color: var(--primary-navy);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 40, 75, 0.1);
}

/* Content Cards */
.content-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(176, 138, 62, 0.08);
    pointer-events: none;
}

.card-section-title {
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
    position: relative;
}

.card-section-title::after {
    content: '❖';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    padding: 0 10px;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.card-body p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.card-body p:last-child {
    margin-bottom: 0;
}

/* Stage Section Specifics */
.stage-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-gold);
    color: #FFFFFF;
    padding: 0.35rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(176, 138, 62, 0.2);
}

.statement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.statement-item {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--border-medium);
}

.statement-item.does-not {
    border-left-color: #A33B3B;
}

.statement-item i {
    margin-right: 0.85rem;
    font-size: 1.2rem;
}

.statement-item.does-not i {
    color: #A33B3B;
}

.statement-item span {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
}

.highlight-quote {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    text-align: center !important;
    color: var(--primary-navy);
    margin: 2rem auto 0 auto;
    max-width: 600px;
    line-height: 1.4;
    font-style: italic;
}

/* ==========================================================================
   ACADEMIC / TEXT STYLES (Inner Pages)
   ========================================================================== */

.academic-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px double var(--border-light);
    padding-bottom: 0.8rem;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--primary-navy);
    font-style: italic;
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.5rem;
}

.academic-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.subsection-title {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem 0;
    color: var(--primary-navy);
}

.academic-quote {
    margin: 3rem 0;
    padding: 2.5rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-gold);
    position: relative;
    border-radius: 4px;
}

.academic-quote p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--primary-navy);
    font-style: italic;
    text-align: center;
}

/* Principles List */
.principles-list {
    list-style: none;
    margin-top: 1.8rem;
}

.principles-list li {
    display: flex;
    margin-bottom: 1.8rem;
    background-color: #FFFFFF;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.principles-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.principle-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-right: 1.5rem;
    margin-top: 0.2rem;
}

.principle-content h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.principle-content p {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    margin: 0;
    text-align: left;
}

/* Timeline (Research Program) */
.timeline {
    position: relative;
    margin: 3rem 0;
    padding-left: 2.5rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-number {
    position: absolute;
    left: -37px;
    top: -2px;
    width: 26px;
    height: 26px;
    background-color: #FFFFFF;
    border: 2px solid var(--border-light);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.timeline-item.active .timeline-number {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--bg-warm-ivory);
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-charcoal);
}

/* Callouts */
.status-callout {
    display: flex;
    align-items: center;
    background-color: rgba(163, 59, 59, 0.05);
    border: 1px solid rgba(163, 59, 59, 0.15);
    border-left: 4px solid #A33B3B;
    padding: 1.2rem 1.8rem;
    border-radius: 4px;
    margin: 2.5rem 0;
}

.status-callout i {
    font-size: 1.3rem;
    color: #A33B3B;
    margin-right: 1.2rem;
}

.status-callout span {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: #A33B3B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-callout.info-callout {
    background-color: rgba(20, 40, 75, 0.03);
    border-color: var(--border-light);
    border-left-color: var(--accent-gold);
}

.status-callout.info-callout i {
    color: var(--accent-gold);
}

.status-callout.info-callout span {
    color: var(--primary-navy);
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
}

/* ==========================================================================
   GENEALOGY & DNA STYLES
   ========================================================================== */

.dna-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.dna-case-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.dna-case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.case-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-light);
}

.case-header i {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-right: 0.85rem;
}

.case-header h4 {
    font-size: 1.15rem;
    margin: 0;
}

.dna-case-card p {
    font-size: 0.9rem;
    color: var(--text-charcoal);
    margin: 0;
    text-align: justify;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.form-intro-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-align: justify;
}

.academic-form {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 3rem;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.6rem;
}

.academic-form input[type="text"],
.academic-form input[type="email"],
.academic-form input[type="password"],
.academic-form textarea,
.academic-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-warm-ivory);
    color: var(--text-charcoal);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.academic-form input:focus,
.academic-form textarea:focus,
.academic-form select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: #FFFFFF;
    box-shadow: 0 0 8px rgba(176, 138, 62, 0.1);
}

/* Custom Radios */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.4rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    user-select: none;
}

.radio-label input, .checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    width: 18px;
    height: 18px;
    background-color: var(--bg-warm-ivory);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    margin-right: 0.6rem;
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
}

.radio-label input:checked ~ .custom-radio {
    border-color: var(--accent-gold);
    background-color: var(--primary-navy);
}

.custom-radio::after {
    content: '';
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFFFFF;
}

.radio-label input:checked ~ .custom-radio::after {
    display: block;
}

/* Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.4rem;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    background-color: var(--bg-warm-ivory);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    margin-right: 0.6rem;
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
}

.checkbox-label input:checked ~ .custom-checkbox {
    border-color: var(--accent-gold);
    background-color: var(--primary-navy);
}

.custom-checkbox::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .custom-checkbox::after {
    display: block;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-trigger {
    background-color: var(--bg-warm-ivory);
    border: 1px dashed var(--accent-gold);
    padding: 1.5rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--primary-navy);
    transition: var(--transition-smooth);
}

.file-upload-trigger:hover {
    background-color: #FFFFFF;
    border-color: var(--accent-gold-dark);
}

.file-upload-trigger i {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--accent-gold);
    display: block;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-status-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.form-status-message.success {
    display: block;
    background-color: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
    color: #2E7D32;
}

.form-status-message.error {
    display: block;
    background-color: rgba(163, 59, 59, 0.08);
    border: 1px solid rgba(163, 59, 59, 0.2);
    color: #A33B3B;
}

/* ==========================================================================
   ARCHIVE PLACEHOLDER
   ========================================================================== */

.archive-placeholder {
    text-align: center;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 5rem 3rem;
    box-shadow: var(--shadow-soft);
}

.archive-placeholder i {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.archive-placeholder h3 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.archive-placeholder p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   RESOURCE CATALOG
   ========================================================================== */

.catalog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.catalog-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    background-color: #FFFFFF;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.search-box {
    position: relative;
    flex: 2;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-warm-ivory);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: #FFFFFF;
}

.filter-box {
    display: flex;
    gap: 1rem;
    flex: 1.5;
}

.filter-box select {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-warm-ivory);
    color: var(--primary-navy);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-box select:focus {
    outline: none;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.catalog-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.catalog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.catalog-category {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    background-color: rgba(20, 40, 75, 0.05);
    color: var(--primary-navy);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.catalog-lang {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-gold);
    border: 1px solid var(--border-light);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.catalog-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.catalog-card-desc {
    font-size: 0.92rem;
    color: var(--text-charcoal);
    margin-bottom: 1.5rem;
    flex: 1;
    text-align: justify;
}

.catalog-card-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

/* ==========================================================================
   AI ASSISTANT STYLES
   ========================================================================== */

.assistant-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.assistant-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.assistant-chat-panel {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    height: 520px;
    box-shadow: var(--shadow-soft);
}

.chat-history {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.chat-message {
    display: flex;
    max-width: 80%;
}

.chat-message.assistant {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 0.95rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.chat-message.assistant .message-bubble {
    background-color: var(--bg-warm-ivory);
    color: var(--text-charcoal);
    border: 1px solid var(--border-light);
    border-top-left-radius: 0;
}

.chat-message.user .message-bubble {
    background-color: var(--primary-navy);
    color: #FFFFFF;
    border-top-right-radius: 0;
}

.chat-message.assistant strong {
    color: var(--primary-navy);
    font-family: var(--font-sans);
}

.chat-message.assistant ul {
    margin-left: 1.2rem;
    margin-top: 0.5rem;
    list-style-type: square;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    background-color: var(--card-bg);
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px 0 0 4px;
    background-color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.chat-input-area button {
    border: none;
    background-color: var(--primary-navy);
    color: #FFFFFF;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-input-area button:hover {
    background-color: var(--primary-navy-light);
}

.assistant-suggested {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-self: start;
}

.assistant-suggested h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.suggested-btn {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-navy);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.suggested-btn:hover {
    background-color: var(--primary-navy);
    color: #FFFFFF;
    border-color: var(--primary-navy);
}

/* ==========================================================================
   SUPPORT OPTION LIST STYLES
   ========================================================================== */

.support-options-list {
    list-style: none;
    margin-top: 2rem;
}

.support-options-list li {
    display: flex;
    align-items: flex-start;
    background-color: #FFFFFF;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.support-options-list li i {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-right: 1.2rem;
    margin-top: 0.2rem;
}

.support-options-list strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.support-options-list p {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    margin: 0;
    text-align: left;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-accordion {
    margin-top: 2rem;
}

.faq-item {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.8rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background-color: var(--bg-warm-ivory);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 1.8rem 1.5rem 1.8rem;
    font-size: 0.95rem;
    color: var(--text-charcoal);
    text-align: justify;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* ==========================================================================
   ADMIN DASHBOARD STYLES
   ========================================================================== */

.db-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #E2ECF8;
    color: #14284B;
    border: 1px solid rgba(20, 40, 75, 0.15);
    padding: 0.4rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.db-status-badge.live {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-color: rgba(46, 125, 50, 0.2);
}

.db-status-badge.demo {
    background-color: #FFF3E0;
    color: #E65100;
    border-color: rgba(230, 81, 0, 0.2);
}

.admin-filters-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
}

.admin-search-row input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-light);
    background-color: var(--bg-warm-ivory);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.admin-selects-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.admin-selects-row input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-light);
    background-color: var(--bg-warm-ivory);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: #FFFFFF;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-warm-ivory);
}

.admin-table th {
    background-color: var(--primary-navy);
    color: #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
}

.admin-table tr:hover {
    background-color: var(--bg-warm-ivory);
}

.admin-table td .btn-delete {
    background-color: #A33B3B;
    color: #FFFFFF;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-table td .btn-delete:hover {
    background-color: #c94b4b;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-medium);
    text-align: center;
}

.footer-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--primary-navy);
    margin: 0 0.5rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.admin-footer-link {
    font-weight: 600 !important;
    color: var(--accent-gold) !important;
}

.footer-copy {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

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

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 2rem 2.5rem;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .assistant-layout {
        grid-template-columns: 1fr;
    }
    
    .assistant-suggested {
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
    }
    
    .statement-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .catalog-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-box {
        flex-direction: column;
    }
    
    .dna-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
    }
    
    .language-switcher {
        align-self: flex-start;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-selects-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PHASE 2 EXTRA STYLING
   ========================================================================== */

/* Project Banner Images */
.about-hero-container, .homepage-banner-container {
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.about-hero-img, .homepage-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Research Program Directions */
.directions-box {
    background-color: rgba(20, 40, 75, 0.03);
    border-left: 4px solid var(--primary-navy);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.directions-lead {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.directions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.directions-list li {
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-ivory);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
}

.directions-step-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin: 0;
}

/* Admin Tabs Styling */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin: 1.5rem 0 2rem 0;
}

.admin-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-headings);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.admin-tab-btn:hover {
    color: var(--accent-gold);
}

.admin-tab-btn.active {
    color: var(--primary-navy);
    border-bottom: 2px solid var(--accent-gold);
}

/* Modal Dialog */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content select, 
.modal-content input[type="text"], 
.modal-content input[type="password"],
.modal-content input[type="date"], 
.modal-content textarea {
    background: #ffffff !important;
    color: var(--text-charcoal) !important;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}

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

/* Public Archive Grid & Cards */
.archive-filters-card {
    background: rgba(20, 40, 75, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.archive-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.archive-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    background-color: var(--bg-ivory);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.archive-card {
    background: var(--bg-ivory);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
}

.archive-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

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

.archive-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-card-lang {
    font-size: 0.75rem;
    background-color: var(--border-light);
    color: var(--text-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.archive-card-title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.archive-card-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: justify;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.archive-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 0.8rem;
}

.archive-card-theme {
    font-style: italic;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Project Image Placeholder & Logo Styling */
.project-image-placeholder-card {
    background-color: rgba(20, 40, 75, 0.02);
    border: 1px dashed var(--border-medium);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2.5rem auto;
    max-width: 600px;
}

.project-image-placeholder-card p {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.admin-logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
}

.admin-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-logo-container {
    width: auto;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: flex;
    justify-content: center;
}

.footer-logo-container:hover {
    opacity: 1;
}

.footer-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Ways to Support & Payment Reference Styles */
.support-payment-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px double var(--border-light);
}

.support-disclaimer-box {
    background-color: rgba(20, 40, 75, 0.02);
    border-left: 3px solid var(--accent-gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
}

.support-disclaimer-box p {
    margin-bottom: 0.8rem;
}

.support-disclaimer-box p:last-child {
    margin-bottom: 0;
}

.support-dropdown-group {
    max-width: 400px;
    margin: 2rem 0 1rem 0;
}

.payment-reference-box {
    background-color: var(--bg-ivory);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.reference-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-navy);
}

#paymentReferenceText {
    font-family: monospace;
    font-size: 1.05rem;
    color: var(--accent-gold);
    background-color: rgba(20, 40, 75, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
}

.support-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.support-card {
    background: var(--bg-ivory);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, border-color 0.2s;
    min-height: 140px;
}

.support-card-badge {
    position: absolute;
    top: 12px;
    right: -25px;
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 2.5rem;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.support-card-icon {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.support-card-title {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

/* Growth Card & Timeline Section */
.growth-card {
    border-left: 4px solid var(--accent-gold);
}

.growth-development-container {
    background-color: rgba(20, 40, 75, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.development-intro {
    font-weight: 600;
    color: var(--primary-navy);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.growth-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.growth-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-medium);
}

.growth-timeline-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}

.growth-timeline-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-navy);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin-left: -7px;
}

.growth-timeline-content {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
}

.growth-highlight-lead {
    font-weight: 600;
    color: var(--primary-navy);
    margin-top: 1.8rem;
}

.growth-bullets {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem 1.5rem;
}

.growth-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: left;
}

.growth-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 1.4rem;
    top: -2px;
}

.growth-highlight-box {
    background-color: rgba(20, 40, 75, 0.03);
    border-left: 4px solid var(--primary-navy);
    border-right: 4px solid var(--primary-navy);
    padding: 2.5rem 2rem;
    margin: 2.5rem 0;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
}

.highlight-quote-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.3;
    margin-bottom: 0.8rem;
    display: block;
    text-align: center;
    width: 100%;
}

.highlight-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.growth-priorities-title {
    font-weight: 600;
    color: var(--primary-navy);
    margin-top: 1.8rem;
}

.priority-bullets li::before {
    color: var(--primary-navy);
}

/* Hero Closing Message Styles */
.hero-closing-message {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0 1rem;
}

.hero-closing-message p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent-gold);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

/* Legend Counter Badge Styles */
.legend-counter-badge-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.share-counter-margin {
    margin: -0.5rem 0 1.5rem 0;
}

.legend-counter-badge {
    background-color: rgba(20, 40, 75, 0.04);
    border: 1px solid var(--accent-gold);
    color: var(--primary-navy);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.legend-counter-badge i {
    color: var(--accent-gold);
}

/* ==========================================================================
   LABORATORY OF SHLOMO SCHNEERSON STYLES
   ========================================================================== */

.lab-container {
    max-width: 1050px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Hero Banner */
.lab-hero {
    position: relative;
    background-color: var(--primary-navy);
    border: 1px solid var(--accent-gold);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.lab-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(176, 138, 62, 0.15) 0%, rgba(20, 40, 75, 0.8) 100%);
    z-index: 1;
}

.lab-hero-content {
    position: relative;
    z-index: 2;
}

.lab-emblem {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background-color: rgba(20, 40, 75, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(176, 138, 62, 0.3);
}

.lab-hero h1 {
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lab-hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

/* Common Section Layout */
.lab-section-title {
    font-size: 2rem;
    color: var(--primary-navy);
    margin: 3.5rem 0 1.5rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px double var(--border-light);
    position: relative;
}

.lab-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

.lab-about-section {
    margin-bottom: 3rem;
}

/* Research Areas Cards */
.lab-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.lab-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    top: 0;
}

.lab-card:hover {
    top: -5px;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-hover);
}

.lab-card-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
}

.lab-card h3 {
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
}

.lab-card p {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    line-height: 1.6;
}

/* Philosophy Section */
.lab-philosophy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: rgba(176, 138, 62, 0.03);
    border-left: 3px solid var(--accent-gold);
    padding: 2rem;
    border-radius: 0 4px 4px 0;
}

.lab-philosophy-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.lab-philosophy-list li i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.lab-philosophy-list strong {
    display: block;
    color: var(--primary-navy);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.lab-philosophy-list span {
    font-size: 0.95rem;
    color: var(--text-charcoal);
}

/* Initiatives & Projects */
.lab-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 500px) {
    .lab-projects-grid {
        grid-template-columns: 1fr;
    }
}

.lab-project-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.lab-project-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 1px;
}

.lab-project-badge.active-project {
    background-color: rgba(20, 40, 75, 0.08);
    color: var(--primary-navy);
    border: 1px solid rgba(20, 40, 75, 0.2);
}

.lab-project-card h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
    padding-right: 0;
}

.lab-project-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Case Studies */
.lab-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

@media (max-width: 600px) {
    .lab-cases-grid {
        grid-template-columns: 1fr;
    }
}

.lab-case-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 4px;
    position: relative;
}

.lab-case-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.lab-case-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    opacity: 0.6;
}

.lab-case-header h3 {
    font-size: 1.3rem;
    color: var(--primary-navy);
}

.lab-case-item p {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    line-height: 1.6;
}

/* Publications */
.lab-publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.lab-pub-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 1.2rem 1.5rem;
    border-radius: 4px;
}

.lab-pub-item i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.lab-pub-details h4 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.lab-pub-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Filter Panel */
.lab-journal-intro {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.lab-filters {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.lab-filters-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-group.search-group {
    flex: 2;
    min-width: 280px;
}

.filter-group label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    background-color: var(--bg-warm-ivory);
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.1);
}

.filter-group select {
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    background-color: var(--bg-warm-ivory);
    color: var(--text-charcoal);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: #FFFFFF;
}

/* 2-Column Journal Layout */
.lab-journal-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .lab-journal-layout {
        grid-template-columns: 1fr;
    }
}

.lab-journal-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journal-status-message {
    text-align: center;
    padding: 3rem;
    border: 1px dashed var(--border-light);
    border-radius: 4px;
    background-color: #FFFFFF;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.journal-status-message i {
    font-size: 2rem;
    color: var(--accent-gold);
}

/* Journal Cards */
.journal-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2.2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.journal-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-hover);
}

.journal-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.journal-date {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--accent-gold-dark);
    font-weight: 700;
    letter-spacing: 1px;
}

.journal-card-header h3 {
    font-size: 1.6rem;
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.3;
}

.journal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.journal-badge {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-cat {
    background-color: rgba(20, 40, 75, 0.06);
    color: var(--primary-navy);
}

.badge-country {
    background-color: rgba(176, 138, 62, 0.08);
    color: var(--accent-gold-dark);
}

.badge-dna {
    background-color: #f0eae1;
    color: #8c7143;
    border: 1px solid rgba(176, 138, 62, 0.2);
}

.badge-type {
    background-color: #e6ebf5;
    color: var(--primary-navy);
    border: 1px solid rgba(20, 40, 75, 0.15);
}

.journal-text {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    line-height: 1.75;
    text-align: justify;
}

.journal-text p {
    margin-bottom: 1.2rem;
}

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

/* Sidebar Widgets */
.lab-journal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 0.4rem;
}

.stats-widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stats-widget li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-navy);
}

.projects-widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.projects-widget li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.focus-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold-dark);
}

.projects-widget p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-charcoal);
}

/* Future Module Dash Placeholders */
.placeholder-widget {
    border: 2px dashed var(--border-light);
    background-color: rgba(176, 138, 62, 0.01);
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.placeholder-widget h3 {
    border: none;
    padding: 0;
    margin: 0;
    font-size: 1.15rem;
}

.placeholder-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.placeholder-widget p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.placeholder-tag {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-gold-dark);
    font-weight: 700;
    border: 1px solid var(--accent-gold);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-top: 0.4rem;
}

/* Scientific Disclaimer bottom banner spacing */
.lab-disclaimer {
    margin-top: 4rem !important;
}
.warning-callout.lab-disclaimer h4 {
    color: #8a6a2a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.warning-callout.lab-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Redesigned grid styles */
.active-directions-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.lab-project-inprogress-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-gold-dark);
    border: 1px solid var(--accent-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    background-color: rgba(176, 138, 62, 0.05);
}

/* Notebook Series Styles */
.lab-notebook-section {
    margin: 4rem 0;
    padding: 2.5rem;
    background-color: rgba(20, 40, 75, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.lab-notebook-subtitle-text {
    font-size: 1rem;
    color: var(--text-charcoal);
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
}

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

.notebook-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-gold);
    border-radius: 4px;
    padding: 1.8rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.notebook-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.notebook-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1rem;
}

.notebook-number {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary-navy);
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.notebook-status-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.notebook-status-badge.notes-badge {
    background-color: rgba(20, 40, 75, 0.08);
    color: var(--primary-navy);
}

.notebook-status-badge.review-badge {
    background-color: rgba(217, 83, 79, 0.08);
    color: #d9534f;
    border: 1px solid rgba(217, 83, 79, 0.2);
}

.notebook-status-badge.revision-badge {
    background-color: rgba(240, 173, 78, 0.08);
    color: #f0ad4e;
    border: 1px solid rgba(240, 173, 78, 0.2);
}

.notebook-card h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin: 0.5rem 0;
    font-family: var(--font-serif);
}

.notebook-card p {
    font-size: 0.9rem;
    color: var(--text-charcoal);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.notebook-card-status {
    display: inline-block;
    font-size: 0.75rem;
    font-style: italic;
    color: #777777;
    border-top: 1px solid var(--border-light);
    padding-top: 0.6rem;
    width: 100%;
}

/* ==========================================================================
   ADMIN PORTAL DASHBOARD TABS & STATS STYLES
   ========================================================================== */

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.admin-tab-btn {
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-charcoal);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.admin-tab-btn:hover {
    color: var(--accent-gold-dark);
}

.admin-tab-btn.active {
    color: var(--accent-gold-dark);
    border-bottom-color: var(--accent-gold);
}

/* Statistics Grid */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stats-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.stats-card-icon {
    font-size: 2rem;
    color: var(--accent-gold-dark);
    width: 50px;
    height: 50px;
    background-color: rgba(176, 138, 62, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-card-data h4 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin: 0 0 0.2rem 0;
    font-weight: 700;
}

.stats-card-data p {
    font-size: 0.85rem;
    color: var(--text-charcoal);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badges */
.admin-badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.badge-published {
    background-color: rgba(92, 184, 92, 0.12);
    color: #5cb85c;
    border: 1px solid rgba(92, 184, 92, 0.3);
}

.badge-draft {
    background-color: rgba(119, 119, 119, 0.12);
    color: #777777;
    border: 1px solid rgba(119, 119, 119, 0.3);
}

.badge-notes {
    background-color: rgba(20, 40, 75, 0.08);
    color: var(--primary-navy);
    border: 1px solid rgba(20, 40, 75, 0.2);
}

.badge-progress {
    background-color: rgba(240, 173, 78, 0.12);
    color: #f0ad4e;
    border: 1px solid rgba(240, 173, 78, 0.3);
}

.badge-private {
    background-color: rgba(217, 83, 79, 0.12);
    color: #d9534f;
    border: 1px solid rgba(217, 83, 79, 0.3);
}

/* Wide Journal Modal */
.journal-modal-content {
    max-width: 850px;
    width: 90%;
}

.journal-preview-box {
    margin-top: 1.5rem;
}

.journal-preview-box h4 {
    font-size: 1.1rem;
    font-family: var(--font-serif);
}

.journal-modal-content select, 
.journal-modal-content input[type="text"], 
.journal-modal-content input[type="date"], 
.journal-modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    background: #ffffff !important;
    color: var(--text-charcoal) !important;
}

.journal-modal-content input::placeholder,
.journal-modal-content textarea::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}

.journal-modal-content textarea {
    resize: vertical;
}

.journal-modal-content select:focus, 
.journal-modal-content input:focus, 
.journal-modal-content textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}


