/* ===================================================
   The Arbitration and Conciliation Act, 1996
   Part III - Conciliation (Sections 61-81)
   Professional Educational Stylesheet
   =================================================== */

/* CSS Variables for Color Scheme */
:root {
    /* Primary Colors */
    --primary-dark: rgb(26, 54, 93);        /* Deep Navy Blue */
    --primary-medium: rgb(44, 82, 130);     /* Medium Blue */
    --primary-light: rgb(66, 119, 184);     /* Light Blue */
    
    /* Background Colors */
    --bg-main: rgb(245, 248, 252);          /* Light Blue-Gray */
    --bg-section: rgb(255, 255, 255);       /* White */
    --bg-header: rgb(26, 54, 93);           /* Navy */
    --bg-nav: rgb(37, 47, 63);              /* Dark Slate */
    
    /* Accent Colors */
    --accent-gold: rgb(212, 175, 55);       /* Gold */
    --accent-green: rgb(39, 174, 96);       /* Success Green */
    --accent-red: rgb(192, 57, 43);         /* Alert Red */
    --accent-orange: rgb(230, 126, 34);     /* Warning Orange */
    
    /* Text Colors */
    --text-dark: rgb(33, 37, 41);           /* Dark Gray */
    --text-medium: rgb(73, 80, 87);         /* Medium Gray */
    --text-light: rgb(108, 117, 125);       /* Light Gray */
    --text-white: rgb(255, 255, 255);       /* White */
    
    /* Border Colors */
    --border-light: rgb(206, 212, 218);     /* Light Border */
    --border-medium: rgb(173, 181, 189);    /* Medium Border */
    --border-dark: rgb(108, 117, 125);      /* Dark Border */
    --border-gold: rgb(212, 175, 55);       /* Gold Border */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-main);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-weight: 600;
}

strong, b {
    font-weight: 700;
    color: var(--primary-dark);
}

/* ============================================
   HEADER STYLES
   ============================================ */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--accent-gold);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
}

.emblem {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.main-header h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-header h2 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
}

.print-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.print-btn:hover {
    background: rgb(255, 215, 0);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   DISCLAIMER BANNER
   ============================================ */
.disclaimer-banner {
    background: linear-gradient(90deg, var(--accent-orange) 0%, rgb(241, 148, 67) 100%);
    color: var(--text-white);
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 3px solid rgb(175, 92, 26);
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-nav);
    padding: 1rem 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-medium);
}

.nav-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-header h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-list {
    list-style: none;
    padding: 1rem 0;
}

.nav-list li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-left-color: var(--accent-gold);
}

/* ============================================
   MAIN CONTENT STYLES
   ============================================ */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    max-width: calc(100% - 280px);
}

.content-section {
    background: var(--bg-section);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
}

.section-badge {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.section-body {
    padding: 2rem;
}

/* ============================================
   CONTENT BOXES
   ============================================ */
.legal-text {
    background: rgb(248, 249, 250);
    border-left: 5px solid var(--primary-medium);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.legal-text h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-text p {
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.explanation-box {
    background: rgb(232, 245, 233);
    border: 2px solid var(--accent-green);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.explanation-box h4 {
    color: rgb(27, 94, 32);
    margin-bottom: 1rem;
    font-weight: 700;
}

.explanation-box ul, .explanation-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.explanation-box li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.example-box {
    background: rgb(255, 248, 225);
    border: 2px solid var(--accent-gold);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.example-box h4 {
    color: rgb(147, 119, 14);
    margin-bottom: 1rem;
    font-weight: 700;
}

.example-box ul, .example-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.example-box li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.case-law-box {
    background: rgb(255, 235, 238);
    border: 2px solid var(--accent-red);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.case-law-box h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 700;
}

.case-content {
    background: var(--bg-section);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.case-name {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.case-citation {
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.case-summary {
    color: var(--text-medium);
    font-weight: 600;
}

/* Highlight Boxes */
.highlight-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.highlight-box h4, .highlight-box h5 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.highlight-box ul {
    margin-left: 1.5rem;
}

.highlight-box li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-box.green {
    background: rgb(232, 245, 233);
    border: 2px solid var(--accent-green);
}

.highlight-box.green h5 {
    color: rgb(27, 94, 32);
}

.highlight-box.red {
    background: rgb(255, 235, 238);
    border: 2px solid var(--accent-red);
}

.highlight-box.red h5 {
    color: var(--accent-red);
}

.highlight-box.golden {
    background: linear-gradient(135deg, rgb(255, 248, 225) 0%, rgb(255, 243, 205) 100%);
    border: 3px solid var(--accent-gold);
}

.highlight-box.golden h5 {
    color: rgb(147, 119, 14);
}

.highlight-box.important {
    background: rgb(255, 243, 205);
    border: 2px solid var(--accent-orange);
}

.highlight-box.important h5 {
    color: rgb(175, 92, 26);
}

/* Key Features */
.key-features {
    background: rgb(232, 240, 254);
    border: 2px solid var(--primary-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.key-features h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.key-features ul {
    margin-left: 1.5rem;
}

.key-features li {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* ============================================
   TABLES
   ============================================ */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.info-table th {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border: 1px solid var(--primary-medium);
}

.info-table td {
    padding: 1rem;
    border: 1px solid var(--border-light);
    font-weight: 600;
}

.info-table tr:nth-child(even) {
    background: rgb(248, 249, 250);
}

.info-table tr:hover {
    background: rgb(232, 240, 254);
}

.example-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.example-table td, .example-table th {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    font-weight: 600;
}

.example-table th {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 700;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.summary-table th {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    position: sticky;
    top: 0;
}

.summary-table td {
    padding: 0.875rem;
    border: 1px solid var(--border-light);
    vertical-align: top;
    font-weight: 600;
}

.summary-table tr:nth-child(even) {
    background: rgb(248, 249, 250);
}

.summary-table tr:hover {
    background: rgb(232, 240, 254);
}

.summary-table .highlight-row {
    background: rgb(255, 248, 225) !important;
}

.table-responsive {
    overflow-x: auto;
}

/* ============================================
   SPECIAL ELEMENTS
   ============================================ */
/* Principle Cards */
.principle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.principle-card {
    background: var(--bg-section);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-fast);
}

.principle-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.principle-card h5 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.principle-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* Evidence Cards */
.evidence-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.ev-card {
    background: rgb(255, 235, 238);
    border: 2px solid var(--accent-red);
    border-radius: 8px;
    padding: 1.25rem;
}

.ev-card h5 {
    color: var(--accent-red);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.ev-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* Termination Cards */
.termination-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.term-card {
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.term-card h5 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.term-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.term-card .outcome {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

.term-card.success {
    background: rgb(232, 245, 233);
    border: 2px solid var(--accent-green);
}

.term-card.success h5 {
    color: rgb(27, 94, 32);
}

.term-card.neutral {
    background: rgb(232, 240, 254);
    border: 2px solid var(--primary-light);
}

.term-card.neutral h5 {
    color: var(--primary-dark);
}

.term-card.withdraw {
    background: rgb(255, 248, 225);
    border: 2px solid var(--accent-orange);
}

.term-card.withdraw h5 {
    color: rgb(175, 92, 26);
}

/* Step Process */
.step-process {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgb(248, 249, 250);
    border-radius: 8px;
    border-left: 4px solid var(--primary-medium);
}

.step-number {
    background: var(--primary-dark);
    color: var(--text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h5 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-content p {
    color: var(--text-medium);
    margin-bottom: 0;
    font-weight: 600;
}

.step-process.horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.step-process.horizontal .step {
    flex-direction: column;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--primary-medium);
}

.step-process.horizontal .step-number {
    margin: 0 auto 1rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
}

.two-column h5 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.two-column ul {
    margin-left: 1.25rem;
}

.two-column li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Sub Sections */
.sub-section {
    margin: 1.25rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.sub-section h5 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.sub-section ul {
    margin-left: 1.25rem;
}

.sub-section li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ============================================
   FLOWCHART STYLES
   ============================================ */
.flowchart-container {
    padding: 2rem;
    overflow-x: auto;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 600px;
}

.flow-node {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 280px;
    max-width: 350px;
    font-weight: 600;
}

.flow-node span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.flow-node p {
    margin: 0;
    font-weight: 600;
}

.flow-node.start {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    border-radius: 50px;
}

.flow-node.start span {
    font-size: 1rem;
}

.flow-node.process {
    background: rgb(232, 240, 254);
    border: 2px solid var(--primary-medium);
    color: var(--primary-dark);
}

.flow-node.decision {
    background: rgb(255, 248, 225);
    border: 2px solid var(--accent-gold);
    color: rgb(147, 119, 14);
    transform: rotate(0deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    padding: 2rem 2.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flow-node.termination {
    background: rgb(255, 243, 205);
    border: 2px solid var(--accent-orange);
    color: rgb(175, 92, 26);
}

.flow-node.end-success {
    background: linear-gradient(135deg, var(--accent-green) 0%, rgb(46, 204, 113) 100%);
    color: var(--text-white);
    border-radius: 50px;
}

.flow-node.end-fail {
    background: linear-gradient(135deg, var(--accent-red) 0%, rgb(231, 76, 60) 100%);
    color: var(--text-white);
    border-radius: 50px;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-medium);
    margin: 0.5rem 0;
    font-weight: 700;
}

.flow-branch {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 1rem 0;
    position: relative;
}

.branch-left, .branch-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-arrow-left, .flow-arrow-right {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.flow-arrow-left {
    color: var(--accent-red);
}

.flow-arrow-right {
    color: var(--accent-green);
}

/* ============================================
   MIND MAP STYLES
   ============================================ */
.mindmap-container {
    padding: 2rem;
    overflow-x: auto;
}

.mindmap {
    min-width: 900px;
    min-height: 700px;
    position: relative;
}

.mm-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.mm-node {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.mm-node.central {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    padding: 2rem;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    line-height: 1.4;
}

.mm-node.primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.mm-node.secondary {
    background: rgb(232, 240, 254);
    border: 2px solid var(--primary-light);
    color: var(--primary-dark);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    margin: 0.3rem 0;
}

.mm-branches {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.mm-branch {
    position: absolute;
}

.mm-branch.branch-1 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mm-branch.branch-2 {
    top: 15%;
    right: 5%;
}

.mm-branch.branch-3 {
    top: 45%;
    right: 2%;
}

.mm-branch.branch-4 {
    bottom: 15%;
    right: 5%;
}

.mm-branch.branch-5 {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mm-branch.branch-6 {
    bottom: 15%;
    left: 5%;
}

.mm-branch.branch-7 {
    top: 45%;
    left: 2%;
}

.mm-sub-nodes {
    margin-top: 0.5rem;
}

.mm-connector {
    display: none;
}

/* ============================================
   ROADMAP STYLES
   ============================================ */
.roadmap-container {
    padding: 2rem;
    overflow-x: auto;
}

.roadmap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.roadmap-phase {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-section);
    border-radius: 12px;
    border: 2px solid var(--border-light);
    margin-bottom: 0;
}

.roadmap-phase.phase-1 { border-left: 5px solid rgb(52, 152, 219); }
.roadmap-phase.phase-2 { border-left: 5px solid rgb(155, 89, 182); }
.roadmap-phase.phase-3 { border-left: 5px solid rgb(230, 126, 34); }
.roadmap-phase.phase-4 { border-left: 5px solid rgb(39, 174, 96); }
.roadmap-phase.phase-5 { border-left: 5px solid rgb(192, 57, 43); }
.roadmap-phase.phase-6 { border-left: 5px solid rgb(52, 73, 94); }

.phase-marker {
    flex-shrink: 0;
}

.phase-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.phase-1 .phase-number { background: rgb(52, 152, 219); }
.phase-2 .phase-number { background: rgb(155, 89, 182); }
.phase-3 .phase-number { background: rgb(230, 126, 34); }
.phase-4 .phase-number { background: rgb(39, 174, 96); }
.phase-5 .phase-number { background: rgb(192, 57, 43); }
.phase-6 .phase-number { background: rgb(52, 73, 94); }

.phase-content {
    flex-grow: 1;
}

.phase-content h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.phase-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.phase-item {
    background: rgb(248, 249, 250);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.phase-item.success {
    background: rgb(232, 245, 233);
    border-color: var(--accent-green);
}

.section-num {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.section-title {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

.phase-description {
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 0;
    font-weight: 600;
}

.roadmap-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
}

.connector-line {
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--border-medium) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

.connector-arrow {
    font-size: 1.5rem;
    color: var(--primary-medium);
    transform: rotate(90deg);
    font-weight: 700;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.main-footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 2.5rem 2rem;
    margin-left: 280px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-orange);
}

.footer-disclaimer h4 {
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.footer-disclaimer p {
    margin-bottom: 0;
    font-weight: 600;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-medium);
    transform: translateY(-3px);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        font-size: 11pt;
        line-height: 1.5;
        background: white !important;
    }
    
    .side-nav,
    .print-btn,
    .back-to-top,
    .nav-toggle {
        display: none !important;
    }
    
    .main-content,
    .main-footer {
        margin-left: 0 !important;
        max-width: 100% !important;
    }
    
    .main-header {
        background: var(--primary-dark) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .section-header {
        background: var(--primary-dark) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .flowchart-container,
    .mindmap-container,
    .roadmap-container {
        page-break-before: always;
    }
    
    .info-table,
    .summary-table {
        font-size: 9pt;
    }
    
    a {
        text-decoration: none;
        color: inherit;
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media screen and (max-width: 1024px) {
    .side-nav {
        transform: translateX(-100%);
    }
    
    .side-nav.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--primary-dark);
        color: var(--text-white);
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: var(--shadow-md);
    }
    
    .main-content,
    .main-footer {
        margin-left: 0;
        max-width: 100%;
    }
    
    .main-header h1 {
        font-size: 2rem;
    }
    
    .main-header h2 {
        font-size: 1.4rem;
    }
    
    .print-btn {
        position: static;
        margin-top: 1rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .main-header {
        padding: 2rem 1rem;
    }
    
    .main-header h1 {
        font-size: 1.6rem;
    }
    
    .main-header h2 {
        font-size: 1.2rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .section-body {
        padding: 1.25rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .principle-cards,
    .evidence-cards,
    .termination-cards {
        grid-template-columns: 1fr;
    }
    
    .step-process.horizontal {
        grid-template-columns: 1fr;
    }
    
    .roadmap-phase {
        flex-direction: column;
        text-align: center;
    }
    
    .phase-sections {
        justify-content: center;
    }
    
    .flow-branch {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mm-node.central {
        width: 140px;
        height: 140px;
        font-size: 0.85rem;
        padding: 1.5rem;
    }
    
    .mindmap {
        min-width: 100%;
        min-height: auto;
    }
    
    .mm-branch {
        position: static;
        transform: none;
        margin: 1rem 0;
        text-align: center;
    }
    
    .mm-center {
        position: static;
        transform: none;
        margin: 0 auto 2rem;
    }
    
    .mm-branches {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .main-header h1 {
        font-size: 1.4rem;
    }
    
    .main-header h2 {
        font-size: 1rem;
    }
    
    .emblem {
        font-size: 3rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .summary-table {
        font-size: 0.75rem;
    }
    
    .summary-table th,
    .summary-table td {
        padding: 0.5rem;
    }
    
    .legal-text,
    .explanation-box,
    .example-box,
    .case-law-box {
        padding: 1rem;
    }
}