/* ==========================================================================
   Premium Course Catalog Layout Styles Sheet
   ========================================================================== */

/* 🚀 MASTER TYPOGRAPHY COLOR MATRIX DEFINITION */
:root {
    --brand-dark-blue: #1b506b;       /* Your required font color choice */
    --text-slate: #475569;
    --background-snow: #f8fafc;
    --white: #ffffff;
    --crimson-accent: #bc002d;        /* School core motif match */
}

body {
    background-color: var(--background-snow);
    color: var(--text-slate);
}

/* ==========================================================================
   PAGE HERO INTRO TRACK OVERVIEW
   ========================================================================== */
.course-page-intro {
    width: 100%;
    padding: 80px 24px 90px 24px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    
    /* 🚀 PREMIUM MESH GRADIENT: Smooth blend of crisp arctic whites and soft slate blues */
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(27, 80, 107, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(188, 0, 45, 0.02) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(241, 245, 249, 1) 0px, transparent 70%);
}

.course-page-intro {
    position: relative;
    width: 100%;
    min-height: 540px;
    padding: 80px 24px;
    background-color: #f8fafc; /* Baseline background fallback */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* New Layer: Add a subtle ambient light pool directly under the text grid */
.course-page-intro::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 80, 107, 0.03) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

/* Start Banner Background */
/* Master wrapper isolating background structures behind the layout content */
.banner-bg-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Forces layers to stay underneath your text and images */
    pointer-events: none;
}

/* Ensure the content container stays floating crisply above the background gradients */
.intro-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2; /* Sits securely over background light pools */
}

/* ==========================================================================
   ✨ LAYER 1: CRISP TECHNICAL TECH GRID METRICS
   ========================================================================== */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creates a beautiful, subtle translucent graph grid */
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; /* Size of grid squares */
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

/* ==========================================================================
   🌈 LAYER 2: MULTI-LAYERED AMBIENT GLOW ORBS
   ========================================================================== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px); /* Massive blur for an organic lighting spread */
    opacity: 0.45;
    mix-blend-mode: multiply;
}

/* Matching the cool blue grading on the workspace monitor screen */
.orb-blue {
    top: -20%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #3b82f6 0%, #60a5fa 100%);
}

/* Matching the warm red/pink accents from the badge and post-its */
.orb-pink {
    bottom: -10%;
    left: 10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #f43f5e 0%, #fda4af 100%);
    opacity: 0.25;
}

/* ==========================================================================
   🛸 LAYER 3: FLOATING ACCENT GRAPHICS & ANIMATIONS
   ========================================================================== */
.floating-accent {
    position: absolute;
    color: rgba(148, 163, 184, 0.25); /* Muted decorative gray tone */
    font-family: system-ui, sans-serif;
    user-select: none;
}

/* Circle Accent Rings */
.shape-circle {
    display: block;
    border-radius: 50%;
}

.ring-1 {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(59, 130, 246, 0.15);
    top: 25%;
    left: 8%;
    animation: driftOrganic 16s ease-in-out infinite;
}

.ring-2 {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(244, 63, 94, 0.15);
    bottom: 30%;
    right: 8%;
    animation: driftOrganic 20s ease-in-out infinite -4s;
}

/* Cross Vector Accents */
.cross-1 {
    font-size: 1.5rem;
    font-weight: 300;
    top: 15%;
    right: 45%;
    animation: driftOrganic 12s ease-in-out infinite -2s;
}

.cross-2 {
    font-size: 1.2rem;
    font-weight: 300;
    bottom: 15%;
    left: 42%;
    animation: driftOrganic 18s ease-in-out infinite -6s;
}

/* Smooth Floating Animation Timings */
@keyframes driftOrganic {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) translateX(10px) rotate(45deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* ==========================================================================
   📱 SYSTEM PERFORMANCE OPTIMIZATION FOR MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    /* Turn off heavy blurs and math calculations on low-power phones */
    .glow-orb, .floating-accent {
        display: none !important;
    }
    .grid-overlay {
        background-size: 30px 30px;
    }
}

/* End */

/* LEFT COLUMN: TYPOGRAPHY AND AIRY LAYOUT TRACKING RULES */
.intro-text-column {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Sleek Icon Badge Capsule */
/* ==========================================================================
   ELEMENT TWEAKS FOR ULTRA-CLEAN CONTRAST
   ========================================================================== */
/* Glass capsule for the badge to sit beautifully on the new gradient canvas */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(188, 0, 45, 0.15); /* Soft crimson border */
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 24px;
    width: max-content;
    box-shadow: 0 2px 10px rgba(188, 0, 45, 0.02);
}

.badge-icon {
    font-size: 0.85rem;
    color: var(--crimson-accent);
}

.intro-tagline {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--crimson-accent);
    letter-spacing: 0.1em;
    line-height: 1;
}

.intro-title {
    font-size: 3.2rem; /* Enhanced size scale for landing impact grid */
    font-weight: 800;
    color: var(--brand-dark-blue); /* #1b506b core text mapping color */
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #1b506b !important; 
}

.intro-desc {
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-slate);
    letter-spacing: -0.005em;
    margin-bottom: 36px;
    color: #3a5b6c !important; 
}

/* Horizontal Feature Tags Row */
.intro-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Ensure feature tags match the premium light background theme */
.intro-tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-dark-blue);
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.01);
}

.intro-tag-item:hover {
    border-color: rgba(27, 80, 107, 0.3);
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(27, 80, 107, 0.04);
}

.tag-icon {
    color: var(--crimson-accent);
    font-size: 0.9rem;
}

/* ==========================================================================
   RIGHT COLUMN: GRAPHICAL PHOTO FRAME AND FLOATING BADGES
   ========================================================================== */
.intro-graphic-column {
    position: relative;
    width: 100%;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(27, 80, 107, 0.08);
}

.hero-display-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-page-intro:hover .hero-display-img {
    transform: scale(1.03);
}

.hero-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(27, 80, 107, 0.2) 100%);
}

/* Floating Glassmorphic Statistics Box */
.floating-glass-stat {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-glass-stat:hover {
    transform: translateY(-4px) scale(1.02);
}

.stat-icon-pool {
    width: 36px;
    height: 36px;
    background-color: var(--brand-dark-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.stat-text-box {
    text-align: left;
}

.stat-text-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-text-box p {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   📱 MOBILE VIEWPORTS RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {
    .intro-container {
        grid-template-columns: 1fr; /* Collapses neatly to a vertical column stacked layout */
        gap: 48px;
    }
    .intro-title { font-size: 2.6rem; }
    .hero-image-frame { height: 360px; max-width: 600px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .course-page-intro { padding: 60px 16px 40px 16px; }
    .intro-title { font-size: 2rem; }
    .intro-desc { font-size: 1rem; margin-bottom: 24px; }
    .hero-image-frame { height: 28px; height: 280px; }
    .floating-glass-stat { padding: 12px 16px; bottom: 16px; left: 16px; }
    .stat-text-box h4 { font-size: 1.15rem; }
}

/* ==========================================================================
   🌸 DENSE REALISTIC SAKURA BLOSSOM BACKGROUND ENGINE
   ========================================================================== */
.sakura-flower {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.22; /* Slightly dimmer average opacity for clean text reading */
    will-change: transform;
    transition: opacity 0.3s ease;
}

.sakura-flower img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 📍 8-Point Asymmetric Distribution and Timing Matrix */

/* [1] Top Left Focus */
.sakura-real-1 {
    width: 44px;
    height: 44px;
    top: 10%;
    left: 4%;
    opacity: 0.35;
    opacity: 0.35;
    animation: sakuraRealTumble 20s linear infinite;
}

/* [2] Mid Center Falling Petal */
.sakura-real-2 {
    width: 22px;
    height: 22px;
    top: 18%;
    left: 44%;
    opacity: 0.2;
    animation: sakuraRealTumble 24s linear infinite -4s;
}

/* [3] Bottom Left Foreground */
.sakura-real-3 {
    width: 36px;
    height: 36px;
    bottom: 12%;
    left: 32%;
    opacity: 0.25;
    animation: sakuraRealTumble 18s linear infinite -8s;
}

/* [4] Far Right Backdrop Accent */
.sakura-real-4 {
    width: 48px;
    height: 48px;
    bottom: 24%;
    right: 3%;
    opacity: 0.15;
    animation: sakuraRealTumble 28s linear infinite -2s;
}

/* [5] NEW: Top Right Outer Cluster */
.sakura-real-5 {
    width: 38px;
    height: 38px;
    top: 8%;
    right: 15%;
    opacity: 0.28;
    animation: sakuraRealTumble 22s linear infinite -12s;
}

/* [6] NEW: Mid-Left Floating Petal */
.sakura-real-6 {
    width: 20px;
    height: 20px;
    top: 48%;
    left: 12%;
    opacity: 0.18;
    animation: sakuraRealTumble 16s linear infinite -6s;
}

/* [7] NEW: Bottom Center Ground Drift */
.sakura-real-7 {
    width: 30px;
    height: 30px;
    bottom: 8%;
    left: 55%;
    opacity: 0.22;
    animation: sakuraRealTumble 19s linear infinite -15s;
}

/* [8] NEW: Mid-Right Upper Float */
.sakura-real-8 {
    width: 26px;
    height: 26px;
    top: 38%;
    right: 38%;
    opacity: 0.14;
    animation: sakuraRealTumble 25s linear infinite -9s;
}

/* ==========================================================================
   🎬 3D PARALLAX TUMBLING & DRIFT ANIMATION
   ========================================================================== */
@keyframes sakuraRealTumble {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) rotateY(0deg) scale(1);
    }
    33% {
        transform: translateY(-25px) translateX(30px) rotate(120deg) rotateY(180deg) scale(1.05);
    }
    66% {
        transform: translateY(20px) translateX(-20px) rotate(240deg) rotateY(360deg) scale(0.95);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg) rotateY(0deg) scale(1);
    }
}

/* ==========================================================================
   📱 PERFORMANCE BREAKPOINT ISOLATION
   ========================================================================== */
@media (max-width: 768px) {
    .sakura-flower {
        display: none !important; /* Protect mobile memory buffers from excessive raster files */
    }
}

/* ==========================================================================
    START SKILLS IMMERSION SECTION
   ========================================================================== */
.skills-immersion-section {
    width: 100%;
    padding: 85px 24px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.skills-immersion-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 100px;
    align-items: center;
}

/* ==========================================================================
   LEFT COLUMN: MODERN TEXT ARCHITECTURE
   ========================================================================== */
.skills-text-column {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    z-index: 5;
}

.skills-mini-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #bc002d; /* Matches your school branding red motif */
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    display: block;
}

.skills-main-heading {
    font-size: 3rem;
    font-weight: 800;
    color: #1b506b; /* Required Deep Slate Blue color choice */
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.skills-description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #475569;
    letter-spacing: -0.005em;
    margin-bottom: 40px;
}

/* Redesigned Premium Action Button Capsule */
.skills-start-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #bc002d;
    color: #ffffff;
    padding: 14px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 14px 30px rgba(188, 0, 45, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-start-cta:hover {
    background-color: #dd0638; /* Flips beautifully to core brand red on hover */
    box-shadow: 0 14px 30px rgba(188, 0, 45, 0.3);
    transform: translateY(-3px);
}

.cta-arrow {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.skills-start-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   RIGHT COLUMN: DYNAMIC COLLAGE & INTERACTIVE BADGES
   ========================================================================== */
.skills-graphic-column {
    position: relative;
    width: 100%;
}

.collage-main-frame {
    position: relative;
    width: 80%;
    max-width: 420px;
    height: 500px;
    margin: 0 auto;
}

/* Clean Photo Mask Container Box Frame */
.image-mask-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.collage-subject-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-main-frame:hover .collage-subject-img {
    transform: scale(1.04);
}

/* ==========================================================================
   FLOATING PROGRESS SCORE CARDS SYSTEM (Apple Glass Layout)
   ========================================================================== */
.floating-skill-card {
    position: absolute;
    width: 210px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    
    /* Hardware accelerated idle floating transitions engine */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease, 
                background-color 0.3s ease;
}

.floating-skill-card:hover {
    background: #ffffff;
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 30px 50px rgba(27, 80, 107, 0.12);
}

/* Card Header Module */
.skill-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-icon-bubble {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Premium Gradient Fills for bubbles */
.bg-gradient-purple  { background: linear-gradient(135deg, #c084fc, #a855f7); }
.bg-gradient-blue    { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.bg-gradient-pink    { background: linear-gradient(135deg, #f472b6, #db2777); }
.bg-gradient-indigo  { background: linear-gradient(135deg, #818cf8, #4f46e5); }

.skill-title-block {
    text-align: left;
}

.skill-title-block h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 2px;
}

.skill-status-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Real-Time Graphic Progress Trackers */
.skill-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
}

/* Fill Colors synced to metrics entries */
.fill-purple  { background-color: #a855f7; }
.fill-blue    { background-color: #3b82f6; }
.fill-pink    { background-color: #db2777; }
.fill-indigo  { background-color: #4f46e5; }

.skill-metric-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   🚀 EXACT GEOMETRIC ANCHOR POSITIONS COORD CODES (Closer To Image Center)
   ========================================================================== */
.position-reading {
    top: 50px;
    left: -85px;
}

.position-speaking {
    top: -15px;
    right: -95px;
}

.position-listening {
    bottom: 40px;
    left: -95px;
}

.position-writing {
    bottom: -25px;
    right: -75px;
}

/* ==========================================================================
   📱 MOBILE VIEWPORT RESPONSIVE LAYER CORRECTIONS
   ========================================================================== */
@media (max-width: 1140px) {
    .skills-immersion-container { gap: 60px; }
    .floating-skill-card { width: 180px; padding: 12px; }
    .position-reading { left: -50px; }
    .position-speaking { right: -50px; }
    .position-listening { left: -50px; }
    .position-writing { right: -40px; }
}

@media (max-width: 992px) {
    .skills-immersion-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .skills-text-column {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }
    .skills-graphic-column { padding: 40px 0 50px 0; }
    .collage-main-frame { width: 70%; max-width: 380px; height: 440px; }
}

@media (max-width: 580px) {
    .skills-immersion-section { padding: 70px 16px; }
    .skills-main-heading { font-size: 2.1rem; }
    .collage-main-frame { height: 360px; width: 80%; }
    
    /* Clean compression to hide spill offsets on small mobile borders */
    .floating-skill-card { width: 145px; padding: 10px; gap: 8px; border-radius: 14px; }
    .skill-icon-bubble { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 6px; }
    .skill-title-block h4 { font-size: 0.8rem; }
    .skill-status-label { display: none; } /* Drops sublabels to preserve mobile whitespace density layout */
    
    .position-reading   { left: -35px; top: 40px; }
    .position-speaking  { right: -35px; top: -10px; }
    .position-listening { left: -35px; bottom: 30px; }
    .position-writing   { right: -25px; bottom: -15px; }
}
/* ==========================================================================
   END SKILLS IMMERSION SECTION
   ========================================================================== */

/* ==========================================================================
   START COURSE CATALOG SECTION
   ========================================================================== */
.course-catalog-section {
    width: 100%;
    padding: 80px 24px;
    background-color: #ffffff;
}

.catalog-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* .catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
} */

/* ==========================================================================
   CARD STRUCTURE, HOVER INTERACTION, AND METRICS
   ========================================================================== */
/* .catalog-card {
    background: #ffffff;
    border: 2px solid #063b92; 
    border-radius: 20px;       
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 380px;             
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
} */

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

/* Image Workspace Frame */
.card-media-frame {
    position: relative;
    width: 100%;
    height: 140px;             /* Shortened banner height */
    overflow: hidden;
}

.card-media-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.catalog-card:hover .card-media-frame img {
    transform: scale(1.05);           /* Micro lens scaling expand action simulate */
}

/* Category Badges overlay */
.card-level-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--brand-dark-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-level-badge,
.card-meta-row,
.card-pricing-footer .price-box,
.card-pricing-footer .enroll-action-btn span {
    display: none !important; 
}

/* ==========================================================================
   CARD BODY TYPOGRAPHY CONTENT CONFIGURATIONS
   ========================================================================== */
.card-body-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.card-body-content::before {
    content: 'Next Frontier';
    display: inline-flex;
    align-items: center;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1b506b;
    margin-bottom: 8px;
}

.card-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.meta-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-pill i {
    color: var(--brand-dark-blue);
}

.card-main-title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.2rem;        /* Small, dense text profile */
    font-weight: 700;
    color: #1b506b;
    line-height: 1.35;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;     /* Limits text overflow to 3 lines max */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card:hover .card-main-title {
    color: var(--crimson-accent);     /* Transitions smoothly to crimson accent on hover actions */
}

/* .card-text-description {
    display: none !important;
} */

.card-text-description {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.6;
    color: #2e6480;
    margin-bottom: 32px;
}

/* ==========================================================================
   CARD FOOTER ELEMENT ALIGNMENTS AND ACTIONS
   ========================================================================== */
.card-pricing-footer {
    margin-top: auto;                 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #b4d5f6;
}

.card-pricing-footer .enroll-action-btn {
font-size: 0.88rem;
    margin-left: auto;
    padding-right: 0px;
    font-weight: 700;
    color: #bc002d;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* .card-pricing-footer {
    margin-top: auto;          
    padding-top: 12px;
} */

.price-box {
    display: flex;
    align-items: baseline;
    color: var(--brand-dark-blue);
}

.currency-label {
    font-size: 1rem;
    font-weight: 700;
    margin-right: 2px;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.price-period {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

/* Premium Navigation Link Row CTA Button */
.enroll-action-btn {
    all: unset;
    display: block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;            /* Soft slate gray tone */
    text-transform: capitalize;
    pointer-events: none;      /* Label only function */
}

/* Dynamically inject level text into the footer label line based on context */
/* .catalog-card:nth-child(1) .enroll-action-btn::before { content: 'Professional Certificate'; }
.catalog-card:nth-child(2) .enroll-action-btn::before { content: 'Specialization'; }
.catalog-card:nth-child(3) .enroll-action-btn::before { content: 'Specialization'; }
.catalog-card:nth-child(4) .enroll-action-btn::before { content: 'Specialization'; }
.catalog-card:nth-child(5) .enroll-action-btn::before { content: 'Specialization'; } */

.enroll-action-btn i {
    display: none !important;  /* Removes icon arrow */
}

.enroll-action-btn i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover .enroll-action-btn {
    color: var(--crimson-accent);
}

.catalog-card:hover .enroll-action-btn i {
    transform: translateX(4px);      /* 🚀 Interactive arrow translate sliding transition motion */
}

/* ==========================================================================
   📱 MOBILE LAYOUT GRIDS RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on smaller devices */
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr;            
    }
    .catalog-card {
        height: auto;
        min-height: 320px;
    }
}

/* ==========================================================================
    SCROLL REVEAL SCENERY ENGINE (Hardware Accelerated Transitions)
   ========================================================================== */

/* 1. Base Starting States (Hidden off-screen properties before user scrolls down) */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Custom Positional Direction Offsets */
[data-reveal="fade"] {
    transform: scale(0.95);
}

[data-reveal="left"] {
    transform: translate3d(-40px, 0, 0) scale(0.9);
}

[data-reveal="right"] {
    transform: translate3d(40px, 0, 0) scale(0.9);
}

[data-reveal="bottom-left"] {
    transform: translate3d(-30px, 30px, 0) scale(0.9);
}

[data-reveal="bottom-right"] {
    transform: translate3d(30px, 30px, 0) scale(0.9);
}

/* 3. Active Animation Trigger State (Injected seamlessly via JavaScript Observer) */
.skills-graphic-column.revealed [data-reveal] {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
}

/* ==========================================================================
   ELEGANT IDLE AMBIENT FLOATING (Runs infinitely AFTER scroll-reveal finishes)
   ========================================================================== */
/* We apply an animation delay chain so that cards only start their organic 
   up-and-down hovering rhythm after they have completely loaded onto the screen */

.skills-graphic-column.revealed .position-reading {
    animation: smoothLevitation 6s ease-in-out infinite alternate 1.2s;
}

.skills-graphic-column.revealed .position-speaking {
    animation: smoothLevitation 7s ease-in-out infinite alternate 1.4s;
}

.skills-graphic-column.revealed .position-listening {
    animation: smoothLevitation 6.5s ease-in-out infinite alternate 1.6s;
}

.skills-graphic-column.revealed .position-writing {
    animation: smoothLevitation 7.5s ease-in-out infinite alternate 1.8s;
}

/* Pure CSS Fluid Floating Wave Keyframes */
@keyframes smoothLevitation {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(0, -12px, 0); /* 🚀 Gently floats up 12px, then slides back down smoothly */
    }
}

/* ==========================================================================
   ✨ COURSE CATEGORY FILTER BAR
   ========================================================================== */
.catalog-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Modern Pill Buttons */
.filter-pill {
    all: unset;
    cursor: pointer;
    font-family: system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    padding: 10px 24px;
    border-radius: 100px;
    background: #f1f5f9;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Interactive States */
/* .filter-pill:hover {
    color: #1e293b;
    background: #e2e8f0;
} */

/* Active Highlight Style matching Coursera Branding */
/* .filter-pill.active {
    color: #ffffff;
    background: #bc002d; 
    border-color: #1e3a8a;
    box-shadow: 0 6px 18px rgba(188, 0, 45, 0.3);
} */
/* .filter-pill.active {
    color: #ffffff;
    background: #1e3a8a; 
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2);
} */

/* ==========================================================================
   🎬 ANIMATED GRID FILTERING STATES
   ========================================================================== */
/* .catalog-card {
    background: #ffffff;
    border: 2px solid #2563eb;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 420px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
} */

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card-media-frame {
    width: 100%;
    height: 130px; /* Compact image container banner */
    overflow: hidden;
}

.card-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force precise 4-column lineup */
    gap: 24px;
    width: 100%;
}

/* State when item is hidden by filter */
.catalog-card.is-hidden {
    opacity: 0 !important;
    transform: scale(0.92) translateY(10px) !important;
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

/* ==========================================================================
   END COURSE CATALOG SECTION
   ========================================================================== */

/* ==========================================================================
   START COMMUNITY SECTION
   ========================================================================== */
.community-section {
    width: 100%;
    padding: 130px 24px;
    background-color: #f8fafc; /* Alternates baseline layout background tracks */
    position: relative;
    overflow: hidden;
}

.community-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; /* Dynamic asymmetric split focus */
    gap: 80px;
    align-items: center;
}

/* ==========================================================================
   LEFT COLUMN: REFINED ASYMMETRIC MASONRY MATRIX
   ========================================================================== */
/* ==========================================================================
    CLEAN DESIGN HOOKS FOR THE (1) | (2,3) LAYOUT CONCEPT
   ========================================================================== */
.community-media-column {
    position: relative;
    width: 100%;
}

/* Master Outermost Grid Framework Split */
.masonry-grid-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    width: 100%;
    align-items: center;
}

/* Internal Right Stack Engine to handle elements (2) and (3) */
.masonry-right-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Master Image Container Foundations */
.masonry-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.7);
    /* Set backface properties for buttery-smooth animations on mobile */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s ease;
}

/* Image Scale Layout Correction */
.masonry-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.05); /* Slight zoom baseline for the breathing effect */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   📐 INTENTIONAL ASPECT RATIOS & HEIGHT CONTROL
   ========================================================================== */

/* (1) Main Large Campus Frame Dimensions */
.frame-main-left { height: 540px; width: 100%; }
.frame-side-top { height: 240px; width: 100%; }
.frame-side-bottom { height: 276px; width: 100%; }

/* ==========================================================================
   🎬 CINEMATIC MOTION PROFILE
   ========================================================================== */
.masonry-grid-wrapper:hover .masonry-item {
    filter: brightness(0.96); /* Subtle depth immersion tweak */
    transition: filter 0.4s ease;
}

.masonry-grid-wrapper .masonry-item:hover {
    filter: brightness(1);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    z-index: 5;
}

/* ==========================================================================
   ✨ PREMIUM FROSTED PILL
   ========================================================================== */
.floating-glass-pill {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    animation: simplePulse 2s infinite ease-in-out;
}

@keyframes flyInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes flyInRight {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Apply fly-in keys with explicit staggered loading timers */
.frame-main-left {
    animation: flyInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.frame-side-top {
    animation: flyInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0; /* Keeps hidden until stagger begins */
}

.frame-side-bottom {
    animation: flyInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

/* ==========================================================================
   🔄 ANIMATION MATRIX: IDLE ZOOM SYSTEM (BREATHING REVEAL)
   ========================================================================== */
@keyframes continuousZoom {
    0% { transform: scale(1.03); }
    50% { transform: scale(1.11); }
    100% { transform: scale(1.03); }
}

/* Infinite continuous background breathing pattern */
.masonry-img {
    animation: continuousZoom 24s ease-in-out infinite;
}

/* Offset loops slightly so images do not breathe at the exact same rhythm */
.frame-side-top .masonry-img { animation-delay: -4s; animation-duration: 20s; }
.frame-side-bottom .masonry-img { animation-delay: -8s; animation-duration: 28s; }

/* ==========================================================================
   🚀 CLEAN LAYOUT ARCHITECTURE FOR THE (1) | (2,3) ENGINE
   ========================================================================== */
.community-media-column {
    position: relative;
    width: 100%;
}

.masonry-grid-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    width: 100%;
    align-items: center;
}

.masonry-right-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Master Image Container Foundations */
.masonry-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.7);
    /* Set backface properties for buttery-smooth animations on mobile */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s ease;
}

/* Base image state handling zoom limits */
.masonry-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.05); /* Slight zoom baseline for the breathing effect */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Container Frame Heights */
.frame-main-left { height: 540px; width: 100%; }
.frame-side-top { height: 240px; width: 100%; }
.frame-side-bottom { height: 276px; width: 100%; }

/* ==========================================================================
   🎬 ANIMATION MATRIX: FLY-IN ENGINE
   ========================================================================== */
@keyframes flyInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes flyInRight {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Apply fly-in keys with explicit staggered loading timers */
.frame-main-left {
    animation: flyInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.frame-side-top {
    animation: flyInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0; /* Keeps hidden until stagger begins */
}

.frame-side-bottom {
    animation: flyInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

/* ==========================================================================
   🔄 ANIMATION MATRIX: IDLE ZOOM SYSTEM (BREATHING REVEAL)
   ========================================================================== */
@keyframes continuousZoom {
    0% { transform: scale(1.03); }
    50% { transform: scale(1.11); }
    100% { transform: scale(1.03); }
}

/* Infinite continuous background breathing pattern */
.masonry-img {
    animation: continuousZoom 24s ease-in-out infinite;
}

/* Offset loops slightly so images do not breathe at the exact same rhythm */
.frame-side-top .masonry-img { animation-delay: -4s; animation-duration: 20s; }
.frame-side-bottom .masonry-img { animation-delay: -8s; animation-duration: 28s; }

/* ==========================================================================
   🖱️ MOUSE HOVER OVERRIDES
   ========================================================================== */
.masonry-grid-wrapper:hover .masonry-item {
    filter: brightness(0.93) grayscale(0.1);
}

.masonry-grid-wrapper .masonry-item:hover {
    filter: brightness(1) grayscale(0);
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.14);
    z-index: 10;
}

/* When a user hovers over an item, break out of continuous idle zoom and pull active focus */
.masonry-item:hover .masonry-img {
    animation-play-state: paused; /* Pauses internal breath loop seamlessly */
    transform: scale(1.15) !important; /* Force interactive zoom priority */
}

/* ==========================================================================
   ✨ PREMIUM FLOATING CAPSULE DESIGN
   ========================================================================== */
.floating-glass-pill {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    z-index: 5;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    animation: simplePulse 2s infinite ease-in-out;
}

@keyframes simplePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   📱 FLUID BREAKPOINTS FOR TARGET VIEWPORTS
   ========================================================================== */
@media (max-width: 992px) {
    .masonry-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .frame-main-left { height: 400px; }
    .frame-side-top, .frame-side-bottom { height: 220px; }
    .masonry-img { animation: none !important; transform: scale(1) !important; } /* Kill animations on low power handhelds */
    .frame-side-top, .frame-side-bottom { opacity: 1; animation: none; }
}

/* ==========================================================================
   RIGHT COLUMN: PREMIUM CONTENT TYPOGRAPHY & ACCESS BADGES
   ========================================================================== */
.community-text-column {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.community-tagline {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #bc002d; /* core school red accent tracking */
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    display: block;
}

.community-main-heading {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1b506b; /* Required corporate slate blue color choice */
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.community-description {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 36px;
}

/* Metrics highlight array grid alignment */
.community-metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 44px;
}

.metric-block-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-block-card:hover {
    border-color: rgba(27, 80, 107, 0.2);
    transform: translateX(4px);
    box-shadow: 0 10px 25px rgba(27, 80, 107, 0.03);
}

.metric-icon-bubble {
    width: 44px;
    height: 44px;
    background-color: rgba(27, 80, 107, 0.06); /* slate blue transparent bubble layer fill */
    color: #1b506b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.metric-data-box h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1b506b;
    line-height: 1.1;
    margin-bottom: 2px;
}

.metric-data-box p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

/* High Contrast Slate Blue Action Callout capsule btn */
.community-join-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #bc002d;
    color: #ffffff;
    padding: 14px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 12px 28px rgba(188, 0, 45, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: max-content;
}

.community-join-cta:hover {
    background-color: #dd0638; /* Morph color shift to crimson brand template theme on hovering maps */
    box-shadow: 0 12px 28px rgba(188, 0, 45, 0.3);
    transform: translateY(-2px);
}

.cta-arrow-glide {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.community-join-cta:hover .cta-arrow-glide {
    transform: translateX(4px);
}

/* ==========================================================================
   📱 MOBILE VIEWPORTS MEDIA QUERIES DATA CORRECTIONS
   ========================================================================== */
@media (max-width: 1024px) {
    .community-container {
        grid-template-columns: 1fr; /* Collapses masonry and descriptive columns layout into a vertical unified row stack */
        gap: 60px;
    }
    .community-text-column {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .community-section { padding: 70px 16px; }
    .community-main-heading { font-size: 2.1rem; }
    
    /* Reconfigure multi-layered overlapping grid positions for tiny smartphone device window aspect views */
    .masonry-grid-wrapper { grid-template-rows: repeat(12, 28px); }
    .frame-large { grid-column: 1 / 13; grid-row: 1 / 8; height: 220px; }
    .frame-sub-top { display: none; } /* Hide heavy auxiliary image grid overlaps on compact mobile displays to drop code load data sizes */
    .frame-sub-bottom { grid-column: 1 / 13; grid-row: 8 / 13; height: 160px; margin-left: 0; margin-top: 15px; }
    .metric-block-card { padding: 12px 16px; gap: 14px; }
    .metric-data-box h4 { font-size: 1.2rem; }
}
/* ==========================================================================
   END COMMUNITY SECTION
   ========================================================================== */

   /* ------------------------------------------------- */
   /* ==========================================================================
   📚 COURSERA PROFILE COURSE CATALOG SYSTEM
   ========================================================================== */
.course-catalog-section {
    width: 100%;
    padding: 80px 24px;
    background-color: #ffffff;
}

.catalog-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ==========================================================================
   ✨ CATEGORY FILTER NAVIGATION HUD
   ========================================================================== */
.catalog-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-pill {
    all: unset;
    cursor: pointer;
    font-family: system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    padding: 10px 24px;
    border-radius: 100px;
    background: #f1f5f9;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill:hover {
    color: #1e293b;
    background: #e2e8f0;
}

.filter-pill.active {
    color: #ffffff;
    background: #bc002d; /* Brand Luxury Navy */
    box-shadow: 0 6px 14px rgba(188, 0, 45, 0.3);
}

/* ==========================================================================
   📐 4-COLUMN STRUCTURAL CARD LAYOUT MATRIX
   ========================================================================== */
/* .catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    width: 100%;
} */

.catalog-card {
    background: #ffffff;
    border: 2px solid #0a6cc3; 
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 440px; /* Locked box height parameters */
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.card-media-frame {
    width: 100%;
    height: 150px; /* Compact image container banner */
    overflow: hidden;
}

.card-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   📝 INTERNAL BODY COMPACT TEXT LAYOUT
   ========================================================================== */
.card-body-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Delivery Labels (Online / In-Class) */
.card-delivery-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mode-tag {
    font-family: system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #bc002d;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mode-tag.specialty {
    color: #b45309;
    background: #fffbeb; /* Distinct warm amber tone for specialized tracks */
}

/* Typography Titles */
.card-main-title {
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1b506b;
    line-height: 1.35;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em; /* Stabilizes text box rows evenly */
}

/* Feature Checklists Content */
.card-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.card-feature-list li {
    font-family: system-ui, sans-serif;
    font-size: 0.8rem;
    color: #1b506b;
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
}

.card-feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1b506b;
    font-weight: bold;
}

/* Dynamic Baseline Footer Rules */
.card-pricing-footer {
    margin-top: auto; /* Anchors content cleanly to bottom boundaries */
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
}

.enroll-action-btn {
    font-family: system-ui, sans-serif;
    font-size: 0.825rem;
    font-weight: 600;
    color: #64748b; /* Soft Slate Status Color Label Profile */
    display: block;
}

/* ==========================================================================
   🎬 ANIMATED GRID FILTERING STATES
   ========================================================================== */
.catalog-card.is-hidden {
    display: none !important;
}

/* ==========================================================================
   📱 ADAPTIVE FLUID VIEWPORT RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1100px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); } /* 3 Columns on smaller screens */
}

@media (max-width: 992px) {
    .catalog-grid { 
        grid-template-columns: repeat(2, 1fr); /* Scales down to 2 columns on tablets */
        gap: 20px;
    } 
}
@media (max-width: 850px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); } /* 2 Columns on tablets */
}
@media (max-width: 640px) {
    .catalog-grid { 
        grid-template-columns: 1fr; /* Stacks into a clean 1-column list layout on smartphones */
    } 
    .catalog-card { 
        height: auto; /* Drops fixed height on mobile so content flows naturally */
    }
}
@media (max-width: 550px) {
    .catalog-grid { grid-template-columns: 1fr; } /* 1 Single track layout on mobile viewports */
    .catalog-card { height: auto; }
}
