/* Behaviour Test - student test player, result page, home page cards and video modal.
   Loaded by the BehaviourTestQuestions Attend / Result views and Views/Home/Index.cshtml. */

.bt-test-wrap {
    max-width: 860px;
    margin: 30px auto;
    padding: 0 15px 40px 15px;
}

.bt-test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.bt-test-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1c1c1c;
}

.bt-test-header h2 span {
    color: #E943DE;
}

.bt-link {
    color: #212E7A !important; /* site global a{color:#fff !important} must be overridden */
    font-weight: 600;
    text-decoration: none;
}

.bt-link:hover {
    text-decoration: underline;
}

/* ---------- card ---------- */

.bt-test-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 26px;
}

/* ---------- progress ---------- */

.bt-progress-wrap {
    margin-bottom: 16px;
}

.bt-progress-text {
    font-weight: 600;
    color: #212E7A;
    margin-bottom: 8px;
}

.bt-progress-track {
    width: 100%;
    height: 10px;
    background-color: #e9e9f3;
    border-radius: 10px;
    overflow: hidden;
}

.bt-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #212E7A;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ---------- questions ---------- */

.bt-question {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 26px;
    margin-bottom: 16px;
}

.bt-question-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.bt-question-head h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1c1c1c;
}

.bt-number {
    flex: 0 0 auto;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #212E7A;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- options ---------- */

.bt-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bt-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e9e9f3;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    background-color: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bt-option:hover {
    border-color: #b9c0ee;
}

.bt-option.active {
    border-color: #212E7A;
    background-color: #eef0ff;
}

.bt-option input {
    accent-color: #212E7A;
}

/* ---------- hint + navigation ---------- */

.bt-hint {
    display: none;
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 12px;
}

.bt-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.bt-btn {
    display: inline-block;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.bt-btn-primary {
    background-color: #212E7A;
    color: #fff !important; /* anchor colors are forced white by the site theme */
}

.bt-btn-primary:hover {
    background-color: #182059;
    color: #fff;
}

.bt-btn-outline {
    background-color: #fff;
    color: #212E7A !important; /* anchors are forced white by the site theme */
    border: 2px solid #212E7A;
}

.bt-btn-outline:hover {
    background-color: #eef0ff;
    color: #212E7A !important;
}

.bt-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---------- result ---------- */

.bt-result-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid #212E7A;
    margin: 6px auto 18px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bt-result-percent {
    font-size: 34px;
    font-weight: 800;
    color: #212E7A;
    line-height: 1.1;
}

.bt-result-circle small {
    color: #666;
}

.bt-result-meta {
    color: #555;
    margin-bottom: 18px;
}

.bt-result-message {
    background-color: #f6f7ff;
    border-radius: 16px;
    padding: 18px;
    text-align: left;
    margin-bottom: 22px;
}

.bt-result-message h5 {
    font-weight: 700;
    color: #212E7A;
    margin-bottom: 8px;
}

.bt-result-message p {
    margin: 0;
    color: #333;
}

.bt-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- mobile ---------- */

@media (max-width: 576px) {
    .bt-test-wrap {
        margin: 18px auto;
    }

    .bt-test-card,
    .bt-question {
        padding: 18px;
    }

    .bt-question-head h4 {
        font-size: 17px;
    }

    .bt-options {
        grid-template-columns: 1fr;
    }

    .bt-btn {
        padding: 11px 20px;
    }
}

/* ==========================================================
   HOME PAGE - behaviour test category cards (equal size)
   ========================================================== */

#questionassesment_section .bt-category-card {
    height: 100%;
    width: 100%;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(16, 24, 64, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#questionassesment_section .bt-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(16, 24, 64, 0.28);
}

#questionassesment_section .bt-category-card .card-bottom {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px 22px;
    color: #fff;
}

#questionassesment_section .bt-category-card.word-game-one .card-bottom {
    background: linear-gradient(160deg, #2b3a92 0%, #212E7A 55%, #1a2459 100%);
}

#questionassesment_section .bt-category-card.word-game-two .card-bottom {
    background: linear-gradient(160deg, #f057e2 0%, #E943DE 55%, #c22bb8 100%);
}

#questionassesment_section .bt-category-card.word-game-three .card-bottom {
    background: linear-gradient(160deg, #67af2a 0%, #5B9F21 55%, #3f7013 100%);
}

.bt-category-badge {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin-bottom: 14px;
}

#questionassesment_section .bt-category-card .card-bottom h4 {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1px;
    margin: 0 0 10px 0;
    color: #fff;
    min-height: 2.6em;           /* keeps titles aligned even when 1-2 lines */
}

#questionassesment_section .bt-category-card .card-bottom p {
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0 0 4px 0;
    color: rgba(255, 255, 255, 0.92);
    min-height: 4.5em;           /* equal description block -> equal cards */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bt-card-actions {
    margin-top: auto;            /* pins the buttons to the bottom of the card */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.bt-btn-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 30px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.bt-btn-video:hover {
    background-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    color: #fff;
}

.bt-btn-attend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background-color: #fff;
    color: #212E7A !important; /* anchors are forced white by the site theme */
    border-radius: 30px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bt-btn-attend:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
    color: #212E7A !important;
}

/* ==========================================================
   ATTEND PAGE - student details bar (no login)
   ========================================================== */

.bt-student-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    background-color: #f6f7ff;
    border: 1px solid #e3e6fb;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #212E7A;
}

.bt-student-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bt-student-item i {
    color: #E943DE;
}

/* ==========================================================
   ATTEND PAGE - YouTube video section
   ========================================================== */

.bt-video-section {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 22px;
    margin-bottom: 22px;
    border-left: 6px solid #E943DE;
}

.bt-video-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.bt-video-head-text h3 {
    font-size: 21px;
    font-weight: 800;
    color: #212E7A;
    margin: 0 0 4px 0;
}

.bt-video-head-text h3 i {
    color: #E943DE;
    margin-right: 6px;
}

.bt-video-head-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.bt-attend-btn {
    white-space: nowrap;
    font-size: 15px;
    padding: 12px 26px;
    box-shadow: 0 6px 16px rgba(33, 46, 122, 0.35);
}

.bt-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.bt-video-card {
    border: 1px solid #e9e9f3;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bt-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(16, 24, 64, 0.18);
}

.bt-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #101030;
    overflow: hidden;
}

.bt-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.bt-video-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bt-watch-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(233, 67, 222, 0.92);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.bt-watch-btn:hover {
    background-color: #E943DE;
    transform: translate(-50%, -50%) scale(1.06);
}

.bt-watch-btn i {
    font-size: 20px;
}

.bt-video-body {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.bt-video-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1c1c1c;
    line-height: 1.4;
    margin: 0;
}

.bt-video-body .bt-btn-sm {
    align-self: flex-start;
    margin-top: auto;
}

.bt-btn-sm {
    padding: 9px 18px;
    font-size: 13px;
}

/* ==========================================================
   ATTEND PAGE - student details form (no login)
   ========================================================== */

.bt-details-card {
    border-top: 6px solid #212E7A;
}

.bt-details-card h3 {
    font-size: 23px;
    font-weight: 800;
    color: #212E7A;
    margin: 0 0 6px 0;
}

.bt-details-card h3 i {
    color: #E943DE;
    margin-right: 8px;
}

.bt-details-sub {
    color: #666;
    margin-bottom: 20px;
}

.bt-form-group {
    margin-bottom: 18px;
}

.bt-form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #1c1c1c;
    margin-bottom: 8px;
}

.bt-required {
    color: #c0392b;
}

.bt-form-control {
    width: 100%;
    border: 2px solid #e9e9f3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1c1c1c;
    background-color: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bt-form-control:focus {
    border-color: #212E7A;
    box-shadow: 0 0 0 3px rgba(33, 46, 122, 0.12);
}

.bt-class-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bt-class-btn {
    border: 2px solid #212E7A;
    background-color: #fff;
    color: #212E7A;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bt-class-btn:hover {
    background-color: #eef0ff;
}

.bt-class-btn.active {
    background-color: #212E7A;
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 46, 122, 0.35);
}

.bt-field-error {
    display: none;
    color: #c0392b;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.bt-btn-block {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 14px 20px;
}

/* ==========================================================
   HOME PAGE - Watch Video modal player
   ========================================================== */

.bt-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #101030;
    border-radius: 14px;
    overflow: hidden;
}

.bt-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bt-modal-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #cfd3ff;
    text-align: center;
    padding: 20px;
}

.bt-modal-empty i {
    font-size: 42px;
    opacity: 0.8;
}

.bt-modal-empty p {
    margin: 0;
    font-weight: 600;
}

.bt-modal-empty-sub {
    font-size: 13px;
    opacity: 0.75;
}

.bt-modal-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px 2px 4px 2px;
}

.bt-modal-thumb {
    flex: 0 0 150px;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    background: #101030;
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.bt-modal-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.bt-modal-thumb span {
    display: block;
    color: #e8eaff;
    font-size: 12px;
    padding: 6px 8px 8px 8px;
    line-height: 1.35;
    max-height: 3.6em;
    overflow: hidden;
}

.bt-modal-thumb:hover {
    transform: translateY(-2px);
}

.bt-modal-thumb.active {
    border-color: #E943DE;
}

/* ==========================================================
   Responsive tweaks
   ========================================================== */

@media (max-width: 768px) {
    #questionassesment_section .bt-category-card .card-bottom h4 {
        font-size: 18px;
        min-height: 0;
    }

    #questionassesment_section .bt-category-card .card-bottom p {
        min-height: 0;
    }

    .bt-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bt-btn-video,
    .bt-btn-attend {
        justify-content: center;
        width: 100%;
    }

    .bt-video-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bt-attend-btn {
        width: 100%;
        text-align: center;
    }

    .bt-modal-thumb {
        flex: 0 0 130px;
    }
}
