/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --header-height: 70px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-body: #020617;
    --bg-alt: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.navbar-dark-mode {
    background-color: #020617 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
    backdrop-filter: blur(12px);
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.2s;
}
.navbar-brand:hover img { transform: scale(1.05); }

.nav-link-custom {
    color: #94a3b8 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.nav-link-custom:hover, .nav-link-custom.active {
    color: white !important;
    background: rgba(255,255,255,0.05);
}

/* Menu Highlights */
.link-cs:hover { color: #818cf8 !important; background: rgba(99, 102, 241, 0.1); }
.link-ip:hover { color: #fbbf24 !important; background: rgba(245, 158, 11, 0.1); }

.navbar-toggler { border: none; padding: 0; color: white; }
.navbar-toggler:focus { box-shadow: none; }

/* Login Button */
.btn-auth-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(255,255,255,0.1);
    color: white !important;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.btn-auth-blue:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    color: white;
}

/* =========================================
   3. FOOTER
   ========================================= */
.site-footer {
    background-color: #020617;
    color: #94a3b8;
    padding-top: 60px;
    padding-bottom: 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-top: 1px solid #1e293b;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    max-height: 40px;
    margin-bottom: 20px;
}

.footer-heading {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}
.footer-links a:hover {
    color: #38bdf8;
    padding-left: 5px;
}
.footer-links a i { font-size: 0.8rem; margin-left: 6px; opacity: 0.7; }

.footer-divider { border-color: #1e293b; margin: 40px 0; }

.social-icon {
    width: 36px; height: 36px;
    background: #1e293b;
    color: white;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}
.social-icon:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-3px);
}

/* =========================================
   6. STATS STRIP
   ========================================= */
.stats-strip { 
    background: #020617; 
    border-bottom: 1px solid rgba(255,255,255,0.08); 
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 15px 0; 
}
.stat-item { display: flex; align-items: center; justify-content: center; gap: 15px; height: 100%; }
.stat-icon-box {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: grid; place-items: center;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: 0.3s;
}
.stat-item:hover .stat-icon-box { background: rgba(79, 70, 229, 0.2); color: #818cf8; border-color: #818cf8; }
.stat-text { text-align: left; line-height: 1.2; }
.stat-num { font-size: 1.1rem; font-weight: 800; color: #f8fafc; display: block; font-family: 'Outfit', sans-serif; }
.stat-label { font-size: 0.7rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }
.border-right-dark { border-right: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 768px) {
    .border-right-dark { border-right: none; margin-bottom: 15px; }
    .stats-strip { padding: 20px 0; }
    .stat-item { justify-content: flex-start; padding-left: 20px; }
}

/* =========================================
   7. UNIFIED CARDS (Tools & Courses)
   ========================================= */
.section-header { text-align: center; margin-bottom: 30px; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 5px; color: var(--text-main); }

/* Tools Cards */
.unified-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex; flex-direction: column; position: relative; overflow: hidden; text-align: left;
}
.unified-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255,255,255,0.03) 100%);
    border-color: transparent;
}
.unified-card::before {
    content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 2px;
    background: linear-gradient(45deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; transition: 0.3s;
}
.card-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.8rem; margin-bottom: 20px;
    transition: all 0.4s ease;
}
.unified-card:hover .card-icon { transform: scale(1.15) rotate(-5deg); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2); }
.card-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.card-desc { font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; line-height: 1.6; color: var(--text-muted); }
.card-btn { font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; margin-top: auto; opacity: 0.9; }
.card-btn i { transition: transform 0.3s ease; }
.unified-card:hover .card-btn i { transform: translateX(6px); }
.unified-card:hover .card-btn { opacity: 1; letter-spacing: 0.5px; }

/* Course Cards */
.course-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.course-header { padding: 20px; background: #1e293b; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); }
.course-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.course-tag { background: rgba(255,255,255,0.15); font-size: 0.7rem; padding: 4px 12px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.course-icon { font-size: 1.5rem; color: #94a3b8; }
.course-title { font-size: 1.3rem; font-weight: 700; margin: 0; color: white; line-height: 1.3; }
.course-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.topic-list { list-style: none; padding: 0; margin: 0 0 20px 0; flex-grow: 1; }
.topic-list li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 10px; padding-left: 24px; position: relative; line-height: 1.5; font-weight: 500; }
.topic-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--primary); font-size: 0.8rem; top: 4px; }
.btn-course { width: 100%; display: block; text-align: center; background: var(--primary); color: white; padding: 12px; border-radius: 8px; font-weight: 700; border: none; transition: 0.2s; font-size: 1rem; box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3); }
.btn-course:hover { background: #4338ca; color: white; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4); }

/* =========================================
   8. SPOTLIGHT SECTION
   ========================================= */
.spotlight-section { padding: 60px 0; background: linear-gradient(to bottom, var(--bg-body), var(--bg-alt)); }
.spotlight-card { max-width: 900px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 50px 40px 80px 40px; text-align: center; box-shadow: 0 15px 50px -10px rgba(0,0,0,0.08); position: relative; overflow: hidden; }
.spotlight-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; opacity: 0.8; display: inline-block; background: rgba(79, 70, 229, 0.1); width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin-left: auto; margin-right: auto; }
.spotlight-title { color: var(--text-main); font-size: 1.5rem; font-weight: 800; margin-bottom: 15px; display: block; letter-spacing: -0.5px; }
.spotlight-text { font-size: 1.15rem; line-height: 1.7; color: var(--text-muted); font-weight: 500; margin-bottom: 0; font-family: 'Plus Jakarta Sans', sans-serif; max-width: 750px; margin-left: auto; margin-right: auto; }
.spotlight-indicators { bottom: 25px; margin-bottom: 0; }
.spotlight-indicators button { width: 10px !important; height: 10px !important; border-radius: 50%; background-color: var(--primary) !important; opacity: 0.3; border: none; margin: 0 5px; }
.spotlight-indicators .active { opacity: 1; transform: scale(1.3); }
.carousel-fade .carousel-item { opacity: 0; transition-duration: .6s; transition-property: opacity; }
.carousel-fade .carousel-item.active { opacity: 1; }