/* ==========================================
   BASE STYLING & CORE WRAPPER
========================================== */
.programs-analytics-hub {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Fluid Decorative Ambient Orbs */
.programs-analytics-hub::before,
.programs-analytics-hub::after {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 1;
}

.programs-analytics-hub::before {
    background: rgba(99, 102, 241, 0.06);
    top: -200px;
    right: -200px;
}

.programs-analytics-hub::after {
    background: rgba(16, 185, 129, 0.05);
    bottom: -200px;
    left: -200px;
}

/* ==========================================
   HEADER CONFIGURATIONS
========================================== */
.header-creative-row {
    position: relative;
    z-index: 5;
    margin-bottom: 75px !important;
}

.hub-tagline {
    display: inline-flex;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(79, 70, 229, 0.06);
    color: #4f46e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-top: 15px;
}

.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-description {
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 480px;
    margin-left: auto;
}

/* ==========================================
   PRODUCTION RE-ENGINEERED STORY CARD
========================================== */
.creative-card-grid {
    position: relative;
    z-index: 5;
}

.story-card {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Isolate gradient glow via dynamic multi-border fallback */
.story-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(16, 185, 129, 0.35), rgba(245, 158, 11, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(99, 102, 241, 0.03);
}

.story-card:hover::after {
    opacity: 1;
}

/* ==========================================
   IMAGE FRAME WORK MATRIX
========================================== */
.card-img-container {
    height: 300px!important;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card:hover img {
    transform: scale(1.05) rotate(0.5deg);
}

/* Refined overlay vignette */
.card-img-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.35) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

/* ==========================================
   TYPOGRAPHY CONTENT SYSTEMS
========================================== */
.card-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.05em;
    line-height: 1.4;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    border-radius: 4px;
    background: #4f46e5;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.story-card:hover .card-title::after {
    width: 75px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
}

.card-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #475569;
    text-align: justify;
    text-justify: inter-word;
}

/* ==========================================
   RESPONSIVE LAYOUT SYSTEMS
========================================== */
@media (max-width: 1199px) {
    .page-title {
        font-size: 2.8rem;
    }
    .card-img-container {
        height: 220px;
    }
}

@media (max-width: 991px) {
    .programs-analytics-hub {
        padding: 80px 0;
    }
    .header-creative-row {
        margin-bottom: 45px !important;
    }
    .header-description {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .programs-analytics-hub {
        padding: 60px 0;
    }
    .page-title {
        font-size: 2.1rem;
        text-align: center;
    }
    .header-description {
        text-align: center;
        margin-top: 12px;
    }
    .hub-tag-wrapper {
        text-align: center;
    }
    .card-img-container {
        height: 210px;
    }
    .card-title {
        font-size: 1.08rem;
    }
    .card-text {
        font-size: 0.88rem;
    }
}