/* =====================================================
   COPYRIGHT ACT CHAPTER II - STYLESHEET
   Professional Educational Resource
   ===================================================== */

/* CSS Variables for Color Scheme */
:root {
    /* Primary Colors - Deep Professional Blue Theme */
    --primary-bg: rgb(15, 23, 42);
    --secondary-bg: rgb(30, 41, 59);
    --tertiary-bg: rgb(51, 65, 85);
    
    /* Accent Colors */
    --accent-gold: rgb(234, 179, 8);
    --accent-gold-light: rgb(253, 224, 71);
    --accent-emerald: rgb(16, 185, 129);
    --accent-cyan: rgb(6, 182, 212);
    --accent-purple: rgb(139, 92, 246);
    --accent-rose: rgb(244, 63, 94);
    
    /* Text Colors */
    --text-primary: rgb(248, 250, 252);
    --text-secondary: rgb(203, 213, 225);
    --text-muted: rgb(148, 163, 184);
    
    /* Border Colors */
    --border-primary: rgb(71, 85, 105);
    --border-accent: rgb(234, 179, 8);
    --border-light: rgb(100, 116, 139);
    
    /* Card Colors */
    --card-bg: rgb(30, 41, 59);
    --card-hover: rgb(51, 65, 85);
    
    /* Section-specific colors */
    --section9-color: rgb(59, 130, 246);
    --section10-color: rgb(16, 185, 129);
    --section11-color: rgb(139, 92, 246);
    --section12-color: rgb(244, 63, 94);
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
    font-weight: 400;
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
    color: var(--accent-gold-light);
}

/* =====================================================
   HEADER SECTION
   ===================================================== */
.main-header {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 50%, rgb(30, 27, 75) 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
}

.emblem {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.main-header h1 {
    color: var(--accent-gold);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

.print-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--primary-bg);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.print-btn:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4);
}

/* =====================================================
   NAVIGATION MENU
   ===================================================== */
.nav-menu {
    background: var(--secondary-bg);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 1rem;
}

.nav-btn {
    background: var(--tertiary-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.nav-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Introduction Section */
.intro-section {
    margin-bottom: 2rem;
}

.intro-card {
    background: linear-gradient(135deg, rgb(30, 58, 95) 0%, var(--secondary-bg) 100%);
    border: 2px solid var(--accent-cyan);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
}

.intro-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.intro-card ul {
    list-style: none;
    padding-left: 0;
}

.intro-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 600;
}

.intro-card li::before {
    content: "▸";
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* =====================================================
   SECTION CARDS
   ===================================================== */
.section-card {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border: 2px solid var(--border-primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.section-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 12px 40px rgba(234, 179, 8, 0.15);
}

.section-header {
    background: linear-gradient(135deg, var(--tertiary-bg) 0%, var(--secondary-bg) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    background: var(--accent-gold);
    color: var(--primary-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
}

.section-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.section-content {
    padding: 2rem;
}

/* Explanation Box */
.explanation-box {
    background: linear-gradient(135deg, rgb(30, 58, 95) 0%, rgb(23, 37, 84) 100%);
    border-left: 5px solid var(--section9-color);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.explanation-box h4 {
    color: var(--section9-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Key Points */
.key-points {
    margin-bottom: 1.5rem;
}

.key-points h4 {
    color: var(--accent-emerald);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Tables */
.info-table, .zones-table, .summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.info-table th, .zones-table th, .summary-table th {
    background: var(--tertiary-bg);
    color: var(--accent-gold);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border: 1px solid var(--border-primary);
}

.info-table td, .zones-table td, .summary-table td {
    padding: 1rem;
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-weight: 600;
}

.info-table tr:nth-child(even), 
.zones-table tr:nth-child(even),
.summary-table tr:nth-child(even) {
    background: rgba(51, 65, 85, 0.5);
}

.info-table tr:hover, 
.zones-table tr:hover,
.summary-table tr:hover {
    background: rgba(234, 179, 8, 0.1);
}

/* Example Box */
.example-box {
    background: linear-gradient(135deg, rgb(23, 54, 48) 0%, rgb(17, 47, 41) 100%);
    border-left: 5px solid var(--accent-emerald);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.example-box h4 {
    color: var(--accent-emerald);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Case Law Box */
.case-law-box {
    background: linear-gradient(135deg, rgb(55, 30, 65) 0%, rgb(45, 25, 55) 100%);
    border-left: 5px solid var(--accent-purple);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.case-law-box h4 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-weight: 700;
}

.case-details {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1.25rem;
}

.case-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.citation {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.case-summary, .relevance {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgb(75, 35, 25) 0%, rgb(55, 25, 20) 100%);
    border: 2px solid var(--accent-rose);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight-box h4 {
    color: var(--accent-rose);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.highlight-box ul {
    list-style: none;
    padding-left: 0;
}

.highlight-box li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 600;
    color: var(--text-secondary);
}

.highlight-box li::before {
    content: "⚡";
    position: absolute;
    left: 0;
}

/* Zones Box */
.zones-box {
    background: rgba(6, 182, 212, 0.1);
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.zones-box h4 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* =====================================================
   VISUAL SECTIONS (Flowchart, Mind Map, Roadmap)
   ===================================================== */
.visual-section {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border: 2px solid var(--border-primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* =====================================================
   FLOWCHART STYLES
   ===================================================== */
.flowchart-container {
    padding: 2rem;
    overflow-x: auto;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 800px;
    padding: 2rem;
}

.flow-box {
    background: var(--secondary-bg);
    border: 3px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.flow-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.flow-box strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.flow-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 600;
}

/* Specific Flow Box Colors */
.government-box {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgb(60, 50, 20) 0%, var(--secondary-bg) 100%);
}

.government-box strong {
    color: var(--accent-gold);
}

.office-box, .registrar-box, .deputy-box {
    border-color: var(--section9-color);
    background: linear-gradient(135deg, rgb(25, 45, 85) 0%, var(--secondary-bg) 100%);
}

.office-box strong, .registrar-box strong, .deputy-box strong {
    color: var(--section9-color);
}

.appellate-box, .chairman-box, .benches-box {
    border-color: var(--accent-purple);
    background: linear-gradient(135deg, rgb(55, 30, 75) 0%, var(--secondary-bg) 100%);
}

.appellate-box strong, .chairman-box strong, .benches-box strong {
    color: var(--accent-purple);
}

/* Flow Arrows */
.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
}

.arrow-line {
    width: 4px;
    height: 30px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.arrow-head {
    color: var(--accent-gold);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: -5px;
}

/* Flow Branches */
.flow-branches {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 1rem;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Functions Section */
.flow-functions {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 2rem;
    width: 100%;
}

.functions-left, .functions-right {
    flex: 1;
    max-width: 350px;
}

.function-box {
    background: rgba(51, 65, 85, 0.5);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
}

.function-box h5 {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.function-box ul {
    list-style: none;
    padding-left: 0;
}

.function-box li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.function-box li::before {
    content: "✓";
    color: var(--accent-emerald);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Flowchart Legend */
.flowchart-legend {
    padding: 1.5rem 2rem;
    background: var(--tertiary-bg);
    border-top: 2px solid var(--border-primary);
}

.flowchart-legend h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid var(--border-light);
}

.govt-color { background: var(--accent-gold); }
.office-color { background: var(--section9-color); }
.judicial-color { background: var(--accent-purple); }

.legend-item span:last-child {
    color: var(--text-secondary);
    font-weight: 600;
}

/* =====================================================
   MIND MAP STYLES
   ===================================================== */
.mindmap-container {
    padding: 3rem 2rem;
    overflow-x: auto;
}

.mindmap {
    position: relative;
    min-width: 900px;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central Node */
.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--accent-gold) 0%, rgb(202, 138, 4) 100%);
    color: var(--primary-bg);
    padding: 2rem;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.4);
    z-index: 10;
}

.central-node strong {
    color: var(--primary-bg);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.central-node p {
    font-size: 0.85rem;
    margin: 0;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.8);
}

/* Mind Map Branches */
.mind-branch {
    position: absolute;
}

.branch-node {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.branch-node strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.branch-node p {
    font-size: 0.8rem;
    margin: 0;
    font-weight: 600;
}

/* Branch Positions */
.branch-top-left {
    top: 30px;
    left: 50px;
}

.branch-top-right {
    top: 30px;
    right: 50px;
}

.branch-bottom-left {
    bottom: 30px;
    left: 50px;
}

.branch-bottom-right {
    bottom: 30px;
    right: 50px;
}

/* Section-specific colors for branches */
.node-section9 {
    background: linear-gradient(135deg, var(--section9-color) 0%, rgb(37, 99, 235) 100%);
}
.node-section9 strong { color: white; }
.node-section9 p { color: rgba(255,255,255,0.8); }

.node-section10 {
    background: linear-gradient(135deg, var(--section10-color) 0%, rgb(5, 150, 105) 100%);
}
.node-section10 strong { color: white; }
.node-section10 p { color: rgba(255,255,255,0.8); }

.node-section11 {
    background: linear-gradient(135deg, var(--section11-color) 0%, rgb(109, 40, 217) 100%);
}
.node-section11 strong { color: white; }
.node-section11 p { color: rgba(255,255,255,0.8); }

.node-section12 {
    background: linear-gradient(135deg, var(--section12-color) 0%, rgb(225, 29, 72) 100%);
}
.node-section12 strong { color: white; }
.node-section12 p { color: rgba(255,255,255,0.8); }

/* Sub Nodes */
.sub-nodes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sub-node {
    background: var(--secondary-bg);
    border: 2px solid var(--border-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
}

/* Connectors */
.mind-connector {
    position: absolute;
    width: 100px;
    height: 3px;
    background: var(--accent-gold);
}

.connector-tl {
    top: 100px;
    right: -80px;
    transform: rotate(30deg);
}

.connector-tr {
    top: 100px;
    left: -80px;
    transform: rotate(-30deg);
}

.connector-bl {
    bottom: 100px;
    right: -80px;
    transform: rotate(-30deg);
}

.connector-br {
    bottom: 100px;
    left: -80px;
    transform: rotate(30deg);
}

/* =====================================================
   ROADMAP STYLES
   ===================================================== */
.roadmap-container {
    padding: 2rem;
    overflow-x: auto;
}

.roadmap {
    position: relative;
    padding: 2rem 0;
    min-width: 800px;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-emerald) 50%, var(--accent-cyan) 100%);
    border-radius: 3px;
}

/* Milestones */
.milestone {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.milestone-marker {
    width: 200px;
    flex-shrink: 0;
    position: relative;
}

.milestone-marker::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border: 4px solid var(--primary-bg);
    border-radius: 50%;
    z-index: 5;
}

.year {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
}

.milestone-content {
    background: var(--secondary-bg);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.25rem;
    margin-left: 40px;
    flex: 1;
    transition: all 0.3s ease;
}

.milestone-content:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.2);
}

.milestone-content h5 {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.milestone-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.milestone-content li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.milestone-content li::before {
    content: "→";
    color: var(--accent-emerald);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Current Milestone */
.current-milestone .milestone-marker::after {
    background: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    animation: pulse 2s infinite;
}

.current-milestone .year {
    background: var(--accent-cyan);
}

.current-milestone .milestone-content {
    border-color: var(--accent-cyan);
}

.current-milestone .milestone-content h5 {
    color: var(--accent-cyan);
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

/* Roadmap Summary */
.roadmap-summary {
    padding: 1.5rem 2rem;
    background: var(--tertiary-bg);
    border-top: 2px solid var(--border-primary);
}

.roadmap-summary h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* =====================================================
   SUMMARY SECTION
   ===================================================== */
.summary-section {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border: 2px solid var(--border-primary);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.summary-card {
    background: var(--secondary-bg);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.summary-card h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.summary-card p strong {
    color: var(--text-primary);
}

.summary-card p:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* =====================================================
   DISCLAIMER SECTION
   ===================================================== */
.disclaimer-section {
    margin-bottom: 2rem;
}

.disclaimer-box {
    background: linear-gradient(135deg, rgb(75, 35, 25) 0%, rgb(55, 25, 20) 100%);
    border: 3px solid var(--accent-rose);
    border-radius: 16px;
    padding: 2rem;
}

.disclaimer-box h4 {
    color: var(--accent-rose);
    margin-bottom: 1rem;
    font-weight: 700;
}

.disclaimer-box p {
    color: var(--text-secondary);
    font-weight: 600;
}

/* =====================================================
   FOOTER
   ===================================================== */
.main-footer {
    background: var(--secondary-bg);
    border-top: 4px solid var(--accent-gold);
    padding: 2rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-weight: 600;
    margin: 0.25rem 0;
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-gold);
    color: var(--primary-bg);
    border: none;
    padding: 1rem 1.25rem;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-gold-light);
    transform: translateY(-5px);
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .main-header {
        background: white;
        border-bottom: 3px solid black;
        padding: 1rem;
    }
    
    .main-header h1, .main-header h2 {
        color: black;
    }
    
    .nav-menu, .print-btn, .back-to-top {
        display: none !important;
    }
    
    .section-card, .visual-section, .intro-card, .disclaimer-box {
        background: white;
        border: 2px solid black;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .section-header {
        background: #f0f0f0;
        border-bottom: 2px solid black;
    }
    
    .section-number {
        background: black;
        color: white;
    }
    
    .explanation-box, .example-box, .case-law-box, .highlight-box, .zones-box {
        background: #f8f8f8;
        border-left: 4px solid black;
    }
    
    .info-table th, .zones-table th, .summary-table th {
        background: #e0e0e0;
        color: black;
    }
    
    .info-table td, .zones-table td, .summary-table td {
        color: black;
    }
    
    strong {
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .flowchart, .mindmap, .roadmap {
        min-width: auto;
    }
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    .main-header h2 {
        font-size: 1.3rem;
    }
    
    .print-btn {
        position: static;
        margin-top: 1rem;
    }
    
    .nav-container {
        justify-content: center;
    }
    
    .nav-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .flow-branches {
        flex-direction: column;
        gap: 2rem;
    }
    
    .flow-functions {
        flex-direction: column;
    }
    
    .mind-branch {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 1rem 0;
    }
    
    .mindmap {
        flex-direction: column;
        min-height: auto;
    }
    
    .central-node {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
    
    .mind-connector {
        display: none;
    }
    
    .milestone {
        flex-direction: column;
    }
    
    .milestone-marker {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .milestone-content {
        margin-left: 0;
    }
    
    .timeline-line {
        display: none;
    }
}