/* General Body and Container Styling (No changes from previous iteration) */
body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e0eff5 0%, #f7f9fc 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    width: 95%;
    max-width: 1400px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin: 30px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Top Navigation Area (Search Bar & Breadcrumbs) (No changes) */
.top-nav-area {
    padding: 20px 40px 0 40px;
    background-color: #fcfdfe;
    border-bottom: 1px solid #eef0f4;
}

.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-bottom: 25px;
    border: 1px solid #dbe2e9;
    border-radius: 8px;
    background-color: #fdfdfd;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-articles-input {
    flex-grow: 1;
    padding: 12px 18px;
    border: none;
    outline: none;
    font-size: 1em;
    background: transparent;
    color: #3f51b5;
}

.search-articles-input::placeholder {
    color: #9aa7b5;
}

.dropdown-arrow {
    padding-right: 18px;
    color: #9aa7b5;
    font-size: 1.1em;
}

.breadcrumbs {
    padding-bottom: 20px;
    font-size: 0.9em;
    color: #7a869a;
}

.breadcrumb-item {
    color: #6a8bb8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #3f51b5;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 6px;
    color: #cdd4df;
}

.current-page {
    font-weight: 600;
    color: #5d6d84;
}

/* Hero Banner (No changes) */
.hero-banner {
    background: linear-gradient(45deg, #3f51b5, #5a66b9);
    color: white;
    padding: 50px;
    text-align: center;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
}

.hero-banner h1 {
    font-size: 3.2em;
    margin-bottom: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero-banner p {
    font-size: 1.15em;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #e6eef5;
}

.key-metrics {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
}

.metric-box {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-number {
    font-size: 2.2em;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.metric-label {
    font-size: 0.95em;
    color: #f0f8ff;
}

/* Module Navigation Buttons (Horizontal Bar) (No changes) */
.module-navigation {
    display: flex;
    background-color: #fefefe;
    border-bottom: 1px solid #eef0f4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    padding: 0 20px;
}

.module-button {
    flex-grow: 1;
    padding: 18px 20px;
    background-color: transparent;
    color: #6a798a;
    border: none;
    border-right: 1px solid #eef0f4;
    font-size: 1.05em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-bottom 0.2s ease;
    font-weight: 500;
    text-align: center;
}

.module-button:last-child {
    border-right: none;
}

.module-button:hover {
    background-color: #f8f8fb;
    color: #3f51b5;
}

.module-button.active {
    background-color: #e0f2f7;
    color: #3f51b5;
    border-bottom: 3px solid #3f51b5;
    font-weight: 600;
}

/* Content Display Area (for Module Content) (No changes) */
.content-display-area {
    padding: 30px 40px;
}

/* Styles for the "Overview" page content (No changes) */
.overview-page-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.overview-section h2 {
    color: #3f51b5;
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: left;
    border-bottom: 1px solid #eef0f4;
    padding-bottom: 10px;
}

.overview-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
}

.overview-list-item {
    background-color: white;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.overview-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.overview-list-item h3 {
    margin: 0;
    font-size: 1.25em;
    color: #3f51b5;
    font-weight: 600;
}

.overview-list-item .icon {
    font-size: 1.8em;
    color: #20b2aa;
}

/* Styles for Common Questions (No changes) */
.common-questions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.common-question-item {
    background-color: #fefefe;
    border: 1px solid #dbe2e9;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.common-question-item:hover {
    background-color: #f0f5f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.common-question-item h3 {
    margin: 0;
    font-size: 1.1em;
    color: #5d6d84;
    font-weight: 500;
    flex-grow: 1;
    padding-right: 15px;
}

.common-question-item .arrow-icon {
    font-size: 1.2em;
    color: #aebacd;
}


/* General Content Section Styles (for dynamic content like module sub-sections or FAQ answers) */
.dynamic-content-wrapper {
    display: block;
}

/* --- NEW / MODIFIED STYLES FOR MODULE CONTENT AS COLLAPSIBLE SECTIONS --- */
.module-content-list {
    list-style: none;
    padding: 0;
}

.module-content-item {
    margin-bottom: 15px; /* Space between each collapsible item */
    border: 1px solid #eef0f4;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* Ensures rounded corners apply to content */
}

.collapsible-header {
    background-color: #fefefe; /* Light background for the header */
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: 600;
    color: #3f51b5; /* Primary blue for headings */
    border-bottom: 1px solid transparent; /* Placeholder for active state */
    transition: background-color 0.2s ease, border-bottom 0.2s ease;
}

.collapsible-header:hover {
    background-color: #f0f5f8; /* Lighter blue-grey on hover */
}

.collapsible-header.active {
    background-color: #e0f2f7; /* Very light blue for active header */
    border-bottom: 1px solid #dbe2e9; /* Subtle line when active */
    color: #3f51b5;
}

.collapsible-header .fas {
    font-size: 0.9em;
    transition: transform 0.3s ease;
    color: #5d6d84; /* Muted color for icons */
}

.collapsible-header.active .fas {
    transform: rotate(90deg); /* Rotate icon for active state */
    color: #3f51b5;
}

.collapsible-content {
    padding: 25px;
    display: none; /* Hidden by default */
    border-top: 1px solid #eef0f4; /* Separator from header */
    background-color: #ffffff;
    line-height: 1.8;
}

/* Common style for content cards, whether in module or FAQ answer (No changes, but now used within collapsible-content) */
.content-card {
    padding: 0; /* Remove padding here, it's handled by collapsible-content */
    margin-bottom: 0; /* Remove margin here */
    background-color: transparent; /* No background here */
    border: none; /* No border here */
    box-shadow: none; /* No shadow here */
}

/* Ensure headings inside content-card in collapsible-content look good */
.collapsible-content .content-card h3 {
    margin-top: 0; /* Adjust margin inside the content card */
    font-size: 1.5em; /* Slightly smaller for internal headings */
    border-bottom: 1px solid #eef0f4;
    padding-bottom: 8px;
    color: #3f51b5;
}

.content-card.faq-answer h3 {
    color: #20b2aa;
    font-size: 1.4em;
}

.content-card h4 {
    color: #5d6d84;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-card p {
    color: #4a4a4a;
    line-height: 1.8;
}

.content-card ul, .content-card ol {
    margin-left: 30px;
    color: #4a4a4a;
}

.content-card ul li, .content-card ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-card ul li strong,
.content-card ol li strong {
    color: #20b2aa;
    font-weight: 700;
}

/* Back to Home Button (No changes) */
.back-to-home-button-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eef0f4;
    display: none;
}

.back-to-home-button {
    padding: 12px 28px;
    background-color: #8c9cb8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-to-home-button:hover {
    background-color: #6a798a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments (Adjusted for new collapsible sections) */
@media (max-width: 992px) {
    .container {
        margin: 20px;
    }
    .top-nav-area, .hero-banner, .content-display-area {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-banner h1 {
        font-size: 2.5em;
    }
    .hero-banner p {
        font-size: 1em;
    }
    .key-metrics {
        flex-direction: column;
        gap: 15px;
    }
    .metric-box {
        width: 100%;
    }
    .overview-section h2 {
        font-size: 2em;
    }
    .overview-list {
        grid-template-columns: 1fr;
    }
    .collapsible-header {
        font-size: 1.05em;
        padding: 15px 20px;
    }
    .collapsible-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 2.2em;
    }
    .overview-section h2 {
        font-size: 1.8em;
    }
    .overview-list-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .overview-list-item .icon {
        margin-bottom: 5px;
    }
    .common-question-item {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .common-question-item h3 {
        padding-right: 0;
    }
    .common-question-item .arrow-icon {
        align-self: flex-end;
    }
    .module-navigation {
        flex-direction: column;
    }
    .module-button {
        border-right: none;
        border-bottom: 1px solid #eef0f4;
    }
    .module-button:last-child {
        border-bottom: none;
    }
    /* Adjusted for collapsible header */
    .collapsible-header {
        font-size: 1em;
        padding: 14px 18px;
    }
    .collapsible-content {
        padding: 18px;
    }
    .content-card h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 15px;
        border-radius: 8px;
    }
    .top-nav-area, .hero-banner, .content-display-area {
        padding-left: 15px;
        padding-right: 15px;
    }
    .hero-banner {
        padding: 30px;
    }
    .hero-banner h1 {
        font-size: 1.8em;
    }
    .hero-banner p {
        font-size: 0.9em;
    }
    .metric-number {
        font-size: 1.8em;
    }
    .metric-label {
        font-size: 0.8em;
    }
    .overview-section h2 {
        font-size: 1.5em;
    }
    .collapsible-header {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    .collapsible-content {
        padding: 15px;
    }
}