* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, "Segoe UI", sans-serif;
    background: #f7f8fa;
    color: #1d3557;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    width: auto;
}

.language-selector {
    font-size: 14px;
    color: #667085;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: menulist;
    appearance: menulist;
}

.language-selector:hover,
.language-selector:focus {
    border-color: #e4e7ec;
    background: #fff;
}

.hero {
    background: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 44px;
    color: #162b42;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #545669;
    margin-bottom: 35px;
}

.search-box {
    max-width: 700px;
    margin: auto;
    display: flex;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    width: 60px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #16345f;
}

.reverse-icon {
    display: inline-block;
    transform: scaleX(-1);
}

.content-area {
    background: #f8fafc;
    border-top: 1px solid #e4e7ec;
    border-bottom: 1px solid #e4e7ec;
    padding: 40px 0;
}

.section {
    padding: 40px 0;
}

.section h2 {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    color: #16345f;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.article-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    min-height: 84px;
    padding: 16px;

    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;

    text-decoration: none;
    color: inherit;

    transition: .2s;
}

.article-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.article-card>div {
    flex: 1;
}

.article-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #16345f;
    line-height: 1.4;
}

.article-card p {
    margin: 0;
    font-size: 13px;
    color: #667085;
}

.article-card i {
    margin-left: 16px;
    font-size: 12px;
    color: #16345f;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 18px;
}

.modules-grid a {
    text-decoration: none;
    color: inherit;
}

.module-card {
    display: flex;
    align-items: center;

    min-height: 86px;
    padding: 16px 18px;

    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;

    transition: .2s;
}

.module-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.icon {
    width: 34px;
    height: 34px;
    margin-right: 16px;
    flex-shrink: 0;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.module-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #16345f;
}

.module-card p {
    margin: 0;
    font-size: 13px;
    color: #667085;
}

.faq-section {
    background: transparent;
}

.faq-section h2 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 28px;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;

    padding: 20px 24px;
    margin-bottom: 14px;

    text-decoration: none;
    color: inherit;

    transition: .2s;
}

.faq-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.faq-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #16345f;
}

.faq-card p {
    margin: 0;
    font-size: 14px;
    color: #667085;
}

.faq-card i {
    margin-left: 20px;
    color: #16345f;
}

/* Collapsible Interactive FAQ Accordions for FAQ Pages */
.faq-accordion-item {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.faq-accordion-item:hover {
    border-color: #cbd5e1;
}

.faq-accordion-item.open {
    border-color: #16345f;
    box-shadow: 0 3px 10px rgba(22, 52, 95, 0.08);
}

.faq-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

.faq-accordion-header:hover {
    background: #f8fafc;
}

.faq-accordion-item.open .faq-accordion-header {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.faq-question-title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #16345f !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    flex: 1;
}

.faq-question-title::before {
    content: "" !important;
}

.faq-toggle-icon {
    font-size: 14px;
    color: #64748b;
    transition: transform 0.3s ease, color 0.2s ease;
    margin-left: 14px;
    flex-shrink: 0;
}

.faq-accordion-item.open .faq-toggle-icon {
    transform: rotate(180deg);
    color: #16345f;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 16px 20px 20px 20px;
}

.faq-answer-inner p {
    margin: 0 0 10px !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width:992px) {

    .article-grid,
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {

    .article-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .nav {
        flex-direction: column;
        height: auto;
        gap: 15px;
        padding: 20px 0;
    }
}

.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.search-modal-overlay.active {
    display: flex;
}

.search-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 20px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    padding-right: 40px;
    border: 1px solid #16345f;
    border-radius: 6px;
    font-size: 16px;
    color: #16345f;
    outline: none;
}

.search-input-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #16345f;
    font-size: 14px;
}

.search-modal-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #545669;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.search-modal-results-header i {
    cursor: pointer;
    font-size: 14px;
}

.search-modal-results {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-card:hover,
.search-result-card.selected {
    background: #f8fafc;
    border-color: #16345f;
    box-shadow: 0 3px 10px rgba(22, 52, 95, 0.08);
}

.search-result-content {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.search-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 2px;
    width: 100%;
    min-width: 0;
}

.search-result-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #16345f;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.search-result-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #16345f;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-result-snippet {
    margin: 2px 0 0;
    font-size: 13px;
    color: #667085;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.search-result-arrow-wrap {
    color: #98a2b3;
    transition: transform 0.2s ease, color 0.2s ease;
}

.search-result-card:hover .search-result-arrow-wrap,
.search-result-card.selected .search-result-arrow-wrap {
    color: #16345f;
    transform: translateX(3px);
}

mark.search-highlight {
    background: #fef08a;
    color: #16345f;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
}

a:hover {
    text-decoration: none !important;
}

.landing-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.landing-search-container .search-box {
    margin: 0;
    max-width: 100%;
}

.landing-search-container .search-box button {
    pointer-events: none;
}

#landing-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e4e7ec;
}

#close-landing-search {
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
    color: #16345f;
}

/* Generic Overview Buttons */
.overview-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.overview-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #16345f;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #16345f;
    text-align: center;
}

.overview-btn:hover {
    background: #0f2442;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.overview-btn.secondary {
    background: #ffffff;
    color: #16345f !important;
}

.overview-btn.secondary:hover {
    background: #f8fafc;
}

/* FAQ Accordions */
.faq-accordion {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.faq-accordion:hover {
    border-color: #d0d5dd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #16345f;
    cursor: pointer;
    list-style: none;
    /* removes default arrow in most browsers */
    margin: 0;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
    /* removes default arrow in webkit */
}

.faq-accordion summary .accordion-icon {
    font-size: 14px;
    color: #16345f;
    transition: transform 0.3s ease;
}

.faq-accordion[open] summary .accordion-icon {
    transform: rotate(180deg);
}

.faq-accordion-content {
    padding: 0 24px 20px 24px;
    font-size: 14px;
    color: #545669;
    border-top: 1px solid #e4e7ec;
    margin-top: -5px;
    padding-top: 15px;
}

.faq-accordion-content p {
    margin-bottom: 12px;
}

.faq-accordion-content p:last-child {
    margin-bottom: 0;
}