/* ═══════════════════ CUSTOM STYLES ═══════════════════ */

/* Hero Background */
.hero-bg {
    background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 40%, #0a3370 70%, #062040 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(251,188,4,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(26,115,232,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(13,71,161,0.4) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Hero Highlight Animation */
.hero-highlight {
    position: relative;
    display: inline-block;
}
.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(251,188,4,0.3);
    border-radius: 4px;
    z-index: -1;
    animation: highlightGrow 1.5s ease-out 0.5s both;
}
@keyframes highlightGrow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* Float animation for hero card */
.hero-float-card {
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Navigation styles */
#mainNav {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#mainNav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-brand-text { color: #fff; transition: color 0.5s; }
.nav-sub-text { color: rgba(255,255,255,0.7); transition: color 0.5s; }
.nav-link { color: rgba(255,255,255,0.85); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

#mainNav.scrolled .nav-brand-text { color: #0d47a1; }
#mainNav.scrolled .nav-sub-text { color: #9ca3af; }
#mainNav.scrolled .nav-link { color: #4b5563; }
#mainNav.scrolled .nav-link:hover { color: #1a73e8; background: rgba(26,115,232,0.08); }
#mainNav.scrolled #mobileMenuBtn { color: #374151; }

#mobileMenuBtn { color: #fff; }

/* Stat items */
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e5e7eb;
}
@media (max-width: 767px) {
    .stat-item:nth-child(odd)::after { display: block; }
    .stat-item:nth-child(even)::after { display: none; }
}

/* Course cards hover stripe */
.course-card { position: relative; overflow: hidden; }
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-card:hover::before {
    transform: scaleX(1);
}

/* Teacher card hover */
.teacher-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.teacher-card:hover {
    transform: translateY(-8px);
}

/* Showcase card glow */
.showcase-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.showcase-card:hover {
    box-shadow: 0 0 40px rgba(251,188,4,0.15);
}

/* News card image hover */
.news-card .h-48 {
    transition: all 0.5s;
}
.news-card:hover .h-48 {
    background: linear-gradient(135deg, rgba(26,115,232,0.15), rgba(26,115,232,0.05));
}

/* line-clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scroll bar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Smooth scroll */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Selection */
::selection { background: rgba(26,115,232,0.2); }

/* Particles */
.hero-particles {
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.12), transparent),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.08), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(251,188,4,0.1), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(251,188,4,0.08), transparent);
    background-size: 200% 200%;
    animation: particleDrift 20s linear infinite;
}
@keyframes particleDrift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
