/* ===== GLOBAL RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #1a1a2e;
   background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 20%, #ede9fe 45%, #dbeafe 70%, #f0fdf4 100%);
    background-attachment: fixed;
}

/* ===== PRINT BUTTON FLOATING ===== */
.print-btn-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6f00, #ff8f00);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-btn-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.5);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    display: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.5);
}

/* ===== HEADER ===== */
.main-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 40%, #3949ab 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 6px solid #ff6f00;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.main-header h1 {
    font-size: 2.6em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.main-header .subtitle {
    font-size: 1.15em;
    font-weight: 600;
    margin-top: 10px;
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

.main-header .branding {
    font-size: 0.95em;
    font-weight: 700;
    margin-top: 14px;
    color: #ffcc80;
    position: relative;
    z-index: 1;
}

/* ===== STICKY NAVIGATION ===== */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: max-content;
    margin: 0 auto;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
    background: #ff6f00;
    border-color: #ff6f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== SECTION STYLES ===== */
.section {
    margin-bottom: 35px;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-left: 6px solid;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

/* Section Color Themes */
.section-green {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-color: #2e7d32;
}
.section-green::before { background: #2e7d32; }

.section-saffron {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-color: #ff8f00;
}
.section-saffron::before { background: #ff8f00; }

.section-pink {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-color: #c2185b;
}
.section-pink::before { background: #c2185b; }

.section-blue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: #1565c0;
}
.section-blue::before { background: #1565c0; }

.section-violet {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-color: #7b1fa2;
}
.section-violet::before { background: #7b1fa2; }

.section-teal {
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    border-color: #00695c;
}
.section-teal::before { background: #00695c; }

.section-red {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-color: #c62828;
}
.section-red::before { background: #c62828; }

.section-indigo {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    border-color: #283593;
}
.section-indigo::before { background: #283593; }

/* ===== HEADINGS ===== */
.section h2 {
    font-size: 1.9em;
    font-weight: 900;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-green h2 { color: #1b5e20; }
.section-saffron h2 { color: #e65100; }
.section-pink h2 { color: #880e4f; }
.section-blue h2 { color: #0d47a1; }
.section-violet h2 { color: #4a148c; }
.section-teal h2 { color: #004d40; }
.section-red h2 { color: #b71c1c; }
.section-indigo h2 { color: #1a237e; }

.section h3 {
    font-size: 1.4em;
    font-weight: 800;
    margin: 22px 0 12px;
    padding-left: 14px;
    border-left: 4px solid;
}

.section-green h3 { color: #2e7d32; border-color: #2e7d32; }
.section-saffron h3 { color: #ef6c00; border-color: #ef6c00; }
.section-pink h3 { color: #ad1457; border-color: #ad1457; }
.section-blue h3 { color: #1565c0; border-color: #1565c0; }
.section-violet h3 { color: #6a1b9a; border-color: #6a1b9a; }
.section-teal h3 { color: #00695c; border-color: #00695c; }
.section-red h3 { color: #c62828; border-color: #c62828; }
.section-indigo h3 { color: #283593; border-color: #283593; }

.section h4 {
    font-size: 1.15em;
    font-weight: 700;
    margin: 16px 0 8px;
}

/* ===== PARAGRAPH & LIST ===== */
.section p {
    font-size: 1.02em;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c2c2c;
}

.section ul, .section ol {
    margin: 10px 0 16px 24px;
}

.section li {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.7;
}

.section li strong {
    font-weight: 800;
}

/* ===== TABLES ===== */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    min-width: 700px;
}

.styled-table thead tr {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    text-align: left;
}

.styled-table th {
    padding: 14px 16px;
    font-weight: 800;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.styled-table td {
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.styled-table tbody tr {
    background: rgba(255, 255, 255, 0.7);
    transition: background 0.2s;
}

.styled-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.5);
}

.styled-table tbody tr:hover {
    background: rgba(255, 193, 7, 0.15);
}

/* ===== INFO BOXES ===== */
.info-box {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.caution-box {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff8f00;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.caution-box strong {
    color: #e65100;
    font-size: 1.05em;
}

/* ===== SVG FLOWCHART / MINDMAP / ROADMAP ===== */
.diagram-container {
    margin: 30px 0;
    text-align: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.diagram-container svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.diagram-title {
    font-size: 1.5em;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.diagram-title-green {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
}

.diagram-title-blue {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
}

.diagram-title-violet {
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
    color: #fff;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    border: 3px solid #f9a825;
    border-radius: 14px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.disclaimer p {
    font-size: 1.05em;
    font-weight: 800;
    color: #e65100;
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 5px solid #ff6f00;
}

.main-footer p {
    font-weight: 700;
    margin: 5px 0;
}

.main-footer .brand {
    color: #ffcc80;
    font-size: 1.1em;
    font-weight: 800;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.6em;
    }
    .section {
        padding: 22px 18px;
    }
    .section h2 {
        font-size: 1.4em;
    }
    .nav-container {
        justify-content: flex-start;
    }
    .print-btn-float {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }
    .back-to-top {
        bottom: 15px;
        left: 15px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sticky-nav,
    .print-btn-float,
    .back-to-top {
        display: none !important;
    }
    body {
        background: #fff !important;
    }
    .section {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #ccc;
        page-break-inside: avoid;
    }
    .main-header {
        background: #1a237e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}