/* ===========================
   COURSES HERO
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins",sans-serif;
}

body{

    background:#f8faff;

    color:#1e293b;

}

.courses-page{

    max-width:1200px;

    margin:auto;

    padding:20px;

}

/* ===========================
        HERO
=========================== */

.courses-hero{

    background:#ffffff;

    border:1px solid #e9edf5;

    border-radius:24px;

    padding:24px;

    box-shadow:0 12px 35px rgba(15,23,42,.05);

}

/* Back Button */

.back-btn{

    width:44px;

    height:44px;

    border:none;

    border-radius:14px;

    background:#f4f7fc;

    color:#4f46e5;

    font-size:17px;

    cursor:pointer;

    transition:.3s;

}

.back-btn:hover{

    background:#4f46e5;

    color:#fff;

    transform:translateY(-2px);

}

/* Hero Content */

.hero-content{

    margin-top:24px;

}

.hero-tag{

    display:inline-block;

    padding:7px 16px;

    border-radius:50px;

    background:linear-gradient(90deg,#4f7cff,#7b5cff);

    color:#fff;

    font-size:12px;

    font-weight:600;

    letter-spacing:.5px;

}

.hero-content h1{

    margin-top:16px;

    font-size:34px;

    line-height:1.2;

    color:#0f172a;

}

.hero-content p{

    margin-top:12px;

    color:#64748b;

    font-size:15px;

    line-height:1.7;

    max-width:600px;

}

/* Search */

.search-box{

    margin-top:28px;

    display:flex;

    align-items:center;

    gap:12px;

    background:#f8fafc;

    border:1px solid #e2e8f0;

    border-radius:16px;

    padding:15px 18px;

    transition:.3s;

}

.search-box:hover{

    border-color:#6366f1;

}

.search-box:focus-within{

    border-color:#6366f1;

    box-shadow:0 0 0 4px rgba(99,102,241,.12);

}

.search-box i{

    color:#94a3b8;

    font-size:17px;

}

.search-box input{

    width:100%;

    border:none;

    background:transparent;

    outline:none;

    font-size:15px;

    color:#0f172a;

}

.search-box input::placeholder{

    color:#94a3b8;

}







/* ===========================
   FEATURED COURSE
=========================== */

.featured-course{

    margin-top:30px;

    background:linear-gradient(135deg,#4f46e5,#2563eb);

    border-radius:24px;

    padding:35px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    overflow:hidden;

    position:relative;

    box-shadow:0 18px 45px rgba(37,99,235,.25);

}

/* Glow Effect */

.featured-course::before{

    content:"";

    position:absolute;

    width:350px;

    height:350px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    top:-120px;

    right:-120px;

}

.featured-left{

    width:55%;

    position:relative;

    z-index:2;

}

.featured-right{

    width:40%;

    text-align:right;

    position:relative;

    z-index:2;

}

.featured-right img{

    width:100%;

    max-width:360px;

    filter:drop-shadow(0 18px 35px rgba(0,0,0,.25));

}

.featured-badge{

    display:inline-block;

    background:rgba(255,255,255,.18);

    color:#fff;

    padding:8px 18px;

    border-radius:40px;

    font-size:13px;

    font-weight:600;

    backdrop-filter:blur(12px);

}

.featured-left h2{

    margin-top:20px;

    color:#fff;

    font-size:40px;

    font-weight:700;

}

.featured-left p{

    margin-top:15px;

    color:rgba(255,255,255,.88);

    line-height:1.8;

    font-size:16px;

    max-width:520px;

}

.featured-meta{

    display:flex;

    gap:25px;

    flex-wrap:wrap;

    margin-top:25px;

}

.featured-meta span{

    color:#fff;

    font-size:14px;

    display:flex;

    align-items:center;

    gap:8px;

}

.featured-meta i{

    color:#FFD54A;

}

.start-course-btn{

    margin-top:30px;

    border:none;

    background:#fff;

    color:#2563eb;

    padding:15px 30px;

    border-radius:14px;

    font-size:15px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.start-course-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 25px rgba(0,0,0,.18);

}






/* ===========================
   FEATURED ANIMATIONS
=========================== */

/* Robot Floating */

.featured-right img{

    animation:floatRobot 4s ease-in-out infinite;

}

@keyframes floatRobot{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-12px);

    }

    100%{

        transform:translateY(0px);

    }

}

/* Banner Glow */

.featured-course{

    animation:bannerGlow 5s ease-in-out infinite;

}

@keyframes bannerGlow{

    0%{

        box-shadow:0 18px 45px rgba(37,99,235,.25);

    }

    50%{

        box-shadow:0 22px 60px rgba(79,70,229,.38);

    }

    100%{

        box-shadow:0 18px 45px rgba(37,99,235,.25);

    }

}

/* Button Animation */

.start-course-btn{

    animation:pulseButton 2.8s infinite;

}

@keyframes pulseButton{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.05);

    }

    100%{

        transform:scale(1);

    }

}

/* Meta Hover */

.featured-meta span{

    transition:.3s;

    cursor:default;

}

.featured-meta span:hover{

    transform:translateY(-4px);

}

/* Badge Hover */

.featured-badge{

    transition:.35s;

}

.featured-badge:hover{

    transform:scale(1.08);

}









/* ===========================
   FLOATING TECH ICONS
=========================== */

.floating-icon{

    position:absolute;

    color:rgba(255,255,255,.12);

    font-size:42px;

    animation:floatIcons 7s ease-in-out infinite;

    pointer-events:none;

}

/* Individual Positions */

.ai{

    top:35px;

    right:120px;

}

.code{

    top:180px;

    right:35px;

    animation-delay:1s;

}

.chip{

    bottom:40px;

    right:260px;

    animation-delay:2s;

}

.globe{

    top:90px;

    left:58%;

    animation-delay:3s;

}

.bolt{

    bottom:120px;

    left:48%;

    animation-delay:4s;

}

/* Floating Animation */

@keyframes floatIcons{

    0%{

        transform:translateY(0px) rotate(0deg);

    }

    50%{

        transform:translateY(-12px) rotate(8deg);

    }

    100%{

        transform:translateY(0px) rotate(0deg);

    }

}





/* ===========================
   PREMIUM 3D EFFECT
=========================== */

/* Banner */

.featured-course{

    transition:
    transform .45s ease,
    box-shadow .45s ease;

}

.featured-course:hover{

    transform:
    translateY(-6px);

    box-shadow:
    0 30px 60px rgba(37,99,235,.35);

}

/* Robot */

.featured-right img{

    transition:
    transform .45s ease;

}

.featured-course:hover .featured-right img{

    transform:
    scale(1.05)
    rotate(-2deg);

}

/* Heading */

.featured-left h2{

    transition:.35s;

}

.featured-course:hover h2{

    letter-spacing:.5px;

}

/* Button */

.start-course-btn{

    position:relative;

    overflow:hidden;

}

/* Shine */

.start-course-btn::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:60%;

    height:100%;

    background:

    linear-gradient(

        120deg,

        transparent,

        rgba(255,255,255,.7),

        transparent

    );

    transition:.7s;

}

.start-course-btn:hover::before{

    left:140%;

}

.start-course-btn span{

    position:relative;

    z-index:2;

}

/* Meta */

.featured-meta span{

    transition:.3s;

}

.featured-meta span:hover{

    transform:scale(1.08);

}









/* ==========================
   COURSE CATEGORIES
========================== */

.course-categories{
    margin-top:40px;
}

.section-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
}

.section-heading h2{
    font-size:32px;
    font-weight:700;
    color:#1e293b;
}

.section-heading a{
    text-decoration:none;
    color:#4f46e5;
    font-weight:600;
    transition:.3s;
}

.section-heading a:hover{
    color:#2563eb;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.category-card{
    background:#fff;
    border:1px solid #edf1f7;
    border-radius:22px;
    padding:32px 24px;
    text-align:center;
    cursor:pointer;
    transition:.35s;
    box-shadow:0 8px 25px rgba(0,0,0,.04);
    text-decoration:none;
    color:inherit;
}

.category-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(59,130,246,.15);
    border-color:#3b82f6;
}

.category-card i{
    width:72px;
    height:72px;
    line-height:72px;
    border-radius:50%;
    background:linear-gradient(135deg,#4f46e5,#3b82f6);
    color:#fff;
    font-size:30px;
    margin-bottom:18px;
}

.category-card h3{
    font-size:20px;
    color:#1e293b;
    margin-bottom:8px;
}

.category-card p{
    color:#64748b;
    font-size:15px;
}