@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background: #fff;
    color: #3e2b46;
}

body::-webkit-scrollbar {
    display: none;
    width: 0px;
}

html, body {
    overflow-x: hidden;
}


/*Navbar*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    /* width: 90%; */
    box-sizing: border-box;
    height: 56px;
    padding: 5px 10px;
    margin: 20px auto;
}


.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 120px;
    background: none;
}

.nav-links ul {
    display: flex;
    gap: 40px;
    list-style-type: none;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 20px;
    line-height: 18px;
    cursor: pointer;
}

.nav-links a:hover {
    color: #66218C;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
    text-shadow: -1px 0px 12px #66218C33;
}

/*Apply Now Button in Navbar*/
.navbar {
    position: relative;
}

.navbar .apply-btn {
    padding: 8px 24px;
    border: 1px solid #E2E8FF54;
    border-radius: 15px;
    background: linear-gradient(90deg,#AA39F2, #66218C );
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
}

.apply-btn:hover {
    cursor: pointer;
    box-shadow: -2px 2px 7px #0e0b104D;
}

.mobile-nav {
    position: relative;
    display: none;
}

.mobile-nav_icon:hover {
    color: #66218C;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
    cursor: pointer;
}

.mobile-nav_links {
    display: grid;
    row-gap: 0.7rem;
    background: white;
    position: absolute;
    right: 0.7rem;
    top: 2.4rem;
    z-index: 9999;
    padding: 0.9rem;
    text-wrap: nowrap;
    box-shadow: -2px 2px 7px #0e0b104D;
    border-radius: 0.875rem;
}

.hidden {
    display: none;
}

.mobile-nav_links a {
    text-decoration: none;
    color: #000000;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 20px;
    line-height: 18px;
    cursor: pointer;
}

.mobile-nav_links a:hover {
    color: #66218C;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
    text-shadow: -1px 0px 12px #66218C33;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/*Hero Section*/
.hero {
    display: grid;
    text-align: center;
    width: 100%;
    margin: 8.125rem 0px 0rem;
    padding-bottom: 10rem;
    position: relative;
    overflow: hidden;
}

.hero .mobile {
    display: none;
}

.hero h1 {
    align-content: center;
    font-size: 70px;
    line-height: 90px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #230135, 91%;
    letter-spacing: 10%;
    font-family: "Poppins";
}

.hero-sub {
    width: 60%;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 2.5rem;
}

.hero-btn {
    padding: 12px 40px;
    font-size: 15px;
}

.hero .apply-btn {
    padding: 8px 24px;
    border: 1px solid #E2E8FF54;
    border-radius: 15px;
    background: linear-gradient(90deg,#AA39F2, #66218C );
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
}

/* BLURRED FLAG BACKGROUNDS */
.bg-flag {
    position: absolute;
    z-index: -10;
    width: 23.75rem;
    height: 23.75rem;
    background: url('images/kenya-flag.png');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 0.65;
}

.bg-flag.left {
    left: -10rem;
    top: 21.25rem;
}

.bg-flag.right {
    right: -10rem;
    top: 7.5rem;
}

/* COURSES SECTION */
.courses-section {
    padding: 5rem 0 7.5rem;
    text-align: center;
    background: linear-gradient(
        90deg,
        rgba(170, 57, 242, 0.20) 0%,
        rgba(255, 255, 255, 1) 40%,
        rgba(255, 255, 255, 1) 60%,
        rgba(102, 33, 140, 0.20) 100%
    );
}

.courses-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #3b2944;
    margin-bottom: .9375rem;
}

.courses-sub {
    font-size: 1rem;
    width: 70%;
    margin: 0 auto;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1.875rem;
}

.course-highlights {
    display: flex;
    justify-content: center;
    column-gap: 3.75rem;
    margin-bottom: 3.125rem;
}

.course-highlights p {
    font-size: .9375rem;
}

/* COURSES GRID */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    width: 80%;
    margin: 0 auto;
}

.course-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
    border: 2px solid #f1e8ff;
}

.course-card:hover {
    box-shadow: -2px 2px 7px #0e0b104D;
}

.course-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #3b2944;
    margin-bottom: 10px;
}

.course-card h3 span {
    font-size: 13px;
    font-weight: 400;
}

.course-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.courses-grid .course-card:last-child {
    grid-column: 2 / 3;
}


/* CLIENTS SECTION */
.clients-section {
    padding: 60px 0 80px;
    text-align: center;
}

.clients-title {
    font-size: 28px;
    font-weight: 600;
    color: #3b2944;
    margin-bottom: 40px;
}

.clients-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.clients-logos img {
    height: 55px;
    object-fit: contain;
}

/* ========================= */
/* CLIENTELE SECTION */
/* ========================= */

.clientele-logo {
    filter: grayscale(100%);
}

.clientele-logo:hover {
    filter: grayscale(0%);
    transition: filter 0.35s ease-in-out
}

/* ========================= */
/* CTA FINAL SECTION */
/* ========================= */

.cta-section {
    background: #12001e;
    padding: 90px 20px 120px;
    position: relative;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 22px;
}

.cta-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #f2f2f2;
}

/* CTA button inside the dark section */
.cta-btn {
    margin-top: 20px;
    padding: 12px 32px;
    border-radius: 15px;
    background: linear-gradient(90deg,#AA39F2, #66218C);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* Kenya flag background (right side) */
.cta-flag {
    position: absolute;
    right: -580px;
    top: 40px;
    width: 912px;
    height: 475px;
    background: url('images/kenya-flag.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 5%;
    pointer-events: none;
}

/* ========================= */
/* FOOTER SECTION */
/* ========================= */

.footer {
    background: #9d35df;
    color: #fff;
    padding: 80px 80px 50px;
    border-top-left-radius: 75px;
    border-top-right-radius: 75px;
    margin-top: -83px;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    position: relative;
    z-index: 1;
}


/* Footer columns */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    max-width: 250px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
    text-decoration: none;
    color: #fff;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-social {
    grid-column: 1 / 2;
    margin-top: 20px;
}

.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 18px;
}

.social-icons img {
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.9;
}

.social-icons img:hover {
    opacity: 1;
}

.footer-flag {
    position: absolute;
    right: -580px;
    top: 60px;
    width: 912px;
    height: 600px;
    background: url('images/www.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 5%;
    pointer-events: none;
}

.social-icon {
    color: white;
}

.social-icon:hover {
    color: #66218C
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #AA39F2, #66218C);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 33, 140, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(102, 33, 140, 0.4);
}

.scroll-to-top svg {
    color: white;
    width: 24px;
    height: 24px;
}

/* ========================= */
/* MEDIA QUERY */
/* ========================= */

@media screen and (max-width: 900px) {
    .hero-sub {
        font-size: 1.7rem;
        width: 80%;
    }
}

@media screen and (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-nav_links a {
        font-size: 0.975rem;
    }

    .hero {
        text-align: center;
        width: auto;
        margin: 4.125rem 0rem 0rem;
        padding: 0rem 1.5rem 5rem 1.5rem;
        position: relative;
        overflow: hidden;
    }

    .hero .mobile {
        display: flex;
        /* text-align: left; */
    }

    .hero .web {
        display: none;
    }

    .hero h1 {
        margin: 0 auto;
        font-size: 2.5rem;
        line-height: 3.1rem;
        font-weight: 300px;
        margin-bottom: 1.875rem;
        color: #230135, 91%;
        letter-spacing: 10%;
    }

    .hero-sub {
        font-size: 1.1rem;
        width: 90%;
    }

    .courses-section {
        padding: 3.5rem 0 7.5rem;
    }

    .courses-title {
        line-height: 2.8125rem;
    }

    .courses-sub {
        font-size: 1.1rem;
        width: 90%;
    }

    .course-highlights {
        flex-direction: column;
        margin-bottom: 1.125rem;
    }

    .courses-grid {
        display: flex;
        flex-direction: column;
        gap: 35px;
        /* width: 80%; */
        margin: 0 auto;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}