/* =========================================================
   SkillNest Academy - Custom Theme (built on top of Bootstrap 4)
   ========================================================= */

:root {
    --brand-primary: #14235e;
    --brand-primary-light: #2f56d9;
    --brand-accent: #f4a300;
    --brand-accent-dark: #d68c00;
    --brand-dark: #0c1638;
    --text-muted-light: #a9b2c9;
    --radius: 14px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333d4d;
    background: #fbfbfe;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--brand-dark); }

a { transition: all .2s ease; }
a:hover { text-decoration: none; }

.text-muted-light { color: var(--text-muted-light); }

/* ---------- Buttons ---------- */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(244, 163, 0, .35);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244, 163, 0, .45); }

.btn-outline-brand {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
    border-radius: 50px;
    background: transparent;
}
.btn-outline-brand:hover { background: var(--brand-primary); color: #fff; }

.btn-navy {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    border: none;
}
.btn-navy:hover { background: var(--brand-dark); color: #fff; }

/* ---------- Top bar & Navbar ---------- */
.top-bar {
    background: var(--brand-dark);
    color: #c7cee6;
    font-size: .85rem;
    padding: 8px 0;
}
.top-bar i { color: var(--brand-accent); margin-right: 4px; }

.main-nav { padding: 14px 0; box-shadow: 0 2px 20px rgba(20, 35, 94, .08); }
.navbar-brand { font-weight: 800; color: var(--brand-primary) !important; font-size: 1.4rem; }
.navbar-brand i { color: var(--brand-accent); }
.nav-link { font-weight: 500; color: #45507a !important; margin: 0 10px; position: relative; }
.nav-link.active, .nav-link:hover { color: var(--brand-primary) !important; }
.nav-link.active::after {
    content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--brand-accent);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(120deg, var(--brand-primary) 0%, #1c3a99 60%, var(--brand-primary-light) 100%);
    position: relative;
    color: #fff;
    padding: 100px 0 130px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -80px; right: -80px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(244,163,0,.35) 0%, rgba(244,163,0,0) 70%);
    border-radius: 50%;
}
.hero h1 { color: #fff; font-size: 2.7rem; font-weight: 800; }
.hero p.lead { color: #d7ddf3; font-size: 1.15rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    padding: 6px 16px; border-radius: 50px; font-size: .85rem; margin-bottom: 20px;
}
.hero-badge i { color: var(--brand-accent); }

.hero-stats { margin-top: 50px; }
.hero-stats .stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stats .stat-label { color: #b9c2e4; font-size: .85rem; }

.hero-shape-bottom {
    position: absolute; left: 0; right: 0; bottom: -2px; line-height: 0;
}

/* ---------- Section Heading ---------- */
.section-pad { padding: 90px 0; }
.section-tag {
    color: var(--brand-primary-light); font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; font-size: .8rem;
}
.section-title { font-size: 2.1rem; margin-top: 8px; }
.section-sub { color: #77839e; max-width: 620px; }

/* ---------- Category Pills ---------- */
.category-pill {
    display: inline-block; padding: 8px 22px; border-radius: 50px; margin: 5px;
    background: #fff; border: 1px solid #e3e7f5; color: #45507a; font-weight: 500; font-size: .9rem;
}
.category-pill.active, .category-pill:hover {
    background: var(--brand-primary); border-color: var(--brand-primary); color: #fff;
}

/* ---------- Course Card ---------- */
.course-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 8px 30px rgba(20, 35, 94, .07);
    border: 1px solid #eef0f8;
    height: 100%; transition: all .25s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(20, 35, 94, .14); }
.course-thumb {
    height: 150px; display: flex; align-items: center; justify-content: center; position: relative;
}
.course-thumb i { font-size: 3rem; color: rgba(255,255,255,.95); }
.course-thumb .badge-featured {
    position: absolute; top: 12px; right: 12px; background: var(--brand-accent); color: #fff;
    font-size: .7rem; padding: 5px 12px; border-radius: 50px; font-weight: 600;
}
.course-body { padding: 22px; }
.course-category { color: var(--brand-primary-light); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.course-title { font-size: 1.12rem; margin: 8px 0 10px; line-height: 1.4; }
.course-title a { color: var(--brand-dark); }
.course-title a:hover { color: var(--brand-primary-light); }
.course-meta { font-size: .82rem; color: #7c869e; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.course-meta span i { color: var(--brand-accent); margin-right: 4px; }
.course-footer-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f2fa; padding-top: 14px; }
.course-price { font-size: 1.25rem; font-weight: 800; color: var(--brand-primary); }
.course-price small { color: #b3bbd2; text-decoration: line-through; font-weight: 500; font-size: .85rem; margin-left: 6px; }
.rating-stars { color: var(--brand-accent); font-size: .82rem; }

/* ---------- Why Choose Us ---------- */
.feature-box {
    background: #fff; padding: 30px 24px; border-radius: var(--radius); height: auto;
    box-shadow: 0 8px 24px rgba(20,35,94,.06); border: 1px solid #eef0f8; text-align: center;
}
.feature-icon {
    width: 66px; height: 66px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff; font-size: 1.7rem; margin: 0 auto 18px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand-primary));
    border-radius: 24px; color: #fff; padding: 60px 40px; position: relative; overflow: hidden;
}
.cta-banner::after {
    content: ''; position: absolute; bottom: -60px; left: -60px; width: 250px; height: 250px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244,163,0,.3), transparent 70%);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(20,35,94,.06);
    border: 1px solid #eef0f8; height: 100%;
}
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--brand-primary-light); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Course Detail Page ---------- */
.course-hero {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand-primary));
    color: #fff; padding: 60px 0;
}
.course-sidebar-card {
    background: #fff; border-radius: var(--radius); box-shadow: 0 10px 34px rgba(20,35,94,.12);
    padding: 26px; border: 1px solid #eef0f8;
}
.curriculum-item {
    border: 1px solid #eef0f8; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff;
    display: flex; align-items: center; gap: 12px;
}
.curriculum-item .num {
    width: 32px; height: 32px; border-radius: 50%; background: #eef1fb; color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}

/* ---------- Forms ---------- */
.form-card {
    background: #fff; border-radius: var(--radius); box-shadow: 0 10px 34px rgba(20,35,94,.1);
    padding: 34px; border: 1px solid #eef0f8;
}
.form-control { border-radius: 8px; padding: 22px 16px; border: 1px solid #e3e7f5; font-size: .93rem; }
.form-control:focus { border-color: var(--brand-primary-light); box-shadow: 0 0 0 .2rem rgba(47,86,217,.12); }
label { font-weight: 600; font-size: .88rem; color: #45507a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #b9c2e4; padding-top: 70px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff !important; }
.footer-brand i { color: var(--brand-accent); }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 18px; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: .9rem; }
.footer-links a { color: #b9c2e4; }
.footer-links a:hover { color: var(--brand-accent); }
.social-icons a {
    display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; border-radius: 50%; margin-right: 8px;
}
.social-icons a:hover { background: var(--brand-accent); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 20px 0; font-size: .85rem; color: #8891b3;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.5); z-index: 999;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Page Header (inner pages) ---------- */
.page-header {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand-primary));
    color: #fff; padding: 60px 0; text-align: center;
}
.page-header h1 { color: #fff; }
.breadcrumb-custom a { color: #c7cee6; }
.breadcrumb-custom span { color: var(--brand-accent); }

/* ---------- Misc ---------- */
.badge-soft-success { background: #e6f7ef; color: #1a9c68; padding: 6px 14px; border-radius: 50px; font-weight: 600; font-size: .8rem; }
.badge-soft-warning { background: #fff3e0; color: #d68c00; padding: 6px 14px; border-radius: 50px; font-weight: 600; font-size: .8rem; }

@media (max-width: 767px) {
    .hero { padding: 70px 0 90px; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .section-pad { padding: 60px 0; }
    .cta-banner { padding: 40px 22px; text-align: center; }
}
