/* ============================================
   CONJUNCTIONS EDUCATIONAL WEBPAGE - CSS
   Professional Design with Enhanced Readability
   ============================================ */

/* ===== 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(41, 180, 229) 100%);
    color: #2c3e50;
    line-height: 1.8;
    padding: 20px;
    min-height: 100vh;
}

/* ===== NAVIGATION MENU ===== */
.navigation-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 4px solid rgb(150, 31, 224);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.navigation-menu h2 {
    color: rgb(150, 31, 224);
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navigation-menu button {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(51, 170, 219));
    color: white;
    border: 3px solid rgb(150, 31, 224);
    padding: 14px 24px;
    margin: 8px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.navigation-menu button:hover {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 255));
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(150, 31, 224, 0.4);
}

.navigation-menu button:active {
    transform: translateY(0);
}

.print-btn {
    background: linear-gradient(135deg, rgb(255, 100, 100), rgb(255, 140, 140)) !important;
    border: 3px solid rgb(200, 50, 50) !important;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(200, 50, 50), rgb(230, 80, 80)) !important;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 5px solid rgb(150, 31, 224);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ===== HEADINGS ===== */
.main-title {
    text-align: center;
    color: rgb(150, 31, 224);
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    color: rgb(31, 150, 199);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    font-style: italic;
}

.section-heading {
    color: rgb(150, 31, 224);
    font-size: 32px;
    font-weight: bold;
    margin: 40px 0 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(150, 31, 224, 0.1), rgba(150, 31, 224, 0.05));
    border-left: 6px solid rgb(150, 31, 224);
    border-radius: 8px;
}

.sub-heading {
    color: rgb(31, 150, 199);
    font-size: 26px;
    font-weight: bold;
    margin: 30px 0 15px 0;
    padding-left: 12px;
    border-left: 5px solid rgb(31, 150, 199);
}

.minor-heading {
    color: rgb(100, 100, 100);
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0 12px 0;
    text-decoration: underline;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: rgba(255, 255, 255, 0.98);
    border: 4px solid rgb(150, 31, 224);
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.type-container {
    background: rgba(61, 242, 236, 0.08);
    border: 3px solid rgb(31, 150, 199);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

/* ===== TEXT ELEMENTS ===== */
p {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.9;
}

.description {
    font-size: 19px;
    font-weight: bold;
    color: #34495e;
    background: rgba(255, 255, 220, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.definition-box {
    background: linear-gradient(135deg, rgba(61, 242, 236, 0.25), rgba(61, 242, 236, 0.15));
    border: 3px solid rgb(31, 150, 199);
    border-radius: 12px;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 20px 0;
}

.example-box {
    background: rgba(255, 255, 200, 0.4);
    border: 3px solid rgb(255, 200, 100);
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
}

.example-box p {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 8px 0;
}

.highlight {
    color: rgb(150, 31, 224);
    font-weight: bold;
    background: rgba(150, 31, 224, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== LISTS ===== */
.bullet-list {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 20px;
}

.bullet-list li {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 12px 0;
    line-height: 1.8;
}

.example-list {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 20px;
}

.example-list li {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 5px solid rgb(31, 150, 199);
    border-radius: 6px;
}

.sentence-list {
    list-style: decimal;
    margin-left: 30px;
    margin-bottom: 25px;
}

.sentence-list li {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 14px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(31, 150, 199, 0.3);
    border-radius: 8px;
    line-height: 1.9;
}

.sentence-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: rgb(61, 242, 236);
    color: #1a1a1a;
}

thead th {
    padding: 18px;
    font-size: 19px;
    font-weight: bold;
    text-align: left;
    border: 3px solid rgb(150, 31, 224);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background: rgba(61, 242, 236, 0.15);
}

tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.95);
}

tbody tr:hover {
    background: rgba(150, 31, 224, 0.15);
    transform: scale(1.01);
}

tbody td {
    padding: 16px;
    font-size: 17px;
    font-weight: bold;
    color: #2c3e50;
    border: 2px solid rgb(150, 31, 224);
}

.comparison-table {
    border: 4px solid rgb(150, 31, 224);
}

.detail-table {
    border: 4px solid rgb(31, 150, 199);
}

/* ===== FLOWCHART ===== */
.flowchart-container {
    background: white;
    border: 4px solid rgb(150, 31, 224);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    overflow-x: auto;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-width: 800px;
}

.flow-box {
    border: 3px solid black;
    border-radius: 12px;
    padding: 18px 25px;
    margin: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 180px;
}

.start-box {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 255));
    color: white;
    font-size: 20px;
    padding: 22px 35px;
}

.type-box-1 {
    background: linear-gradient(135deg, rgb(61, 242, 236), rgb(91, 255, 249));
    color: #1a1a1a;
}

.type-box-2 {
    background: linear-gradient(135deg, rgb(255, 200, 150), rgb(255, 220, 180));
    color: #1a1a1a;
}

.type-box-3 {
    background: linear-gradient(135deg, rgb(255, 180, 255), rgb(255, 210, 255));
    color: #1a1a1a;
}

.detail-box {
    background: linear-gradient(135deg, rgb(255, 255, 200), rgb(255, 255, 230));
    color: #1a1a1a;
    font-size: 14px;
}

.flow-arrow {
    font-size: 28px;
    font-weight: bold;
    color: rgb(31, 150, 199);
    margin: 8px 0;
}

.flow-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
}

.flow-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
}

/* ===== MIND MAP ===== */
.mindmap-container {
    background: white;
    border: 4px solid rgb(150, 31, 224);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    overflow-x: auto;
}

.mindmap-container svg {
    display: block;
    margin: 0 auto;
}

.mindmap-container text {
    font-weight: bold;
}

/* ===== Q&A SECTION ===== */
.qa-item {
    margin: 25px 0;
    border: 3px solid rgb(31, 150, 199);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, rgb(61, 242, 236), rgb(81, 255, 246));
    color: #1a1a1a;
    border: none;
    padding: 20px;
    font-size: 19px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.qa-question:hover {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 255));
    color: white;
    transform: translateX(5px);
}

.qa-answer {
    display: none;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.9;
    border-top: 3px solid rgb(150, 31, 224);
}

.qa-answer.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* ===== DISCLAIMER & FOOTER ===== */
.disclaimer {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.3), rgba(255, 220, 150, 0.3));
    border: 3px solid rgb(255, 150, 50);
    border-radius: 12px;
    padding: 25px;
    margin: 35px 0;
    font-size: 17px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

.footer {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 255));
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 35px;
    border-radius: 12px;
    border: 3px solid rgb(31, 150, 199);
}

.footer p {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin: 8px 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
    .container {
        padding: 30px;
    }
    
    .main-title {
        font-size: 38px;
    }
    
    .subtitle {
        font-size: 20px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .navigation-menu {
        padding: 15px;
    }
    
    .navigation-menu button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .section-heading {
        font-size: 26px;
    }
    
    .sub-heading {
        font-size: 22px;
    }
    
    table {
        font-size: 14px;
    }
    
    thead th, tbody td {
        padding: 10px;
        font-size: 14px;
    }
    
    .flow-row {
        flex-direction: column;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .navigation-menu {
        display: none;
    }
    
    .container {
        border: 2px solid black;
        box-shadow: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 1px solid black;
    }
    
    .qa-answer {
        display: block !important;
    }
    
    .qa-question {
        background: lightgray !important;
        color: black !important;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    .flowchart-container, .mindmap-container {
        page-break-inside: avoid;
    }
    
    /* Ensure all text is dark for printing */
    * {
        color: black !important;
    }
    
    .highlight {
        background: lightgray !important;
        color: black !important;
        font-weight: bold;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: rgb(150, 31, 224);
    color: white;
}

::-moz-selection {
    background: rgb(150, 31, 224);
    color: white;
}