/* =========================================
   The Arbitration and Conciliation Act, 1996
   Part I - Professional Stylesheet
   ========================================= */

/* CSS Variables for Color Scheme */
:root {
    /* Primary Colors - Deep Navy Blue Theme */
    --primary-dark: rgb(15, 32, 55);
    --primary-medium: rgb(25, 50, 80);
    --primary-light: rgb(40, 70, 110);
    
    /* Accent Colors - Gold/Bronze */
    --accent-gold: rgb(198, 163, 95);
    --accent-bronze: rgb(180, 140, 75);
    --accent-light-gold: rgb(225, 195, 135);
    
    /* Background Colors */
    --bg-main: rgb(245, 243, 238);
    --bg-section: rgb(255, 255, 255);
    --bg-highlight: rgb(252, 250, 245);
    --bg-code: rgb(38, 50, 66);
    
    /* Border Colors */
    --border-primary: rgb(198, 163, 95);
    --border-secondary: rgb(180, 175, 165);
    --border-light: rgb(220, 215, 205);
    
    /* Text Colors */
    --text-primary: rgb(30, 35, 45);
    --text-secondary: rgb(60, 65, 75);
    --text-light: rgb(100, 105, 115);
    --text-white: rgb(255, 255, 255);
    --text-gold: rgb(198, 163, 95);
    
    /* Status Colors */
    --success: rgb(46, 125, 50);
    --warning: rgb(198, 140, 40);
    --danger: rgb(183, 28, 28);
    --info: rgb(25, 118, 210);
    
    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.18);
    
    /* Fonts */
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-main);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

strong, b {
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* Print Header - Hidden on Screen */
.print-header {
    display: none;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold);
}

.sidebar-header h2 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent-gold);
}

.sidebar-content {
    padding: var(--spacing-md);
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 2px;
}

.nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(198, 163, 95, 0.2);
    color: var(--accent-gold);
    padding-left: var(--spacing-lg);
}

.nav-chapter {
    padding: var(--spacing-md) var(--spacing-sm);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(198, 163, 95, 0.3);
}

/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-dark);
    color: var(--text-white);
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.menu-toggle:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Print Button */
.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--success);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.print-btn:hover {
    background: rgb(56, 145, 60);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    color: var(--text-white);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    padding-top: 80px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-light) 100%);
    padding: var(--spacing-xxl);
    text-align: center;
    border-radius: 16px;
    margin-bottom: var(--spacing-xl);
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c6a35f' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 1;
}

.emblem {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header h1 {
    color: var(--text-white);
    font-size: 2.8rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: var(--accent-light-gold);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.act-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, rgb(255, 248, 225) 0%, rgb(255, 243, 205) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 5px solid var(--warning);
    margin-bottom: var(--spacing-xl);
    font-weight: 600;
    color: rgb(102, 60, 0);
    box-shadow: var(--shadow-light);
}

/* Sections */
.section {
    background: var(--bg-section);
    padding: var(--spacing-xl);
    border-radius: 16px;
    margin-bottom: var(--spacing-xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-medium);
}

.section > h2 {
    color: var(--primary-dark);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--accent-gold);
    margin-bottom: var(--spacing-lg);
}

/* Content Box */
.content-box {
    background: var(--bg-highlight);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.content-box h3 {
    color: var(--primary-medium);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.content-box h3:first-child {
    margin-top: 0;
}

/* Styled Lists */
.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    font-weight: 500;
}

.styled-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Tables */
.info-table, .definition-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: var(--bg-section);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.info-table th, .definition-table th {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}

.info-table td, .definition-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
}

.info-table tr:nth-child(even), .definition-table tr:nth-child(even) {
    background: var(--bg-highlight);
}

.info-table tr:hover, .definition-table tr:hover {
    background: rgb(255, 250, 235);
}

/* Chapter Sections */
.chapter-section {
    margin-bottom: var(--spacing-xxl);
}

.chapter-title {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    border-left: 6px solid var(--accent-gold);
    box-shadow: var(--shadow-medium);
    font-size: 1.5rem;
}

/* Section Articles */
.section-article {
    background: var(--bg-section);
    border-radius: 16px;
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.section-header {
    background: linear-gradient(135deg, var(--bg-highlight) 0%, rgb(248, 246, 240) 100%);
    padding: var(--spacing-lg);
    border-bottom: 2px solid var(--accent-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.section-header h3 {
    color: var(--primary-dark);
    margin: 0;
    font-size: 1.35rem;
}

.section-badge {
    background: var(--primary-dark);
    color: var(--accent-gold);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-content {
    padding: var(--spacing-xl);
}

/* Simple Explanation Box */
.simple-explanation {
    background: linear-gradient(135deg, rgb(232, 245, 253) 0%, rgb(225, 240, 250) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 5px solid var(--info);
    margin-bottom: var(--spacing-lg);
}

.simple-explanation h4 {
    color: var(--info);
    margin-bottom: var(--spacing-sm);
}

.simple-explanation p {
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.8;
}

/* Key Points Box */
.key-points {
    margin-bottom: var(--spacing-lg);
}

.key-points h4 {
    color: var(--primary-medium);
    margin-bottom: var(--spacing-md);
}

/* Example Box */
.example-box {
    background: linear-gradient(135deg, rgb(232, 250, 238) 0%, rgb(225, 245, 232) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 5px solid var(--success);
    margin-bottom: var(--spacing-lg);
}

.example-box h4 {
    color: var(--success);
    margin-bottom: var(--spacing-md);
}

.example-box ol, .example-box ul {
    padding-left: var(--spacing-lg);
    margin: var(--spacing-sm) 0;
}

.example-box li {
    padding: var(--spacing-xs) 0;
    font-weight: 500;
}

/* Clause Box */
.clause-box {
    background: var(--bg-code);
    color: rgb(200, 210, 220);
    padding: var(--spacing-md);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    margin: var(--spacing-md) 0;
    border: 1px solid var(--accent-gold);
}

/* Case Law Box */
.case-law {
    margin-top: var(--spacing-lg);
}

.case-law h4 {
    color: var(--primary-medium);
    margin-bottom: var(--spacing-md);
}

.case-card {
    background: linear-gradient(135deg, rgb(255, 253, 248) 0%, rgb(252, 250, 245) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 2px solid var(--accent-bronze);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-light);
}

.case-name {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.case-citation {
    color: var(--accent-bronze);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(180, 140, 75, 0.1);
    display: inline-block;
    border-radius: 4px;
}

.case-summary {
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.7;
}

/* Important Note Box */
.important-note {
    background: linear-gradient(135deg, rgb(255, 243, 224) 0%, rgb(255, 238, 210) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 5px solid var(--warning);
    margin: var(--spacing-lg) 0;
}

.important-note h4 {
    color: rgb(180, 100, 0);
    margin-bottom: var(--spacing-md);
}

/* =========================================
   FLOWCHART STYLES
   ========================================= */

.flowchart-container {
    overflow-x: auto;
    padding: var(--spacing-lg);
    background: var(--bg-highlight);
    border-radius: 12px;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 600px;
    padding: var(--spacing-lg);
}

.flow-node {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    min-width: 280px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--accent-gold);
}

.flow-node span {
    display: block;
    line-height: 1.4;
}

.start-node {
    background: linear-gradient(135deg, var(--success) 0%, rgb(56, 142, 60) 100%);
    border-color: rgb(200, 230, 200);
}

.end-node {
    background: linear-gradient(135deg, var(--accent-bronze) 0%, var(--accent-gold) 100%);
    border-color: rgb(255, 235, 180);
    color: var(--primary-dark);
}

.process-node {
    background: linear-gradient(135deg, var(--info) 0%, rgb(30, 136, 229) 100%);
}

.award-node {
    background: linear-gradient(135deg, rgb(156, 39, 176) 0%, rgb(123, 31, 162) 100%);
}

.flow-arrow {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    padding: var(--spacing-sm) 0;
}

.flow-decision {
    background: linear-gradient(135deg, rgb(255, 183, 77) 0%, rgb(255, 160, 0) 100%);
    color: var(--primary-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0;
    transform: rotate(0deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    min-width: 180px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
}

.flow-branch {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xxl);
    width: 100%;
    margin: var(--spacing-md) 0;
}

.branch-left, .branch-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.flow-arrow-left, .flow-arrow-right {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
}

.main-flow {
    margin-top: var(--spacing-md);
}

/* =========================================
   MIND MAP STYLES
   ========================================= */

.mindmap-container {
    overflow-x: auto;
    padding: var(--spacing-xl);
    background: var(--bg-highlight);
    border-radius: 12px;
}

.mindmap {
    position: relative;
    min-width: 900px;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mindmap-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-heavy);
    z-index: 10;
}

.mindmap-branch {
    position: absolute;
}

.branch-node {
    background: var(--bg-section);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
    text-align: center;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
    min-width: 140px;
}

.branch-node span {
    display: block;
    color: var(--primary-dark);
    font-size: 0.85rem;
    line-height: 1.3;
}

.sub-nodes {
    margin-top: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-node {
    background: var(--bg-highlight);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Position branches around the center */
.branch-1 { top: 5%; left: 50%; transform: translateX(-50%); }
.branch-2 { top: 15%; right: 5%; }
.branch-3 { top: 40%; right: 2%; }
.branch-4 { bottom: 35%; right: 5%; }
.branch-5 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.branch-6 { bottom: 35%; left: 5%; }
.branch-7 { top: 40%; left: 2%; }
.branch-8 { top: 15%; left: 5%; }

/* =========================================
   ROADMAP STYLES
   ========================================= */

.roadmap-container {
    overflow-x: auto;
    padding: var(--spacing-lg);
    background: var(--bg-highlight);
    border-radius: 12px;
}

.roadmap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    min-width: 800px;
}

.roadmap-phase {
    flex: 1 1 300px;
    max-width: 380px;
    background: var(--bg-section);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.phase-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.phase-number {
    background: var(--accent-gold);
    color: var(--primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
}

.phase-header h3 {
    color: var(--text-white);
    margin: 0;
    font-size: 1rem;
}

.phase-content {
    padding: var(--spacing-lg);
}

.milestone {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px dashed var(--border-light);
}

.milestone:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.milestone-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.milestone-text strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.milestone-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.phase-connector {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
    z-index: 5;
}

/* =========================================
   FOOTER STYLES
   ========================================= */

.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    padding: var(--spacing-xxl) var(--spacing-xl);
    border-radius: 16px;
    margin-top: var(--spacing-xxl);
    border: 3px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(198, 163, 95, 0.3);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1024px) {
    .main-content {
        padding: var(--spacing-lg);
        padding-top: 80px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .chapter-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .main-content {
        padding: var(--spacing-md);
        padding-top: 70px;
    }
    
    .header {
        padding: var(--spacing-lg);
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: var(--spacing-lg);
    }
    
    .section-content {
        padding: var(--spacing-lg);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-table, .definition-table {
        font-size: 0.85rem;
    }
    
    .info-table th, .definition-table th,
    .info-table td, .definition-table td {
        padding: var(--spacing-sm);
    }
    
    .flow-branch {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .phase-connector {
        display: none;
    }
    
    .mindmap {
        min-width: 100%;
        min-height: auto;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .mindmap-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 150px;
        height: 150px;
        font-size: 0.9rem;
    }
    
    .mindmap-branch {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .menu-toggle, .print-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
    
    .menu-toggle {
        left: 10px;
        top: 10px;
    }
    
    .print-btn {
        right: 10px;
        top: 10px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .emblem {
        font-size: 3rem;
    }
}

/* =========================================
   PRINT STYLES
   ========================================= */

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: white;
        font-size: 11pt;
        line-height: 1.5;
    }
    
    .sidebar,
    .menu-toggle,
    .print-btn,
    .back-to-top {
        display: none !important;
    }
    
    .print-header {
        display: block !important;
        text-align: center;
        padding: 20px;
        border-bottom: 3px solid rgb(198, 163, 95);
        margin-bottom: 20px;
    }
    
    .print-header h1 {
        color: rgb(15, 32, 55);
        font-size: 24pt;
        margin-bottom: 5px;
    }
    
    .print-header p {
        color: rgb(60, 65, 75);
        font-size: 14pt;
    }
    
    .main-content {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .header {
        background: rgb(15, 32, 55) !important;
        color: white !important;
        border-radius: 0;
        page-break-after: avoid;
    }
    
    .header h1, .subtitle, .act-info {
        color: white !important;
    }
    
    .section, .section-article {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid rgb(180, 175, 165);
        box-shadow: none;
        margin-bottom: 15px;
    }
    
    .chapter-title {
        background: rgb(25, 50, 80) !important;
        color: white !important;
        border-radius: 0;
    }
    
    .flowchart-container,
    .mindmap-container,
    .roadmap-container {
        page-break-before: always;
    }
    
    .flowchart,
    .mindmap,
    .roadmap {
        min-width: auto;
    }
    
    .footer {
        background: rgb(15, 32, 55) !important;
        color: white !important;
        page-break-before: always;
    }
    
    a {
        color: rgb(25, 50, 80);
        text-decoration: underline;
    }
    
    .case-card {
        border: 1px solid rgb(180, 140, 75);
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-article {
    animation: fadeIn 0.5s ease-out;
}

/* Smooth scrolling indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-bronze) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}