/* Homepage - Modern frontend */
.page-home .main-content { padding: 0; }

/* Hero - medium blue, subtle blurred bg, stacked CTAs on mobile */
.home-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
                rgba(6, 78, 59, 0.96) 0%,
                rgba(40, 199, 111, 0.94) 40%,
                rgba(4, 120, 87, 0.95) 100%),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1920&q=80') center/cover no-repeat;
    background-attachment: scroll;
    color: #fff;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .home-hero {
        background-attachment: fixed;
    }
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 60% at 75% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
    pointer-events: none;
}
.home-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, var(--gray-100, #f1f5f9), transparent);
    pointer-events: none;
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
}
.home-hero .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: .95;
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

/* Hero kicker + quick stats — professional LMS landing */
.home-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.home-hero-kicker i { font-size: 1rem; opacity: 0.95; }
.home-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.home-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}
.home-hero-trust-item i {
    font-size: 1.25rem;
    color: #5eead4;
    opacity: 0.95;
}
/* CTA group: row on desktop, stacked on narrow screens */
.home-hero .d-flex.flex-wrap.gap-3 {
    flex-direction: row;
    gap: 1rem !important;
}
@media (max-width: 575.98px) {
    .home-hero .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        width: 100%;
    }
    .home-hero .btn-hero-cta {
        width: 100%;
        justify-content: center;
    }
}
.home-hero .btn-hero-cta {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
/* Primary: teal-green */
.home-hero .btn-primary.btn-hero-cta {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.45);
}
.home-hero .btn-primary.btn-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.5);
    color: #fff;
}
/* Secondary: white outline */
.home-hero .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    background: transparent;
}
.home-hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}
.home-hero .btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
}
.home-hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Section spacing */
.home-section { padding: 4rem 0; }
.home-section-alt { background: #fff; }
.page-home .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark, #14532d);
    margin-bottom: 0.5rem;
}
.page-home .section-subtitle { color: #64748b; margin-bottom: 2.5rem; }

/* Course cards - hover & rounded */
.home-courses .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.home-courses .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.18);
}
.home-courses .card-img-top {
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary, #28c76f) 0%, var(--accent, #34d399) 100%);
}
.home-courses .card-body { padding: 1.5rem; }
.home-courses .card-title {
    font-weight: 700;
    color: var(--dark, #14532d);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-courses .card-text {
    color: #64748b;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-courses .rating { color: #f59e0b; }
.home-courses .btn-enroll {
    background: linear-gradient(135deg, var(--primary, #28c76f) 0%, var(--accent, #34d399) 100%);
    border: none;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-courses .btn-enroll:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.4);
    color: #fff;
}
.badge-featured { background: linear-gradient(135deg, var(--secondary, #0d9488), #059669) !important; }

/* About section */
.home-about { background: #f8fafc; }
.home-about .about-img {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    overflow: hidden;
}
.home-about .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}
.home-about .stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    transition: transform 0.2s;
}
.home-about .stat-card:hover { transform: translateY(-4px); }
.home-about .stat-card .stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary, #28c76f), var(--accent, #34d399));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-about .stat-card .stat-label { color: #64748b; font-size: 0.9rem; }

/* Testimonials — light surface (#ebf5ff) + green accents (no blue hero strip) */
.home-testimonials {
    background: linear-gradient(135deg, #ebf5ff 0%, #ecfdf5 40%, #d1fae5 100%);
    color: #1c1917;
}
.home-testimonials .section-title { color: #14532d !important; }
.home-testimonials .section-subtitle { color: #475569; }
.home-testimonials .text-muted { color: #64748b !important; }
.home-testimonials .carousel-item {
    padding: 3rem 2rem;
    min-height: 280px;
}
.home-testimonials .testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(40, 199, 111, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.home-testimonials .testimonial-text { font-size: 1.1rem; line-height: 1.7; color: #334155; }
.home-testimonials .testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.home-testimonials .testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #28c76f), var(--accent, #34d399));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.home-testimonials .testimonial-avatar-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
}
.home-testimonials .testimonial-rating { font-size: 0.95rem; margin: 0; }
.home-testimonials .testimonial-name { font-weight: 600; margin: 0; color: #14532d; }
.home-testimonials .testimonial-role { color: #64748b; font-size: 0.9rem; margin: 0; }
.home-testimonials .carousel-control-prev,
.home-testimonials .carousel-control-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(40, 199, 111, 0.92);
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}
.home-testimonials .carousel-control-prev { left: 10px; }
.home-testimonials .carousel-control-next { right: 10px; }
.home-testimonials .carousel-control-prev:hover,
.home-testimonials .carousel-control-next:hover { background: #1fa75d; }
.home-testimonials .carousel-control-prev-icon,
.home-testimonials .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .home-testimonials {
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #111827 100%);
    color: #f3f4f6;
}
[data-bs-theme="dark"] .home-testimonials .section-title { color: #f9fafb !important; }
[data-bs-theme="dark"] .home-testimonials .section-subtitle { color: #d1d5db; }
[data-bs-theme="dark"] .home-testimonials .text-muted { color: #9ca3af !important; }
[data-bs-theme="dark"] .home-testimonials .testimonial-card {
    background: #1f2937;
    border-color: #374151;
    box-shadow: none;
}
[data-bs-theme="dark"] .home-testimonials .testimonial-text { color: #e5e7eb; }
[data-bs-theme="dark"] .home-testimonials .testimonial-name { color: #fff; }
[data-bs-theme="dark"] .home-testimonials .testimonial-role { color: #9ca3af; }
[data-bs-theme="dark"] .home-testimonials .carousel-control-prev,
[data-bs-theme="dark"] .home-testimonials .carousel-control-next { background: rgba(255, 255, 255, 0.12); }
[data-bs-theme="dark"] .home-testimonials .carousel-control-prev:hover,
[data-bs-theme="dark"] .home-testimonials .carousel-control-next:hover { background: rgba(255, 255, 255, 0.22); }
[data-bs-theme="dark"] .home-testimonials .carousel-control-prev-icon,
[data-bs-theme="dark"] .home-testimonials .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .home-section,
[data-bs-theme="dark"] .home-popular,
[data-bs-theme="dark"] .home-about {
    background: #111827 !important;
    color: #f3f4f6;
}
[data-bs-theme="dark"] .home-section .text-dark,
[data-bs-theme="dark"] .home-popular .text-dark {
    color: #f3f4f6 !important;
}

/* Contact / Footer */
.home-footer {
    background: linear-gradient(180deg, #052e16 0%, #020617 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.home-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}
.home-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.home-footer a:hover { color: #fff; }
.home-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.home-footer .footer-links li { margin-bottom: 0.5rem; }
.home-footer .social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: background 0.2s, color 0.2s;
}
.home-footer .social-link:hover { background: var(--primary, #28c76f); color: #fff; }
.home-footer .contact-form .form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    border-radius: 10px;
}
.home-footer .contact-form .form-control::placeholder { color: #94a3b8; }
.home-footer .contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary, #28c76f), var(--accent, #34d399));
    border: none;
    border-radius: 10px;
    font-weight: 600;
}
.home-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
.category-card { border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.1) !important; }
.transition-hover { transition: all 0.2s ease; }

@media (max-width: 991.98px) {
    .home-hero { min-height: 70vh; }
    .home-section { padding: 3rem 0; }
}
