/* Import font SVN-Gilroy các loại */
@font-face {
    font-family: 'Gilroy-Heavy';
    src: url('../fonts/SVN-Gilroy-Regular.woff2') format('woff2'),
    url('../fonts/SVN-Gilroy-Regular.woff2') format('woff'),
    url('../fonts/SVN-Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Heavy';
    src: url('../fonts/SVN-Gilroy-Bold.woff2') format('woff2'),
    url('../fonts/SVN-Gilroy-Bold.woff2') format('woff'),
    url('../fonts/SVN-Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Heavy';
    src: url('../fonts/SVN-Gilroy-SemiBold.woff2') format('woff2'),
    url('../fonts/SVN-Gilroy-SemiBold.woff2') format('woff'),
    url('../fonts/SVN-Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Heavy';
    src: url('../fonts/SVN-Gilroy-XBold.woff2') format('woff2'),
    url('../fonts/SVN-Gilroy-XBold.woff2') format('woff'),
    url('../fonts/SVN-Gilroy-XBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Heavy';
    src: url('../fonts/SVN-Gilroy-Heavy.woff2') format('woff2'),
    url('../fonts/SVN-Gilroy-Heavy.woff2') format('woff'),
    url('../fonts/SVN-Gilroy-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --font-family-SVN-Gilroy-Regular: 'SVN-Gilroy-Regular';
    --font-family-SVN-Gilroy-Bold: 'SVN-Gilroy-Bold';
    --font-family-SVN-Gilroy-SemiBold: 'SVN-Gilroy-SemiBold';
    --font-family-SVN-Gilroy-XBold: 'SVN-Gilroy-XBold';
    --font-family-SVN-Gilroy-Heavy: 'Gilroy-Heavy';
    --font-family-Gilroy-RegularItalic: 'Gilroy-RegularItalic';
    --font-family-Vljoyfull: 'Vljoyfull';
}

body {
    font-family: var(--font-family-SVN-Gilroy-Heavy) ;
    margin: 0;
    padding: 0;
}

.fw-bold {
    font-weight: 900 !important;
}

u {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: #000;
    font-size: 18px;
}

.card-body {
    flex: 1 1 auto;
    padding: 2rem 4rem;
}

.unlink-the-ielts {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* chiếm toàn chiều cao màn hình */
    background-image: url(../images/unlock-the-ielts/banner.png);
    background-size: cover; /* phủ kín cả div */
    background-repeat: no-repeat; /* không lặp */
    background-position: top center; /* căn giữa ảnh */
    background-attachment: fixed; /* cố định khi scroll */
    width: 100%;
}

.header-section {
    padding: 2rem 0;
    color: white;
    position: relative;
    text-align: center;
}

/* hiệu ứng ánh đèn */
.header-section::before,
.header-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 150, 0.6) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 0;
}
.header-section::before { left: 20%; }
.header-section::after { right: 20%; }

.header-section h6 {
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/*.header-section .header-logo-center {*/
/*    border-left: 2px solid rgba(255,255,255,0.3);*/
/*    border-right: 2px solid rgba(255,255,255,0.3);*/
/*}*/
.text-justify {
    text-align: justify;
}
.header-section .header-logo-center {
    position: relative;
}

.header-section .header-logo-center::before {
    content: "";
    position: absolute;
    top: 15%;              /* cách trên 15% */
    bottom: 15%;           /* cách dưới 15% → còn lại 70% */
    left: 0;               /* đường kẻ bên trái */
    width: 2px;
    background: rgba(255,255,255,1);
}

.custom-table thead {
    background-color: #dc3545;
    color: #fff;
}
.custom-table,
.custom-table th,
.custom-table td {
    border: 1px solid #000 !important;
}

.header-section .header-logo-center::after {
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    right: 0;              /* đường kẻ bên phải */
    width: 2px;
    background: rgba(255,255,255,1);
}

.header-section .col:first-child {
    border-left: none;
}

.logo {
    display: inline-block;
    margin: 0 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #f1f1f1;
}

.logo img {
    max-height: 40px;
    margin: 0 0.5rem;
    filter: brightness(0) invert(1); /* logo đen trắng thành trắng */
}

.custom-card {
    background: rgba(160, 13, 13, 0.6);
    color: white;
    border: 2px solid #f1a93d;
    border-radius: 12px;
    padding: 20px;
}
.custom-card h5 {
    font-weight: bold;
    color: #fff;
}
.custom-card b {
    color: #fff;
}

.modal-dialog .btn-register .btn {
    background-color: #dc3545 !important;
    border-radius: 25px;
}

.modal-dialog .btn-register .content-button{
    font-size: 20px;
    font-weight:bold;
    padding: 0px 10px;
}

.form-check-input[type="radio"] {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem; /* làm vuông */
    margin-top: 0; /* bỏ lệch dọc */
}

.form-check-label {
    font-size: 1rem; /* chỉnh text to hơn nếu muốn */
    margin-left: 0.25rem;
    cursor: pointer;
}

.stages-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    font-family: 'SVN-Gilroy', sans-serif;
}

.stage {
    position: relative;
    background: url('../images/unlock-the-ielts/time-live-1.png') no-repeat center center;
    background-size: cover;
    color: #fff;
    min-width: 225px;
    text-align: center;
    font-weight: bold;
}

.stage-2 {
    position: relative;
    background: url('../images/unlock-the-ielts/time-live-2.png') no-repeat center center;
    background-size: cover;
    color: #fff;
    min-width: 245px;
    text-align: center;
    font-weight: bold;
}

.stage:hover, .stage-2:hover {
    transform: translateY(-5px);
}

.stage-content {
    padding: 5px 0px;
}

.stage-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #FFCA57;
}

.stage-date {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 38px;
}

/* Responsive */
@media (max-width: 768px) {
    .stages-container {
        flex-direction: column;
        align-items: center;
    }

    .stage, .stage-2 {
        width: 80%;
    }
}

.quiz-card {
    max-width: 1000px;
    border: 2px solid #f5a623; /* viền vàng */
    border-radius: 10px;
}

.submit-btn {
    padding: 12px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    border-radius: 25px;
    background: linear-gradient(to right, #f9d423, #ff4e50); /* vàng → cam */
    border: none;
}

.submit-btn:hover {
    opacity: 0.9;
}
/*tab*/
.output_commitment_main {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}
.tab-switcher {
    padding: 1.125rem 0 !important;
}

.tab-switcher-end {
    margin-right: 0 !important;
}
.tab-switcher {
    cursor: pointer;
    margin-right: 0.688rem;
    width: 24%;
    background: #cbcbcb;
    border-radius: 1.875rem;
    height: 4.375rem;
    font-family: var(--font-family-SVN-Gilroy-Bold), sans-serif;
    color: var(--text-black);
    font-size: 1.5rem;
    line-height: 1.3;
    padding: 0.125rem 1.938rem;
}

.tab-switcher h3 {
    font-family: var(--font-family-SVN-Gilroy-Bold), sans-serif;
    color: var(--text-black);
    font-size: 1.5rem;
    padding: 0.250rem 0;
    font-weight: bold;
}

.tab-switcher span {
    font-family: var(--font-family-SVN-Gilroy-Bold), sans-serif;
    color: var(--text-black);
    font-size: 1.5rem;
}

.tab_active {
    background: #c02128 !important;
    color: #fff !important;
}

#allTabsContainer {
    box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px;
    padding: 2rem;
    border-radius: 1.25rem;
    margin-top: 2.25rem;
}

.form-check-input:checked {
    background-color: #f7011b;
    border-color: #f7011b;
}

.form-check-input:checked + .form-check-label {
    color: #f7011b;
    font-weight: bold; /* cho nổi bật hơn */
}

.correct-answer {
    color: green !important;
    font-weight: bold;
}
.wrong-answer {
    color: red !important;
}

thead {
    background-color: #fff200; /* màu vàng giống hình */
}
th, td {
    vertical-align: middle;
}

.footer {
    background: rgba(160, 13, 13, 0.6);
    color: #fff;
}
.footer-container {
    margin: 0px 150px;
}
.footer p, .footer li, .footer a {
    color: #fff;
    text-decoration: none;
}
.footer a:hover{ color: #ccc; }
.footer img {
    max-width: 100%;
    height: auto;
}
/* --- Firefox --- */
.custom-scroll {
    scrollbar-width: thin; /* Firefox chỉ hỗ trợ auto | thin | none */
    scrollbar-color: #ff8a00 rgba(0,0,0,0.06);
}

/* --- WebKit (Chrome, Edge, Safari) --- */
.custom-scroll::-webkit-scrollbar {
    width: 30px;   /* gấp đôi so với 15px */
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.06);
    border-radius: 20px;
    margin: 6px 0;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#ff8a00,#c72f00);
    border-radius: 20px;
    border: 4px solid transparent;
    background-clip: padding-box;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    filter: brightness(0.9);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* mặc định desktop */
ul li.tab-switcher {
    margin: 5px;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .header-section .header-logo-center::before {
        display: none;
        content: none; /* phòng khi vẫn render content */
    }
    .footer-container {
        margin: 0px 50px;
    }
    .header-section .header-logo-center::after {
        display: none;
        content: none; /* phòng khi vẫn render content */
    }
}

@media (max-width: 575.98px) {
    .header-section .row.text-center .col-4 h6 {
        font-size: 0.6rem; /* nhỏ hơn */
        margin-top: 0.5rem;
    }
    .footer-container {
        margin: 0px 10px;
    }
    .header-section .row.text-center .col-4 .logo img {
        max-width: 50px; /* thu nhỏ ảnh */
    }
    .header-section .row.text-center .col-8 h6 {
        font-size: 0.6rem; /* nhỏ hơn */
        margin-top: 0.5rem;
    }

    .header-section .row.text-center .col-8 .logo img {
        max-width: 250px; /* thu nhỏ ảnh */
    }

    .ul-custom {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 cột */
        gap: 10px;
    }

    .ul-custom li.tab-switcher {
        width: 100%;
        float: none !important;    /* bỏ float */
        display: flex;
        justify-content: center;
        height: auto;
        background: #d9d9d9;       /* màu nền giống ảnh bạn gửi */
        border-radius: 20px;
        padding: 0.5rem 0 !important;
    }

    .ul-custom li.tab-switcher.tab_active {
        background: #e6392f;       /* màu đỏ cho tab active */
        color: #fff;
    }

    .ul-custom li.tab-switcher h3 {
        font-size: 0.9rem;         /* chữ nhỏ lại */
        margin: 0;
    }
}
