/* ==========================================================
   LMS Eduma Style Landing Page - Custom CSS
   Mobile Responsive + Hero Animations
   ========================================================== */

:root {
    --primary: #6b46f4;
    --primary-dark: #4f2dd6;
    --secondary: #ff6b35;
    --accent: #ffd93d;
    --dark: #1a1f36;
    --gray: #6c757d;
    --light: #f8f9fc;
    --gradient: linear-gradient(135deg, #6b46f4 0%, #8b5cf6 50%, #ec4899 100%);
    --shadow-lg: 0 20px 60px rgba(107, 70, 244, 0.15);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background: #fff;
}

a { text-decoration: none; }

/* ==========================================================
   TOP BAR
   ========================================================== */
.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar a { color: #fff; margin: 0 8px; opacity: 0.85; transition: 0.3s; }
.top-bar a:hover { opacity: 1; color: var(--accent); }

/* ==========================================================
   NAVBAR  (single-line, compact)
   ========================================================== */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.navbar-custom > .container {
    flex-wrap: nowrap;
}
.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
    white-space: nowrap;
}
.navbar-custom .navbar-brand i { color: var(--secondary); }
.navbar-custom .navbar-collapse {
    flex-wrap: nowrap;
}
.navbar-custom .navbar-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
}
.navbar-custom .nav-link {
    font-weight: 500;
    color: var(--dark);
    margin: 0 4px;
    padding: 6px 8px !important;
    font-size: 14.5px;
    position: relative;
    white-space: nowrap;
}
.navbar-custom .nav-link:hover { color: var(--primary); }
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    background: var(--gradient);
    bottom: 0; left: 8px;
    transition: 0.3s;
}
.navbar-custom .nav-link:hover::after { width: calc(100% - 16px); }

/* Right-side action area */
.navbar-custom .d-flex.gap-2 {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px !important;
}
.navbar-custom .d-flex .btn {
    padding: 7px 14px;
    font-size: 13.5px;
    border-radius: 50px;
    white-space: nowrap;
}
.navbar-custom .d-flex .btn i { margin-right: 4px; }

.btn-primary-custom {
    background: var(--gradient);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13.5px;
    border: none;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(107, 70, 244, 0.3);
    white-space: nowrap;
}
.btn-primary-custom:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 70, 244, 0.5);
}

/* Slightly tighter on medium laptops so 7-link menu + 3 action items fit one line */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-custom .nav-link { margin: 0 2px; padding: 6px 6px !important; font-size: 13.5px; }
    .navbar-custom .navbar-brand { font-size: 19px; }
    .navbar-custom .d-flex .btn { padding: 6px 11px; font-size: 12.5px; }
}

/* Mobile (collapsed menu) — restore vertical stacking */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse,
    .navbar-custom .navbar-nav,
    .navbar-custom .d-flex.gap-2 { flex-wrap: wrap; white-space: normal; }
    .navbar-custom .d-flex.gap-2 { margin-top: 10px; }
}

/* ==========================================================
   HERO SECTION - ANIMATED BACKGROUND
   ========================================================== */
.hero {
    position: relative;
    min-height: 650px;
    background: linear-gradient(135deg, #1a1f36 0%, #2d1b69 40%, #6b46f4 100%);
    color: #fff;
    overflow: hidden;
    padding: 80px 0 100px;
}

/* Animated Blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: floatBlob 10s ease-in-out infinite;
}
.hero::before {
    width: 400px; height: 400px;
    background: #ec4899;
    top: -100px; left: -100px;
}
.hero::after {
    width: 500px; height: 500px;
    background: #ffd93d;
    bottom: -200px; right: -150px;
    animation-delay: -5s;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(50px,-30px) scale(1.1); }
}

/* Floating shapes */
.shape {
    position: absolute;
    animation: floatShape 6s ease-in-out infinite;
    opacity: 0.15;
}
.shape-1 { top: 15%; left: 10%; font-size: 60px; animation-delay: 0s; }
.shape-2 { top: 25%; right: 12%; font-size: 80px; animation-delay: -2s; }
.shape-3 { bottom: 20%; left: 15%; font-size: 70px; animation-delay: -4s; }
.shape-4 { top: 50%; right: 20%; font-size: 50px; animation-delay: -1s; }
.shape-5 { bottom: 30%; right: 8%; font-size: 90px; animation-delay: -3s; }

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-30px) rotate(15deg); }
}

/* Hero content */
.hero-content { position: relative; z-index: 5; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 25px;
    animation: pulse 2s ease-in-out infinite;
}
.hero-badge i { color: var(--accent); margin-right: 8px; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,217,61,0.4); }
    50%      { box-shadow: 0 0 0 15px rgba(255,217,61,0); }
}

.hero h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
}
.hero h1 .highlight {
    background: linear-gradient(120deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.hero h1 #typed-text { color: var(--accent); }

.hero p.lead {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 550px;
}

/* Hero search */
.hero-search {
    background: #fff;
    padding: 8px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    max-width: 550px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--dark);
    background: transparent;
}
.hero-search button {
    background: var(--gradient);
    color: #fff;
    border: 0;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.hero-search button:hover { transform: scale(1.03); }

/* Hero buttons */
.hero-btns { margin-top: 30px; display: flex; gap: 15px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--accent);
    color: var(--dark);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-hero-primary:hover { color: var(--dark); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255,217,61,0.4); }

.btn-hero-outline {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.4);
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-hero-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* Hero Right Card */
.hero-card {
    position: relative;
    z-index: 5;
    perspective: 1000px;
}
.hero-card-main {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 30px;
    transform: rotateY(-8deg) rotateX(5deg);
    animation: tilt 6s ease-in-out infinite;
}
@keyframes tilt {
    0%, 100% { transform: rotateY(-8deg) rotateX(5deg); }
    50%      { transform: rotateY(-12deg) rotateX(-3deg); }
}
.hero-card-main img { border-radius: 16px; width: 100%; }
.hero-float-card {
    position: absolute;
    background: #fff;
    color: var(--dark);
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    font-size: 13px;
    font-weight: 600;
    animation: floatCard 3s ease-in-out infinite;
}
.hero-float-card.fc-1 { top: 10%; left: -20px; animation-delay: 0s; }
.hero-float-card.fc-2 { bottom: 15%; right: -10px; animation-delay: -1.5s; }
.hero-float-card i { color: var(--primary); margin-right: 6px; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}

/* Hero stats strip */
.hero-stats {
    position: relative;
    z-index: 5;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .stat-num { font-size: 32px; font-weight: 800; color: var(--accent); }
.hero-stats .stat-label { font-size: 13px; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================
   SECTION COMMON
   ========================================================== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .small-head {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 10px;
}
.section-title h2 { font-size: 42px; font-weight: 800; margin-bottom: 15px; }
.section-title p { color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ==========================================================
   CATEGORIES  (Redesigned – v2)
   ========================================================== */
.categories-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 400px at 10% 0%, rgba(103, 87, 238, 0.06), transparent 60%),
        radial-gradient(900px 400px at 100% 100%, rgba(255, 107, 53, 0.05), transparent 60%),
        #ffffff;
}
.cat-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}
.cat-blob-1 {
    width: 380px; height: 380px;
    background: linear-gradient(135deg, #6757ee, #a78bfa);
    top: -120px; left: -120px;
}
.cat-blob-2 {
    width: 420px; height: 420px;
    background: linear-gradient(135deg, #ff6b35, #ffb199);
    bottom: -160px; right: -140px;
}
.categories-section .section-title .small-head {
    display: inline-block;
    background: linear-gradient(90deg, #6757ee, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.categories-section .section-title .small-head i {
    margin-right: 6px;
    color: #ff6b35;
    -webkit-text-fill-color: #ff6b35;
}

.cat-card {
    --cat-color: #6757ee;
    position: relative;
    background: #fff;
    border-radius: 22px;
    text-align: center;
    border: 1px solid #eef0f7;
    transition: 0.45s cubic-bezier(.2, .8, .2, 1);
    cursor: pointer;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 6px 18px rgba(20, 25, 60, 0.04);
    display: flex;
    flex-direction: column;
}
/* animated gradient border on hover */
.cat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, var(--cat-color), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 4;
    pointer-events: none;
}
.cat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 26px 55px rgba(20, 25, 60, 0.16);
    border-color: transparent;
}
.cat-card:hover::before { opacity: 1; }

.cat-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: linear-gradient(90deg, #ff6b35, #ff8f5c);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 50px;
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(255, 107, 53, 0.45);
    z-index: 5;
    backdrop-filter: blur(4px);
}
.cat-badge.new {
    background: linear-gradient(90deg, #6757ee, #a78bfa);
    box-shadow: 0 6px 14px rgba(103, 87, 238, 0.5);
}

/* ============ MEDIA / IMAGE HEADER ============ */
.cat-media {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--cat-color) 90%, #000),
            color-mix(in srgb, var(--cat-color) 55%, #fff)
        );
}
.cat-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
    display: block;
    /* Crisp rendering for category images */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}
.cat-card:hover .cat-media img {
    transform: scale(1.06) translateZ(0);
}
.cat-media-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    transition: opacity 0.4s;
}
.cat-card:hover .cat-media-overlay {
    background: transparent;
}
.cat-media-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(255,255,255,0.18), transparent 45%);
}
.cat-media-fallback::before,
.cat-media-fallback::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.cat-media-fallback::before {
    width: 90px; height: 90px;
    top: -20px; left: -20px;
}
.cat-media-fallback::after {
    width: 140px; height: 140px;
    bottom: -60px; right: -40px;
}

/* ============ FLOATING ICON BADGE ============ */
.cat-icon-float {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--cat-color);
    box-shadow:
        0 10px 22px rgba(20, 25, 60, 0.15),
        0 0 0 5px #fff;
    transition: 0.5s cubic-bezier(.2, .8, .2, 1);
    z-index: 3;
}
.cat-card:hover .cat-icon-float {
    transform: translateX(-50%) translateY(-4px) rotate(-8deg) scale(1.08);
    background: var(--cat-color);
    color: #fff;
    border-radius: 50%;
    box-shadow:
        0 14px 28px color-mix(in srgb, var(--cat-color) 45%, transparent),
        0 0 0 5px #fff;
}

/* ============ BODY CONTENT ============ */
.cat-body {
    padding: 40px 20px 22px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cat-body h5 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a2e;
    transition: color 0.3s;
    line-height: 1.35;
}
.cat-card:hover .cat-body h5 { color: var(--cat-color); }

.cat-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, var(--cat-color) 10%, #fff);
    color: var(--cat-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid color-mix(in srgb, var(--cat-color) 22%, transparent);
    transition: 0.3s;
}
.cat-card:hover .cat-count-pill {
    background: var(--cat-color);
    color: #fff;
    border-color: var(--cat-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--cat-color) 40%, transparent);
}

.cat-explore {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cat-color);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cat-explore i { transition: transform 0.3s; }
.cat-card:hover .cat-explore {
    opacity: 1;
    max-height: 40px;
    margin-top: 14px;
}
.cat-card:hover .cat-explore i { transform: translateX(6px); }

@media (max-width: 575.98px) {
    .cat-media { height: 110px; }
    .cat-icon-float {
        width: 54px; height: 54px; font-size: 20px; bottom: -24px;
    }
    .cat-body { padding: 34px 14px 18px; }
    .cat-body h5 { font-size: 15px; }
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #6757ee, #ff6b35);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(103, 87, 238, 0.3);
    transition: 0.3s;
}
.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 107, 53, 0.4);
    color: #fff;
}

/* ==========================================================
   COURSE CARDS
   ========================================================== */
.course-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.course-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.course-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.course-card:hover .course-img img { transform: scale(1.08); }

.course-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--secondary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.course-badge.bestseller { background: var(--accent); color: var(--dark); }
.course-badge.new { background: #22c55e; }
.course-badge.hot { background: #ef4444; }
.course-badge.top { background: var(--primary); }

.course-type-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-cat { color: var(--primary); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.course-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--dark); }
.course-title:hover { color: var(--primary); }
.course-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #e5e7eb; }
.course-meta i { color: var(--primary); margin-right: 4px; }

.course-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.course-price .current { font-size: 22px; font-weight: 800; color: var(--primary); }
.course-price .original { font-size: 14px; color: var(--gray); text-decoration: line-through; margin-left: 8px; }
.course-rating { font-size: 13px; color: #f59e0b; font-weight: 600; }
.course-rating span { color: var(--gray); margin-left: 4px; }

.course-instructor { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.course-instructor img { width: 28px; height: 28px; border-radius: 50%; }
.course-instructor span { font-size: 13px; color: var(--gray); }

/* ==========================================================
   FEATURES / WHY CHOOSE US
   ========================================================== */
.features-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef0ff 100%);
}
.feature-box {
    background: #fff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: 0.4s;
    border: 1px solid transparent;
}
.feature-box:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 80px; height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 32px; color: #fff;
    margin-bottom: 20px;
    transition: 0.4s;
}
.feature-box:hover .feature-icon { transform: rotate(-10deg) scale(1.1); }

/* ==========================================================
   STATS COUNTER
   ========================================================== */
.stats-section {
    background: var(--gradient);
    color: #fff;
    padding: 70px 0;
}
.stat-box { text-align: center; }
.stat-box .stat-value { font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.stat-box .stat-label { font-size: 15px; opacity: 0.9; letter-spacing: 1px; text-transform: uppercase; }
.stat-box i { font-size: 40px; margin-bottom: 15px; opacity: 0.8; }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonial-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    margin: 20px 10px;
    border-top: 4px solid var(--primary);
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -20px; left: 30px;
    font-size: 100px;
    color: var(--primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-card p { color: var(--gray); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.testimonial-user { display: flex; align-items: center; gap: 15px; }
.testimonial-user img { width: 55px; height: 55px; border-radius: 50%; border: 3px solid var(--primary); }
.testimonial-user h6 { margin: 0; font-weight: 700; font-size: 15px; }
.testimonial-user span { font-size: 12px; color: var(--gray); }
.testimonial-rating { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }

/* ==========================================================
   CTA BANNER
   ========================================================== */
.cta-banner {
    background: linear-gradient(135deg, #1a1f36, #4f2dd6);
    color: #fff;
    padding: 70px 40px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 50px 0;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,217,61,0.2);
    border-radius: 50%;
    top: -100px; left: -100px;
    filter: blur(60px);
}
.cta-banner h2 { font-size: 38px; font-weight: 800; margin-bottom: 15px; position: relative; }
.cta-banner p { font-size: 17px; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; position: relative; }

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    background: var(--dark);
    color: #fff;
    padding: 70px 0 20px;
}
footer h5 { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
footer p, footer li a { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.9; }
footer ul { list-style: none; padding: 0; }
footer li a:hover { color: var(--accent); }
.social-icon {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    transition: 0.3s;
}
.social-icon:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ==========================================================
   MOBILE RESPONSIVE
   ========================================================== */
@media (max-width: 992px) {
    .hero { min-height: auto; padding: 60px 0 80px; text-align: center; }
    .hero h1 { font-size: 40px; }
    .hero p.lead { margin: 0 auto 30px; }
    .hero-search { margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .hero-card { margin-top: 50px; }
    .hero-card-main { transform: none; animation: none; }
    .hero-float-card { display: none; }
    .section-title h2 { font-size: 30px; }
    .cta-banner h2 { font-size: 26px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero { padding: 40px 0 60px; }
    .hero h1 { font-size: 30px; }
    .hero p.lead { font-size: 15px; }
    .hero-search { flex-direction: column; border-radius: 20px; padding: 15px; gap: 10px; }
    .hero-search input { width: 100%; text-align: center; }
    .hero-search button { width: 100%; padding: 14px; }
    .btn-hero-primary, .btn-hero-outline { padding: 12px 24px; font-size: 14px; }
    .hero-stats { margin-top: 40px; padding-top: 30px; }
    .hero-stats .stat-num { font-size: 24px; }
    .hero-stats .stat-label { font-size: 11px; }
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 24px; }
    .section-title p { font-size: 14px; }
    .stat-box .stat-value { font-size: 34px; }
    .stat-box i { font-size: 30px; }
    .cta-banner { padding: 50px 20px; }
    .cta-banner h2 { font-size: 22px; }
    .feature-box, .testimonial-card { padding: 25px 20px; }
    .course-title { font-size: 15px; }
    .course-price .current { font-size: 18px; }
    .shape { display: none; }
}

/* ==========================================================
   UPGRADED COURSE CARD — Stars + Pricing
   ========================================================== */

/* 5-Star rating row on cards */
.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}
.rating-row .stars { color: #f59e0b; font-size: 13px; }
.rating-row .stars i { margin-right: 1px; }
.rating-row .rating-text { font-weight: 700; color: var(--dark); }
.rating-row .reviews-count { color: var(--gray); font-size: 12px; }

/* Discount flag on thumbnail */
.discount-flag {
    position: absolute;
    top: 15px; right: 15px;
    background: #ef4444;
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(239,68,68,0.4);
    animation: wiggle 2s ease-in-out infinite;
}
.discount-flag + .course-type-badge { top: 55px; }
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-5deg); }
    75%      { transform: rotate(5deg); }
}

/* Upgraded price block */
.course-price .sale-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}
.base-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.base-price {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
}
.discount-pct {
    background: #fef3c7;
    color: #d97706;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* Buy button on card */
.btn-buy {
    width: 42px; height: 42px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(107,70,244,0.3);
}
.btn-buy:hover {
    color: #fff;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 25px rgba(107,70,244,0.5);
}

/* ==========================================================
   REVIEWS SECTION
   ========================================================== */
.reviews-section {
    background: linear-gradient(135deg, #fef9f3 0%, #fef3c7 100%);
    position: relative;
}
.reviews-section::before {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 300px;
    color: rgba(251,191,36,0.08);
    top: 10%;
    right: -50px;
}

.overall-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px 30px;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 10px;
}
.big-rating {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}
.stars-big { font-size: 18px; color: #f59e0b; letter-spacing: 2px; }

.review-card {
    background: #fff;
    padding: 28px 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    height: 100%;
    border-top: 4px solid var(--secondary);
    transition: 0.3s;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-head img {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 3px solid #fef3c7;
}
.reviewer-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark);
    display: flex; align-items: center; gap: 5px;
}
.review-date { font-size: 11px; color: var(--gray); }
.rating-pill {
    background: var(--secondary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}
.review-stars-sm { color: #f59e0b; font-size: 13px; margin-bottom: 10px; letter-spacing: 1px; }
.review-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.review-text {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.review-course {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 12px;
    background: #f0eeff;
    border-radius: 50px;
    text-decoration: none;
}
.review-course:hover { background: var(--primary); color: #fff; }

/* Mobile tweaks for new elements */
@media (max-width: 768px) {
    .overall-rating-box { flex-direction: column; gap: 5px; padding: 15px 20px; }
    .big-rating { font-size: 36px; }
    .review-card { padding: 22px 18px; }
    .course-price .sale-price { font-size: 18px; }
    .discount-flag { font-size: 10px; padding: 4px 8px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .hero-badge { font-size: 11px; padding: 6px 14px; }
    .section-title h2 { font-size: 22px; }
}

/* ==========================================================
   CONTACT SECTION
   ========================================================== */
.contact-section {
    position: relative;
    background:
        radial-gradient(1000px 400px at 100% 0%, rgba(103, 87, 238, 0.06), transparent 60%),
        radial-gradient(900px 400px at 0% 100%, rgba(255, 107, 53, 0.06), transparent 60%),
        #f8fafd;
    overflow: hidden;
}
.contact-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    pointer-events: none;
}
.contact-shape-1 {
    width: 360px; height: 360px;
    background: linear-gradient(135deg, #6757ee, #a78bfa);
    top: -140px; right: -140px;
}
.contact-shape-2 {
    width: 400px; height: 400px;
    background: linear-gradient(135deg, #ff6b35, #ffb199);
    bottom: -180px; left: -150px;
}
.contact-section .section-title .small-head {
    display: inline-block;
    background: linear-gradient(90deg, #6757ee, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-section .section-title .small-head i {
    -webkit-text-fill-color: #ff6b35;
    color: #ff6b35; margin-right: 6px;
}

/* Info cards */
.contact-info-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px 26px;
    height: 100%;
    border: 1px solid #eef0f7;
    transition: 0.4s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
}
.contact-info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #6757ee, #ff6b35);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
    border-color: transparent;
}
.contact-info-card:hover::before { opacity: 1; }

.contact-info-card .info-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    color: #fff;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    transition: 0.4s;
}
.contact-info-card:hover .info-icon {
    transform: rotate(-8deg) scale(1.08);
    border-radius: 50%;
}
.contact-info-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1f36;
}
.contact-info-card p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 14.5px;
}
.contact-info-card a {
    color: #6757ee;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.contact-info-card a:hover { color: #ff6b35; }

/* Form wrapper */
.contact-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 34px 30px;
    border: 1px solid #eef0f7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    height: 100%;
}
.contact-form-wrap h4 {
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    padding: 11px 14px;
    font-size: 14.5px;
    transition: 0.2s;
}
.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
    border-color: #6757ee;
    box-shadow: 0 0 0 4px rgba(103, 87, 238, 0.12);
}
.contact-form-wrap .form-label { color: #374151; }

.btn-send-message {
    background: linear-gradient(90deg, #ff6b35, #ff8f5c);
    color: #fff;
    border: 0;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 8px 18px rgba(255,107,53,0.3);
}
.btn-send-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255,107,53,0.45);
    background: linear-gradient(90deg, #6757ee, #a78bfa);
    color: #fff;
}

/* Map */
.contact-map-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 540px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eef0f7;
}
.contact-map-wrap iframe {
    display: block;
    height: 100%;
    width: 100%;
    filter: grayscale(0.15) contrast(1.05);
    transition: filter 0.4s;
}
.contact-map-wrap:hover iframe { filter: grayscale(0) contrast(1); }
.map-overlay-badge {
    position: absolute;
    top: 18px; left: 18px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    color: #1a1f36;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 2;
}
.map-overlay-badge i { color: #ff6b35; margin-right: 6px; }

@media (max-width: 991px) {
    .contact-map-wrap { min-height: 380px; margin-top: 20px; }
}
