﻿body {
    font-size: 14px;
    padding-top: 70px;
    font-family: 'Times New Roman' !important;
    background-image: url(https://i.pinimg.com/736x/1b/17/62/1b1762d4791a29e6aabbc8cb9f447886.jpg);
    
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #37854D;
    text-align: center;
    font-size: 22px;
}


.time-counter {
    font-weight: bold;
}

.actions {
    float: right;
}

.actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    right: 4%;
}

.icon-btn,
.action-btn {
    background-color: #337845;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

    .icon-btn img {
        width: 20px;
        height: 20px;
    }

    .action-btn:hover,
    .icon-btn:hover {
        background-color: #777;
    }

.questions-section {
    background-color: #fffaf8;
}

.passage-section {
    background-color: #fff9f4;
}

.instruction-question {
    color: #214252;
    font-weight: 700;
}

.multiple-questions p, ul, li {
    font-size: 17px;
}
.screen-wrapper {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.main-content {
    width: 80%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
}

.sidebar-ad {
    width: 20%;
    padding: 20px;
    background-color: #f1f1f1;
    box-sizing: border-box;
}

    .sidebar-ad img {
        width: 100%;
        height: auto;
        display: block;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

.listening-section {
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    overflow-y: auto;
    padding-bottom: 80px;
    min-height: calc(100vh - 120px);
    padding-left: 50px;
}

.listening-instructions {
    font-size: 18px;
    font-weight: bold;
    color: #294563;
    margin-bottom: 20px;
}

.audio-player {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

    .audio-player iframe {
        width: 100%;
        max-width: 560px;
        border-radius: 10px;
    }

.listening-questions {
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
}

    .listening-questions .question {
        margin-bottom: 25px;
    }

        .listening-questions .question p {
            margin-bottom: 10px;
        }

        .listening-questions .question input[type="radio"] {
            margin-right: 10px;
        }

        .listening-questions .question input[type="text"],
        .listening-questions .question textarea {
            width: 100%;
            padding: 8px;
            font-size: 14px;
            border-radius: 5px;
            border: 1px solid #ccc;
        }
/* Reading Test */
.passage p{
    font-size: 18px;
}
.reading-test-container {
    display: flex;
    max-height: 88vh;
}

    .reading-test-container .passage,
    .reading-test-container .questions {
        flex: 1 1 100%;
        max-height: 100%;
        overflow-y: auto; /* bật scroll dọc */
    }

/* Mobile: ghi đè */
@media (max-width: 768px) {
    .reading-test-container {
        display: flex;
        flex-direction: column;
    }

        .reading-test-container .passage,
        .reading-test-container .questions {
            flex: 1 1 50%;
            max-height: 45vh;
            overflow-y: auto;
            border-right: none !important; /* bỏ border dọc */
            border-bottom: 1px solid #ccc; /* thay bằng border ngang */
        }

        .reading-test-container .questions {
            border-top: 2px solid #333;
            border-bottom: none;
        }
    .result-test-container {
        display: flex;
        flex-direction: column;
    }

        .result-test-container .material,
        .result-test-container .questions {
            flex: 1 1 50%;
            max-height: 45vh;
            overflow-y: auto;
            border-right: none !important; /* bỏ border dọc */
            border-bottom: 1px solid #ccc; /* thay bằng border ngang */
        }

        .result-test-container .questions {
            border-bottom: none;
        }
}
/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
    .screen-wrapper {
        flex-direction: column;
    }

    .main-content,
    .sidebar-ad {
        width: 100%;
    }

    .listening-section {
        padding-left: 20px;
    }
}

@media (max-width: 767.98px) {
    .sidebar-col {
        position: static; /* bỏ sticky */
        height: auto;
        overflow: visible;
        margin-top: 20px; /* thêm khoảng cách nếu cần */
    }
}