/* ===== Home Page ===== */

.home-hero {
    background: linear-gradient(135deg, #031633 0%, #066ac9 45%, #0cbc87 100%);
    margin-top: -1rem;
    padding: 3rem 0 4rem;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 193, 7, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.home-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.home-hero-shape-1 {
    width: 280px;
    height: 280px;
    background: #ffc107;
    top: -80px;
    left: -60px;
}

.home-hero-shape-2 {
    width: 220px;
    height: 220px;
    background: #0cbc87;
    bottom: -40px;
    right: 10%;
}

.home-hero-content {
    position: relative;
    z-index: 2;
}

.home-hero-title {
    color: #fff;
    line-height: 1.45;
    font-weight: 800;
}

.home-hero-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 540px;
}

.home-hero-badge {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #ffc107;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 50rem;
}

.home-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.home-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.16);
}

.home-stat-card .stat-icon {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 0.35rem;
}

.home-stat-card .stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    margin: 0;
}

.home-hero-visual {
    position: relative;
    min-height: 380px;
}

.home-hero-img-main {
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.home-hero-img-float {
    position: absolute;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.25);
    object-fit: cover;
}

.home-hero-img-float-1 {
    width: 42%;
    aspect-ratio: 1;
    bottom: -10px;
    right: -15px;
    animation: homeFloat 6s ease-in-out infinite;
}

.home-hero-img-float-2 {
    width: 38%;
    aspect-ratio: 1;
    top: 20px;
    left: -20px;
    animation: homeFloat 5s ease-in-out infinite reverse;
}

.home-hero-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px dashed rgba(255, 193, 7, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: homeSpin 20s linear infinite;
    pointer-events: none;
}

@keyframes homeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes homeSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Trust strip */
.home-trust-strip {
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.25rem 0;
}

.home-trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.home-trust-item i {
    font-size: 1.25rem;
    color: var(--bs-primary);
}

/* Category cards */
.home-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.home-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(6, 106, 201, 0.15);
    border-color: var(--bs-primary);
    color: inherit;
}

.home-category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.home-category-card:hover .home-category-icon {
    background: var(--bs-primary);
    color: #fff;
}

.home-category-card h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.home-category-card small {
    color: var(--bs-secondary-color);
}

/* Value props */
.home-value-card {
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    height: 100%;
    transition: all 0.3s ease;
}

.home-value-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.home-value-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Section headers */
.section-tag {
    display: inline-block;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 50rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.section-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--bs-secondary-color);
    max-width: 560px;
    margin: 0 auto;
}

/* Course card hover */
.home-course-card {
    transition: transform 0.3s ease;
}

.home-course-card:hover {
    transform: translateY(-4px);
}

.home-course-card .card-img {
    transition: transform 0.4s ease;
}

.home-course-card:hover .card-img {
    transform: scale(1.03);
}

/* Featured courses slider (home) */
.home-featured-courses .home-featured-slider {
    margin: 0 -0.25rem;
}

.home-featured-courses .home-featured-slider .tns-outer {
    padding: 0 0.25rem;
}

.home-featured-courses .home-featured-course-card {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    .home-featured-courses .home-featured-course-card {
        max-width: 320px;
    }
}

.home-featured-courses .home-featured-course-img {
    background: var(--bs-light);
}

.home-featured-courses .home-featured-course-img .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-featured-courses .home-featured-course-address {
    max-width: 100%;
    min-width: 0;
}

.home-featured-courses .card-title {
    font-size: 0.95rem;
}

@media (min-width: 576px) {
    .home-featured-courses .card-title {
        font-size: 1rem;
    }
}

/* Home blog strip */
.home-blog-section .blog-card {
    width: 100%;
    height: 100%;
}

.home-blog-section .blog-card-summary {
    -webkit-line-clamp: 2;
}

/* CTA pulse */
.btn-hero-primary {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

@media (max-width: 991.98px) {
    .home-hero {
        padding: 2rem 0 3rem;
    }

    .home-hero-visual {
        min-height: 280px;
        margin-top: 2rem;
    }

    .home-hero-img-float-1,
    .home-hero-img-float-2 {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .home-hero-title {
        font-size: 1.75rem;
    }
}
