/* Fire Insurance Project - CSS Stylesheet */
/* Color Scheme: Professional Legal Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #2c3e50;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #ffffff;
    padding: 40px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.header h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.student-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.student-info p {
    margin: 8px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.print-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: #229954;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.navigation {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    padding: 30px;
    color: #ffffff;
}

.navigation h3 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #f39c12;
}

.nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.nav-list li button {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-list li button:hover {
    background: #c0392b;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Main Content Styles */
.content {
    padding: 40px;
}

.section {
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #e74c3c;
}

.section h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: #c0392b;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.section h3 {
    font-size: 1.7em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section h4 {
    font-size: 1.4em;
    font-weight: bold;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 12px;
}

.section p {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: justify;
    color: #2c3e50;
}

.section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.section ul li {
    margin-bottom: 12px;
    font-size: 1.05em;
    font-weight: 600;
    color: #34495e;
}

.section ul li strong {
    color: #c0392b;
    font-weight: bold;
}

.section ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.section ol li {
    margin-bottom: 12px;
    font-size: 1.05em;
    font-weight: 600;
    color: #34495e;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #1abc9c;
    font-weight: bold;
}

.info-box p {
    font-weight: bold;
    color: #ffffff;
}

.info-box ul li {
    color: #ffffff;
    font-weight: bold;
}

.exclusion-box {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #e67e22;
    font-weight: bold;
}

.exclusion-box h4 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 15px;
}

.exclusion-box ul li {
    color: #ffffff;
    font-weight: bold;
}

.coverage-box {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #16a085;
    font-weight: bold;
}

.coverage-box h4 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 15px;
}

.coverage-box ul li {
    color: #ffffff;
    font-weight: bold;
}

.steps-box {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: bold;
}

.steps-box p {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 12px;
}

.formula-box {
    background: #34495e;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

.formula-box p {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
}

.example-box {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: bold;
}

.example-box p {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 8px;
}

.conclusion-box {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    font-weight: bold;
    text-align: center;
}

.conclusion-box p {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
}

/* Case Law Styles */
.case-law {
    background: #ecf0f1;
    border-left: 5px solid #e74c3c;
    padding: 25px;
    margin: 25px 0;
    border-radius: 8px;
}

.case-law h4 {
    color: #c0392b;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.case-law ul li {
    font-weight: bold;
    margin-bottom: 10px;
}

.case-law ul li strong {
    color: #c0392b;
}

/* Policy Type Styles */
.policy-type {
    background: #e8f5e9;
    border-left: 5px solid #27ae60;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.policy-type h4 {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 12px;
}

.policy-type p {
    font-weight: bold;
}

/* Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
}

.comparison-table thead th {
    padding: 18px;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid #c0392b;
}

.comparison-table tbody tr {
    border-bottom: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.comparison-table tbody td {
    padding: 15px;
    font-size: 1.05em;
    font-weight: bold;
    color: #2c3e50;
    border: 2px solid #ecf0f1;
}

.comparison-table tbody td:first-child {
    background: #f8f9fa;
    font-weight: bold;
    color: #c0392b;
}

/* Flowchart Styles */
.flowchart {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.flow-box {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 20px;
    margin: 15px auto;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flow-box.success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.flow-box.reject {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.flow-arrow {
    text-align: center;
    font-size: 2em;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}

.decision-box {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    padding: 20px;
    margin: 15px auto;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    max-width: 300px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flow-decision {
    margin: 30px 0;
}

.decision-branches {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
}

.branch {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.branch span {
    display: block;
    background: #9b59b6;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Mind Map Styles */
.mindmap-container {
    position: relative;
    margin: 50px auto;
    padding: 50px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border-radius: 20px;
    min-height: 800px;
}

.mindmap-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #ffffff;
    padding: 30px 50px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.mindmap-center h3 {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.mindmap-branch {
    position: absolute;
}

.mindmap-node {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.mindmap-node h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 12px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 8px;
}

.mindmap-node ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mindmap-node ul li {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 0.95em;
}

/* Branch Positioning */
.branch-1 { top: 10%; left: 10%; }
.branch-2 { top: 10%; right: 10%; }
.branch-3 { top: 35%; left: 5%; }
.branch-4 { top: 35%; right: 5%; }
.branch-5 { bottom: 30%; left: 10%; }
.branch-6 { bottom: 30%; right: 10%; }
.branch-7 { bottom: 5%; left: 20%; }
.branch-8 { bottom: 5%; right: 20%; }

/* Q&A Styles */
.qa-container {
    margin: 30px 0;
}

.question-block {
    background: #ffffff;
    border: 3px solid #e74c3c;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question-title {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    padding: 20px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.question-title:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.toggle-icon {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 25px;
    background: #f8f9fa;
}

.answer-content.active {
    max-height: 5000px;
    padding: 25px;
}

.answer-content p {
    font-weight: bold;
    margin-bottom: 15px;
}

.answer-content ul li {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.footer p {
    margin: 8px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
    }
    
    .print-btn,
    .navigation {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .header {
        background: #c0392b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .student-info p {
        font-size: 1em;
    }
    
    .print-btn {
        position: static;
        margin-top: 20px;
        width: 100%;
    }
    
    .nav-list {
        grid-template-columns: 1fr;
    }
    
    .section h2 {
        font-size: 1.8em;
    }
    
    .mindmap-container {
        min-height: 2000px;
    }
    
    .mindmap-branch {
        position: static !important;
        margin: 20px 0;
    }
    
    .decision-branches {
        flex-direction: column;
    }
    
    .comparison-table {
        font-size: 0.9em;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px;
    }
}

/* Scroll Animation */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #ecf0f1;
}

::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}