/* ========================================
   EDUALL.VN - Main Stylesheet
   Kiến Tạo Giáo Dục Toàn Diện
   ======================================== */

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    color: #333333;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 35px; }
h2 { font-size: 30px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; font-weight: 400; }
h5 { font-size: 14px; }
h6 { font-size: 12px; font-weight: 400; }

/* ========== Buttons ========== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #004AAD;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #39B6FF;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #39B6FF;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #004AAD;
}

.btn-accent {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF5722;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #EE4E4E;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #004AAD;
}

/* ========== Top Bar ========== */
.top-bar {
    background-color: #F2F2F2;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid #E5E5E5;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-left i {
    color: #004AAD;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right a {
    color: #555555;
}

.top-bar-right a:hover {
    color: #004AAD;
}

.activate-cod {
    color: #FF5722 !important;
    font-weight: 500;
}

.btn-login, .btn-register {
    padding: 5px 15px;
    border-radius: 3px;
}

.top-bar-right .btn-login {
    background-color: #004AAD;
    color: #ffffff !important;
}

.top-bar-right .btn-register {
    background-color: #39B6FF;
    color: #ffffff !important;
}

.top-bar-right .user-welcome {
    color: #39B6FF;
    font-weight: 500;
    margin-right: 10px;
}

.top-bar-right .btn-logout {
    padding: 5px 15px;
    border-radius: 3px;
    background-color: #dc2626;
    color: #ffffff !important;
}

.top-bar-right .btn-logout:hover {
    background-color: #b91c1c;
}

/* ========== Main Header ========== */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo */
.logo a {
    display: block;
}

.logo h1 {
    font-size: 28px;
    color: #004AAD;
    margin-bottom: 0;
}

.logo h1 span {
    color: #39B6FF;
}

.logo .slogan {
    font-size: 11px;
    color: #555555;
    margin-top: -5px;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    font-weight: 500;
    color: #333333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
    background-color: #39B6FF;
    color: #ffffff;
}

.nav-menu > li > a i {
    font-size: 10px;
    margin-left: 5px;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #F8F9FB;
    color: #004AAD;
    padding-left: 25px;
}

.dropdown-menu li a i {
    float: right;
    margin-top: 3px;
    font-size: 10px;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    cursor: pointer;
    font-size: 18px;
    color: #333333;
    transition: color 0.3s ease;
}

.search-box:hover {
    color: #004AAD;
}

.cart-box a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #004AAD;
    color: #ffffff;
    border-radius: 5px;
}

.cart-box a:hover {
    background-color: #39B6FF;
}

.cart-count {
    background-color: #FF5722;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

.cart-total {
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #484848;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== Hero Slider ========== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: #ffffff;
    max-width: 700px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-controls button {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* ========== Eduall System Section ========== */
.eduall-system-section {
    padding: 50px 0;
    background-color: #ffffff;
}

.system-heading {
    text-align: center;
    font-size: 32px;
    color: #39b6ff;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.system-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #004AAD, #39B6FF);
    border-radius: 2px;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.system-card {
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(180deg, #e8f4fd 0%, #d1e9fa 100%);
    transition: all 0.3s ease;
}

.system-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 74, 173, 0.2);
}

.system-card-inner {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.system-image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.system-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.system-card:hover .system-image img {
    transform: scale(1.1);
}

.system-content {
    flex: 1;
    margin-bottom: 20px;
}

.system-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #004AAD;
    margin-bottom: 12px;
    line-height: 1.3;
}

.system-content h3 a {
    color: #004AAD;
}

.system-content h3 a:hover {
    color: #39B6FF;
}

.system-content p {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
}

.btn-system {
    display: inline-block;
    padding: 10px 25px;
    background-color: #004AAD;
    color: #ffffff;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-system:hover {
    background-color: #39B6FF;
    transform: scale(1.05);
}

/* ========== Course Categories Section ========== */
.course-categories-section {
    padding: 80px 0;
    background-color: #F8F9FB;
}

.categories-heading {
    text-align: center;
    font-size: 32px;
    color: #39b6ff;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.categories-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #004AAD, #39B6FF);
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: 12px;
    color: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 150px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-card i {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

/* ========== Features Section ========== */
.features-section {
    padding: 60px 0;
    background-color: #F8F9FB;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
        margin: 40px 0px;
}

.feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #004AAD 0%, #39B6FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 28px;
    color: #ffffff;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.feature-item p {
    font-size: 13px;
    color: #777777;
}

/* ========== Section Header ========== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #39b6ff;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #004AAD, #39B6FF);
    border-radius: 2px;
}

.section-header p {
    color: #777777;
    margin-top: 15px;
}

/* ========== New Courses Wrapper Section ========== */
.new-courses-wrapper,
.bestseller-wrapper {
    padding: 60px 0;
    background: linear-gradient(180deg, #4AD0FD87 0%, #FFFFFF87 100%);
}

.section-title-italic {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    font-style: italic;
    color: #004AAD;
    margin-bottom: 30px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown select {
    padding: 10px 35px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
}


/* Simple Course Grid */
.courses-simple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Simple Course Card */
.course-simple-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.course-simple-image {
    height: 160px;
    overflow: hidden;
}

.course-simple-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-simple-card:hover .course-simple-image img {
    transform: scale(1.05);
}

.course-simple-content {
    padding: 15px;
}

.course-simple-category {
    display: inline-block;
    font-size: 12px;
    color: #39B6FF;
    font-weight: 500;
    margin-bottom: 8px;
}

.course-simple-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-simple-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-views {
    font-size: 13px;
    color: #777;
}

.course-views i {
    margin-right: 5px;
}

.course-simple-price {
    font-size: 15px;
    font-weight: 700;
    color: #FF5722;
}

.course-simple-price.free {
    color: #00BB06;
}

/* Load More Button */
.load-more-btn {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    display: inline-block;
    padding: 12px 40px;
    background-color: #004AAD;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background-color: #39B6FF;
}

/* ========== Bestseller Wrapper Section ========== */
.bestseller-slider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background-color: #004AAD;
    color: #fff;
    border-color: #004AAD;
}

.slider-arrow i {
    font-size: 18px;
    color: #333;
}

.slider-arrow:hover i {
    color: #fff;
}

.bestseller-content {
    flex: 1;
}

/* Featured Course */
.featured-course {
    display: flex;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 45%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    width: 55%;
    padding: 30px;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-label {
    font-size: 12px;
    color: #777;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.category-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.category-tag i {
    font-size: 20px;
    color: #39B6FF;
}

.cat-label {
    font-size: 12px;
    color: #777;
    display: block;
}

.cat-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.featured-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.featured-meta span {
    font-size: 14px;
    color: #555;
}

.featured-meta i {
    margin-right: 8px;
    color: #39B6FF;
}

.featured-price {
    font-size: 28px;
    font-weight: 700;
    color: #FF5722;
    margin-bottom: 20px;
}

.featured-options {
    margin-bottom: 20px;
}

.duration-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.duration-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.duration-dropdown i {
    color: #39B6FF;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-register-course {
    flex: 1;
    padding: 15px;
    background-color: #39B6FF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register-course:hover {
    background-color: #e64a19;
}

.btn-wishlist {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: none;
    border: none;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-wishlist:hover {
    color: #FF5722;
}

.btn-wishlist i {
    font-size: 18px;
}

/* Related Courses Grid */
.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ========== Courses Section ========== */
.courses-section {
    padding: 80px 0;
}

/* New Courses Section */
.new-courses-section {
    background-color: #ffffff;
}

.new-courses-section .courses-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Bestseller Courses Section */
.bestseller-courses-section {
    background-color: #F8F9FB;
}

.bestseller-courses-section .courses-grid {
    grid-template-columns: repeat(4, 1fr);
}

.course-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    background-color: #F1F1F1;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background-color: #004AAD;
    color: #ffffff;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.course-image {
    position: relative;
    height: 200px;
    background-color: #E5E5E5;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
}

.course-badge.hot {
    background-color: #FF5722;
}

.course-badge.new {
    background-color: #00BB06;
}

.course-badge.sale {
    background-color: #AD0000;
}

.course-content {
    padding: 20px;
}

.course-category {
    font-size: 12px;
    color: #39B6FF;
    font-weight: 500;
    margin-bottom: 8px;
}

.course-title {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #777777;
    margin-bottom: 10px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-rating {
    margin-bottom: 12px;
}

.course-rating i {
    color: #FFB800;
    font-size: 13px;
}

.course-rating span {
    color: #777777;
    font-size: 13px;
    margin-left: 5px;
}

.course-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #F00;
}

.original-price {
    font-size: 14px;
    color: #999999;
    text-decoration: line-through;
    margin-left: 10px;
}

.btn-enroll {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #004AAD;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-enroll:hover {
    background-color: #39B6FF;
}

.view-all-courses {
    text-align: center;
    margin-top: 40px;
}

/* ========== Why Us Section ========== */
.why-us-section {
    padding: 80px 0;
    background-color: #F8F9FB;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 30px 20px;
}

.why-us-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #004AAD 0%, #39B6FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.why-us-item:hover .why-us-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.3);
}

.why-us-icon i {
    font-size: 32px;
    color: #ffffff;
}

.why-us-item h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.why-us-item p {
    font-size: 14px;
    color: #777777;
    line-height: 1.7;
}

/* ========== Statistics Section ========== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #004AAD 0%, #002989 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: #ffffff;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ========== Testimonials Section ========== */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    display: none;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-card.active {
    display: block;
}

.testimonial-content p {
    font-size: 18px;
    font-style: italic;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.testimonial-content p::before {
    content: '"';
    font-size: 40px;
    color: #39B6FF;
    line-height: 0;
    vertical-align: bottom;
}

.testimonial-content p::after {
    content: '"';
    font-size: 40px;
    color: #39B6FF;
    line-height: 0;
    vertical-align: bottom;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #39B6FF;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 13px;
    color: #777777;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #DDD;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background-color: #004AAD;
    transform: scale(1.2);
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FF5722 0%, #EE4E4E 100%);
}

.cta-content {
    text-align: center;
    color: #ffffff;
}

.cta-content h2 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========== Books Section ========== */
.books-section {
    padding: 80px 0;
    background-color: #F8F9FB;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.book-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.book-image {
    position: relative;
    height: 280px;
    background-color: #E5E5E5;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background-color: #FF5722;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.book-badge.new {
    background-color: #00BB06;
}

.book-content {
    padding: 20px;
}

.book-content h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 13px;
    color: #777777;
    margin-bottom: 12px;
}

.book-price {
    margin-bottom: 15px;
}

.book-price .current-price {
    font-size: 18px;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #39B6FF;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background-color: #004AAD;
}

/* ========== Partners Section ========== */
.partners-section {
    padding: 60px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-height: 60px;
}

/* ========== Newsletter Section ========== */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #39B6FF 0%, #3DC2EC 100%);
}

.newsletter-content {
    text-align: center;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
}

.newsletter-content p {
    margin-bottom: 25px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-submit {
    padding: 15px 30px;
    background-color: #004AAD;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #002989;
}

/* ========== Footer ========== */
.main-footer {
    background-color: #002989;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 30px;
}

.footer-widget h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #39B6FF;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #39B6FF;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.contact-info li i {
    color: #ffffff;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #39B6FF;
    transform: translateY(-3px);
}

/* Footer Newsletter Form */
.footer-widget .newsletter-form {
    margin: 0;
    max-width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    border-radius: 5px;
    overflow: hidden;
}

.newsletter-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    outline: none;
}

.newsletter-input-group input:focus {
    box-shadow: inset 0 0 0 2px #39B6FF;
}

.newsletter-input-group button {
    padding: 12px 18px;
    background-color: #39B6FF;
    color: #ffffff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-input-group button:hover {
    background-color: #2ca0e0;
}

.newsletter-alert {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-alert.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #7fff9e;
}

.newsletter-alert.info {
    background-color: rgba(23, 162, 184, 0.2);
    color: #7fefff;
}

.newsletter-alert.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff7f8e;
}

.footer-bottom {
    background-color: #002C7A;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-methods img {
    height: 30px;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 3px;
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #004AAD;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #39B6FF;
    transform: translateY(-5px);
}

/* ========== Search Modal ========== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
}

.search-form {
    display: flex;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-form button {
    padding: 20px 30px;
    background-color: #004AAD;
    color: #ffffff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #39B6FF;
}

/* ========== Mobile Menu ========== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #004AAD;
    color: #ffffff;
}

.mobile-menu-header h3 {
    color: #ffffff;
    font-size: 18px;
}

.close-mobile-menu {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #E5E5E5;
    color: #333333;
    font-weight: 500;
}

.mobile-nav ul li a:hover {
    background-color: #F8F9FB;
    color: #004AAD;
}

.mobile-submenu {
    display: none;
    background-color: #F8F9FB;
}

.mobile-submenu li a {
    padding-left: 40px;
    font-weight: 400;
    font-size: 14px;
}

.mobile-nav .has-submenu.active .mobile-submenu {
    display: block;
}

.mobile-nav .has-submenu.open .mobile-submenu {
    display: block;
}

.mobile-nav .has-submenu.active > a i,
.mobile-nav .has-submenu.open > a i {
    transform: rotate(45deg);
}

.mobile-menu-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.mobile-menu-footer .btn-login,
.mobile-menu-footer .btn-register {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
}

.mobile-menu-footer .btn-login {
    background-color: #004AAD;
    color: #ffffff;
}

.mobile-menu-footer .btn-register {
    background-color: #39B6FF;
    color: #ffffff;
}

.mobile-menu-footer .user-welcome-mobile {
    flex: 1;
    text-align: center;
    padding: 12px;
    color: #004AAD;
    font-weight: 500;
    background-color: #e0e0e0;
    border-radius: 5px;
}

.mobile-menu-footer .btn-logout {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    background-color: #dc2626;
    color: #ffffff;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== Roadmap/Lo Trinh Section ========== */
.roadmap-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.roadmap-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #004AAD 0%, #39B6FF 100%);
    border-radius: 2px;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.roadmap-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 40px);
}

.roadmap-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
}

.roadmap-step {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #004AAD 0%, #39B6FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 74, 173, 0.3);
    z-index: 2;
}

.roadmap-content {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
}

.roadmap-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 74, 173, 0.15);
}

.roadmap-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.roadmap-item:nth-child(odd) .roadmap-content::before {
    right: -20px;
    border-left-color: #fff;
}

.roadmap-item:nth-child(even) .roadmap-content::before {
    left: -20px;
    border-right-color: #fff;
}

.roadmap-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d0e8f9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.roadmap-icon i {
    font-size: 1.5rem;
    color: #004AAD;
}

.roadmap-content h3 {
    font-size: 1.2rem;
    color: #010042;
    margin-bottom: 10px;
}

.roadmap-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.roadmap-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #004AAD;
    background: #e8f4fd;
    padding: 5px 12px;
    border-radius: 20px;
}

.roadmap-cta {
    text-align: center;
}

.btn-start-journey {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #004AAD 0%, #0066cc 100%);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 74, 173, 0.3);
}

.btn-start-journey:hover {
    background: linear-gradient(135deg, #010042 0%, #004AAD 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.4);
}

@media (max-width: 768px) {
    .roadmap-timeline::before {
        left: 25px;
    }

    .roadmap-item:nth-child(odd),
    .roadmap-item:nth-child(even) {
        flex-direction: row;
        padding-left: 80px;
        padding-right: 0;
    }

    .roadmap-step {
        left: 25px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .roadmap-item:nth-child(odd) .roadmap-content::before,
    .roadmap-item:nth-child(even) .roadmap-content::before {
        left: -20px;
        right: auto;
        border-left-color: transparent;
        border-right-color: #fff;
    }

    .roadmap-content {
        padding: 20px;
    }

    .roadmap-content h3 {
        font-size: 1.1rem;
    }

    .roadmap-section {
        padding: 50px 0;
    }
}

/* ========== Careers/Nganh Nghe Section ========== */
.careers-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title-center {
    text-align: center;
    font-size: 2rem;
    color: #010042;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.career-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.career-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 74, 173, 0.15);
    border-color: #004AAD;
}

.career-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #004AAD 0%, #39B6FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.career-card:hover .career-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #010042 0%, #004AAD 100%);
}

.career-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.career-card h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.career-card p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.careers-cta {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #004AAD 0%, #0066cc 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #010042 0%, #004AAD 100%);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.3);
}

@media (max-width: 992px) {
    .careers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .careers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .career-card {
        padding: 20px 10px;
    }

    .career-icon {
        width: 55px;
        height: 55px;
    }

    .career-icon i {
        font-size: 1.4rem;
    }

    .career-card h4 {
        font-size: 0.9rem;
    }

    .section-title-center {
        font-size: 1.5rem;
    }
}

/* ========== Placeholder Images ========== */
.course-image,
.book-image,
.testimonial-author img,
.partner-logo img {
    background: linear-gradient(135deg, #E5E5E5 0%, #F5F5F5 100%);
}

.course-image::before,
.book-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23cccccc"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.5;
}

.testimonial-author img {
    background: linear-gradient(135deg, #39B6FF 0%, #004AAD 100%);
}

/* ========== Header Scrolled State ========== */
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

.main-header {
    transition: all 0.3s ease;
}

/* ========== Admin Button in Header ========== */
.top-bar-right .btn-admin {
    padding: 5px 15px;
    border-radius: 3px;
    background-color: #FF5722;
    color: #ffffff !important;
    font-weight: 500;
}

.top-bar-right .btn-admin:hover {
    background-color: #E64A19;
}

/* ========== Loading Animation ========== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== Image Lazy Load Placeholder ========== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========== Link Hover Underline Effect ========== */
.nav-menu > li > a {
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #39B6FF;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu > li > a:hover::after {
    width: 80%;
}

/* ========== Active Navigation Item ========== */
.nav-menu > li > a.active {
    background-color: #004AAD;
    color: #ffffff;
}

/* ========== Card Skeleton Loading ========== */
.course-card.loading .course-image,
.course-card.loading .course-title,
.course-card.loading .course-price {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* ========== Form Focus States ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #39B6FF;
    box-shadow: 0 0 0 3px rgba(57, 182, 255, 0.2);
}

/* ========== Alert Messages ========== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* ========== Tooltip ========== */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: #333;
    color: #fff;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* ========== Improved Button States ========== */
.btn-primary:active,
.btn-secondary:active,
.btn-accent:active {
    transform: scale(0.98);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-accent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== Badge Styles ========== */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-primary { background-color: #004AAD; color: #fff; }
.badge-success { background-color: #00BB06; color: #fff; }
.badge-warning { background-color: #FFB800; color: #333; }
.badge-danger { background-color: #FF5722; color: #fff; }
.badge-info { background-color: #39B6FF; color: #fff; }

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.empty-state i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #555;
    margin-bottom: 10px;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #39B6FF;
    color: #fff;
}

.pagination .current {
    background-color: #004AAD;
    color: #fff;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 14px;
    color: #777;
}

.breadcrumb a {
    color: #004AAD;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
}

/* ========== Price Styles ========== */
.price-free {
    color: #00BB06;
    font-weight: 700;
}

.price-sale {
    color: #FF5722;
    font-weight: 700;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85em;
}

/* ========== Rating Stars ========== */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars i {
    color: #FFB800;
    font-size: 14px;
}

.rating-stars i.empty {
    color: #ddd;
}

/* ========== Progress Bar ========== */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #004AAD 0%, #39B6FF 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ========== Floating Action Button ========== */
.fab {
    position: fixed;
    /*bottom: 30px;*/
    /*right: 100px;*/
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #004AAD 0%, #39B6FF 100%);
    color: #fff;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 74, 173, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 74, 173, 0.5);
}
