:root {
    --primary-color: #ec4899;
    --secondary-color: #ef4444;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --text-dark: #2b2d42;
    --text-muted: #6c757d;
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override Bootstrap primary color */
.text-primary,
.badge .text-primary,
.feature-item .text-primary,
.floating-card .text-primary,
.hero-features .text-primary,
i.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary,
.btn.bg-primary {
    background: var(--gradient) !important;
    border-color: var(--primary-color) !important;
}

/* Force primary color for icons */
.fas.text-primary,
.fa.text-primary {
    color: var(--primary-color) !important;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand img {
    height: 40px;
}

.navbar .btn-primary {
    border-radius: 25px !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    background: white;
    min-height: 100vh;
    position: relative;
    padding: 2rem 0;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation: float 10s ease-in-out infinite;
}

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

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

.hero-badge .badge {
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-actions .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-features {
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 2rem;
    display: block;
}

.feature-item small {
    display: block;
    font-size: 0.85rem;
    color: white;
}

/* Hero Image */
.hero-image-container {
    position: relative;
    z-index: 2;
}

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

.hero-main-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 30%;
    left: -10%;
    animation-delay: 1s;
}

.floating-card-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

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

/* Stats Section */
.stats-section {
    background: #f8f9fa;
}

.stats-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

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

.stats-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(239, 68, 68, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stats-icon i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stats-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Courses Section */
.courses-section {
    background: white;
}

.course-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    background: white;
}

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

.course-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.course-card .card-body {
    padding: 1.75rem;
}

.course-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.course-instructor {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Features Section */
.feature-card {
    padding: 2.5rem;
    text-align: center;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-card {
        display: none;
    }

    .hero-image {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stats-card {
        margin-bottom: 1.5rem;
    }

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

    .feature-card {
        margin-bottom: 1.5rem;
    }
}

/* Instructors Section */
.instructors-section {
    background: white;
}

.instructor-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
    height: 100%;
}

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

.instructor-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

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

.instructor-info {
    padding: 1.5rem;
}

.instructor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.instructor-email {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* News Section */
.news-section {
    background: #f8f9fa;
}

.news-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.news-date {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-content {
    padding: 1.75rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--secondary-color);
    gap: 0.5rem;
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .instructor-card {
        margin-bottom: 1.5rem;
    }

    .instructor-image {
        height: 220px;
    }

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

    .news-image {
        height: 180px;
    }
}
/* ================= HEADER / NAVBAR HOME ================= */

.navbar-home {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.navbar-home .navbar-brand {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Logo tròn gradient */
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 0 0, rgba(236, 72, 153, 0.35), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(239, 68, 68, 0.35), transparent 55%),
        var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.45);
}

.brand-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Link nav */
.navbar-home .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

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

/* SEARCH BAR TRONG HEADER */
.navbar-search {
    flex: 1;
    max-width: 520px;
}

.search-input-group {
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
    transition: all 0.25s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.25);
}

.search-input-group .input-group-text {
    border: none;
    background: transparent;
    padding-left: 16px;
}

.search-input-group .form-control {
    border: none;
    box-shadow: none !important;
    padding: 10px 0;
    font-size: 0.95rem;
}

.search-input-group .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-input-group .form-control:focus {
    outline: none;
}

/* Nút search riêng để khỏi đụng .btn-primary */
.search-input-group .btn-search {
    border-radius: 999px;
    border: none;
    padding: 8px 18px;
    margin-right: 6px;
    margin-top: 3px;
    margin-bottom: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.search-input-group .btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.6);
}

/* BUTTON ĐĂNG NHẬP / ĐĂNG KÝ */
.btn-login-outline {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151 !important;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.btn-login-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
    transform: translateY(-1px);
}

.btn-signup-gradient {
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: var(--gradient);
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-signup-gradient:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    color: #fff !important;
}

/* RESPONSIVE HEADER */
@media (max-width: 991.98px) {
    .navbar-home {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .navbar-search {
        max-width: 100%;
        margin: 0.75rem 0 1rem;
    }

    .navbar-home .navbar-nav {
        gap: 0.5rem;
    }

    .btn-login-outline,
    .btn-signup-gradient {
        width: 100%;
        justify-content: center;
    }
}
