/* =========================================================
   CELPIP ARTICLE / EXAM UI
   Template: bs
   ========================================================= */


/* ---------------------------------------------------------
   Exam container
   --------------------------------------------------------- */

.celpip-exam {
    width: 100%;
    max-width: 1320px;
    margin: 20px auto;
    overflow: hidden;

    border: 1px solid #cfd4da;
    background: #ffffff;

    box-sizing: border-box;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #343a40;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.celpip-exam-header {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 10px 20px;

    background: #dfe3e8;

    border-bottom: 1px solid #c8cdd2;

    box-sizing: border-box;
}


/* Left header title */

.celpip-exam-heading {
    min-width: 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    font-size: 19px;
    line-height: 1.35;

    color: #39434d;
}


.celpip-exam-article-title {
    font-weight: 400;
}


.celpip-exam-title-separator {
    color: #555f68;
}


.celpip-exam-task-name {
    font-weight: 400;
}


/* Header right */

.celpip-exam-header-actions {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}


/* ---------------------------------------------------------
   Timer
   --------------------------------------------------------- */

.celpip-exam-timer {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 0 14px;

    font-size: 16px;
    line-height: 1;

    color: #30343a;

    white-space: nowrap;

    box-sizing: border-box;
}


.celpip-exam-timer-label {
    font-weight: 400;
}


.celpip-exam-timer-value {
    min-width: 47px;

    display: inline-block;

    font-weight: 700;

    color: #111111;

    text-align: start;
}


/* Warning */

.celpip-exam-timer.celpip-timer-warning
.celpip-exam-timer-value {
    color: #c47700;
}


/* Critical */

.celpip-exam-timer.celpip-timer-critical
.celpip-exam-timer-value {
    color: #c62828;
}


/* Finished */

.celpip-exam-timer.celpip-timer-finished
.celpip-exam-timer-value {
    color: #c62828;
}


/* ---------------------------------------------------------
   NEXT
   --------------------------------------------------------- */

.celpip-exam-next {
    min-width: 82px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border: 1px solid #07549a;
    border-radius: 1px;

    background:
        linear-gradient(
            to bottom,
            #1288e3 0%,
            #0068bd 100%
        );

    color: #ffffff;

    font-size: 16px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    box-sizing: border-box;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .18);
}


.celpip-exam-next:hover {
    background:
        linear-gradient(
            to bottom,
            #2198ee 0%,
            #0874cc 100%
        );

    color: #ffffff;
}


.celpip-exam-next:focus-visible {
    outline: 2px solid #006ec8;
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   Main exam body
   --------------------------------------------------------- */

.celpip-exam-body {
    display: grid;

    grid-template-columns:
        minmax(310px, 36%)
        minmax(0, 64%);

    min-height: 610px;

    background: #ffffff;
}


/* ---------------------------------------------------------
   Left reading panel
   --------------------------------------------------------- */

.celpip-exam-reading {
    min-width: 0;

    padding: 25px 27px 35px;

    background: #f3f3f3;

    border-inline-end: 1px solid #cfd4d8;

    box-sizing: border-box;

    overflow-wrap: break-word;
}


/* ---------------------------------------------------------
   Right writing panel
   --------------------------------------------------------- */

.celpip-exam-writing {
    min-width: 0;

    padding: 26px 30px 28px;

    background: #eaf7fa;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Section headings
   --------------------------------------------------------- */

.celpip-section-heading {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin: 0 0 20px;

    color: #075c9d;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.35;
}


.celpip-section-heading > span:last-child {
    min-width: 0;
}


/* Info icon */

.celpip-info-icon {
    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    border-radius: 50%;

    background: #1e78b4;

    color: #ffffff;

    font-size: 16px;
    font-family:
        Georgia,
        serif;

    font-weight: 700;

    line-height: 1;
}


/* ---------------------------------------------------------
   Reading text
   --------------------------------------------------------- */

.celpip-reading-text {
    max-width: 100%;

    font-size: 18px;
    line-height: 1.9;

    color: #30363c;

    overflow-wrap: break-word;
}


/* ---------------------------------------------------------
   Writing instructions
   --------------------------------------------------------- */

.celpip-writing-instruction {
    margin-bottom: 15px;
}


/* ---------------------------------------------------------
   Requirements
   --------------------------------------------------------- */

.celpip-writing-requirements {
    margin:
        0
        0
        26px
        39px;

    padding: 0;

    font-size: 17px;
    line-height: 1.55;

    color: #454b51;
}


.celpip-writing-requirements li {
    margin: 2px 0;

    padding-inline-start: 3px;
}


/* ---------------------------------------------------------
   Answer heading
   --------------------------------------------------------- */

.celpip-answer-heading {
    margin-top: 8px;
    margin-bottom: 15px;
}


/* ---------------------------------------------------------
   Textarea
   --------------------------------------------------------- */

.celpip-answer-container {
    width: 100%;
}


.celpip-answer-textarea {
    display: block;

    width: 100%;
    min-height: 340px;

    padding: 18px;

    border: 1px solid #6f7478;
    border-radius: 6px;

    background: #ffffff;

    color: #222222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 18px;
    line-height: 1.65;

    resize: vertical;

    box-sizing: border-box;

    outline: none;
}


.celpip-answer-textarea:focus {
    border-color: #176ca8;

    box-shadow:
        0 0 0 2px
        rgba(23, 108, 168, .12);
}


/* ---------------------------------------------------------
   Word count
   --------------------------------------------------------- */

.celpip-word-count {
    margin-top: 6px;

    text-align: center;

    font-size: 14px;
    line-height: 1.4;

    color: #555b60;
}


/* ---------------------------------------------------------
   Note
   --------------------------------------------------------- */

.celpip-exam-note {
    margin-top: 8px;

    font-size: 14px;
    line-height: 1.5;

    color: #4b5156;
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.celpip-exam-footer {
    min-height: 62px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 26px;

    background: #e1e4e9;

    border-top: 1px solid #d2d6da;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Joomla / bs reset inside exam
   --------------------------------------------------------- */

.celpip-exam h1,
.celpip-exam h2,
.celpip-exam h3,
.celpip-exam p {
    margin-top: 0;
}


.celpip-exam button,
.celpip-exam textarea {
    font: inherit;
}


/* =========================================================
   STANDARD FALLBACK ARTICLE
   ========================================================= */

.celpip-standard-article {
    max-width: 1200px;
    margin: 20px auto;
}


.celpip-standard-header {
    margin-bottom: 25px;
}


.celpip-standard-header h1 {
    margin: 0 0 8px;

    font-size: 30px;
    line-height: 1.3;
}


.celpip-standard-subtitle {
    font-size: 17px;
    color: #666666;
}


.celpip-standard-content {
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .celpip-exam {
        margin-top: 10px;
    }


    .celpip-exam-heading {
        font-size: 17px;
    }


    .celpip-exam-body {
        grid-template-columns:
            minmax(270px, 38%)
            minmax(0, 62%);
    }


    .celpip-exam-reading {
        padding:
            22px
            20px
            30px;
    }


    .celpip-exam-writing {
        padding:
            22px
            22px
            25px;
    }


    .celpip-section-heading {
        font-size: 19px;
    }


    .celpip-reading-text {
        font-size: 17px;
    }


    .celpip-writing-requirements {
        font-size: 16px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .celpip-exam {
        width: 100%;

        margin: 0;

        border-inline-start: 0;
        border-inline-end: 0;
    }


    /*
     * Header
     */

    .celpip-exam-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;

        padding:
            14px
            15px;
    }


    .celpip-exam-heading {
        width: 100%;

        font-size: 16px;

        gap: 5px;
    }


    .celpip-exam-header-actions {
        width: 100%;

        justify-content: space-between;
    }


    .celpip-exam-timer {
        min-height: 38px;

        padding: 0;

        font-size: 15px;
    }


    .celpip-exam-next {
        min-width: 74px;

        height: 38px;

        font-size: 14px;
    }


    /*
     * Stack panels vertically
     */

    .celpip-exam-body {
        display: block;

        min-height: 0;
    }


    .celpip-exam-reading {
        width: 100%;

        min-height: 0;

        padding:
            22px
            18px
            25px;

        border-inline-end: 0;

        border-bottom:
            1px solid
            #cfd4d8;
    }


    .celpip-exam-writing {
        width: 100%;

        padding:
            22px
            18px
            25px;
    }


    .celpip-section-heading {
        gap: 8px;

        margin-bottom: 16px;

        font-size: 18px;

        line-height: 1.4;
    }


    .celpip-info-icon {
        flex-basis: 23px;

        width: 23px;
        height: 23px;

        font-size: 14px;
    }


    .celpip-reading-text {
        font-size: 16px;

        line-height: 1.75;
    }


    .celpip-writing-requirements {
        margin:
            0
            0
            22px
            30px;

        font-size: 16px;

        line-height: 1.55;
    }


    .celpip-answer-textarea {
        min-height: 300px;

        padding: 14px;

        font-size: 16px;

        border-radius: 4px;
    }


    .celpip-exam-footer {
        min-height: 48px;

        padding:
            8px
            15px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .celpip-exam-heading {
        display: block;
    }


    .celpip-exam-title-separator {
        margin-inline: 3px;
    }


    .celpip-exam-timer-label {
        font-size: 13px;
    }


    .celpip-exam-timer-value {
        min-width: 44px;

        font-size: 14px;
    }


    .celpip-section-heading {
        font-size: 17px;
    }

}