/* =========================================================
   GUEST EXAM INSTRUCTION PAGE
========================================================= */

.instruction-page {
    min-height: calc(90vh - 50px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 20px;
}


/* =========================================================
   MAIN WRAPPER
========================================================= */

.instruction-wrapper {
    width: 100%;
    max-width: 700px;

    background: #ffffff;

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   HEADER
========================================================= */

.instruction-header {
    background: #0d6efd;
    color: #ffffff;

    padding: 10px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.instruction-header h4 {
    font-size: 21px;
    font-weight: 600;
    margin: 0;
}

.instruction-header small {
    font-size: 17px;
    opacity: 0.9;
}


/* =========================================================
   EXAM SUMMARY
========================================================= */

.exam-summary {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    border-bottom: 1px solid #e5e7eb;
}


/* =========================================================
   SUMMARY ITEM
========================================================= */

.summary-item {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 9px 6px;

    border-right: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-right: none;
}


/* =========================================================
   SUMMARY ICON
========================================================= */

.summary-item i {
    font-size: 17px;
    color: #0d6efd;
}


/* =========================================================
   SUMMARY TEXT
========================================================= */

.summary-item small {
    display: block;

    color: #6c757d;

    font-size: 10px;

    line-height: 1.2;
}

.summary-item strong {
    display: block;

    font-size: 14px;

    line-height: 1.2;
}


/* =========================================================
   INSTRUCTION CONTENT
========================================================= */

.instruction-content {
    padding: 12px 18px;
}


/* =========================================================
   RULE TITLE
========================================================= */

.rules-title {
    font-size: 15px;

    font-weight: 600;

    margin-bottom: 7px;
}


/* =========================================================
   RULE GRID
========================================================= */

.rules-grid {
    display: block;

    grid-template-columns: repeat(2, 1fr);

    column-gap: 30px;

    row-gap: 7px;
}


/* =========================================================
   RULE
========================================================= */

.rule {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    font-size: 18px;

    line-height: 1.3;

    padding: 3px 0;
}


/* =========================================================
   RULE ICON
========================================================= */

.rule-icon {
    flex: 0 0 20px;

    font-size: 18px;
}


/* =========================================================
   WARNING
========================================================= */

.instruction-warning {
    margin: 0 18px 10px;

    padding: 7px 10px;

    background: #fff3cd;

    border: 1px solid #ffecb5;

    border-radius: 5px;

    color: #664d03;

    font-size: 18px;

    text-align: center;
}

.instruction-warning span {
    display: block;

    margin-top: 1px;
}


/* =========================================================
   ACTION BUTTON AREA
========================================================= */

.instruction-actions {
    display: flex;

    justify-content: center;

    gap: 10px;

    padding: 9px 18px 12px;

    border-top: 1px solid #e5e7eb;
}


/* =========================================================
   BUTTON
========================================================= */

.instruction-actions .btn {
    min-width: 150px;

    padding: 8px 14px;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .instruction-page {
        padding: 10px;
    }

    .instruction-wrapper {
        max-width: 700px;
    }

    .instruction-header {
        padding: 9px 12px;
    }

    .instruction-header h4 {
        font-size: 15px;
    }

    .instruction-header small {
        font-size: 16px;
    }

    .summary-item {
        flex-direction: column;

        gap: 2px;

        padding: 7px 4px;

        text-align: center;
    }

    .summary-item i {
        font-size: 20px;
    }

    .summary-item small {
        font-size: 12px;
    }

    .summary-item strong {
        font-size: 18px;
    }

    .instruction-content {
        padding: 10px 14px;
    }

    .rules-grid {
        column-gap: 15px;
    }

    .rule {
        font-size: 17px;
    }

    .instruction-warning {
        margin-left: 14px;
        margin-right: 14px;
    }

    .instruction-actions {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .instruction-page {
        min-height: auto;

        padding: 5px;
    }

    .instruction-wrapper {
        border-radius: 6px;
    }


    /* HEADER */

    .instruction-header {
        padding: 8px 10px;
    }

    .instruction-header h4 {
        font-size: 14px;
    }

    .instruction-header small {
        font-size: 12px;
    }


    /* SUMMARY */

    .exam-summary {
        grid-template-columns: repeat(5, 1fr);
    }

    .summary-item {
        padding: 6px 2px;
    }

    .summary-item i {
        font-size: 18px;
    }

    .summary-item small {
        font-size: 12px;
    }

    .summary-item strong {
        font-size: 17px;
    }


    /* RULES */

    .instruction-content {
        padding: 8px 10px;
    }

    .rules-title {
        font-size: 18px;

        margin-bottom: 4px;
    }

    .rules-grid {
        grid-template-columns: 1fr;

        row-gap: 1px;
    }

    .rule {
        font-size: 18px;

        line-height: 1.2;

        padding: 2px 0;
    }

    .rule-icon {
        flex-basis: 18px;

        font-size: 18px;
    }


    /* WARNING */

    .instruction-warning {
        margin: 0 10px 7px;

        padding: 6px 7px;

        font-size: 15px;
    }


    /* ACTIONS */

    .instruction-actions {
        padding: 7px 10px 9px;

        gap: 5px;
    }

    .instruction-actions .btn {
        min-width: 0;

        flex: 1;

        padding: 7px 5px;

        font-size: 18px;
    }
}

/* =========================================================
   EXAM DASHBOARD CARDS - CLEAN & READABLE
========================================================= */

.exam-card {
    width: 100%;
    height: 100%;
    min-height: 290px;

    padding: 20px;
    text-align: center;

    background: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 12px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.exam-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   TECHNOLOGY AREA
========================================================= */

.exam-technology {
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;
}


/* =========================================================
   DIAMOND
========================================================= */

.exam-diamond {
    width: 58px;
    height: 58px;

    background: #0d6efd;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: rotate(45deg);

    border-radius: 8px;

    box-shadow:
        0 4px 10px rgba(13, 110, 253, 0.25);
}

.exam-diamond-content {
    width: 65px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    transform: rotate(-45deg);

    line-height: 1.2;
}

.exam-diamond-content i {
    color: #ffffff;

    font-size: 18px;

    margin-bottom: 3px;
}

.exam-diamond-content span {
    max-width: 70px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;

    text-align: center;

    line-height: 1.1;

    word-break: break-word;
}


/* =========================================================
   EXAM NAME
========================================================= */

.exam-name {
    min-height: 42px;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.35;

    color: #212529;

    white-space: normal;

    overflow: visible;
    text-overflow: unset;

    margin: 10px 0 15px !important;
}


/* =========================================================
   EXAM DETAILS
========================================================= */

.exam-card .border.rounded {
    padding: 12px 6px !important;

    border-color: #e1e7ee !important;

    background: #f8fafc;
}

.exam-card .border.rounded i {
    font-size: 20px;

    margin-bottom: 4px;
}

.exam-card .small {
    font-size: 12px;

    line-height: 1.2;
}

.exam-card .fw-bold {
    margin-top: 3px;

    font-size: 14px;

    line-height: 1.2;
}


/* =========================================================
   START BUTTON
========================================================= */

.exam-start {
    margin-top: auto;

    padding-top: 18px;
}

.exam-start .btn {
    width: 100%;
    max-width: 180px;

    min-height: 40px;

    padding: 8px 15px;

    font-size: 14px;
    font-weight: 600;

    color: #ffffff;

    background: #0d6efd;

    border-radius: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease;
}

.exam-start .btn:hover {
    background: #0b5ed7;

    color: #ffffff;
}

.exam-start .btn i {
    font-size: 16px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .exam-card {
        min-height: 280px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .exam-card {
        min-height: auto;

        padding: 18px;
    }

    .exam-technology {
        min-height: 80px;
    }

    .exam-name {
        font-size: 15px;
    }

    .exam-card .border.rounded {
        padding: 10px 5px !important;
    }

}