/* ===== CUSTOM CSS FOR DRIVING SCHOOL WEBSITE ===== */

/* Root Variables */
:root {
    --primary-color: #1e73be;
    --secondary-color: #ffcb05;
    --success-color: #4fba69;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Hero Placeholder Image */
.hero-placeholder-image {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(30, 115, 190, 0.3);
}

/* Course Placeholder */
.course-placeholder {
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.2);
}

/* Course Hero Icon */
.course-hero-icon {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(30, 115, 190, 0.3);
}

/* News Placeholder */
.news-placeholder {
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.2);
}

/* News Hero Icon */
.news-hero-icon {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(23, 162, 184, 0.3);
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Contact Hero Icon */
.contact-hero-icon {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* Dropdown Hover Effects */
.dropdown-hover:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu-animated {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
}

.dropdown-hover:hover .dropdown-menu-animated {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease;
    border-radius: 5px;
    margin: 2px 10px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
    color: var(--primary-color);
}

.dropdown-item i {
    transition: all 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* Pricing Card Styles */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.pricing-header {
    background: linear-gradient(135deg, #1e73be 0%, #0a40c9 100%) !important;
}

.price-amount {
    font-size: 2.5rem !important;
}

.pricing-features li {
    padding: 5px 0;
}

/* Process Step Styles */
.process-step {
    margin-bottom: 2rem;
}

.icon-circle {
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1.1rem;
}

/* Test Card Styles */
.test-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.test-icon i {
    transition: transform 0.3s ease;
}

.test-card:hover .test-icon i {
    transform: scale(1.1);
}

/* FAQ Section Styles */
.faq-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Registration Form Styles */
.registration-card {
    border: 1px solid #1e73be;
}

.registration-form .form-control:focus {
    border-color: #1e73be;
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, 0.25);
}

.registration-form .form-select:focus {
    border-color: #1e73be;
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, 0.25);
}

/* Section Title Styles */
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1e73be 0%, #ffcb05 100%);
    border-radius: 2px;
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0f538e;
    border-color: #0f538e;
}

/* Top Bar */
.top-bar {
    font-size: 14px;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-icon {
    transition: var(--transition);
}

.navbar-brand:hover .logo-icon {
    transform: rotate(360deg);
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.dropdown-item {
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f538e 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Course Cards */
.course-card {
    position: relative;
    margin-bottom: 2rem;
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.course-features {
    list-style: none;
    padding: 0;
}

.course-features li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 12px 30px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-warning:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: var(--dark-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #3da54e;
    border-color: #3da54e;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.feature-box {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-box:hover {
    background-color: var(--light-color);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0f538e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* News Section */
.news-card {
    height: 100%;
}

.news-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.news-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #eee;
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, 0.25);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    animation: none;
}

.hotline-btn {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
}

.zalo-btn {
    background-color: #0084ff !important;
    border-color: #0084ff !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .floating-contact {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .course-price {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f538e 100%);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Enhanced Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Enhanced Cards */
.card {
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, 0.25);
    transform: translateY(-2px);
}

.form-control,
.form-select {
    transition: all 0.3s ease;
}

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 115, 190, 0.1), transparent);
    transition: left 0.3s;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

/* Enhanced Statistics */
.stat-item {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.stat-item:hover::before {
    width: 100%;
    height: 100%;
}

/* Enhanced Feature Boxes */
.feature-box {
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #0f538e);
    opacity: 0.05;
    transition: top 0.3s ease;
}

.feature-box:hover::before {
    top: 0;
}

/* Enhanced News Cards */
.news-card {
    position: relative;
    overflow: hidden;
}

.news-card .card-img-top {
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Enhanced Course Cards */
.course-card {
    position: relative;
    overflow: hidden;
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-card:hover::after {
    opacity: 0.05;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Floating Buttons */
.floating-btn {
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.floating-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Enhanced Breadcrumb */
.breadcrumb-section {
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(30, 115, 190, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hero Section Enhancements */
.hero-image-wrapper {
    position: relative;
}

.floating-image {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.element-1 {
    top: 20%;
    left: 10%;
    animation: float 2s ease-in-out infinite;
}

.element-2 {
    top: 60%;
    right: 15%;
    animation: float 2.5s ease-in-out infinite reverse;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce-vertical 2s infinite;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    color: var(--warning-color);
    transform: scale(1.2);
}

@keyframes bounce-vertical {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Enhanced Statistics */
.hero-stats .stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Enhanced Feature Boxes */
.feature-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-box .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0f538e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Enhanced Course Cards */
.course-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.course-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #0f538e);
    color: white;
    border: none;
    padding: 1.5rem;
    position: relative;
}

.course-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--warning-color);
}

.course-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--warning-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Enhanced News Cards */
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Enhanced Registration Form */
.registration-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.registration-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--warning-color), var(--success-color));
}

.registration-form .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.registration-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, 0.25);
    transform: translateY(-2px);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ONLINE TEST SECTION ===== */
.online-test-section {
    background-color: #f5f7fa;
}

.test-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.test-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.test-item .icon-circle {
    transition: all 0.3s ease;
}

.test-item:hover .icon-circle {
    transform: scale(1.05);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background-color: transparent;
}

.faq-header {
    position: relative;
}

.faq-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

.faq-icon {
    position: relative;
}

.faq-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-radius: 50%;
    z-index: -1;
}

.faq-item {
    margin-bottom: 16px;
    position: relative;
}

.faq-question {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.faq-question:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question:hover::before {
    left: 100%;
}

.faq-toggle-icon {
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.faq-question:hover .faq-toggle-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-answer {
    animation: slideDown 0.4s ease-out;
    transform-origin: top;
}

.answer-content {
    position: relative;
}

.answer-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

/* Custom colors for different FAQ items */
.text-purple {
    color: #6f42c1 !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem !important;
    }

    .faq-answer {
        padding: 1rem !important;
    }

    .faq-question span {
        font-size: 14px !important;
    }

    .answer-content .row > div {
        margin-bottom: 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    background-color: #f5f7fa;
}

.benefit-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefit-item .icon-circle {
    transition: all 0.3s ease;
}

.benefit-item:hover .icon-circle {
    transform: scale(1.05);
}

.benefits-tabs .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 13px;
}

.benefits-tabs .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== TESTIMONIALS ===== */
.testimonials-container {
    background-color: transparent;
}

.testimonial-item {
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-1px);
}

.avatar-circle {
    transition: all 0.3s ease;
}

.testimonial-item:hover .avatar-circle {
    transform: scale(1.05);
}

.testimonial-message {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.testimonial-item:hover .testimonial-message {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.testimonial-header h6 {
    color: #333 !important;
    font-weight: 600;
}

.testimonial-content {
    flex-grow: 1;
}

/* ===== CKEDITOR CONTENT STYLING ===== */
.course-content {
    line-height: 1.6;
    color: #333;
}

.course-content h1,
.course-content h2,
.course-content h3,
.course-content h4,
.course-content h5,
.course-content h6 {
    color: #007bff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.course-content h1 { font-size: 2rem; }
.course-content h2 { font-size: 1.75rem; }
.course-content h3 { font-size: 1.5rem; }
.course-content h4 { font-size: 1.25rem; }
.course-content h5 { font-size: 1.1rem; }
.course-content h6 { font-size: 1rem; }

.course-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.course-content ul,
.course-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.course-content li {
    margin-bottom: 0.5rem;
}

.course-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.course-content blockquote {
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.course-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-content table th,
.course-content table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.course-content table th {
    background-color: #007bff;
    color: white;
    font-weight: 600;
}

.course-content table tr:hover {
    background-color: #f8f9fa;
}

.course-content a {
    color: #007bff;
    text-decoration: none;
}

.course-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ===== COURSE CATEGORIES ===== */
.course-categories {
    background-color: #ffffff;
}

.course-category-card {
    transition: all 0.3s ease;
    background-color: #e8f5e8 !important;
    border: 1px solid #d4edda !important;
}

.course-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    background-color: #d4f4d4 !important;
}

.category-image {
    transition: all 0.3s ease;
}

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

.course-category-card h5 {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* ===== PEACE OF MIND SECTION ===== */
.peace-of-mind {
    background-color: #ffffff;
}

.peace-of-mind .step-item {
    transition: all 0.3s ease;
}

.peace-of-mind .step-item:hover {
    transform: translateY(-2px);
}

.peace-of-mind .step-background {
    transition: all 0.3s ease;
    background-color: #e8f5e8 !important;
    border-left: 4px solid #28a745 !important;
}

.peace-of-mind .step-item:hover .step-background {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.peace-of-mind .icon-circle {
    transition: all 0.3s ease;
    background-color: #007bff !important;
}

.peace-of-mind .step-item:hover .icon-circle {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.peace-of-mind h5 {
    color: #007bff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.peace-of-mind .step-content p {
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.pricing-card {
    transition: var(--transition);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-header {
    position: relative;
    z-index: 2;
}

.price-amount {
    position: relative;
}

.price-amount::after {
    content: 'VNĐ';
    font-size: 0.6em;
    position: absolute;
    top: 0.2em;
    margin-left: 0.2em;
}

.pricing-features li {
    padding: 0.25rem 0;
    transition: var(--transition);
}

.pricing-features li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .course-card {
        margin-bottom: 1rem;
    }

    .news-card {
        margin-bottom: 1rem;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .test-item,
    .benefit-item,
    .peace-of-mind .step-item {
        flex-direction: column;
        text-align: center;
    }

    .test-icon,
    .benefit-icon,
    .peace-of-mind .step-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .testimonial-item {
        flex-direction: column;
        text-align: center;
    }

    .avatar-container {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }

    .pricing-card {
        margin-bottom: 1rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }

    .benefits-tabs .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}
