/* ===================================
   LIFE INSURANCE PROJECT STYLESHEET
   Professional Design with Bold Fonts
   =================================== */

/* Reset and Base Styles */
* {
    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 50%, #7e8ba3 100%);
    color: #1a1a1a;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3f51b5 100%);
    color: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 5px solid #ffd700;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

.student-info {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.student-info p {
    font-size: 1.1em;
    font-weight: 700;
    margin: 8px 0;
    color: #ffffff;
}

/* Print Button */
.print-section {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.print-btn {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.6);
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #424242 0%, #616161 100%);
    color: #ffffff;
    padding: 30px;
    margin: 0;
}

.table-of-contents h2 {
    font-size: 1.8em;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: center;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin: 8px 0;
}

.table-of-contents button {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 12px 20px;
    text-align: left;
    font-size: 1.05em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.table-of-contents button:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Main Content */
.main-content {
    padding: 40px;
}

.content-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #e0e0e0;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 2em;
    font-weight: 900;
    color: #1a237e;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-section h3 {
    font-size: 1.5em;
    font-weight: 800;
    color: #283593;
    margin: 25px 0 15px 0;
}

.content-section h4 {
    font-size: 1.2em;
    font-weight: 700;
    color: #3f51b5;
    margin: 15px 0 10px 0;
}

.content-section p {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: justify;
    color: #2c2c2c;
    line-height: 1.9;
}

.content-section ul {
    margin: 15px 0 15px 30px;
    list-style-type: disc;
}

.content-section li {
    font-size: 1.05em;
    font-weight: 600;
    margin: 10px 0;
    color: #2c2c2c;
    line-height: 1.8;
}

/* Highlighted Boxes */
.key-points,
.highlight-box,
.legislation-box,
.problem-box,
.major-legislation,
.objectives-box,
.reform-box,
.timeline-box,
.conclusion-box,
.future-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 6px solid #1976d2;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.legislation-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 6px solid #f57c00;
}

.problem-box {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 6px solid #d32f2f;
}

.major-legislation {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left: 6px solid #7b1fa2;
}

.objectives-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 6px solid #388e3c;
}

.reform-box {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-left: 6px solid #c2185b;
}

.conclusion-box {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-left: 6px solid #00796b;
}

.future-box {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border-left: 6px solid #f57f17;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #ffffff;
}

.data-table thead th {
    padding: 18px 15px;
    font-size: 1.1em;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 2px solid #e0e0e0;
    transition: background 0.3s ease;
}

.data-table tbody tr:hover {
    background: #f5f5f5;
}

.data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.data-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

.data-table tbody td {
    padding: 15px;
    font-size: 1.05em;
    font-weight: 600;
    color: #2c2c2c;
}

.inner-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.95em;
}

.inner-table th,
.inner-table td {
    border: 2px solid #1976d2;
    padding: 12px;
    font-weight: 700;
    text-align: left;
}

.inner-table th {
    background: #1976d2;
    color: #ffffff;
}

/* Case Law Boxes */
.case-box {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    border: 3px solid #f57f17;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(245, 127, 23, 0.2);
}

.case-box p {
    font-weight: 700;
    color: #1a1a1a;
}

.case-box h4 {
    font-weight: 900;
    color: #e65100;
    margin: 15px 0 10px 0;
}

.case-box ul {
    margin-left: 25px;
}

.case-box li {
    font-weight: 600;
    color: #2c2c2c;
    margin: 8px 0;
}

/* Flowchart Styles */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 15px;
}

.flow-item {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 3px solid #1976d2;
    border-radius: 12px;
    padding: 20px 30px;
    margin: 10px 0;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.flow-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.flow-item .year {
    font-size: 1.8em;
    font-weight: 900;
    color: #1a237e;
    margin-bottom: 12px;
    text-align: center;
}

.flow-item .event {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c2c2c;
    text-align: center;
    line-height: 1.7;
}

.highlight-flow {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 4px solid #f57c00;
}

.highlight-flow .year {
    color: #e65100;
}

.arrow {
    font-size: 2.5em;
    font-weight: 900;
    color: #1976d2;
    margin: 5px 0;
}

/* Mind Map Styles */
.mind-map {
    position: relative;
    min-height: 800px;
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.mind-map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #ffffff;
    padding: 30px 40px;
    border-radius: 50%;
    font-size: 1.3em;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
    z-index: 10;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.mind-map-branch {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 3px solid #3f51b5;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.branch-title {
    font-size: 1.15em;
    font-weight: 900;
    color: #1a237e;
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffd700;
}

.mind-map-branch ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.mind-map-branch li {
    font-size: 0.95em;
    font-weight: 700;
    color: #2c2c2c;
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
}

.mind-map-branch li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3f51b5;
    font-weight: 900;
}

/* Positioning branches around center */
.branch-1 { margin-top: 50px; }
.branch-2 { margin-top: 50px; }
.branch-3 { margin-top: 420px; }
.branch-4 { margin-top: 420px; }
.branch-5 { margin-top: 420px; }
.branch-6 { margin-top: 420px; }

/* Questions & Answers Section */
.qa-instruction {
    font-size: 1.15em;
    font-weight: 800;
    color: #d32f2f;
    margin-bottom: 25px;
    text-align: center;
    background: #ffebee;
    padding: 15px;
    border-radius: 8px;
}

.qa-container {
    margin: 30px 0;
}

.qa-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #ffffff;
    border: none;
    padding: 18px 25px;
    text-align: left;
    font-size: 1.1em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.qa-question:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.question-number {
    color: #ffd700;
    font-weight: 900;
    margin-right: 10px;
}

.toggle-icon {
    font-size: 1.5em;
    font-weight: 900;
    transition: transform 0.3s ease;
}

.qa-question.active .toggle-icon {
    transform: rotate(45deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.qa-answer.show {
    max-height: 2000px;
    padding: 25px;
    border-top: 3px solid #ffd700;
}

.qa-answer p {
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 15px;
}

.qa-answer ul {
    margin-left: 25px;
}

.qa-answer li {
    font-weight: 600;
    color: #2c2c2c;
    margin: 8px 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #424242 0%, #616161 100%);
    color: #ffffff;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    font-size: 1em;
    font-weight: 700;
    margin: 10px 0;
    color: #ffffff;
}

.footer-note {
    font-size: 0.95em;
    font-weight: 600;
    color: #e0e0e0;
    margin-top: 20px;
    font-style: italic;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .content-section h2 {
        font-size: 1.5em;
    }
    
    .content-section h3 {
        font-size: 1.3em;
    }
    
    .flow-item {
        width: 95%;
    }
    
    .mind-map {
        min-height: auto;
    }
    
    .mind-map-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        width: 240px;
        height: 240px;
        font-size: 1.1em;
    }
    
    .mind-map-branch {
        width: 100%;
        margin: 10px 0;
    }
    
    .branch-1, .branch-2, .branch-3, .branch-4, .branch-5, .branch-6 {
        margin-top: 10px;
    }
    
    .data-table {
        font-size: 0.9em;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    body {
        background: #ffffff;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .print-section,
    .table-of-contents {
        display: none;
    }
    
    .header {
        background: #1a237e;
        color: #ffffff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    .data-table,
    .case-box,
    .flow-item {
        page-break-inside: avoid;
    }
    
    .qa-answer {
        max-height: none !important;
        padding: 15px 25px !important;
    }
    
    .qa-question .toggle-icon {
        display: none;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
    
    .footer {
        background: #424242;
        color: #ffffff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}