:root{
    --brand:#028F99;
    --ink:#1f2a44;
    --muted:#6b7280;
    --radius-xl: 1rem;
    --bg-gradient-t: linear-gradient(90deg, #0ea5e9 0%, #6366f1 100%);
}
.page-front .iq-top-navbar{
    width: 100%;
    display: flex;
}
.page-front .top-menu{
    display: flex !important;
    align-items: center;
    width:100%;
}
.logo-custom img{
    max-width: 175px;
    height: auto !important;
    max-height:100px;
    padding:5px 0px;
}
#login-modal-button, #register-course{
    border-color:  var(--iq-primary) !important;
    border-width: 2px !important;
    font-weight: 700;
    height: 45px;
    min-height: auto !important;
    line-height: 40px;
    font-size: 1rem;
    border-radius: .25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
#login-modal-button:hover{
    background-color: var(--iq-primary) !important;
    color:#fff !important;
}
#register-course{
    line-height: normal !important;
}
.hero-bg:before{
    content:"";
    background-image: url('../images/banner_default.jpg');
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}
.hero-bg:after{
    content:"";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, #0284c7, #4f46e5);
    z-index: 2;
}
.hero-bg{
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
}
.hero-desc{
    position: relative;
    z-index: 3;
}
.hero-desc h1{
    color:#fff !important;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: normal;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-desc p{
    color: #eaeaea; 
    font-weight: 500;
    line-height: normal;
}
.hero-desc a{
    background: linear-gradient(90deg, #fb923c, #f97316);
    color: #fff !important;
    font-weight: 500;
}
.level-wrapper h2{
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    line-height: normal;
    color:var(--iq-primary);
}
.card-hover{
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}
.card-hover:hover img{
    transition: 0.3s;
}
.card-hover:hover img{
    transform: scale(1.1);
}
.bg-overplay-img {
    overflow: hidden;
}
.bg-overplay-img img{
    width: 100%;
    max-height: 200px;
    height: 100%;
    object-fit: cover;
}
.card-hover .card-title{
    font-size: 18px;
    margin-bottom: 0;
    color:var(--iq-primary) !important;
    font-weight: 600 !important;
}
h4.card-title{
    color:var(--iq-primary);
}
.breadcrumb{
    background-color: transparent !important;
}
.iq-footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/**/
.question-group-pack {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    box-shadow: 0px 0px 4px #cbc1c1;
    border-radius: 8px;
}

  .question-group-pack .title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
  }

  .question-group-pack .desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
  }

  .question-group-pack .progress {
    position: relative;
    height: 8px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
  }

  .question-group-pack .progress .bar {
    height: 100%;
    background-color: #34c759;
    width: 0%;
    transition: width 0.3s ease;
  }

  .question-group-pack  .count {
    margin-top: 5px;
    text-align: right;
    font-size: 14px;
    color:#06C270;
    font-weight: 600 !important;
  }
.pack-wrap{
    margin: auto;
}

  @media (max-width: 600px) {

    .question-group-pack .title {
      font-size: 16px;
    }

    .question-group-pack.desc {
      font-size: 14px;
    }
}
/**/


.header-test {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #2196f3;
    color: #fff;
    font-weight: bold;
    gap:5px;
}

.tabs {
    display: flex;
    justify-content: start;
    overflow-x: auto;
    background: #f0f0f0;
    padding: 8px 10px;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge cũ */
    cursor: grab;
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome */
  }
  
.tabs:active {
    cursor: grabbing;
}

.tabs button {
    margin-right: 8px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
}

.tabs button:hover {
    background: #2196f3;
    color: white;
}

.tabs button.active-tab {
    background: #2196f3 !important;
    color: white;
    font-weight: bold;
}

.mySwiper {
    margin-bottom: 100px;
}

.mySwiper .swiper-slide {
    padding: 16px;
    box-sizing: border-box;
}

.mySwiper .swiper-slide p {
    font-weight: bold;
}

.mySwiper .swiper-slide label {
    display: block;
    font-size: 15px;
    line-height: 24px;
}

.swiper-button-next, .swiper-button-prev {
    color: #2196f3;
}
/* Scroll bar tab */
.tabs::-webkit-scrollbar {
    height: 4px;
}
.tabs::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}
.test-wrapper h2{
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    line-height: normal;
}
.question-p p{
    font-size: 16px;
}
.answer-p-item{
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    padding-top: 10px;
}
.answer-p-item:first-child{
    border-top: 1px solid #ddd;
}
.btn-check-answer{
    border: 1px solid var(--iq-success) !important;
    color: var(--iq-success) !important;
    background-color: #fff;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 20px;
}
.bg-correct label{
    color: var(--iq-success) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}
.bg-wrong label{
    color: var(--iq-danger) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}
.question-answered:before{
    content:"";
    background-color: transparent;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: absolute;
}
.explain-p{
    margin-top: 20px;
}
.explain-p p{
    font-weight: 500 !important;
}
.mySwiper .custom-control-inline{
    margin-right: 0 !important;
    display: flex;
    padding: 10px 0px 10px 2rem;
    border-radius: 5px;
}
.bg-correct .custom-control-inline{
    background-color: #06C27040 !important;
    position: relative;
}
.bg-correct .custom-control-inline:after{
    content: "\2713";
    color: green;
    right: 0;
    top:0;
    position: absolute;
    right: 15px;
    top: 8px;
}

.bg-wrong .custom-control-inline{
    background-color: rgb(246 179 179) !important;
    position: relative;
}

.bg-wrong .custom-control-inline:after{
    content: "✕";
    color: red;
    right: 0;
    top:0;
    position: absolute;
    right: 15px;
    top: 8px;
}

.question-answered .custom-radio label{
    opacity: 0.5;
}
#result-tab-quiz a{
    font-size: 16px;
    color:#000;
}
#quiz-tab-one i{
    color:#000 !important;
}
#quiz-tab-two i{
    color:rgb(44, 151, 44) !important;
}
#quiz-tab-three i{
    color:rgb(191, 13, 13) !important;
}
#quiz-tab-four i{
    color:orange !important;
}
#result-tab-quiz .nav-item{
    flex: 0 0 25%;
    text-align: center;
}
.b-group{
    display: flex;
    flex-wrap: wrap;
    gap:10px;
}
.b-question-item{
    display: inline-flex;
    flex-direction: column;
    width: 100px;
    height: 100px;
    background-color: #dadada;
    border-radius: 8px;
    border: 0;
    align-items: center;
    justify-content: center;
    color: #000;
}
.b-question-item i{
    font-size: 24px;
}
.bg-correct-i{
    background-color:rgb(142 244 142) !important;
}
.bg-correct-i i{
    color:rgb(44, 151, 44) !important;
}
.bg-empty{
    background-color: #eed9b2 !important;
}
.bg-empty i{
    color:orange !important;
}
.bg-wrong-i{
    background-color:rgb(246 179 179) !important;
}
.bg-wrong-i i{
    color:rgb(191, 13, 13) !important;
}
@media(max-width:480px){
    .b-group{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .b-group button{
        width: 100%;
    }
}
form.dropdown-item button{
    padding: 0;
    border: 0;
    background-color: transparent;
}
.time-finish{
    display: inline-flex;
    gap:5px;
    font-size: 15px;
}
span.head{
    font-size: 15px;
}


#result-tab-quiz a {
    font-size: 16px;
    color: #000;
    display: inline-flex;
    width: 100%;
    gap: 5px;
    align-items: center;
    justify-content: center;
}
.bg-tab-wrong{
    background-color:rgb(246 179 179) !important;
}
.bg-tab-correct{
    background-color:#06C27040 !important;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1140px !important;
    }
}
.bg-op{
    background: #a4a9f1 !important;
    flex-direction: column;
    color:#141b87!important;
    font-size: 15px;
}
.text-main{
    font-weight: bold;
}
#modal-signin .modal-dialog, #modal-signup .modal-dialog{
    max-width: 400px !important;
}
.form-icon button{
    width: 100% !important;
    padding: 10px 12px;
}
.modal-title{
    font-weight: 600 !important;
}
.form-icon input{
    border: 0 !important;
}
.form-icon .input-group{
    border: 1px solid #d7dbda !important;
    border-radius: 5px;
}
.quesiton-image img{
    max-width: 300px;
}
.quesiton-image, .quesiton-audio{
    margin-bottom: 1rem;
}
.d-none-i{
    display: none !important;
}

@media (max-width: 1299px) {
    body.top-tab-horizontal .iq-top-navbar {
        position: sticky !important;
        width: 100% !important;
    }
}
.breadcrumb li{
    white-space: nowrap;
}
.breadcrumb{
    flex-wrap: nowrap;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumb::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
  
.breadcrumb::-webkit-scrollbar-track {
    background: #f0f0f0;     /* Màu nền track */
    border-radius: 4px;
}
  
.breadcrumb::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
    transition: background 0.3s;
}
  
.breadcrumb::-webkit-scrollbar-thumb:hover {
    background: #555;        /* Màu khi hover */
}
.breadcrumb li.active a{
    color:#8d8989;
}

.title-q-box{
    margin-bottom: 0 !important;
    color:#fff;
    font-size: 16px !important;
}
.timer-container {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
    color: #2b8ce1;
}
#v-pills-tab-profile a{
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}
#v-pills-tab-profile a.active{
    background: var(--iq-primary-gd) !important;
    color:#fff;
}
#user-kh-table th, #history-kh-table th{
    text-transform: none !important;
    font-weight: 600;
}
.fixed-footer-question{
    position: fixed;
    z-index: 1;
    width: 100%;
    bottom: 0;
    left: 0;
    text-align: center;
    padding: 15px;
    background: #2196f3;
}
.choose-question-toggle{
    border: 0;
    background-color: #FF7A29;
    color:#fff;
    padding: 5px 10px;
    border-radius: 10px;
}
.choose-question-toggle:hover{
    background-color: var(--iq-secondary-dark);
}

.question-list {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #f8f8f8;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #ccc;
    z-index: 999;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.question-list::-webkit-scrollbar {
    display: none;
}
.question-list.show{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.question-list button {
    display: inline-block;
    margin: 5px;
    padding: 10px 14px;
    border: none;
    border-radius: 50%;
    background: #eee;
    cursor: pointer;
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
  }
.question-list button:hover {
    background: #007bff;
    color: #fff;
}
/**/
.course-card{
    border:0; border-radius: var(--radius-xl);
    overflow:hidden; background:#fff;
    box-shadow:0 6px 20px rgba(20,25,40,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover{
    transform:translateY(-6px);
    box-shadow:0 14px 36px rgba(20,25,40,.15);
}

.course-thumb{
    position:relative; height:220px; overflow:hidden;
}
.course-thumb img{
    width:100%; height:100%; object-fit:cover; display:block;
    transition: transform .4s ease;
}
.course-card:hover .course-thumb img{
    transform: scale(1.08);
}

/* overlay chỉ trên ảnh */
.thumb-overlay{
    position:absolute; inset:0;
    background: rgba(0,0,0,.55);
    opacity:0; visibility:hidden;
    display:flex; align-items:center; justify-content:center;
    transition: all .25s ease;
}
.course-card:hover .thumb-overlay{
    opacity:1; visibility:visible;
}
.thumb-overlay .btn{
    border-radius:999px; 
    font-weight:600; 
    margin:0 .35rem;
    padding:.5rem 1rem;
}
.btn-ghost{ 
    background: linear-gradient(90deg, #0ea5e9, #6366f1); 
    color:#fff !important; 
}
.btn-brand{ background:var(--brand); color:#fff; }
.btn-brand:hover{ filter:brightness(.95); color:#fff; }

.course-body{ padding:18px; }
.course-title{ font-weight:700; margin-bottom:.5rem; color:var(--iq-primary);}
.course-desc{ color:var(--muted); margin-bottom:1rem; }
.stars i{ color:#F6C343; }
.contact-link{
    color:var(--brand); font-weight:700; text-decoration:none;
}
.contact-link:hover{ text-decoration:underline; }


.form-icon input, .form-icon button{
    font-size: 16px !important;
}
.dh-title{
    flex-wrap:wrap;
    justify-content: space-between;
}
.dh-title a{
    color:#fff !important;
    line-height:23px;
}
.container-search{
    margin:auto;
    padding-bottom:50px;
}
#topicInput{
    font-size:16px;
    background:#fff;
}
#btnSearch{
    height:42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-box{
    position:relative;
    max-width: 720px;
    margin:0px auto 45px auto;
}
#btnClear{
    font-size:12px;
}
.card-vocab{
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
    min-height:160px;
}
.card-vocab .word{
    font-weight: 700;
    font-size: 1.2rem;
    color: #2f479f;
    line-height:26px;
}
@media(max-width:565px){
    .level-wrapper h2{
        font-size:24px;
    }
}
/*Topic card*/
.topic-card {
    border: none; border-radius: 12px; 
    overflow: hidden; 
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: 0 6px 14px rgba(0,0,0,0.15); }
.topic-card img { height: 160px; object-fit: cover; width: 100%; }
.topic-card .card-body { text-align: center; padding: 15px; }
.topic-title { font-size: 1.1rem; font-weight: 600; color: #0284c7; margin-bottom: 0px; }
.topic-count { font-size: 0.9rem; color: #64748b; }
.g-5{
    gap:5px;
}
.iq-top-navbar{
    min-height:100px;
}
.content-page-front{
    padding-bottom:50px;
}


.text-gd {
    background: var(--bg-gradient-t);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.text-gd-dark {
    background: var(--iq-primary-gd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#btnSearch{
    background: var(--bg-gradient-t);
}
code{
    color: #ef4444 !important;
}
.card-vocab .card-body{
    text-align: justify;
}
@media(max-width:767px){
    .dc-title{
        flex-direction:column-reverse;
        gap:5px;
    }
    .card-vocab .card-body{
        padding-right:35px;
        padding-left:15px;
        padding-bottom:15px;
        padding-top:15px;
    }
    .card-vocab .card-footer{
        position:absolute;
        flex-direction: column;
        gap: 10px;
        right: -16px;
        border-top: 0;
        top: 50%;
        transform: translateY(-50%);
        padding-left:0px;
        padding-top:10px;
        padding-bottom:10px;
        padding-right:0px;
        transition: 0.2s ease;
    }
    .card-vocab .card-footer button{
        margin-right:0px !important;
        width: 35px;
        height: 35px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }
	#qaTabContent .card-vocab{
	   min-height:auto !important;
	}
}