/* ================= CATEGORY SECTION ================= */

.categories{

    padding:80px 20px;

    background:#ffffff;

}

.section-title{

    text-align:center;

    margin-bottom:50px;

}

.section-title h2{

    font-size:42px;

    color:#111;

    margin-bottom:10px;

}

.section-title p{

    color:#777;

    font-size:18px;

}

.category-container{

    display:flex;

    justify-content:center;

    gap:30px;

    flex-wrap:wrap;

}

.category-card{

    width:340px;

    background:#ffffff;

    border:1px solid #e5e5e5;

    border-radius:18px;

    padding:35px;

    text-align:center;

    transition:0.3s;

    box-shadow:0 5px 20px rgba(0,0,0,.06);

}

.category-card:hover{

    transform:translateY(-8px);

}

.category-icon{

    font-size:55px;

    margin-bottom:20px;

}

.category-card h3{

    font-size:28px;

    color:#111;

    margin-bottom:15px;

}

.category-card p{

    color:#666;

    line-height:1.7;

    margin-bottom:25px;

}

.category-btn{

    display:inline-block;

    padding:12px 28px;

    background:#111;

    color:#fff;

    border-radius:30px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.category-btn:hover{

    background:#333;

}
/* ================= POPULAR COURSES ================= */

.popular-courses{

    padding:80px 20px;

    background:#f8f8f8;

}

.course-grid{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:30px;

}

.course-card{

    width:360px;

    background:#ffffff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

    transition:.3s;

}

.course-card:hover{

    transform:translateY(-8px);

}

.course-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.course-content{

    padding:25px;

}

.course-tag{

    display:inline-block;

    background:#111;

    color:#fff;

    padding:6px 14px;

    border-radius:20px;

    font-size:13px;

    margin-bottom:15px;

}

.course-content h3{

    font-size:28px;

    margin-bottom:10px;

    color:#111;

}

.course-content p{

    color:#666;

    line-height:1.6;

    margin-bottom:25px;

}

.course-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.click-btn{

    background:#111;

    color:#fff;

    padding:12px 24px;

    border-radius:30px;

    text-decoration:none;

    font-weight:600;

}

.arrow{

    font-size:30px;

    font-weight:bold;

}
.course-image{

    width:100%;

    height:230px;

    object-fit:cover;

}

.price-section{

    display:flex;

    align-items:center;

    gap:12px;

    margin:18px 0;

}

.new-price{

    font-size:28px;

    font-weight:700;

    color:#111;

}

.old-price{

    font-size:18px;

    color:#888;

    text-decoration:line-through;

}

.discount{

    background:#e8f7e8;

    color:green;

    padding:5px 10px;

    border-radius:20px;

    font-size:14px;

    font-weight:600;

}
.course-image{
    width:100%;
    height:230px;
    object-fit:cover;
    border-top-left-radius:18px;
    border-top-right-radius:18px;
}

.price-section{
    display:flex;
    align-items:center;
    gap:12px;
    margin:18px 0;
}

.new-price{
    font-size:28px;
    font-weight:700;
    color:#111;
}

.old-price{
    font-size:18px;
    color:#888;
    text-decoration:line-through;
}

.discount{
    background:#e8f7e8;
    color:#008000;
    padding:5px 10px;
    border-radius:20px;
    font-size:14px;
    font-weight:600;
}

.buy-btn{
    display:inline-block;
    background:#111;
    color:#fff;
    padding:12px 28px;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.buy-btn:hover{
    background:#333;
}
.course-image{
    width:100%;
    height:230px;
    object-fit:cover;
    border-top-left-radius:18px;
    border-top-right-radius:18px;
}

.price-section{
    display:flex;
    align-items:center;
    gap:12px;
    margin:18px 0;
}

.new-price{
    font-size:28px;
    font-weight:700;
    color:#111;
}

.old-price{
    font-size:18px;
    color:#888;
    text-decoration:line-through;
}

.discount{
    background:#e8f7e8;
    color:#008000;
    padding:5px 10px;
    border-radius:20px;
    font-size:14px;
    font-weight:600;
}

.buy-btn{
    display:inline-block;
    background:#111;
    color:#fff;
    padding:12px 28px;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.buy-btn:hover{
    background:#333;
}
/* ===== COURSE GRID ===== */

.course-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:20px;
    padding:20px;
}

/* ===== CARD ===== */

.course-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    transition:0.3s;
}

.course-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 18px rgba(0,0,0,0.10);
}

/* ===== IMAGE ===== */

.course-image{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
}

/* ===== CONTENT ===== */

.course-content{
    padding:18px;
}

/* ===== TAG ===== */

.course-tag{
    display:inline-block;
    background:#111;
    color:#fff;
    padding:7px 16px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
    margin-bottom:14px;
}

/* ===== TITLE ===== */

.course-content h2,
.course-content h3{
    font-size:20px;
    font-weight:700;
    line-height:1.35;
    margin-bottom:12px;
    color:#111;
}

/* ===== DESCRIPTION ===== */

.course-content p{
    font-size:15px;
    color:#666;
    line-height:1.6;
    margin-bottom:18px;
}

/* ===== PRICE ===== */

.price-section{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
}

.new-price{
    font-size:24px;
    font-weight:700;
    color:#111;
}

.old-price{
    font-size:16px;
    color:#999;
    text-decoration:line-through;
}

.discount{
    background:#e8f7e8;
    color:#1c8f3a;
    padding:5px 10px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}

/* ===== BUTTON ===== */

.course-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.buy-btn{
    background:#000;
    color:#fff;
    text-decoration:none;
    padding:10px 24px;
    border-radius:30px;
    font-size:15px;
    font-weight:600;
}

.arrow{
    font-size:32px;
    font-weight:bold;
    color:#111;
}
.course-content h2,
.course-content h3{

    font-family:'Poppins',sans-serif;

    font-size:22px;

    font-weight:800;

    line-height:1.35;

    color:#111;

    margin-top:12px;

    margin-bottom:14px;

    letter-spacing:-0.3px;

}/* ===========================
   COURSE GRID
=========================== */

.course-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:30px;
    padding:30px;
    box-sizing:border-box;
    align-items:start;
}

/* ===========================
   COURSE CARD
=========================== */

.course-card{
    width:100%;
    background:#ffffff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s ease;
}

.course-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 35px rgba(0,0,0,0.15);
}

/* ===========================
   IMAGE
=========================== */

.course-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
}

/* ===========================
   CONTENT
=========================== */

.course-content{
    padding:22px;
}

.course-tag{
    display:inline-block;
    background:#000;
    color:#fff;
    padding:8px 18px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
    margin-bottom:18px;
}

.course-content h2{
    font-size:22px;
    font-weight:700;
    line-height:1.35;
    color:#111;
    margin-bottom:14px;
}

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

/* ===========================
   PRICE
=========================== */

.price-box{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:22px;
}

.new-price{
    font-size:22px;
    font-weight:700;
    color:#000;
}

.old-price{
    font-size:16px;
    color:#888;
    text-decoration:line-through;
}

.discount{
    background:#dff5df;
    color:#118611;
    padding:6px 14px;
    border-radius:20px;
    font-size:14px;
    font-weight:700;
}

/* ===========================
   BUTTON
=========================== */

.course-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.buy-btn{
    background:#000;
    color:#fff;
    text-decoration:none;
    padding:14px 28px;
    border-radius:40px;
    font-weight:700;
    transition:0.3s;
}

.buy-btn:hover{
    background:#222;
}

.arrow{
    font-size:34px;
    font-weight:bold;
    color:#000;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1200px){
    .course-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:900px){
    .course-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .course-grid{
        grid-template-columns:1fr;
    }
}
.payment-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    z-index:9999;
}

.payment-box{
    width:380px;
    max-width:95%;
    background:#181818;
    color:white;
    margin:80px auto;
    padding:25px;
    border-radius:15px;
}

.close-btn{
    float:right;
    cursor:pointer;
    font-size:30px;
}

#buyButton{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#6c4cff;
    color:white;
    font-size:18px;
    cursor:pointer;
}