/* Project 3: Nationality and Citizenship - Styles */

/* 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, #667eea 0%, #764ba2 100%);
    color: #1a1a1a;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

/* Header Section */
.header {
    text-align: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
    color: #ffd700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.college-info {
    margin-top: 20px;
    font-size: 1.1em;
}

.college-info p {
    margin: 8px 0;
    font-weight: bold;
}

/* Print Section */
.print-section {
    text-align: center;
    margin: 30px 0;
}

.print-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
    transition: all 0.3s ease;
}

.print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.6);
}

/* Navigation Menu */
.navigation {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navigation h3 {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.nav-buttons button {
    background: #ffffff;
    color: #f5576c;
    font-weight: bold;
    font-size: 1em;
    padding: 12px 20px;
    border: 3px solid #f5576c;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.nav-buttons button:hover {
    background: #f5576c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(245, 87, 108, 0.4);
}

/* Section Styles */
.section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #8b0000;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid #8b0000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sub-title {
    font-size: 1.7em;
    font-weight: bold;
    color: #1e3c72;
    margin: 25px 0 15px 0;
    text-decoration: underline;
}

.content-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.content-box p {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.9;
}

.content-box ul {
    margin-left: 40px;
    margin-bottom: 20px;
}

.content-box ul li {
    font-size: 1.1em;
    font-weight: bold;
    margin: 12px 0;
    line-height: 1.8;
}

.content-box ul li ul {
    margin-top: 10px;
}

.content-box ul li ul li {
    font-size: 1.05em;
}

/* Contents List */
.contents-list {
    list-style-type: decimal;
    margin-left: 20px;
}

.contents-list li {
    font-size: 1.2em;
    font-weight: bold;
    margin: 15px 0;
    color: #1e3c72;
}

.contents-list ul {
    list-style-type: disc;
    margin-left: 30px;
    margin-top: 10px;
}

.contents-list ul li {
    font-size: 1.05em;
    color: #2a5298;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.comparison-table thead th {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.3em;
    padding: 18px;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.comparison-table tbody tr {
    border-bottom: 2px solid #ddd;
    transition: background 0.3s ease;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.comparison-table tbody tr:hover {
    background: #ffecd2;
}

.comparison-table tbody td {
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #1a1a1a;
}

/* Case Law Box */
.case-box {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 25px;
    margin: 25px 0;
    border-left: 6px solid #006064;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-box h4 {
    font-size: 1.5em;
    font-weight: bold;
    color: #004d40;
    margin-bottom: 15px;
    text-decoration: underline;
}

.case-box p {
    font-size: 1.15em;
    font-weight: bold;
    margin: 12px 0;
    color: #00695c;
}

.case-box ul {
    margin-left: 30px;
    margin-top: 10px;
}

.case-box ul li {
    font-size: 1.05em;
    font-weight: bold;
    margin: 10px 0;
    color: #004d40;
}

/* Flowchart Styles */
.flowchart {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.flow-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.flow-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    margin: 15px auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-align: center;
}

.start-box {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    font-size: 1.3em;
}

.end-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    font-size: 1.3em;
}

.decision-box {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: #ffffff;
    font-size: 1.2em;
}

.process-box {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #1a1a1a;
    font-size: 1.1em;
    margin: 10px auto;
}

.flow-arrow {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: #1e3c72;
    margin: 10px 0;
}

.flow-split {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px 0;
}

.flow-branch {
    flex: 1;
    min-width: 280px;
    margin: 10px;
}

/* Mind Map Styles */
.mindmap {
    position: relative;
    background: #ffffff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    min-height: 800px;
}

.mindmap-center {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    padding: 30px;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    position: relative;
    z-index: 10;
}

.mindmap-branch {
    margin: 30px 0;
}

.mindmap-node {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
}

.mindmap-node strong:first-child {
    font-size: 1.4em;
    display: block;
    margin-bottom: 15px;
    text-decoration: underline;
}

.mindmap-subnode {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: bold;
    padding: 10px 15px;
    margin: 10px 0;
    border-left: 4px solid #f5576c;
    border-radius: 5px;
    font-size: 1.05em;
}

/* Q&A Styles */
.qa-container {
    margin: 20px 0;
}

.qa-item {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.qa-question {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    padding: 20px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.qa-question:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateX(5px);
}

.qa-answer {
    background: #ffffff;
    padding: 25px;
    display: none;
    border-top: 3px solid #2a5298;
}

.qa-answer.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qa-answer p {
    font-size: 1.15em;
    font-weight: bold;
    line-height: 1.9;
    color: #1a1a1a;
}

/* Bibliography List */
.bibliography-list {
    list-style-type: none;
    margin-left: 0;
}

.bibliography-list li {
    font-size: 1.1em;
    font-weight: bold;
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
    color: #1e3c72;
}

.bibliography-list li:before {
    content: "📚";
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    margin-top: 40px;
    border-radius: 10px;
    font-weight: bold;
}

.footer p {
    margin: 10px 0;
    font-size: 1.2em;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        padding: 20px;
    }
    
    .no-print {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .case-box {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .table-container {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .qa-answer {
        display: block !important;
    }
    
    .header {
        background: #1e3c72 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header h2 {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .mindmap {
        padding: 20px;
    }
    
    .mindmap-center {
        width: 180px;
        height: 180px;
        font-size: 1.4em;
    }
}

/* Accessibility */
button:focus,
a:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}