/* =====================================================
   COURSES CSS V3.0
   PART-1
   Premium Layout & Header
   Author : ChatGPT
=====================================================*/

:root{

--primary:#2563eb;
--secondary:#06b6d4;
--success:#10b981;
--warning:#f59e0b;
--danger:#ef4444;

--dark:#08111f;
--card:#111c2d;
--card2:#162338;

--white:#ffffff;
--text:#dbeafe;
--muted:#94a3b8;

--radius:22px;

--shadow:
0 15px 35px rgba(0,0,0,.25);

--transition:.35s ease;

}

/* =============================
RESET
=============================*/

*{

margin:0;
padding:0;
box-sizing:border-box;

}

html{

scroll-behavior:smooth;

}

body{

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

background:#fff;

}

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

.premium-courses{

position:relative;

padding:90px 0;

background:
linear-gradient(
135deg,
#020617,
#08111f,
#102040);

overflow:hidden;

}

/* Animated Background */

.premium-courses::before{

content:"";

position:absolute;

width:650px;

height:650px;

border-radius:50%;

left:-250px;

top:-220px;

background:

rgba(37,99,235,.15);

filter:blur(100px);

animation:float1 12s infinite linear;

}

.premium-courses::after{

content:"";

position:absolute;

width:500px;

height:500px;

right:-180px;

bottom:-180px;

border-radius:50%;

background:

rgba(6,182,212,.15);

filter:blur(100px);

animation:float2 10s infinite linear;

}

@keyframes float1{

0%{

transform:translateY(0);

}

50%{

transform:translateY(30px);

}

100%{

transform:translateY(0);

}

}

@keyframes float2{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-30px);

}

100%{

transform:translateY(0);

}

}

/* =============================
CONTAINER
=============================*/

.premium-courses .container{

width:min(1320px,94%);

margin:auto;

position:relative;

z-index:10;

}

/* =============================
HEADER
=============================*/

.section-title{

text-align:center;

margin-bottom:60px;

}

.sub-title{

display:inline-block;

padding:8px 22px;

background:

rgba(37,99,235,.18);

border:

1px solid rgba(255,255,255,.08);

border-radius:50px;

font-size:13px;

font-weight:700;

letter-spacing:2px;

color:#38bdf8;

text-transform:uppercase;

margin-bottom:18px;

}

.section-title h2{

font-size:48px;

font-weight:800;

line-height:1.2;

color:#fff;

margin-bottom:15px;

}

.section-title h2 span{

background:

linear-gradient(
90deg,
#38bdf8,
#2563eb);

-webkit-background-clip:text;

-webkit-text-fill-color:transparent;

}

.section-title p{

max-width:700px;

margin:auto;

color:#94a3b8;

font-size:17px;

line-height:1.8;

}

/* Underline */

.section-title::after{

content:"";

display:block;

width:90px;

height:5px;

margin:22px auto 0;

border-radius:30px;

background:

linear-gradient(
90deg,
#2563eb,
#06b6d4,
#10b981);

}

/* =============================
FILTER BUTTONS
=============================*/

.course-filter{

display:flex;

justify-content:center;

align-items:center;

gap:14px;

flex-wrap:wrap;

margin-bottom:55px;

}

.course-filter button{

position:relative;

padding:13px 28px;

background:

rgba(255,255,255,.06);

border:

1px solid rgba(255,255,255,.08);

border-radius:60px;

color:#fff;

font-size:14px;

font-weight:700;

cursor:pointer;

transition:var(--transition);

backdrop-filter:blur(14px);

overflow:hidden;

}

.course-filter button:hover{

transform:translateY(-5px);

background:

linear-gradient(
90deg,
#2563eb,
#06b6d4);

box-shadow:

0 12px 30px rgba(37,99,235,.35);

}

.course-filter button.active{

background:

linear-gradient(
90deg,
#2563eb,
#06b6d4);

box-shadow:

0 12px 30px rgba(37,99,235,.35);

}

/* Shine */

.course-filter button::before{

content:"";

position:absolute;

left:-120%;

top:0;

width:60%;

height:100%;

background:

rgba(255,255,255,.25);

transform:skewX(-25deg);

transition:.8s;

}

.course-filter button:hover::before{

left:130%;

}

/* =============================
GRID
=============================*/

.course-grid{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(340px,1fr));

gap:35px;

align-items:stretch;

}

/* Hidden Animation */

.hide-card{

opacity:0;

transform:translateY(40px);

transition:.8s;

}

.show-card{

opacity:1;

transform:translateY(0);

}
/*=====================================================
    COURSES CSS V3.0
    PART-2
    Premium Course Card
=====================================================*/

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

.course-card{

    position:relative;
    background:linear-gradient(145deg,#162338,#0f172a);
    border-radius:24px;
    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    transition:.45s ease;

    display:flex;
    flex-direction:column;

}

.course-card:hover{

    transform:translateY(-12px);

    border-color:#38bdf8;

    box-shadow:
        0 25px 60px rgba(37,99,235,.35);

}

/* Moving Glow */

.course-card::before{

    content:"";

    position:absolute;

    width:220px;
    height:220px;

    background:rgba(56,189,248,.12);

    border-radius:50%;

    top:-120px;
    right:-120px;

    filter:blur(50px);

    transition:.5s;

}

.course-card:hover::before{

    transform:scale(1.5);

}

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

.course-image{

    position:relative;

    height:230px;

    overflow:hidden;

    background:#08111f;

}

.course-image img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.6s ease;

}

.course-card:hover .course-image img{

    transform:scale(1.12);

}

/*==============================
Overlay
==============================*/

.course-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(
        to top,
        rgba(8,17,31,.85),
        rgba(8,17,31,0)
    );

}

/*==============================
Discount Badge
==============================*/

.discount-badge{

    position:absolute;

    top:18px;
    left:18px;

    background:#ef4444;

    color:#fff;

    padding:8px 15px;

    border-radius:50px;

    font-size:13px;

    font-weight:700;

    z-index:3;

    animation:pulseBadge 2s infinite;

}

@keyframes pulseBadge{

0%{

transform:scale(1);

}

50%{

transform:scale(1.08);

}

100%{

transform:scale(1);

}

}

/*==============================
Duration
==============================*/

.duration{

    position:absolute;

    bottom:18px;
    right:18px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(10px);

    color:#fff;

    padding:8px 16px;

    border-radius:40px;

    font-size:13px;

    font-weight:600;

    z-index:5;

}

/*==============================
Course Body
==============================*/

.course-body{

    padding:25px;

    display:flex;

    flex-direction:column;

    flex:1;

}

/*==============================
Rating
==============================*/

.rating{

    display:flex;

    align-items:center;

    gap:6px;

    color:#FFD700;

    font-size:14px;

    margin-bottom:15px;

}

.rating span{

    color:#fff;

    font-weight:700;

}

/*==============================
Title
==============================*/

.course-body h3{

    color:#fff;

    font-size:24px;

    line-height:1.4;

    font-weight:700;

    margin-bottom:15px;

}

/*==============================
Description
==============================*/

.course-body p{

    color:#94a3b8;

    line-height:1.8;

    font-size:15px;

    margin-bottom:20px;

}

/*==============================
Features
==============================*/

.features{

    list-style:none;

    margin:0;

    padding:0;

}

.features li{

    position:relative;

    color:#dbeafe;

    font-size:15px;

    padding-left:28px;

    margin-bottom:12px;

}

.features li::before{

    content:"✔";

    position:absolute;

    left:0;

    color:#10b981;

    font-weight:bold;

}

/*==============================
Students
==============================*/

.students{

    margin-top:10px;

    color:#38bdf8;

    font-size:15px;

    font-weight:600;

}

/*==============================
Price Area
==============================*/

.price-area{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:22px;

    padding-top:18px;

    border-top:1px solid rgba(255,255,255,.08);

}

.offer-price{

    font-size:32px;

    font-weight:800;

    color:#10b981;

}

.old-price{

    margin-top:4px;

    color:#94a3b8;

    text-decoration:line-through;

    font-size:15px;

}

/*==============================
Admission Open Ribbon
==============================*/

.course-card .admission-open{

    position:absolute;

    top:18px;

    right:-55px;

    width:180px;

    text-align:center;

    background:#2563eb;

    color:#fff;

    font-size:12px;

    font-weight:700;

    padding:8px 0;

    transform:rotate(45deg);

    z-index:4;

}
/*=====================================================
    COURSES CSS V3.0
    PART-3
    Buttons & Premium Animation
======================================================*/

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

.buttons{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

    margin-top:25px;

}

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

.btn-enroll,
.btn-whatsapp{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    height:55px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:15px;

    font-weight:700;

    overflow:hidden;

    transition:.35s;

    text-decoration:none;

}

/*==============================
Enroll Button
==============================*/

.btn-enroll{

    background:linear-gradient(135deg,#2563eb,#06b6d4);

    color:#fff;

    box-shadow:

    0 12px 25px rgba(37,99,235,.35);

}

.btn-enroll:hover{

    transform:translateY(-5px);

    box-shadow:

    0 18px 40px rgba(37,99,235,.45);

}

/*==============================
WhatsApp Button
==============================*/

.btn-whatsapp{

    background:#10b981;

    color:#fff;

    box-shadow:

    0 12px 25px rgba(16,185,129,.35);

}

.btn-whatsapp:hover{

    background:#059669;

    transform:translateY(-5px);

}

/*==============================
Button Shine
==============================*/

.btn-enroll::before,
.btn-whatsapp::before{

    content:"";

    position:absolute;

    top:0;

    left:-130%;

    width:70%;

    height:100%;

    background:

    rgba(255,255,255,.25);

    transform:skewX(-25deg);

    transition:.8s;

}

.btn-enroll:hover::before,
.btn-whatsapp:hover::before{

    left:140%;

}

/*==============================
Ripple Effect
==============================*/

.btn-enroll{

    overflow:hidden;

}

.ripple{

    position:absolute;

    border-radius:50%;

    background:rgba(255,255,255,.4);

    transform:scale(0);

    animation:rippleEffect .6s linear;

    pointer-events:none;

}

@keyframes rippleEffect{

0%{

transform:scale(0);

opacity:1;

}

100%{

transform:scale(4);

opacity:0;

}

}

/*==============================
Card Floating Animation
==============================*/

.course-card{

    animation:floatCard 6s ease-in-out infinite;

}

.course-card:nth-child(2){

animation-delay:.3s;

}

.course-card:nth-child(3){

animation-delay:.6s;

}

.course-card:nth-child(4){

animation-delay:.9s;

}

.course-card:nth-child(5){

animation-delay:1.2s;

}

.course-card:nth-child(6){

animation-delay:1.5s;

}

@keyframes floatCard{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-6px);

}

100%{

transform:translateY(0);

}

}

/*==============================
Hover Border Glow
==============================*/

.course-card::after{

content:"";

position:absolute;

inset:0;

border-radius:24px;

padding:2px;

background:

linear-gradient(
135deg,
#2563eb,
#06b6d4,
#10b981);

-webkit-mask:

linear-gradient(#fff 0 0) content-box,

linear-gradient(#fff 0 0);

-webkit-mask-composite:xor;

mask-composite:exclude;

opacity:0;

transition:.4s;

}

.course-card:hover::after{

opacity:1;

}

/*==============================
Image Shine
==============================*/

.course-image::before{

content:"";

position:absolute;

top:0;

left:-80%;

width:45%;

height:100%;

background:

rgba(255,255,255,.18);

transform:skewX(-25deg);

z-index:5;

transition:.8s;

}

.course-card:hover .course-image::before{

left:140%;

}

/*==============================
Rating Hover
==============================*/

.rating{

transition:.35s;

}

.course-card:hover .rating{

transform:scale(1.08);

}

/*==============================
Price Hover
==============================*/

.offer-price{

transition:.35s;

}

.course-card:hover .offer-price{

transform:scale(1.08);

}

/*==============================
Feature Hover
==============================*/

.features li{

transition:.3s;

}

.features li:hover{

padding-left:34px;

color:#fff;

}

/*==============================
Student Count
==============================*/

.students{

transition:.3s;

}

.course-card:hover .students{

color:#67e8f9;

}

/*==============================
Button Icons
==============================*/

.btn-enroll i,
.btn-whatsapp i{

margin-right:8px;

font-size:16px;

}

/*==============================
Bottom Decoration
==============================*/

.course-card .bottom-line{

width:100%;

height:4px;

background:

linear-gradient(
90deg,
#2563eb,
#06b6d4,
#10b981);

margin-top:20px;

border-radius:10px;

}
/*=====================================================
    COURSES CSS V3.0
    PART-4 (FINAL)
    Responsive + Utility + Final Polish
======================================================*/

/*==============================
Tablet
==============================*/

@media(max-width:1200px){

.course-grid{

grid-template-columns:
repeat(2,1fr);

gap:25px;

}

.section-title h2{

font-size:40px;

}

}

/*==============================
Mobile
==============================*/

@media(max-width:768px){

.premium-courses{

padding:60px 15px;

}

.section-title{

margin-bottom:40px;

}

.section-title h2{

font-size:32px;

}

.section-title p{

font-size:15px;

padding:0 10px;

}

.course-filter{

gap:10px;

}

.course-filter button{

padding:10px 18px;

font-size:13px;

}

.course-grid{

grid-template-columns:1fr;

gap:22px;

}

.course-card{

border-radius:18px;

}

.course-image{

height:210px;

}

.course-body{

padding:18px;

}

.course-body h3{

font-size:21px;

}

.course-body p{

font-size:14px;

}

.features li{

font-size:14px;

}

.offer-price{

font-size:28px;

}

.old-price{

font-size:14px;

}

.buttons{

grid-template-columns:1fr;

}

.btn-enroll,
.btn-whatsapp{

height:50px;

font-size:14px;

}

.discount-badge{

font-size:11px;

padding:6px 12px;

}

.duration{

font-size:11px;

padding:6px 10px;

}

}

/*==============================
Small Mobile
==============================*/

@media(max-width:480px){

.section-title h2{

font-size:28px;

}

.sub-title{

font-size:11px;

letter-spacing:1px;

}

.course-image{

height:190px;

}

.course-body{

padding:16px;

}

.course-body h3{

font-size:20px;

}

.offer-price{

font-size:25px;

}

}

/*==============================
Large Desktop
==============================*/

@media(min-width:1500px){

.premium-courses .container{

max-width:1450px;

}

.course-grid{

grid-template-columns:
repeat(3,1fr);

}

}

/*==============================
Equal Height
==============================*/

.course-card{

height:100%;

}

.course-body{

flex:1;

display:flex;

flex-direction:column;

}

.price-area{

margin-top:auto;

}

/*==============================
Smooth Transition
==============================*/

.course-card,
.course-image img,
.btn-enroll,
.btn-whatsapp,
.course-filter button{

transition:.35s ease;

}

/*==============================
Scrollbar
==============================*/

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#08111f;

}

::-webkit-scrollbar-thumb{

background:#2563eb;

border-radius:30px;

}

::-webkit-scrollbar-thumb:hover{

background:#06b6d4;

}

/*==============================
Selection
==============================*/

::selection{

background:#2563eb;

color:#fff;

}

/*==============================
Focus
==============================*/

button:focus,
a:focus{

outline:none;

}

/*==============================
Image Loading
==============================*/

.course-image{

background:

linear-gradient(
90deg,
#162338,
#1f2f47,
#162338);

background-size:200%;

animation:loadingBg 2.5s infinite;

}

.course-image img{

animation:none;

}

@keyframes loadingBg{

0%{

background-position:0%;

}

100%{

background-position:200%;

}

}

/*==============================
Glass Effect
==============================*/

.course-card{

backdrop-filter:blur(12px);

-webkit-backdrop-filter:blur(12px);

}

/*==============================
Footer Line
==============================*/

.course-card::after{

pointer-events:none;

}

/*==============================
Performance
==============================*/

.course-card{

will-change:transform;

}

/*==============================
End
==============================*/