/* Avatar */
.student-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e9ecef;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    position: relative;
}

/* Glow effect for rank #1 */
.rank-1 ~ .student-avatar {
    border-color: gold;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}
.rank-2 ~ .student-avatar { border-color: silver; }
.rank-3 ~ .student-avatar { border-color: #cd7f32; }
.rank-4 ~ .student-avatar { border-color: #0d6efd; }
.rank-5 ~ .student-avatar { border-color: #20c997; }

/* Container */
.top-student {
    background: #fff;
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.top-student:hover {
    background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #0d6efd;
}

/* Highlight border gradient for rank #1 */
.top-student:first-of-type {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
                      linear-gradient(135deg, gold, orange);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

/* Rank badge */
.student-rank {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 10px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.rank-1 { background: linear-gradient(135deg, gold, orange); color: #000; }
.rank-2 { background: linear-gradient(135deg, silver, #c0c0c0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #b87333); }
.rank-4 { background: linear-gradient(135deg, #0d6efd, #2563eb); }
.rank-5 { background: linear-gradient(135deg, #20c997, #198754); }

/* Crown icon for rank #1 */
.top-student:first-of-type::before {
    content: "👑";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
}

/* Name link */
.top-student h5 a {
    text-decoration: none;
    color: #212529;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}
.top-student h5 a:hover {
    color: #0d6efd;
    text-shadow: 0 1px 3px rgba(13,110,253,0.4);
}

/* Score text */
.top-student small {
    font-size: 0.9rem;
    color: #6c757d !important;
}

.exam-card {
    border: 1px solid #ddd; /* subtle border */
    border-radius: 12px;    /* rounded corners */
    padding: 15px;          /* inner spacing */
    transition: transform 0.3s, box-shadow 0.3s; /* hover effect */
    background-color: #fff;  /* white background */
}

.exam-card:hover {
    transform: translateY(-5px); /* lift on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* light shadow */
}

.exam-card .trend-bottom-img img {
    border-radius: 10px;   /* image rounding */
    width: 100%;
    height: auto;
}

.exam-card .trend-bottom-cap span {
    font-weight: bold;
}

.exam-card .trend-bottom-cap h4 a {
    color: #333;
    text-decoration: none;
}

.exam-card .trend-bottom-cap h4 a:hover {
    color: #007bff; /* change color on hover */
}

.weekly-news-area {
    background-color: #f9f9f9;
    padding-bottom: 50px;
}

.weekly-single.exam-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin: 5px;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.weekly-single.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.weekly-img img {
    width: 100%;
    border-radius: 10px;
    height: auto;
}

.weekly-caption span {
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

.weekly-caption h4 a {
    color: #333;
    text-decoration: none;
}

.weekly-caption h4 a:hover {
    color: #007bff;
}

.dot-style {
    overflow-x: auto; /* cho scroll ngang nếu carousel ko fit */
    display: flex;
    gap: 15px;
}

.exam-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 10px;
}

.card-body span {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.card-body h5 a {
    color: #333;
    text-decoration: none;
}

.card-body h5 a:hover {
    color: #007bff;
}

/* Tabs */
.nav-tabs .nav-link {
    border: none;
    background: #f2f2f2;
    color: #333;
    margin-right: 5px;
    border-radius: 10px;
    padding: 8px 15px;
}

.nav-tabs .nav-link.active {
    background: #007bff;
    color: #fff;
}

.weekly2-single {
    transition: transform 0.3s, box-shadow 0.3s;
}
.weekly2-single:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.weekly2-caption span {
    font-weight: 600;
    font-size: 14px;
    color: #555;
}
.weekly2-caption h4 a {
    color: #1a1a1a;
    text-decoration: none;
}
.weekly2-caption h4 a:hover {
    color: #007bff;
    text-decoration: underline;
}

.video-thumb iframe {
    width: 100%;
    height: 120px;
}
.video-thumb:hover {
    transform: scale(1.05);
    transition: 0.3s;
    cursor: pointer;
}
.video-intro h6 {
    font-size: 14px;
    margin: 0;
}

.single-course {
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}
.single-course:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.course-content h5 a {
    color: #333;
    text-decoration: none;
}
.course-content h5 a:hover {
    color: #007bff;
    text-decoration: underline;
}
.btn-outline-primary, .btn-outline-success, .btn-outline-warning, .btn-outline-danger, .btn-outline-info {
    border-radius: 20px;
}
.courses-slider .slick-slide {
    padding: 0 10px;
}
