/* ===========================================
   FIZICA LUI FEYNMAN — styles.css
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,400;1,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Main premium colors */
    --space-dark:      #0B132B; /* Deep cosmic space */
    --space-card:      #1C2541; /* Cyber card blue */
    --space-light:     #F8FAFC; /* Slate 50 */
    --primary-indigo:  #4F46E5; /* Royal indigo */
    --primary-medium:  #3B82F6; /* Modern electric blue */
    --primary-light:   #60A5FA; /* Sky blue */
    --cyan-quantum:    #06B6D4; /* Laser cyan neon */
    --gold-atomic:     #F59E0B; /* Spark of curiosity gold */
    
    --bg-light:        #F1F5F9; /* Slate 100 background */
    --text-dark:       #1E293B; /* Slate 800 readable body */
    --text-light:      #64748B; /* Slate 500 caption body */
    --border:          #E2E8F0; /* Slate 200 light border */
    --white:           #ffffff;
    
    /* Layout styling assets */
    --shadow-sm:       0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow:          0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg:       0 20px 25px -5px rgba(79, 70, 229, 0.08), 0 8px 10px -6px rgba(79, 70, 229, 0.04);
    --radius:          10px;
    --radius-lg:       16px;
    
    /* Typography tokens */
    --font-heading:    'Outfit', 'Segoe UI', system-ui, sans-serif;
    --font-body:       'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --font-quote:      'Playfair Display', Georgia, serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--space-light);
}

/* ——— MODULE PAGE WRAPPER ——— */
.module-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* ——— NAVBAR (index fallback) ——— */
.navbar {
    background: linear-gradient(135deg, var(--space-dark), var(--space-card));
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}
.navbar-brand:hover { color: var(--cyan-quantum); }
.navbar-nav { display: flex; list-style: none; gap: 2rem; }
.navbar-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.navbar-nav a:hover { color: var(--cyan-quantum); }

/* ——— HERO (General header fallback) ——— */
.hero {
    background: linear-gradient(135deg, var(--space-dark) 0%, var(--space-card) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    border: none;
    padding: 0;
    margin-top: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 680px;
    margin: 0 auto;
}

/* ——— INDEX: CONTAINER & GRID ——— */
.container { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.2rem; font-family: var(--font-heading); color: var(--space-dark); margin-bottom: 0.6rem; font-weight: 800; }
.section-title p { color: var(--text-light); font-size: 1.05rem; }

/* ——— HOME PAGE ——— */
.home-hero {
    background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
                var(--space-dark);
    color: var(--white);
    padding: 6.5rem 2rem 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.25;
    pointer-events: none;
}
.home-hero__inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.home-hero__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan-quantum);
    font-weight: 700;
    margin-bottom: 1.75rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.home-hero__title {
    font-size: 3.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 70%, var(--cyan-quantum) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none;
    padding: 0;
    margin: 0 0 1.6rem;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.home-hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 3rem;
}
.home-hero__subtitle em {
    font-style: normal;
}
.home-hero__btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-atomic), #D97706);
    color: var(--space-dark);
    padding: 0.95rem 2.4rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4), 0 0 15px rgba(245, 158, 11, 0.2);
}
.home-hero__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.5), 0 0 25px rgba(245, 158, 11, 0.3);
    filter: brightness(1.1);
}
.home-hero__actions {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}
.home-hero__actions .home-hero__btn {
    min-width: 240px;
}

.home-body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem 5.5rem;
}
.home-body__inner {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}
.home-body__text { flex: 1; }
.home-body__text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
}
.home-body__text strong {
    color: var(--primary-indigo);
    font-weight: 700;
}
.home-body__text p:last-child { margin-bottom: 0; }

.home-body__aside {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.25rem;
}
.home-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 170px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.home-stat:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}
.home-stat__num {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-indigo);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.home-stat__label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.home-body__cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(20ch, max-content));
    gap: 1rem;
    justify-content: start;
    align-items: stretch;
}
.home-body__cta--hero {
    margin-top: 1rem;
}
.home-body__cta .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}
.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 2px solid var(--primary-indigo);
    color: var(--primary-indigo);
    background: transparent;
    transition: all 0.25s ease;
}
.btn-outline:hover {
    background: rgba(79, 70, 229, 0.06);
    transform: translateY(-2px);
}

/* Home responsive */
@media (max-width: 768px) {
    .home-hero { padding: 4.5rem 1.5rem 4rem; }
    .home-hero__title { font-size: 2.4rem; }
    .home-body { padding: 3.5rem 1.25rem 4rem; }
    .home-body__inner { flex-direction: column; gap: 2.5rem; }
    .home-body__aside { flex-direction: row; flex-wrap: wrap; width: 100%; }
    .home-stat { flex: 1; min-width: 140px; }
    .home-body__cta { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .home-hero__title { font-size: 1.9rem; }
    .home-hero { padding: 3.5rem 1rem 3.5rem; }
    .home-body { padding: 3rem 1rem 3rem; }
    .home-body__aside { flex-direction: column; }
}

/* ——— MODULES GRID ——— */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}
.module-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.module-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 0 10px 30px -10px rgba(79, 70, 229, 0.15);
}
.module-card-header {
    background: linear-gradient(135deg, var(--space-dark), var(--space-card));
    color: var(--white);
    padding: 1.5rem;
    position: relative;
    border-bottom: 2px solid var(--primary-indigo);
    transition: border-color 0.3s ease;
}
.module-card:hover .module-card-header {
    border-color: var(--cyan-quantum);
}
.module-card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--cyan-quantum);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.module-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.3));
}
.module-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.35;
}
.module-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.module-card-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
    flex-grow: 1;
}
.module-card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.topic-tag {
    background: var(--bg-light);
    color: var(--primary-indigo);
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.module-card:hover .topic-tag {
    background: rgba(6, 182, 212, 0.08);
    color: #0891B2;
}

/* ——— INDEX: FOOTER ——— */
.footer {
    background: var(--space-dark);
    color: var(--white);
    padding: 4rem 2rem 3rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}
.footer-section h3 {
    margin-bottom: 1.25rem;
    color: var(--cyan-quantum);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}
.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 1.9;
    font-size: 0.95rem;
    display: block;
    transition: color 0.2s ease;
}
.footer-section a:hover {
    color: var(--cyan-quantum);
}
.footer-credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 1rem;
    letter-spacing: 0.02em;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.footer-claude-logo,
.footer-antigravity-logo,
.footer-heart {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}
.footer-claude-logo,
.footer-antigravity-logo {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.footer-heart {
    cursor: default;
}
.footer-claude-logo:hover,
.footer-antigravity-logo:hover,
.footer-heart:hover {
    opacity: 1;
    transform: scale(1.25);
}
.footer-heart:hover {
    text-shadow: 0 0 10px rgba(255, 65, 108, 0.8);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

/* ——— BUTTONS ——— */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.25s ease;
}
.btn-primary {
    background: var(--primary-indigo);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

/* ===========================================
   MODULE PAGE STYLES
   =========================================== */

/* ——— COVER PAGE ——— */
.cover-page {
    text-align: center;
    padding: 4.5rem 1.5rem 3.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.cover-page .class-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-indigo);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.cover-page h1 {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--space-dark);
    border: none;
    padding: 0;
    margin: 0 0 1rem;
    line-height: 1.25;
}
.cover-page .subtitle {
    font-size: 1.3rem;
    font-style: italic;
    font-family: var(--font-quote);
    color: var(--text-light);
}

/* ——— HEADINGS ——— */
h1 {
    color: var(--space-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary-indigo);
    padding-bottom: 0.5rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}
h2 {
    color: var(--primary-indigo);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.45rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}
h3 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 2.2rem;
    margin-bottom: 0.75rem;
}

/* ——— BLOCKQUOTE ——— */
blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-indigo);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-family: var(--font-quote);
    font-style: italic;
    color: #475569;
    border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { margin: 0; }

/* ——— FEYNMAN QUOTE — citat cu atribuire vizibilă ——— */
.feynman-quote {
    position: relative;
    background: linear-gradient(135deg, #FFFDF5 0%, #FFFBEB 100%);
    border-left: 5px solid var(--gold-atomic);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: 2.5rem 0;
    padding: 2.5rem 2.5rem 2rem 4rem;
    font-family: var(--font-quote);
    font-style: italic;
    color: #334155;
    font-size: 1.15rem;
    line-height: 1.7;
    box-shadow: 0 10px 25px -10px rgba(245, 158, 11, 0.15), var(--shadow-sm);
}
.feynman-quote::before {
    content: "\201E";
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    font-size: 4.5rem;
    font-style: normal;
    line-height: 1;
    color: var(--gold-atomic);
    opacity: 0.35;
    font-family: Georgia, serif;
}
.feynman-quote p {
    margin: 0;
}
.feynman-quote p + p {
    margin-top: 12px;
}
.feynman-quote footer {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(245, 158, 11, 0.25);
    font-style: normal;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--space-dark);
    font-weight: 700;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.feynman-quote footer em {
    font-style: italic;
    font-weight: 500;
    color: var(--text-light);
    text-transform: none;
    letter-spacing: normal;
}

/* ——— TABLES ——— */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95em;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
th, td {
    padding: 12px 18px;
    text-align: left;
}
th {
    background: var(--primary-indigo);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
}
td {
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}
tr:nth-child(even) { background: #F8FAFC; }
tr:hover { background: #EEF2F6; }

/* ——— FORMULA BOXES ——— */
.formula-box {
    background: #FFFBEB; /* Atomic gold tint */
    border: 1px solid #FDE68A;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
    font-family: 'Cambria Math', 'Georgia', serif;
    font-size: 1.35rem;
    color: #92400E;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.formula-box::before {
    content: '∑';
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 5rem;
    color: rgba(245, 158, 11, 0.08);
    font-family: serif;
    font-weight: 800;
}
.formula {
    font-family: 'Cambria Math', 'Georgia', serif;
    font-size: 1.1rem;
    background: #FEF3C7;
    padding: 3px 8px;
    border-radius: 4px;
    color: #B45309;
}

/* Fraction display */
.fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    font-size: 0.95em;
    line-height: 1.1;
}
.fraction .num {
    border-bottom: 1px solid currentColor;
    padding: 0 4px 1px;
}
.fraction .den { padding: 1px 4px 0; }

/* ——— INFO BOX ——— */
.info-box {
    background: #ECFDF5; /* Emerald tint */
    border-left: 5px solid #10B981;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-sm);
}
.info-box strong { color: #047857; }

/* ——— EXPERIMENT BOX ——— */
.experiment {
    background: #F0FDF4; /* Light green */
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
}
.experiment h3 {
    color: #166534; /* Deep green */
    font-family: var(--font-heading);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.experiment h3::before {
    content: '🧪';
    font-size: 1.3rem;
}

/* ——— ANSWER BOX ——— */
.answer {
    background: #FFFBEB;
    border-left: 5px solid var(--gold-atomic);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-sm);
}

/* ——— SOLUTION BOX ——— */
.solution {
    background: #FAF5FF; /* Purple tint */
    border: 1px solid #E9D5FF;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}
.solution h4 {
    color: #7E22CE;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* ——— RESULT ——— */
.result {
    background: #DCFCE7; /* Mint */
    color: #14532D;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-align: center;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

/* ——— SYNTHESIS CARD ——— */
.synthesis {
    background: linear-gradient(135deg, var(--space-dark), var(--space-card));
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin: 3.5rem 0;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(79, 70, 229, 0.1);
    position: relative;
    overflow: hidden;
}
.synthesis::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.synthesis h2 {
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.75rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.synthesis h3 {
    color: var(--cyan-quantum);
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: normal;
    margin-top: 1.5rem;
}
.synthesis table {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}
.synthesis th {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}
.synthesis td {
    border-color: rgba(255, 255, 255, 0.08);
}
.synthesis tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}
.synthesis tr:hover {
    background: rgba(255, 255, 255, 0.05);
}
.synthesis .formula-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cyan-quantum);
}
.synthesis strong {
    color: var(--white);
}

/* ——— LISTS ——— */
ul, ol { margin: 1.5rem 0; padding-left: 1.8rem; }
li { margin: 0.5rem 0; line-height: 1.7; }
strong { color: var(--space-dark); font-weight: 700; }

/* ——— BREADCRUMB (Fallback) ——— */
.breadcrumb {
    background: var(--bg-light);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2.2rem;
    font-size: 0.88em;
}
.breadcrumb a { color: var(--primary-medium); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ——— MODULE NAVIGATION (Fallback) ——— */
.module-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.module-nav a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-indigo);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.25s ease;
}
.module-nav a:hover { background: #4338CA; transform: translateY(-2px); }
.module-nav a.disabled { background: #CBD5E1; color: #94A3B8; pointer-events: none; }

/* ——— MODULE FOOTER ——— */
footer {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9em;
}
footer em { font-style: italic; }

/* ——— PRINT ——— */
@media print {
    body { max-width: 100%; background: white; color: black; }
    .hero, .module-nav, footer, .back-to-top, .site-nav, .mod-topbar { display: none; }
    .cover-page { page-break-after: always; }
    h1 { page-break-before: always; }
    .cover-page h1 { page-break-before: avoid; }
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
    /* Main structures */
    .hero {
        padding: 2rem 1rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
        opacity: 0.85;
    }
    .modules-grid { 
        grid-template-columns: 1fr; 
    }
    .navbar-nav { 
        display: none; 
    }

    /* Headings size adjustments to avoid breaking */
    h1 {
        font-size: 1.5rem;
        margin-top: 3rem;
        margin-bottom: 1.25rem;
    }
    h2 {
        font-size: 1.25rem;
        margin-top: 2.25rem;
    }
    h3 {
        font-size: 1.1rem;
        margin-top: 1.75rem;
    }

    /* Responsive Tables - horizontal scroll */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    th, td {
        min-width: 130px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Padding decompression on boxes to allow room for text */
    .feynman-quote {
        padding: 1.75rem 1.25rem 1.25rem 2.25rem;
        margin: 1.75rem 0;
        font-size: 0.95rem;
    }
    .feynman-quote::before {
        left: 0.75rem;
        top: 0.25rem;
        font-size: 3.2rem;
    }
    .feynman-quote footer {
        margin-top: 1rem;
        padding-top: 0.5rem;
        font-size: 0.8rem;
    }
    .experiment {
        padding: 1.25rem;
        margin: 1.75rem 0;
    }
    .formula-box {
        padding: 1.25rem 1rem;
        margin: 1.5rem 0;
        font-size: 1.15rem;
    }
    .synthesis {
        padding: 1.5rem;
        margin: 2.5rem 0;
    }
    .biography-section {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    .info-box, .answer, .solution {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }
    .cover-page {
        padding: 2.5rem 1rem 2rem;
        margin-bottom: 2rem;
    }
    .cover-page h1 {
        font-size: 2rem;
    }
    .cover-page .subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .module-page { padding: 0 16px 40px; }
    .cover-page h1 { font-size: 1.85rem; }
}

/* ——— BIOGRAPHY PAGE STYLES ——— */
.biography-content {
    max-width: 840px;
    margin: 0 auto;
}
.biography-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--primary-indigo);
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.biography-section h3 {
    color: var(--space-dark);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    margin-top: 0;
    border: none;
    padding: 0;
}
.biography-section p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}
.biography-section ul {
    margin: 1.25rem 0;
    padding-left: 1.8rem;
}
.biography-section li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}
.biography-section strong {
    color: var(--primary-indigo);
    font-weight: 700;
}

