/* =========================================
   ULTRA-MODERN PREMIUM LANDING STYLES
   ========================================= */

:root {
    --primary-gradient: linear-gradient(135deg, #FF0080, #7928CA);
    /* High vibrance gradient */
    --surface-dark: #0f172a;
    --surface-light: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 25px 50px -12px rgba(121, 40, 202, 0.25);
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #FAFAFA;
    color: var(--text-main);
    overflow-x: hidden;
}

/* =========================================
   IMMERSIVE HERO SECTION
   ========================================= */
.category-hero {
    position: relative;
    height: 85vh;
    /* Much taller for impact */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    margin-top: 0;
    /* Removing header offset if using transparent header, otherwise keep */
    padding-top: 80px;
    overflow: hidden;
}

/* Duotone / Gradient Overlay */
.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.4) 0%,
            rgba(15, 23, 42, 0.8) 60%,
            #FAFAFA 100%
            /* Seamless blend to next section */
        );
    z-index: 1;
}

/* Glass Card for Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    text-align: center;
    padding: 60px 40px;

    /* True Glassmorphism */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    animation: fadeScaleUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Floating Elements Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* No Wave - using Gradient fade instead for ultra modern look */
.hero-wave {
    display: none;
}

/* =========================================
   MODERN INTRO
   ========================================= */
.category-intro {
    position: relative;
    padding: 80px 0;
    background: #FAFAFA;
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.intro-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 30px;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.9;
    font-weight: 400;
}

/* =========================================
   PREMIUM COURSE GRID
   ========================================= */
/* =========================================
   PREMIUM COURSE GRID (INSET STYLE)
   ========================================= */
.courses-section {
    padding: 60px 0 120px;
    background: #F8F9FC;
    /* Slightly cooler grey/blue tint found in modern UIs */
}

.courses-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.course-card {
    background: #ffffff;
    border-radius: 24px;
    /* Large, friendly radius */
    padding: 15px;
    /* Creates the white frame around the image */
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Gradient Glow Line at Bottom (Visible on Hover) */
.course-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    /* Indent slightly */
    right: 20px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 100%;
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.course-card:hover::after {
    opacity: 0.4;
    /* Soft bottom glow effect */
}

.card-image {
    height: 230px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    /* Inner radius for the image */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.course-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px 15px 15px;
    /* Adjust padding to align with image */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.course-card:hover .card-title {
    color: #E91E63;
    /* Pink title on hover as requested */
    background: none;
    -webkit-text-fill-color: initial;
}

.card-desc {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 400;
}

/* Sleek View Details Link */
.btn-course {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #E91E63;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-course i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-course:hover {
    color: #C2185B;
    background: transparent;
}

.btn-course:hover i {
    transform: translateX(8px);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeScaleUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }

    .grid-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-hero {
        height: 70vh;
    }

    .hero-content {
        padding: 40px 24px;
        margin: 0 16px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .courses-container {
        padding: 0 20px;
    }
}