/* =========================================================
   HOODO TECHNOLOGY - MODERN E-LEARNING STYLE
   Main Color: #690856
========================================================= */

:root {
    --primary: #690856;
    --primary-dark: #4d063f;
    --primary-light: #8b1b74;
    --secondary: #f5b942;
    --light-purple: #f9eef7;
    --soft-purple: #fcf5fb;
    --dark: #17131a;
    --text: #625b64;
    --white: #ffffff;
    --border: #eee5ed;
    --shadow-sm: 0 8px 25px rgba(105, 8, 86, 0.08);
    --shadow: 0 18px 50px rgba(105, 8, 86, 0.13);
    --shadow-lg: 0 25px 70px rgba(105, 8, 86, 0.18);
    --radius: 20px;
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--dark);
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    transition: all 0.3s ease;
}


/* =========================================================
   NAVBAR SUPPORT
========================================================= */

.navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(105, 8, 86, 0.08);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary) !important;
}

.navbar-nav .nav-link {
    color: #3d3740 !important;
    font-weight: 600;
    margin: 0 6px;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}


/* =========================================================
   SEARCH
========================================================= */

.py-4.bg-white {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fcf7fb 100%
        ) !important;
}

.input-group.input-group-lg {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    border: 1px solid #eee3ec;
    transition: 0.3s;
}

.input-group.input-group-lg:focus-within {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(105, 8, 86, 0.08),
        var(--shadow-sm) !important;
}

.input-group-text {
    color: var(--primary);
    font-size: 20px;
}

.input-group .form-control {
    box-shadow: none !important;
    font-size: 15px;
}

.input-group .btn-warning {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #251b0b;
    font-weight: 700;
    border-radius: 12px !important;
    margin: 6px;
}

.input-group .btn-warning:hover {
    background: #e8a82f;
    transform: translateY(-1px);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    color: white;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,0.12),
            transparent 25%
        ),
        radial-gradient(
            circle at 20% 90%,
            rgba(255,255,255,0.08),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #4d063f 0%,
            #690856 45%,
            #8b1b74 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    right: -180px;
    top: -180px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    left: -150px;
    bottom: -160px;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .badge {
    color: var(--primary) !important;
    background: rgba(255,255,255,0.96) !important;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hero h1 {
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #ffd76a;
}

.hero p {
    color: rgba(255,255,255,0.82);
    max-width: 700px;
    font-size: 17px;
}

.hero .btn-warning {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #251b0b;
    font-weight: 800;
    border-radius: 12px;
    padding: 13px 24px;
    box-shadow: 0 12px 30px rgba(245,185,66,0.22);
}

.hero .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(245,185,66,0.32);
}

.hero .btn-outline-light {
    border-width: 2px;
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 24px;
}

.hero .btn-outline-light:hover {
    color: var(--primary);
    background: white;
    transform: translateY(-3px);
}

.hero .d-flex.flex-wrap.gap-5 {
    position: relative;
}

.hero .d-flex.flex-wrap.gap-5 > div {
    min-width: 100px;
}

.hero .d-flex.flex-wrap.gap-5 h4 {
    font-size: 26px;
}

.hero .d-flex.flex-wrap.gap-5 small {
    color: rgba(255,255,255,0.68);
}


/* =========================================================
   HERO RIGHT CARD
========================================================= */

.hero .bg-white.rounded-4 {
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.22) !important;
    padding: 42px !important;
    transform: rotate(1deg);
    transition: 0.4s ease;
}

.hero .bg-white.rounded-4:hover {
    transform: rotate(0deg) translateY(-8px);
}

.hero .bg-white.rounded-4 h3 {
    font-size: 26px;
}

.hero .bg-white.rounded-4 .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
}

.hero .bg-white.rounded-4 .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}


/* =========================================================
   SECTION COMMON
========================================================= */

.featured-courses,
.popular-categories,
.testimonials-section {
    position: relative;
}

.section-title,
.category-header,
.testimonial-header {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label,
.category-subtitle,
.testimonial-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    background: var(--light-purple);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title h2,
.category-heading,
.testimonial-header h2 {
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -1px;
}

.section-title p,
.category-header p,
.testimonial-header p {
    color: var(--text);
    font-size: 16px;
}


/* =========================================================
   FEATURED COURSES
========================================================= */

.featured-courses {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fcf8fb 100%
        );
}


/* =========================================================
   COMPACT COURSE CARDS
========================================================= */

.course-card {
    background: #fff;
    border: 1px solid #eee5ed;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(105, 8, 86, 0.07);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(105, 8, 86, 0.14);
    border-color: rgba(105, 8, 86, 0.18);
}


/* IMAGE */

.course-image {
    height: 165px;
    overflow: hidden;
    position: relative;
    background: #f7f1f6;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.06);
}


/* BODY */

.course-body {
    padding: 17px;
}


/* RATING */

.course-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.course-rating span {
    color: #f5b942;
    font-size: 12px;
    letter-spacing: 1px;
}

.course-rating small {
    color: #777;
    font-size: 12px;
    font-weight: 600;
}


/* TITLE */

.course-body h5 {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    color: #19151a;
    margin-bottom: 7px;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card:hover .course-body h5 {
    color: #690856;
}


/* DESCRIPTION */

.course-body p {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: auto;
}


/* BOTTOM */

.course-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 12px;
    margin-top: 5px;

    border-top: 1px solid #f0e9ef;
}


/* PRICE */

.course-bottom strong {
    color: #690856;
    font-size: 18px;
    font-weight: 900;
}


/* BUTTON */

.course-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 7px 11px;

    background: #f8edf6;
    color: #690856;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;

    transition: all 0.3s ease;
}

.course-btn:hover {
    background: #690856;
    color: #fff;
    transform: translateX(3px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .course-image {
        height: 180px;
    }

    .course-body {
        padding: 15px;
    }

    .course-body h5 {
        font-size: 16px;
    }

    .course-bottom strong {
        font-size: 17px;
    }

}
/* COURSE BODY */

.course-body {
    padding: 24px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.course-rating span {
    color: #f5b942;
    letter-spacing: 2px;
    font-size: 14px;
}

.course-rating small {
    color: #817a82;
    font-weight: 700;
}

.course-body h5 {
    color: var(--dark);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: 0.3s;
}

.course-card:hover .course-body h5 {
    color: var(--primary);
}

.course-body p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    min-height: 48px;
}


/* COURSE BOTTOM */

.course-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #eee8ed;
}

.course-bottom strong {
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
}

.course-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    background: var(--light-purple);
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.course-btn:hover {
    color: white;
    background: var(--primary);
    transform: translateX(3px);
}


/* =========================================================
   VIEW ALL BUTTONS
========================================================= */

.view-all-btn,
.view-all-categories {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 800;
    background: white;
}

.view-all-btn:hover,
.view-all-categories:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}


/* =========================================================
   POPULAR CATEGORIES
========================================================= */

.popular-categories {
    background: #fff;
}

.category-card {
    background: white;
    padding: 27px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: 0.35s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--light-purple);
    top: -45px;
    right: -45px;
    transition: 0.4s;
}

.category-card:hover {
    transform: translateY(-9px);
    border-color: rgba(105, 8, 86, 0.18);
    box-shadow: var(--shadow);
}

.category-card:hover::before {
    transform: scale(2.5);
    opacity: 0.5;
}

.category-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.category-icon {
    width: 62px;
    height: 62px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-purple);
    color: var(--primary);
    font-size: 27px;
    transition: 0.35s;
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-5deg) scale(1.06);
}

.category-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    background: #faf7fa;
    transition: 0.3s;
}

.category-card:hover .category-arrow {
    color: white;
    background: var(--primary);
    transform: rotate(45deg);
}

.category-title {
    margin-top: 25px;
    margin-bottom: 8px;
    font-weight: 850;
    font-size: 20px;
    color: var(--dark);
}

.category-count {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.category-count i {
    color: var(--primary);
    margin-right: 5px;
}

.category-divider {
    height: 1px;
    background: #eee7ed;
    margin: 22px 0 18px;
}

.category-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.category-btn i {
    transition: 0.3s;
}

.category-btn:hover {
    color: var(--primary-dark);
}

.category-btn:hover i {
    transform: translateX(5px);
}


/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonials-section {
    background:
        linear-gradient(
            135deg,
            #faf4f9 0%,
            #ffffff 50%,
            #faf4f9 100%
        );
}

.testimonial-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: 0.35s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.testimonial-quote {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-purple);
    color: var(--primary);
    font-size: 21px;
}

.testimonial-image {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid white;
    box-shadow:
        0 0 0 3px rgba(105, 8, 86, 0.12),
        0 10px 25px rgba(105, 8, 86, 0.12);
}

.testimonial-name {
    color: var(--dark);
    font-weight: 850;
    margin-bottom: 2px;
}

.testimonial-role {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.testimonial-message {
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 18px;
    min-height: 75px;
}

.testimonial-rating {
    color: #f5b942;
    letter-spacing: 3px;
    margin-top: 15px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    background: white;
}

.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 70px 30px;
    color: white;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255,255,255,0.13),
            transparent 25%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(255,255,255,0.10),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #4d063f,
            #690856,
            #8b1b74
        );

    box-shadow: var(--shadow-lg);
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    right: -70px;
    top: -90px;
}

.cta-box::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    left: -70px;
    bottom: -80px;
}

.cta-box > * {
    position: relative;
    z-index: 2;
}

.cta-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 32px;
}

.cta-box h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    margin-bottom: 12px;
}

.cta-box p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,0.78);
}

.cta-box .btn-warning {
    color: #24190a;
    background: var(--secondary);
    border-color: var(--secondary);
    font-weight: 800;
    border-radius: 12px;
    padding: 13px 25px;
}

.cta-box .btn-warning:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(245,185,66,0.28);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #160d14;
    color: rgba(255,255,255,0.7);
}

footer a {
    color: rgba(255,255,255,0.68);
}

footer a:hover {
    color: white;
}

footer h5,
footer h4 {
    color: white;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #f4eef3;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    background: var(--primary);
    color: white;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.hero .btn,
.hero .bg-white.rounded-4 {
    animation: fadeUp 0.8s ease both;
}

.hero p {
    animation-delay: 0.1s;
}

.hero .btn {
    animation-delay: 0.2s;
}

.hero .bg-white.rounded-4 {
    animation-delay: 0.25s;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 991px) {

    .hero {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .d-flex.flex-wrap.gap-3 {
        justify-content: center;
    }

    .hero .d-flex.flex-wrap.gap-5 {
        justify-content: center;
    }

    .hero .bg-white.rounded-4 {
        max-width: 500px;
        margin: 0 auto;
    }

    .course-image {
        height: 210px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 767px) {

    .hero {
        padding-top: 55px !important;
        padding-bottom: 55px !important;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero .bg-white.rounded-4 {
        padding: 30px !important;
    }

    .section-title h2,
    .category-heading,
    .testimonial-header h2 {
        font-size: 32px;
    }

    .course-body {
        padding: 20px;
    }

    .course-image {
        height: 200px;
    }

    .category-card {
        padding: 23px;
    }

    .testimonial-card {
        padding: 28px 22px;
    }

    .cta-box {
        padding: 55px 20px;
        border-radius: 22px;
    }

    .cta-box h2 {
        font-size: 32px;
    }

    .input-group.input-group-lg {
        height: 58px;
    }

    .input-group .btn-warning {
        padding-left: 17px !important;
        padding-right: 17px !important;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 35px;
    }

    .hero .btn-lg {
        width: 100%;
    }

    .hero .d-flex.flex-wrap.gap-3 {
        width: 100%;
    }

    .hero .d-flex.flex-wrap.gap-5 {
        gap: 25px !important;
    }

    .hero .d-flex.flex-wrap.gap-5 > div {
        min-width: 75px;
    }

    .hero .d-flex.flex-wrap.gap-5 h4 {
        font-size: 22px;
    }

    .course-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-btn {
        width: 100%;
        justify-content: center;
    }

    .course-bottom strong {
        font-size: 20px;
    }

    .cta-box .btn-lg {
        width: 100%;
    }
}


.course-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f7eef5;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.course-card {
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(105, 8, 86, 0.15) !important;
}

.course-card:hover .course-img {
    transform: scale(1.05);
}