/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Category hover effect */
.hover-group {
    transition: all 0.3s ease;
    border-radius: 16px;
}
.hover-group:hover {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    transform: translateX(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
}

/* Course Card Styles */
.course-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.10);
}
.course-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}
.course-card:hover .course-img img {
    transform: scale(1.05);
}
.course-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #333;
}
.course-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888;
}
.course-meta span {
    background: #f8f9fa;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}
.register-count {
    color: #ff6b6b !important;
}
.course-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}
.course-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Blog Card Styles */
.blog-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.10);
}
.blog-card-img {
    transition: all 0.3s ease;
    height: 250px;
    object-fit: cover;
}
.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}
.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: all 0.3s ease;
}
.blog-card:hover .blog-card-overlay {
    opacity: 1;
}
.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}
.blog-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.category-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}
.category-tag-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.category-tag-success { background: linear-gradient(135deg, #11998e, #38ef7d); }
.category-tag-warning { background: linear-gradient(135deg, #f093fb, #f5576c); }
.category-tag-info { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.category-tag-danger { background: linear-gradient(135deg, #fa709a, #fee140); }
.category-tag-secondary { background: linear-gradient(135deg, #a8edea, #fed6e3); }

.date-tag, .read-time-tag {
    background: rgba(255,255,255,0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #333;
}
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}
.trending-badge {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}
.author-avatar-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.author-avatar-success { background: linear-gradient(135deg, #11998e, #38ef7d); }
.author-avatar-warning { background: linear-gradient(135deg, #f093fb, #f5576c); }
.author-avatar-info { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.author-avatar-danger { background: linear-gradient(135deg, #fa709a, #fee140); }
.author-avatar-secondary { background: linear-gradient(135deg, #a8edea, #fed6e3); }

.read-more-link {
    color: #667eea;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.read-more-link:hover {
    color: #764ba2;
    transform: translateX(-5px);
}
.stat-badge {
    font-size: 0.8rem;
    color: #888;
}
.reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    opacity: 0;
    transition: all 0.3s ease;
}
.blog-card:hover .reading-progress {
    opacity: 1;
}
.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0;
    transition: width 0.3s ease;
}
.blog-card:hover .reading-progress-bar {
    width: 100%;
}

/* Gradient Background */
.gradient-top-to-bottom {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

/* Customer Testimonial */
.customer-testi {
    background: #fff;
    border-radius: 24px;
    padding: 35px 25px !important;
    transition: all 0.3s ease;
}
.customer-testi:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.10);
}

/* Nav Pills */
.nav-pills .nav-link {
    color: #666;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border-radius: 12px;
}
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Team Section */
.team {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    transition: all 0.3s ease;
}
.team:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.10);
}
.avatar-ex-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
}
.avatar-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.social-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
}
.team:hover .social-icon {
    opacity: 1;
    bottom: 20px;
}
.social-icon li a {
    background: white;
    color: #667eea;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


/* ── Hero ── */
.lms-hero {
    background: linear-gradient(160deg, #eef4ff 0%, #f0f7ff 45%, #ffffff 100%);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-1 { width: 420px; height: 420px; top: -120px; left: -100px; background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%); }
.hero-orb-2 { width: 300px; height: 300px; bottom: 0; right: 80px; background: radial-gradient(circle, rgba(56,189,248,0.07) 0%, transparent 70%); }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: 13px; padding: 6px 16px; border-radius: 999px; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; flex-shrink: 0; }

.hero-heading { font-size: 2.6rem; font-weight: 800; color: #0f172a; line-height: 1.25; }
.hero-heading-accent { background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: #64748b; font-size: 1rem; line-height: 1.8; }

.hero-search { display: flex; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px rgba(37,99,235,0.08); }
.hero-search input { flex: 1; background: transparent; border: none; outline: none; color: #1e293b; font-size: 15px; padding: 14px 18px; }
.hero-search input::placeholder { color: #94a3b8; }
.hero-search button { background: linear-gradient(135deg, #2563eb, #7c3aed); border: none; color: white; padding: 14px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.hero-search button:hover { opacity: 0.9; }

.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chip { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-size: 13px; padding: 5px 14px; border-radius: 999px; text-decoration: none; transition: all 0.2s; }
.hero-chip:hover { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; text-decoration: none; }

.hero-img-card { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px rgba(37,99,235,0.12); }
.hero-img-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.hero-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.5) 0%, transparent 55%); }
.hero-img-label { position: absolute; bottom: 14px; right: 14px; background: rgba(255,255,255,0.95); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.hero-img-label-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg,#2563eb,#7c3aed); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hero-img-label-title { font-size: 13px; font-weight: 600; color: #0f172a; }
.hero-img-label-sub { font-size: 11px; color: #64748b; }
.hero-float-badge { position: absolute; top: 14px; left: 14px; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: #0f172a; display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.hero-mini-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.hero-mini-num { font-size: 22px; font-weight: 800; background: linear-gradient(135deg,#2563eb,#7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-mini-lbl { font-size: 12px; color: #94a3b8; margin-top: 3px; }

.hero-stats-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: #e2e8f0; border-top: 1px solid #e2e8f0; margin-top: 48px; }
.hero-stat { background: #fff; padding: 22px 20px; display: flex; align-items: center; gap: 14px; }
.hero-stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-stat-num { font-size: 20px; font-weight: 700; color: #0f172a; }
.hero-stat-lbl { font-size: 12px; color: #94a3b8; margin-top: 2px; }

@media (max-width: 991px) {
    .hero-heading { font-size: 2rem; }
    .hero-stats-bar { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 576px) {
    .lms-hero { padding: 50px 0 0; }
    .hero-heading { font-size: 1.7rem; }
    .hero-img-card img { height: 200px; }
}


/* ── Course section v2 ── */
.course-see-all {
    display: inline-flex; align-items: center; gap: 4px;
    color: #2563eb; font-size: 13px; font-weight: 600;
    background: #eff6ff; border: 1px solid #bfdbfe;
    padding: 6px 14px; border-radius: 999px; text-decoration: none;
    transition: all 0.2s;
}
.course-see-all:hover { background: #dbeafe; color: #1d4ed8; text-decoration: none; }

.course-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.course-tab {
    font-size: 13px; padding: 6px 15px; border-radius: 999px;
    border: 1px solid #e2e8f0; color: #64748b; background: #f8fafc;
    cursor: pointer; font-weight: 500; transition: all 0.15s;
}
.course-tab.active, .course-tab:hover {
    background: #0f172a; color: #fff; border-color: #0f172a;
}

.course-card-v2 {
    background: #fff; border: 1px solid #e9ecef;
    border-radius: 14px; overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    height: 100%; display: flex; flex-direction: column;
}
.course-card-v2:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.10);
    transform: translateY(-4px);
}
.course-card-img {
    position: relative; height: 148px;
    background: #f1f5f9; overflow: hidden;
}
.course-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.course-card-v2:hover .course-card-img img { transform: scale(1.04); }

.course-bookmark {
    position: absolute; top: 9px; left: 9px;
    width: 28px; height: 28px; background: rgba(255,255,255,0.92);
    border-radius: 7px; display: flex; align-items: center;
    justify-content: center; font-size: 15px; color: #64748b;
    cursor: pointer; transition: color 0.2s;
}
.course-bookmark:hover { color: #2563eb; }
.course-hot-badge {
    position: absolute; top: 9px; right: 9px;
    background: linear-gradient(135deg,#ef4444,#f97316);
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
}

.course-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.course-card-title {
    font-size: 14px; font-weight: 700; color: #0f172a;
    margin-bottom: 7px; line-height: 1.45;
}
.course-card-meta {
    font-size: 12px; color: #94a3b8; margin-bottom: 10px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
}
.course-card-footer {
    display: flex; align-items: center;
    justify-content: space-between; margin-top: auto;
}
.course-price-wrap { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.course-price-old { font-size: 12px; color: #94a3b8; text-decoration: line-through; }
.course-price-new { font-size: 14px; font-weight: 700; color: #0f172a; }
.course-enroll-btn {
    font-size: 12px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none; padding: 6px 14px; border-radius: 999px;
    text-decoration: none; white-space: nowrap; transition: opacity 0.2s;
}
.course-enroll-btn:hover { opacity: 0.88; color: #fff; text-decoration: none; }


/* Hero Section */
        .courses-hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 4rem 0;
            position: relative;
            overflow: hidden;
        }
        .courses-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
            background-size: cover;
            opacity: 0.3;
        }
        .courses-hero-content {
            position: relative;
            z-index: 1;
            color: white;
            text-align: center;
        }
        .courses-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255,255,255,0.2);
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-size: 0.875rem;
            margin-bottom: 1rem;
            backdrop-filter: blur(10px);
        }
        .courses-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }
        .courses-subtitle {
            font-size: 1rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }