@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

:root {
    --primary-orange: #FF5C2A;
    --secondary-orange: #F84007;
    --primary-red: #E63946;
    --footer-col: #050517;
    --light-yellow: #FFFC34;
    --yellow: #E6A83E;
    --dark-ass: #8E8D87;
    --light-ass: #C3C3C3;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body,html{
    scroll-behavior:smooth;
    overflow-x: hidden;
}
body {
    font-family: "Lexend Deca", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.55;
}
ul li {
    list-style: none;
}

a {
    text-decoration: none;
    display: block;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.container {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.col60 {
    max-width: 60%;
    flex: 0 0 60%;
    padding: 0 15px;
}
.col25 {
    max-width: 25%;
    flex: 0 0 25%;
    padding: 0 25px;
}
.col40 {
    max-width: 40%;
    flex: 0 0 40%;
    padding: 0 15px;
}
.col50 {
    max-width: 50%;
    flex: 0 0 50%;
    padding: 0 15px;
}

.col33{
    max-width: 33.333%;
    flex: 0 0 33.333%;
    padding: 0 15px;
}

h1 {
    font-family: "Lexend Deca", sans-serif;
    font-size: 90px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
}

h2{
    font-family: "Lexend Deca", sans-serif;
    font-size: 57px;
    font-weight: 400;
    line-height: 1;
    color: var(--black);
}

.header {
    padding: 20px 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-links {
    margin-left: auto;
}

.navlinks {
    display: flex;
    align-items: center;
}

.navlinks li {
    padding: 0 30px;
}

.navlinks li a {
    text-transform: capitalize;
    color: var(--black);
}

.navlinks li a:hover {
    color: var(--secondary-orange);
}

.cmn-btn {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 20px 48px;
    transition: 0.5s ease;
    border-radius: 0;
    text-transform: capitalize;
}

.cmn-btn:hover {
    background: var(--primary-red);
}

.hamburger {
    position: absolute;
    right: 100px;
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #000;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


.popular-courses-heading {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
}

.popular-courses-heading h2 {
    font-size: 57px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--black);
}

.popular-courses-heading .subtitle {
    font-size: 30px;
    color: var(--black);
    margin-bottom: 40px;
}

.popular-courses-heading .description {
    max-width: 100%;
    margin: 0 auto;
    font-size: 17px;
    color: var(--dark-ass);
}

.popular-courses {
    background: var(--white);
    margin-bottom: 100px;
}

.popular-courses {
    background: var(--white);
}

.popular-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    transition: 0.3s;
}

.popular-card:hover {
    transform: translateY(-6px);
}

.popular-img img {
    width: 100%;
    object-fit: cover;
}

.popular-body {
    padding: 26px;
}

.popular-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--dark-ass);
    margin-bottom: 22px;
}

.popular-body h3 {
    font-size: 18px;
    margin-bottom:35px;
}

.price {
    font-size: 16px;
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 22px;
}

.students {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.students img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.students span {
    font-size: 14px;
    color: var(--black);
    margin-left: 5px;
}

.start-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    font-size: 20px;
    transition: 0.3s;
}

.start-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.popular-card:hover {
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 15px 35px rgba(0, 0, 0, 0.08);
}

.footer {
    background: var(--footer-col);
    color: var(--light-ass);
    padding: 60px 100px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 120px;
}

.footer-col {
    flex: 1;
    max-width: 100%;
}

.footer-brand {
    max-width: 100%;
}

.footer-logo img {
    max-width: 100%;
    margin-bottom: 17px;
}

.footer-brand p {
    font-size: 19px;
    line-height: 29px;
    margin-bottom: 44px;
}

.footer-socials a {
    margin-right: 15px;
    font-size: 13px;
    color: var(--light-ass);
    text-transform: uppercase;
}

.footer-socials a:hover {
    color: var(--white);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li {
    color: var(--white);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--light-ass);
    font-size: 13px;
}

.footer ul li a:hover {
    color: var(--white);
}

.footer-email {
    color: var(--white);
    margin-bottom: 5px;
}

.footer small {
    font-size: 12px;
    color: var(--white);
}


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--light-ass);
}
@media (max-width: 995px) {

    .footer {
        padding: 60px 40px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 60px;
        margin-bottom: 80px;
    }

    .footer-col {
        max-width: 100%;
    }

}

@media (max-width: 768px){
        .footer-top {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 565px){
        .footer {
        padding: 50px 20px;
    }
}

@media (max-width: 320px){
        .footer-socials a {
        display: block;
        margin-bottom: 10px;
    }
}


@media (max-width: 1024px) {
    .popular-courses-heading {
        padding: 80px 0;
    }

    .popular-courses-heading h2 {
        font-size: 48px;
    }

    .popular-courses-heading .subtitle {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .popular-courses-heading {
        padding: 70px 0;
    }

    .popular-courses-heading h2 {
        font-size: 40px;
    }

    .popular-courses-heading .subtitle {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .popular-courses-heading .description {
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (max-width: 575px) {
    .popular-courses-heading {
        padding: 60px 0;
    }

    .popular-courses-heading h2 {
        font-size: 34px;
    }

    .popular-courses-heading .subtitle {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .popular-courses-heading {
        padding: 55px 0;
    }

    .popular-courses-heading h2 {
        font-size: 30px;
    }

    .popular-courses-heading .subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .popular-courses-heading .description {
        font-size: 15px;
    }
}
@media (max-width: 995px) {

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        transition: 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .navbar-links.active {
        right: 0;
    }

    .navlinks {
        flex-direction: column;
    }

    .navlinks li {
        padding: 20px 0;
    }

    .headerbtn {
        display: none;
    }
}
@media (max-width: 375px) {
    .popular-courses-heading h2 {
        font-size: 28px;
    }

    .popular-courses-heading .subtitle {
        font-size: 17px;
    }
}

@media (max-width: 320px) {
    .popular-courses-heading {
        padding: 45px 0;
    }

    .popular-courses-heading h2 {
        font-size: 24px;
    }

    .popular-courses-heading .subtitle {
        font-size: 16px;
    }

    .popular-courses-heading .description {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 1024px) {
    .col33 {
        max-width: 50%;
        flex: 0 0 50%;
        margin-bottom: 40px;
    }

    .popular-body h3 {
        font-size: 17px;
        margin-bottom: 28px;
    }

    .start-btn {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .col33 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .popular-courses {
        margin-bottom: 80px;
    }

    .popular-body {
        padding: 24px;
    }

    .popular-body h3 {
        font-size: 18px;
        margin-bottom: 26px;
    }
}

@media (max-width: 575px) {
    .popular-img img {
        height: 200px;
    }

    .popular-body {
        padding: 22px;
    }

    .popular-meta {
        font-size: 12px;
    }

    .students img {
        width: 32px;
        height: 32px;
    }

    .start-btn {
        font-size: 17px;
    }
}

@media (max-width: 420px) {
    .popular-body h3 {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .price {
        font-size: 15px;
    }

    .students span {
        font-size: 13px;
    }

    .start-btn {
        font-size: 16px;
        padding: 9px;
    }
}

@media (max-width: 375px) {
    .popular-body {
        padding: 20px;
    }

    .popular-meta {
        flex-direction: column;
        gap: 6px;
    }

    .popular-body h3 {
        font-size: 15px;
    }
}

@media (max-width: 320px) {
    .popular-img img {
        height: 180px;
    }

    .popular-body {
        padding: 18px;
    }

    .popular-body h3 {
        font-size: 14px;
        line-height: 1.4;
    }

    .students img {
        width: 28px;
        height: 28px;
    }

    .start-btn {
        font-size: 15px;
    }
}

