/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(31, 150, 199) 0%, rgb(25, 120, 160) 100%);
    color: #1a1a1a;
    line-height: 1.8;
    font-size: 18px;
    font-weight: bold;
    min-height: 100vh;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    background: linear-gradient(135deg, rgb(150, 31, 224) 0%, rgb(120, 25, 180) 100%);
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid rgb(31, 150, 199);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.print-btn {
    background: linear-gradient(135deg, rgb(31, 150, 199) 0%, rgb(25, 120, 160) 100%);
    color: #ffffff;
    border: 3px solid #ffffff;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(25, 120, 160) 0%, rgb(20, 100, 140) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ===== QUICK NAVIGATION ===== */
.quick-nav {
    max-width: 1400px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 4px solid rgb(150, 31, 224);
}

.quick-nav h3 {
    color: rgb(150, 31, 224);
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(31, 150, 199) 0%, rgb(25, 120, 160) 100%);
    color: #ffffff;
    border: 3px solid rgb(150, 31, 224);
    padding: 14px 28px;
    font-size: 17px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nav-buttons button:hover {
    background: linear-gradient(135deg, rgb(150, 31, 224) 0%, rgb(120, 25, 180) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px 50px 30px;
}

/* ===== SECTIONS ===== */
.section {
    background: rgba(255, 255, 255, 0.98);
    margin-bottom: 35px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 4px solid rgb(150, 31, 224);
    scroll-margin-top: 100px;
}

/* ===== HEADINGS ===== */
.main-heading {
    color: rgb(150, 31, 224);
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(31, 150, 199);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.sub-heading {
    color: rgb(31, 150, 199);
    font-size: 28px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
}

.sub-sub-heading {
    color: rgb(150, 31, 224);
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* ===== TEXT CONTENT ===== */
.content-text {
    font-size: 18px;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 20px;
    line-height: 1.9;
    text-align: justify;
}

/* ===== LISTS ===== */
.content-list {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-list li {
    font-size: 18px;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* ===== TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    border: 4px solid rgb(150, 31, 224);
}

.data-table thead {
    background: linear-gradient(135deg, rgb(150, 31, 224) 0%, rgb(120, 25, 180) 100%);
    color: #ffffff;
}

.data-table thead th {
    padding: 18px 15px;
    text-align: left;
    font-size: 19px;
    font-weight: bold;
    border-bottom: 3px solid rgb(31, 150, 199);
}

.data-table tbody tr {
    background: rgb(61, 242, 236);
    border-bottom: 2px solid rgb(150, 31, 224);
    transition: all 0.3s ease;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(61, 242, 236, 0.7);
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(150, 31, 224, 0.2) 0%, rgba(31, 150, 199, 0.2) 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.data-table tbody td {
    padding: 16px 15px;
    color: #1a1a1a;
    font-weight: bold;
    border-right: 2px solid rgb(150, 31, 224);
}

.data-table tbody td:last-child {
    border-right: none;
}

/* ===== INFO BOX ===== */
.info-box {
    background: linear-gradient(135deg, rgba(31, 150, 199, 0.15) 0%, rgba(150, 31, 224, 0.15) 100%);
    border-left: 6px solid rgb(150, 31, 224);
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-box p {
    font-size: 18px;
    font-weight: bold;
    color: #2a2a2a;
    margin: 0;
    line-height: 1.8;
}

/* ===== FLOWCHART ===== */
.flowchart {
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 3px solid rgb(150, 31, 224);
}

.flow-box {
    background: #ffffff;
    border: 3px solid rgb(150, 31, 224);
    border-radius: 12px;
    padding: 20px;
    margin: 15px auto;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    color: #1a1a1a;
}

.start-box {
    background: linear-gradient(135deg, rgb(31, 150, 199) 0%, rgb(25, 120, 160) 100%);
    color: #ffffff;
    font-size: 20px;
}

.decision-box {
    background: linear-gradient(135deg, rgb(150, 31, 224) 0%, rgb(120, 25, 180) 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 19px;
}

.process-box {
    background: linear-gradient(135deg, rgba(31, 150, 199, 0.3) 0%, rgba(25, 120, 160, 0.3) 100%);
    border-color: rgb(31, 150, 199);
}

.action-box {
    background: linear-gradient(135deg, rgba(61, 242, 236, 0.5) 0%, rgba(50, 200, 195, 0.5) 100%);
    text-align: left;
}

.end-box {
    background: linear-gradient(135deg, rgb(150, 31, 224) 0%, rgb(120, 25, 180) 100%);
    color: #ffffff;
    font-size: 19px;
}

.flow-arrow {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin: 10px 0;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-branch {
    flex: 1;
    min-width: 280px;
}

.flow-merge {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: rgb(31, 150, 199);
    margin: 20px 0;
}

/* ===== MIND MAP ===== */
.mindmap {
    margin: 30px 0;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 3px solid rgb(150, 31, 224);
    position: relative;
    min-height: 1100px;
}

.mindmap-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.center-node {
    background: linear-gradient(135deg, rgb(150, 31, 224) 0%, rgb(31, 150, 199) 100%);
    color: #ffffff;
    border: 5px solid #ffffff;
    border-radius: 50%;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mindmap-branches {
    position: relative;
    height: 1050px;
}

.branch {
    position: absolute;
    max-width: 380px;
}

.branch-left {
    top: 5%;
    left: 3%;
}

.branch-right {
    top: 5%;
    right: 3%;
}

.branch-bottom-left {
    bottom: 5%;
    left: 3%;
}

.branch-bottom-right {
    bottom: 5%;
    right: 3%;
}

.branch-main {
    background: #ffffff;
    border: 4px solid;
    border-radius: 15px;
    padding: 20px 30px;
    font-size: 19px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    min-width: 200px;
}

.technical-branch {
    border-color: rgb(31, 150, 199);
    color: rgb(31, 150, 199);
}

.fundamental-branch {
    border-color: rgb(150, 31, 224);
    color: rgb(150, 31, 224);
}

.risk-branch {
    border-color: rgb(255, 100, 100);
    color: rgb(200, 50, 50);
}

.market-branch {
    border-color: rgb(50, 200, 100);
    color: rgb(30, 150, 70);
}

.sub-branches {
    display: flex;
    flex-direction: column;
      padding-left: 0;
}

.sub-branch {
    margin-left: 25px;
}

.sub-node {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgb(150, 31, 224);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: bold;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.sub-node:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ===== Q&A SECTION ===== */
.qa-container {
    margin: 25px 0;
}

.qa-item {
    margin-bottom: 20px;
    border: 3px solid rgb(150, 31, 224);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, rgb(61, 242, 236) 0%, rgb(50, 200, 195) 100%);
    border: none;
    padding: 20px 25px;
    text-align: left;
    cursor: pointer;
    font-size: 19px;
    font-weight: bold;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background: linear-gradient(135deg, rgb(31, 150, 199) 0%, rgb(25, 120, 160) 100%);
    color: #ffffff;
}

.qa-icon {
    font-size: 28px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    min-width: 30px;
    text-align: center;
}

.qa-question:hover .qa-icon {
    color: #ffffff;
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(255, 255, 255, 0.98);
}

.qa-answer.active {
    max-height: 2000px;
    padding: 25px;
    border-top: 3px solid rgb(150, 31, 224);
}

.qa-answer p {
    font-size: 18px;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 15px;
    line-height: 1.8;
}

.qa-answer ul, .qa-answer ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.qa-answer li {
    font-size: 18px;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, rgb(150, 31, 224) 0%, rgb(120, 25, 180) 100%);
    color: #ffffff;
    padding: 40px 30px;
    margin-top: 50px;
    border-top: 5px solid rgb(31, 150, 199);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
    }
    
    .navbar,
    .quick-nav,
    .print-btn,
    .nav-buttons {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
        border: 2px solid #000;
        box-shadow: none;
        margin-bottom: 20px;
    }
    
    .data-table {
        page-break-inside: avoid;
    }
    
    .qa-answer {
        max-height: none !important;
        padding: 15px !important;
    }
    
    .mindmap {
        page-break-inside: avoid;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 1400px) {
    .mindmap {
        min-height: 1200px;
    }
    
    .mindmap-branches {
        height: 1150px;
    }
    
    .branch {
        max-width: 420px;
    }
}

@media (max-width: 1200px) {
    .nav-title {
        font-size: 26px;
    }
    
    .main-heading {
        font-size: 30px;
    }
    
    .sub-heading {
        font-size: 24px;
    }
    
    .mindmap {
        min-height: 1150px;
    }
    
    .mindmap-branches {
        height: 1100px;
    }
    
    .branch {
        max-width: 340px;
    }
    
    .center-node {
        width: 200px;
        height: 200px;
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .mindmap {
        min-height: 1300px;
        padding: 40px 25px;
    }
    
    .mindmap-branches {
        height: 1250px;
    }
    
    .branch {
        max-width: 320px;
    }
    
    .branch-left {
        top: 3%;
        left: 2%;
    }
    
    .branch-right {
        top: 3%;
        right: 2%;
    }
    
    .branch-bottom-left {
        bottom: 3%;
        left: 2%;
    }
    
    .branch-bottom-right {
        bottom: 3%;
        right: 2%;
    }
    
    .center-node {
        width: 190px;
        height: 190px;
        font-size: 19px;
    }
    
    .sub-node {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-title {
        font-size: 22px;
    }
    
    .section {
        padding: 25px;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .mindmap {
        min-height: auto;
        padding: 30px 20px;
    }
    
    .mindmap-branches {
        position: relative;
        height: auto;
    }
    
    .center-node {
        width: 180px;
        height: 180px;
        font-size: 18px;
    }
    
    .branch {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    .branch-main {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .sub-branches {
        margin-left: 15px;
    }
    
    .data-table {
        font-size: 15px;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .nav-title {
        font-size: 18px;
    }
    
    .main-heading {
        font-size: 24px;
    }
    
    .sub-heading {
        font-size: 20px;
    }
    
    .content-text,
    .content-list li {
        font-size: 16px;
    }
}