/* =========================================================
   BAKELEARN HOME PAGE
   ========================================================= */


/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section {
    position: relative;
    min-height: 680px;

    display: flex;
    align-items: center;

    padding: 80px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 166, 201, 0.25),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(89, 181, 247, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fff8f0 0%,
            #ffffff 55%,
            #f3f9ff 100%
        );
}


/* Hero overlay */

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0)
        );

    pointer-events: none;
}


/* Keep hero content above overlay */

.hero-section .container {
    position: relative;
    z-index: 2;
}


/* Hero row height */

.min-vh-75 {
    min-height: 75vh;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    padding-top: 30px;
    padding-bottom: 30px;
}


/* Badge */

.hero-badge {
    display: inline-flex;

    align-items: center;

    padding: 11px 20px;

    background: rgba(255, 255, 255, 0.95);

    color: #59b5f7;

    border-radius: 50px;

    font-weight: 600;

    font-size: 0.95rem;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}


/* Hero heading */

.hero-title {
    max-width: 850px;

    margin-top: 20px;

    color: #18243a;

    font-size: clamp(
        2.8rem,
        5vw,
        4.5rem
    );

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -1.5px;
}


/* Highlight */

.hero-title span {
    display: block;

    color: #59b5f7;
}


/* Description */

.hero-description {
    max-width: 680px;

    margin-top: 25px;

    color: #64748b;

    font-size: 1.15rem;

    line-height: 1.8;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 25px;
}


.hero-buttons .btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 30px;

    border-radius: 50px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.hero-buttons .btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12);
}


/* Explore Courses */

.hero-buttons .btn-primary {
    background: #59b5f7;

    border-color: #59b5f7;
}


.hero-buttons .btn-primary:hover {
    background: #3498f5;

    border-color: #3498f5;
}


/* Shop Cakes */

.hero-buttons .btn-light {
    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.05);

    color: #18243a;
}


.hero-buttons .btn-light:hover {
    background: #fff0f6;

    color: #e86f9e;
}


/* =========================================================
   HERO RATING
   ========================================================= */

.hero-rating {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 35px;

    color: #475569;

    font-size: 0.95rem;

    font-weight: 500;
}


.hero-stars {
    color: #f5b942;

    font-size: 1.1rem;

    letter-spacing: 2px;
}


/* Existing stars support */

.stars {
    color: #ffc107;

    font-size: 22px;
}


/* =========================================================
   HERO SIDE CARD
   ========================================================= */

.hero-side-card {
    position: relative;

    width: 100%;

    max-width: 400px;

    margin: 0 auto;

    padding: 35px 30px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.9);

    border-radius: 28px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.10);

    backdrop-filter: blur(12px);

    overflow: visible;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.hero-side-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.13);
}


/* Decorative circle */

.hero-side-card::before {
    content: "";

    position: absolute;

    width: 110px;

    height: 110px;

    top: -35px;

    right: -30px;

    border-radius: 50%;

    background: rgba(255, 166, 201, 0.25);

    z-index: -1;
}


/* =========================================================
   HERO SIDE ICON
   ========================================================= */

.hero-side-icon {
    position: relative;

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    border-radius: 20px;

    background: #fff0f6;

    color: #ff8fba;

    font-size: 1.8rem;
}


/* =========================================================
   HERO SIDE CARD TEXT
   ========================================================= */

.hero-side-card h3 {
    margin: 0 0 12px;

    color: #18243a;

    font-size: 1.6rem;

    font-weight: 700;
}


.hero-side-card p {
    margin: 0 0 20px;

    color: #64748b;

    line-height: 1.7;
}


/* =========================================================
   HERO MINI FEATURES
   ========================================================= */

.hero-mini-features {
    display: flex;

    flex-direction: column;

    gap: 12px;

    padding-top: 18px;

    border-top: 1px solid #edf1f5;
}


.hero-mini-features div {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #475569;

    font-size: 0.95rem;

    line-height: 1.4;
}


.hero-mini-features i {
    flex-shrink: 0;

    color: #28a745;

    font-size: 0.95rem;
}


/* =========================================================
   HERO CARD CTA
   ========================================================= */

.hero-card-footer {
    display: block;

    position: relative;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid #edf1f5;
}


.hero-card-footer a {
    display: inline-flex;

    align-items: center;

    color: #59b5f7;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.hero-card-footer a:hover {
    color: #3498f5;

    transform: translateX(3px);
}


/* =========================================================
   HERO IMAGE SUPPORT
   ========================================================= */

.hero-image-wrapper {
    position: relative;
}


.hero-image {
    width: 100%;

    max-width: 550px;

    animation: float 5s ease-in-out infinite;
}


/* =========================================================
   FLOATING CARDS
   ========================================================= */

.floating-card {
    position: absolute;

    background: #ffffff;

    padding: 15px 20px;

    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    font-weight: 600;
}


.students {
    top: 40px;

    left: -20px;
}


.courses {
    top: 220px;

    right: -30px;
}


.cakes {
    bottom: 20px;

    left: 30px;
}


/* =========================================================
   FLOAT ANIMATION
   ========================================================= */

@keyframes float {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }

}


/* =========================================================
   STATISTICS
   ========================================================= */

.statistics-section {
    background: #ffffff;

    padding: 80px 0;
}


.stat-card {
    background: #ffffff;

    padding: 40px 25px;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    transition:
        all 0.3s ease;

    height: 100%;
}


.stat-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12);
}


.stat-icon {
    width: 80px;

    height: 80px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #eef7ff;

    color: #59b5f7;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 34px;
}


.stat-card h2 {
    font-size: 42px;

    font-weight: 700;

    color: #1f2937;

    margin-bottom: 10px;
}


.stat-card p {
    color: #6b7280;

    font-size: 16px;

    margin: 0;
}


/* =========================================================
   TRUSTED BY
   ========================================================= */

.trusted-section {
    background: #ffffff;

    padding: 70px 0;
}


.trusted-card {
    background: #ffffff;

    border-radius: 18px;

    padding: 35px 25px;

    text-align: center;

    transition: 0.35s;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.06);

    height: 100%;
}


.trusted-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12);
}


.trusted-card i {
    font-size: 42px;

    color: #59b5f7;

    margin-bottom: 20px;
}


.trusted-card h5 {
    font-weight: 700;

    margin-bottom: 15px;
}


.trusted-card p {
    color: #6b7280;

    margin: 0;

    line-height: 1.7;
}


/* =========================================================
   COURSE CATEGORIES
   ========================================================= */

.course-categories {
    background: #f8fafc;

    padding: 90px 0;
}


.category-card {
    background: #ffffff;

    border-radius: 20px;

    padding: 40px 30px;

    text-align: center;

    transition: 0.35s;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.06);

    height: 100%;

    cursor: pointer;
}


.category-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 25px 45px rgba(0, 0, 0, 0.12);
}


.category-icon {
    width: 90px;

    height: 90px;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: #eaf6ff;

    color: #59b5f7;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 40px;
}


.category-card h4 {
    font-weight: 700;

    margin-bottom: 10px;
}


.category-card p {
    color: #6b7280;

    margin: 0;
}


/* =========================================================
   FEATURED COURSES
   ========================================================= */

.featured-courses {
    background: #f8fbff;

    padding: 90px 0;
}


.section-subtitle {
    color: #59b5f7;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.section-title {
    font-size: 42px;

    font-weight: 700;

    margin-top: 10px;
}


.section-description {
    max-width: 650px;

    margin: auto;

    color: #666;
}


/* Course card */

.course-card {
    position: relative;

    height: 100%;

    background: #ffffff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);

    transition: 0.4s;
}


.course-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15);
}


.course-image {
    position: relative;

    overflow: hidden;
}


.course-image img {
    width: 100%;

    height: 250px;

    object-fit: cover;

    transition: 0.5s;
}


.course-card:hover img {
    transform: scale(1.08);
}


.category-badge {
    position: absolute;

    left: 20px;

    bottom: 20px;

    background: #59b5f7;

    color: #ffffff;

    padding: 8px 16px;

    border-radius: 30px;

    font-size: 13px;
}


.featured-ribbon {
    position: absolute;

    right: -45px;

    top: 25px;

    width: 180px;

    padding: 6px;

    background: #ffa6c9;

    color: #ffffff;

    text-align: center;

    transform: rotate(45deg);

    z-index: 10;

    font-size: 13px;
}


.course-body {
    padding: 30px;
}


.course-body h4 {
    font-size: 23px;

    font-weight: 700;

    margin-bottom: 15px;
}


.course-meta {
    display: flex;

    justify-content: space-between;

    margin: 15px 0;

    color: #666;

    font-size: 14px;
}


.course-price {
    color: #59b5f7;

    font-size: 24px;

    font-weight: 700;
}


.btn-course {
    width: 100%;

    margin-top: 20px;

    padding: 12px;

    background: #59b5f7;

    color: #ffffff;

    border-radius: 50px;

    transition: 0.4s;
}


.btn-course:hover {
    background: #ffa6c9;

    color: #ffffff;
}


/* =========================================================
   RESPONSIVE HERO
   ========================================================= */

@media (max-width: 991px) {

    .hero-section {
        min-height: auto;

        padding: 80px 0;
    }


    .hero-content {
        padding-top: 20px;

        padding-bottom: 20px;
    }


    .hero-title {
        font-size: 3.2rem;
    }


    .hero-side-card {
        max-width: 500px;

        margin: 30px auto 0;
    }

}


/* =========================================================
   MOBILE HERO
   ========================================================= */

@media (max-width: 576px) {

    .hero-section {
        padding: 60px 0;
    }


    .hero-title {
        font-size: 2.5rem;

        letter-spacing: -0.8px;
    }


    .hero-description {
        font-size: 1rem;
    }


    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }


    .hero-buttons .btn {
        width: 100%;
    }


    .hero-rating {
        flex-direction: column;

        gap: 6px;
    }


    .hero-side-card {
        padding: 28px 22px;
    }


    .hero-side-card h3 {
        font-size: 1.4rem;
    }


    .hero-mini-features div {
        font-size: 0.9rem;
    }

}