/* ═══════════════════════════════════════════════════════════════
   ACADEMIC PROGRAMS & COURSE CATEGORIES (3D GLASS BENTO UI)
   Ultra-Premium, Professional, Native Light & Dark Mode
   ═══════════════════════════════════════════════════════════════ */

/* Section Outer Container */
.academic-programs-section {
    position: relative;
    padding: 1.75rem 0 !important;
    overflow: hidden;
    background: transparent;
}

@media (max-width: 768px) {
    .academic-programs-section {
        padding: 1rem 0 !important;
    }
}

/* Ambient 3D Glass Glow Spheres */
.academic-glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
    transition: opacity 0.5s ease;
}

.academic-glow-sphere--1 {
    top: -15%;
    left: 8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
}

.academic-glow-sphere--2 {
    bottom: -15%;
    right: 8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.22) 0%, transparent 70%);
}

[data-theme="dark"] .academic-glow-sphere {
    opacity: 0.6;
}

/* Section Header Typography */
.academic-programs-head {
    position: relative;
    z-index: 2;
}

.academic-programs-title {
    font-size: clamp(1.4rem, 3.2vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    color: var(--text-heading, #0f172a);
    letter-spacing: -0.02em;
}

[data-theme="dark"] .academic-programs-title {
    color: #f8fafc;
}

.academic-programs-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 0.98rem);
    color: var(--text-muted, #64748b);
    margin: 0 auto;
    max-width: 580px;
    line-height: 1.5;
    font-weight: 500;
}

[data-theme="dark"] .academic-programs-subtitle {
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════
   Bento Cards Grid (Centered, Balanced, Responsive)
   ═══════════════════════════════════════════════════════════════ */
.academic-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .academic-bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .academic-bento-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Professional 3D Glass Bento Card
   ═══════════════════════════════════════════════════════════════ */
.academic-bento-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    text-decoration: none !important;
    overflow: hidden;
    cursor: pointer;
    
    /* Ultra-Premium Frosted Glass */
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow: 
        0 10px 28px -5px rgba(15, 23, 42, 0.06),
        0 0 16px -2px var(--card-glow, rgba(37, 99, 235, 0.15)),
        inset 0 1.5px 2px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.02);
    
    transition: 
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s ease,
        background 0.3s ease;
}

/* Hover Physics */
.academic-bento-card:hover {
    transform: translateY(-5px) scale(1.015);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--card-accent, #2563eb);
    box-shadow: 
        0 20px 38px -6px rgba(15, 23, 42, 0.12),
        0 0 28px 2px var(--card-glow, rgba(37, 99, 235, 0.35)),
        inset 0 1.5px 3px 0 rgba(255, 255, 255, 1);
}

.academic-bento-card:active {
    transform: translateY(-1px) scale(0.995);
}

/* ═══════════════════════════════════════════════════════════════
   Simultaneous Slow Continuous Bidirectional Glare Animation
   (Ultra-Soft, Low Opacity, Diffused Silky Glare on all cards)
   ═══════════════════════════════════════════════════════════════ */

@keyframes slowContinuousSimultaneousGlare {
    0% {
        transform: translate3d(-150%, 0, 0) rotate(25deg);
        opacity: 0.05;
    }
    25% {
        opacity: 0.35;
    }
    50% {
        transform: translate3d(280%, 0, 0) rotate(25deg);
        opacity: 0.05;
    }
    75% {
        opacity: 0.35;
    }
    100% {
        transform: translate3d(-150%, 0, 0) rotate(25deg);
        opacity: 0.05;
    }
}

.course-card-glare-continuous,
.service-card-glare-continuous {
    position: absolute;
    top: -60%;
    left: -20%;
    width: 65%;
    height: 220%;
    /* Ultra-Soft, ultra-low opacity natural ambient sheen */
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.008) 25%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.008) 75%,
        transparent 100%
    );
    filter: blur(8px);
    pointer-events: none;
    z-index: 3;
    opacity: 0.05;
    will-change: transform, opacity;
    animation: slowContinuousSimultaneousGlare 11.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

[data-theme="dark"] .course-card-glare-continuous,
[data-theme="dark"] .service-card-glare-continuous,
body[data-theme="dark"] .service-card-glare-continuous,
body.dark-theme .service-card-glare-continuous,
body.dark-mode .service-card-glare-continuous {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.004) 25%,
        rgba(255, 255, 255, 0.07) 50%,
        rgba(255, 255, 255, 0.004) 75%,
        transparent 100%
    );
    opacity: 0.65;
}

/* Ambient Backlight Aura inside card */
.academic-bento-aura {
    position: absolute;
    top: 5%;
    left: -10%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-glow, rgba(37, 99, 235, 0.35)) 0%, transparent 70%);
    filter: blur(25px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.academic-bento-card:hover .academic-bento-aura {
    opacity: 0.95;
    transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════════════
   Left 3D Glass Emblem Box
   ═══════════════════════════════════════════════════════════════ */
.academic-bento-icon-box {
    position: relative;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 17px;
    background: var(--badge-bg, linear-gradient(135deg, #38bdf8 0%, #0284c7 100%));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    box-shadow: 
        0 8px 20px -3px var(--card-glow, rgba(37, 99, 235, 0.38)),
        inset 0 2px 4px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 4px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.academic-bento-card:hover .academic-bento-icon-box {
    transform: scale(1.08) rotate(-3deg);
}

.academic-bento-icon-sheen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    pointer-events: none;
}

.academic-bento-icon-glyph {
    position: relative;
    z-index: 2;
    font-size: 1.6rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.academic-bento-icon-glyph i {
    font-size: 1.45rem;
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   Center Content Stack
   ═══════════════════════════════════════════════════════════════ */
.academic-bento-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.academic-bento-pills-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

/* Top Code/Batch Mini Badge */
.academic-bento-code-pill {
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.06);
    color: var(--card-accent, #2563eb);
    padding: 1px 7px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Dynamic Live Status Beacon Pill */
@keyframes beaconLivePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 0 4px rgba(234, 88, 12, 0);
        opacity: 0.85;
    }
}

.academic-bento-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    font-weight: 800;
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.25);
    padding: 1px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.academic-live-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea580c;
    animation: beaconLivePulse 1.4s infinite ease-in-out;
}

.academic-bento-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2px 0 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.015em;
    transition: color 0.2s ease;
}

.academic-bento-card:hover .academic-bento-title {
    color: var(--card-accent, #2563eb);
}

.academic-bento-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════
   Right Interactive Action Circle
   ═══════════════════════════════════════════════════════════════ */
.academic-bento-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.04);
    color: #64748b;
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 2;
    transition: 
        all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.85rem;
}

.academic-bento-card:hover .academic-bento-arrow {
    background: var(--card-accent, #2563eb);
    color: #ffffff;
    border-color: var(--card-accent, #2563eb);
    transform: translateX(4px) scale(1.08);
    box-shadow: 0 4px 14px var(--card-glow, rgba(37, 99, 235, 0.45));
}

/* ═══════════════════════════════════════════════════════════════
   Theme Palette Variants
   ═══════════════════════════════════════════════════════════════ */
/* Sky Blue (HSC 26 🏆) */
.academic-bento-card--sky {
    --card-accent: #0284c7;
    --card-glow: rgba(2, 132, 199, 0.25);
    --badge-bg: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
}

/* Cyan (HSC 27 🎯) */
.academic-bento-card--cyan {
    --card-accent: #0ea5e9;
    --card-glow: rgba(14, 165, 233, 0.25);
    --badge-bg: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
}

/* Blue (HSC 28 🎒) */
.academic-bento-card--blue {
    --card-accent: #2563eb;
    --card-glow: rgba(37, 99, 235, 0.25);
    --badge-bg: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

/* Orange (SSC 27 📜) */
.academic-bento-card--orange {
    --card-accent: #ea580c;
    --card-glow: rgba(234, 88, 12, 0.25);
    --badge-bg: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}

/* Green (Class 9 🎒) */
.academic-bento-card--green {
    --card-accent: #059669;
    --card-glow: rgba(5, 150, 105, 0.25);
    --badge-bg: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

/* Emerald (Class 6-8 🎒) */
.academic-bento-card--emerald {
    --card-accent: #16a34a;
    --card-glow: rgba(22, 163, 74, 0.25);
    --badge-bg: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
}

/* Purple (🎓) */
.academic-bento-card--purple {
    --card-accent: #7e22ce;
    --card-glow: rgba(126, 34, 206, 0.25);
    --badge-bg: linear-gradient(135deg, #c084fc 0%, #7e22ce 100%);
}

/* Red (Admission CTA 🚀) */
.academic-bento-card--red {
    --card-accent: #dc2626;
    --card-glow: rgba(220, 38, 38, 0.28);
    --badge-bg: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

/* ═══════════════════════════════════════════════════════════════
   Dark Mode Overrides (Deep Obsidian Ultra-Glass Physics)
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .academic-bento-card {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 
        0 14px 34px -4px rgba(0, 0, 0, 0.55),
        0 0 20px -2px var(--dark-glow, rgba(37, 99, 235, 0.35)),
        inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 4px 0 rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .academic-bento-card:hover {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--card-accent, #38bdf8) !important;
    box-shadow: 
        0 22px 42px -5px rgba(0, 0, 0, 0.7),
        0 0 30px 3px var(--dark-glow, rgba(37, 99, 235, 0.6)),
        inset 0 1.5px 3px 0 rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .academic-bento-title {
    color: #f8fafc !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .academic-bento-card:hover .academic-bento-title {
    color: #ffffff !important;
}

[data-theme="dark"] .academic-bento-sub {
    color: #94a3b8 !important;
}

[data-theme="dark"] .academic-bento-code-pill {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .academic-bento-live-pill {
    background: rgba(234, 88, 12, 0.2) !important;
    border-color: rgba(234, 88, 12, 0.45) !important;
    color: #fdba74 !important;
}

[data-theme="dark"] .academic-bento-arrow {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .academic-bento-card:hover .academic-bento-arrow {
    background: var(--card-accent, #38bdf8) !important;
    color: #ffffff !important;
    border-color: var(--card-accent, #38bdf8) !important;
}
