﻿/* This file is linked by Candidate, Exam, FAQ and RTI, so anything in it that
   none of those four use is weight those four pages carry for nothing. The
   About Us block (.about-page, .message-block, .profile-img), the information
   grid (.section-two, .info-box) and .sub-links were removed for that reason -
   they had no consumer left in Pages/ or Views/.

   Colours come from the :root token block at the top of site.css. All four
   consumers render through _Layout, which links site.css, so the tokens are
   always defined. The maroon here was spelled #7b1e1e and site.css spelled the
   same colour #7B1E1E; they are now one token. */

/* ====================================
   EXAM PAGE STYLING
   ==================================== */

.exam-page h4 {
    font-weight: 700;
    color: var(--brand-maroon);
}

.exam-box {
    display: block;
    padding: 25px;
    background: var(--surface-cream);
    border: 1px solid var(--border-cream);
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
    color: var(--text-secondary);
}

    .exam-box:hover {
        background-color: #f8f8f8;
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    }

    .exam-box h6 {
        font-weight: 700;
        margin-bottom: 6px;
        color: var(--brand-maroon);
    }

    .exam-box p {
        font-size: 13px;
        color: var(--text-muted);
    }

/* DETAIL SECTION */

.exam-detail-container {
    display: flex;
    justify-content: center;
}

.exam-detail-box {
    display: none;
    background: #ffffff;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative; /* Ensure parent is positioned */
}

    .exam-detail-box h5 {
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--brand-maroon);
        padding-right: 30px;
    }

    .exam-detail-box p {
        font-size: 14px;
        margin-bottom: 15px;
    }
/* Formatted exam description */

#examDescription {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

    #examDescription h6 {
        font-weight: 700;
        color: var(--brand-maroon);
        margin-bottom: 15px;
    }

    #examDescription p {
        margin-bottom: 10px;
    }

    #examDescription strong {
        color: #000;
    }

    #examDescription ul,
    #examDescription ol {
        margin-top: 10px;
        padding-left: 20px;
    }

    #examDescription li {
        margin-bottom: 10px;
        line-height: 1.7;
    }
.exam-detail-box {
    display: none;
}

.exam-detail-box.is-open {
    display: block;
}

#examApplyLink.is-hidden {
    display: none;
}

/* TOP-RIGHT BIG X */
.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    line-height: 1;
}

    /* Hover effect */
    .close-btn:hover {
        color: maroon;
    }
/* ==============================
   Candidate Corner Page
   ============================== */

.candidate-box {
    display: block;
    padding: 25px;
    background: var(--surface-cream);
    border: 1px solid var(--border-cream);
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
    color: var(--text-secondary);
}

    .candidate-box:hover {
        background-color: #f1e8dc;
        transform: translateY(-3px);
    }

/* ==============================
 RTI's
   ============================== */
.rti-box {
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.rti-header {
    background: #1b75bb;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.rti-body {
    padding: 20px;
}

/* ==============================
FAQ
   ============================== */


.faq-container {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 15px 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer.is-open {
    display: block;
}

.faq-answer {
    display: none;
    padding-top: 10px;
    color: var(--text-muted);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.faq-disclaimer {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: #fff;
}

.faq-major {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.5rem;
}

.faq-section {
    font-size: 1rem;
    margin: 1rem 0 0.25rem;
}

@media (max-width: 576px) {
    .faq-container {
        padding: 12px;
    }

    .faq-language-select {
        width: 100%;
    }

    .faq-question {
        align-items: flex-start;
        gap: 8px;
    }
}

.faq-icon {
    font-size: 20px;
    font-weight: bold;
}

/* Was a style attribute on the select. It has to sit after Bootstrap's
   .form-select { width: 100% } to win, which it does - this file is linked from
   the page's Styles section, after site.css and bootstrap. */
.faq-language-select {
    width: 220px;
}