:root {
    --primary: #1e3a8a;
    /* Brighter Royal Navy */
    --accent: #0ea5e9;
    /* More vibrant Sky Blue */
    --accent-glow: rgba(14, 165, 233, 0.3);
    --bg-body: #f1f5f9;
    /* Slightly softer */
    --text-heading: #0f172a;
    --text-body: #475569;
    --card-radius: 8px;
    --glass-white: rgba(255, 255, 255, 0.82);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Prompt', 'Outfit', sans-serif;
    background:
        radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(30, 41, 59, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(2, 132, 199, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(30, 41, 59, 0.02) 0px, transparent 50%),
        var(--bg-body);
    color: var(--text-body);
    padding-top: 75px;
    letter-spacing: -0.01em;
    min-height: 100vh;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Abstract Page Decorators */
.page-aura {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.aura-1 {
    top: 10%;
    right: -10%;
}

.aura-2 {
    bottom: 10%;
    left: -10%;
}

/* --- Elite Navbar --- */
.navbar-elite {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand img {
    height: 32px;
    filter: grayscale(0.2) contrast(1.1);
}

.nav-link {
    font-weight: 500;
    color: var(--text-heading) !important;
    font-size: 0.85rem;
    margin: 0 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent) !important;
}

.user-nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    /* Circle */
    object-fit: cover;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.user-nav-avatar:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

.lang-switcher {
    display: inline-flex;
    background: rgba(241, 245, 249, 0.8);
    padding: 4px;
    border-radius: 8px;
    gap: 2px;
    margin-right: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-btn {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: #64748b;
    border: none;
    background: transparent;
    outline: none !important;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.15);
}

/* Mobile Hamburger Custom Styling */
.navbar-toggler {
    border: none;
    padding: 0;
    outline: none !important;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 991.98px) {
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        z-index: 5;
    }

    .navbar-toggler {
        position: relative;
        z-index: 10;
    }

    .navbar-collapse {
        background: white;
        margin-top: 20px;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        border: 1px solid #f1f5f9;
    }

    .nav-link {
        margin: 8px 0 !important;
        padding: 10px 15px;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: #f8fafc;
    }
}

/* Desktop Hamburger (More Menu) */
.desktop-more-menu .dropdown-toggle::after {
    display: none;
}

.desktop-more-menu .hamburger-icon {
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.desktop-more-menu .hamburger-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.desktop-more-menu .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 10px;
    min-width: 220px;
    margin-top: 15px;
}

.desktop-more-menu .dropdown-item {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 0;
}

/* --- Premium Navigation Dropdowns --- */
.dropdown-elite {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item-premium {
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item-premium:hover {
    background: rgba(2, 132, 199, 0.05);
    color: var(--accent);
    transform: translateX(5px);
    text-decoration: none;
}

.dropdown-item-premium i {
    width: 20px;
    text-align: center;
    color: var(--accent);
}

/* --- Dynamic Hero (Professional Premium) --- */
.hero-premium {
    /* background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%); Original Grey-Navy */
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    /* Deep Premium Blue */
    padding: 40px 0 80px;
    /* Tightened padding */
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Animated Background Elements (Square Focus) */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.shape-sq {
    position: absolute;
    border: 2px solid white;
    border-radius: 20%;
    animation: rotateFloat 25s infinite linear;
}

@keyframes rotateFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(50px, 30px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-title {
    font-family: 'Outfit', 'Prompt', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    /* Reduced from 1.15 */
    opacity: 0.7;
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 0;
}

/* Search Bar (Elite) */
.search-elite {
    position: relative;
    max-width: 100%;
    margin-top: 30px;
    /* Reduced from 45 */
}

.search-elite input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    /* Slimmer */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-elite input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-elite i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
}

.hero-profile-container {
    width: 340px;
    height: 380px;
    /* Increased height to accommodate integrated info */
    margin: 0 auto;
    position: relative;
}

.glass-frame-sq {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    /* Capped at 15px */
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Strictly no movement */
}

.main-sq-img {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: 210px;
    object-fit: cover;
    object-position: top;
    /* Focus on the face/top part */
    border-radius: 8px;
    /* Capped at 15px */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(5px);
}

.score-box-premium {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 12px 18px;
    border-radius: 8px;
    /* Capped at 15px */
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: absolute;
    right: -15px;
    top: 15px;
    z-index: 25;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.user-info-glass {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    padding: 18px;
    border-radius: 8px;
    /* Capped at 15px */
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.floating-badge {
    display: none;
    /* Hide old badges to transition to integrated glass UI */
}

@keyframes bounceSoft {

    /* Animation disabled for stability */
    from {
        transform: none;
    }

    to {
        transform: none;
    }
}

.btn-org-modal {
    background: rgba(2, 132, 199, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    width: 100%;
    margin-top: 12px;
    transition: var(--transition);
}

.btn-org-modal:hover {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    color: white;
}

/* Glass Stats Bar under Search */
.glass-stats-bar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 22px 35px;
    /* Taller and wider */
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    /* Slightly wider */
    margin-top: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-stat-item {
    display: flex;
    flex-direction: column;
}

.glass-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
    margin-bottom: 4px;
    font-weight: 700;
}

.glass-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.stat-highlight-glow {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    margin: -10px 0;
    z-index: 5;
    position: relative;
    backdrop-filter: blur(10px);
}

.glass-stat-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Professional Operation Hub --- */
.hub-section {
    margin-top: -66px;
    /* 60% overlap from original -110px */
    margin-bottom: 50px;
    /* Reduced margin */
    position: relative;
    z-index: 50;
}

.hub-card-elite {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    border-radius: 8px;
    padding: 15px 25px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Aura / Northern Lights Abstract Background */
.hub-card-elite::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 60%);
    filter: blur(40px);
    animation: auraFloat 15s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: -1;
}

.hub-card-elite::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    filter: blur(45px);
    animation: auraFloat 12s infinite alternate-reverse ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes auraFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(30px, 20px) scale(1.1);
        opacity: 0.8;
    }
}

/* Aura / Northern Lights Abstract Background */
.hub-card-elite::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 60%);
    filter: blur(40px);
    animation: auraFloat 15s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: -1;
}

.hub-card-elite::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    filter: blur(45px);
    animation: auraFloat 12s infinite alternate-reverse ease-in-out;
    pointer-events: none;
    z-index: -1;
}

.hub-activity-border {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    height: 100%;
}

.hub-activity-border:hover {
    border-color: #d1d5db;
    background: rgba(255, 255, 255, 0.5);
}

@keyframes auraFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(30px, 20px) scale(1.1);
        opacity: 0.8;
    }
}

.op-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.op-title::after {
    content: '';
    height: 1px;
    background: #f1f5f9;
    flex-grow: 1;
    margin-left: 20px;
}

.op-item {
    text-align: center;
    text-decoration: none !important;
    display: block;
    padding: 15px;
    transition: var(--transition);
}

.op-icon-sq {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Sublte Glossy Overlay instead of heavy tint */
.op-icon-sq::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.op-icon-sq img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 3;
    /* Above the glossy overlay (z-index 2) */
    transition: var(--transition);
}

.op-item:hover .op-icon-sq {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.op-item:hover .op-icon-sq img {
    transform: scale(1.1);
}

.op-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.2;
}

/* --- Elite Course Cards (Square Focus) --- */
.section-header-pro {
    margin-bottom: 35px;
}

.pro-label {
    display: inline-block;
    background: #e0f2fe;
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-card-elite {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    height: 100%;
}

.course-card-elite:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
    border-color: rgba(2, 132, 199, 0.2);
}

.course-thumb-sq {
    width: 100%;
    aspect-ratio: 16/9;
    /* CINEMATIC RATIO */
    overflow: hidden;
    position: relative;
}

.course-thumb-sq img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card-elite:hover .course-thumb-sq img {
    transform: scale(1.1);
}

.course-elite-body {
    padding: 24px;
}

.course-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.course-elite-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 15px;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.btn-elite {
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    width: 100%;
}

.btn-elite-primary {
    background: var(--primary);
    color: white;
}

.btn-elite-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer-elite {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 40px;
    margin-top: 80px;
}

/* --- Highlight List Items --- */
.list-item-elite {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: var(--transition);
    text-decoration: none !important;
}

.list-item-elite:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.list-thumb-sq {
    width: 100px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    aspect-ratio: 16/9;
}

.list-content-info {
    flex-grow: 1;
}

.list-title-elite {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
    line-height: 1.3;
}

.list-meta-elite {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
}

/* Banner Activity Styles */
.banner-activity-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 180px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.banner-activity-wrapper:hover {
    transform: scale(1.02);
}

.banner-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay-elite {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.banner-title-elite {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.banner-tag-elite {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
}

/* --- Outstanding Highlight Boxes --- */
.highlight-box-elite {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 25px 22px;
    height: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.highlight-box-elite:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.star-rating {
    color: #f59e0b;
    /* Amber/Gold */
    font-size: 0.65rem;
    margin-left: 5px;
}

.section-title-premium {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    margin-bottom: 35px;
    color: var(--primary);
}

.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--accent);
    border-radius: 4px;
}

/* --- Bento Grid Highlight --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(5, 230px);
    /* 5 rows of 230px = 1150px total height */
    gap: 20px;
    margin-top: 40px;
}

.bento-left-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 15px;
    grid-row: span 5;
}

.bento-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    background: white;
}

/* Glass Pastel Utilities (Luminous & Seamless) */
.glass-pastel-blue {
    background: radial-gradient(circle at 0% 0%, rgba(186, 230, 253, 0.2), transparent 80%) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 20px rgba(186, 230, 253, 0.05) !important;
}

.glass-pastel-purple {
    background: radial-gradient(circle at 100% 100%, rgba(233, 213, 255, 0.2), transparent 80%) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 20px rgba(233, 213, 255, 0.05) !important;
}

.glass-pastel-red {
    background: radial-gradient(circle at 0% 100%, rgba(254, 226, 226, 0.2), transparent 80%) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.03) !important;
}

.glass-pastel-amber {
    background: radial-gradient(circle at 100% 0%, rgba(254, 243, 199, 0.2), transparent 80%) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.03) !important;
}

.glass-pastel-blue:hover,
.glass-pastel-purple:hover,
.glass-pastel-red:hover,
.glass-pastel-amber:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.bento-main {
    grid-column: span 2;
    grid-row: span 2;
    background: #0f172a;
    color: white;
    padding: 0;
}

.bento-left-grid .bento-card-sub {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-mini-card {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
}

.bento-mini-thumb {
    width: 60px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.bento-mini-title {
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
    color: var(--text-heading);
}

.bento-main .bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: var(--transition);
}

.bento-main:hover .bento-img {
    opacity: 0.65;
    transform: scale(1.05);
}

.bento-main-content {
    position: relative;
    z-index: 5;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 70%);
}

.bento-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    width: fit-content;
}

.bento-title-lg {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
}

.bento-right-stack {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-row: span 4;
    /* Match the height of 4 card rows */
    gap: 20px;
}

/* Mandatory Section Tint */
.bento-right-stack .bento-card:nth-child(1) {
    background: rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.3);
}

/* Recommended Section Tint */
.bento-right-stack .bento-card:nth-child(2) {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.bento-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.bento-mini-item {
    background: rgba(255, 255, 255, 0.4);
    /* Make it even clearer glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

/* Distinct accent for Mandatory items */
.bento-card:nth-child(1) .bento-mini-item {
    border: 1px solid rgba(2, 132, 199, 0.2);
}

/* Distinct accent for Recommended items */
.bento-card:nth-child(2) .bento-mini-item {
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.bento-mini-item:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px) scale(1.02);
}

.bento-mini-img {
    width: 50px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 16/9;
}

.bento-mini-item i {
    font-size: 0.7rem;
    /* color: var(--primary);
    width: 35px;
    height: 35px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.bento-mini-item-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.bento-rating {
    display: inline-flex;
    gap: 1px;
    font-size: 0.55rem;
    color: #f59e0b;
    margin-bottom: 2px;
}

.bento-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.bento-list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
}

.bento-list-item:last-child {
    border-bottom: none;
}

.bento-icon-box {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}

.bento-list-item:hover .bento-icon-box {
    background: var(--accent);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.bento-list-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 3px;
    display: block;
}

@media (max-width: 991.98px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-main {
        height: 450px;
    }

    .bento-row-split {
        grid-template-columns: 1fr;
    }
}

/* --- Elite Carousel inside Bento --- */
.bento-main.carousel:hover .carousel-control-prev,
.bento-main.carousel:hover .carousel-control-next {
    opacity: 0.6 !important;
}

.carousel-indicators li {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    width: 20px;
    border-radius: 10px;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.carousel-item {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-main .carousel-inner,
.bento-main .carousel-item {
    height: 100%;
}

.footer-elite {
    padding: 20px 0;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Training Option Cards (Modal) */
.training-option-card {
    display: block;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none !important;
    position: relative;
    height: 100%;
}

.training-option-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.1);
}

.training-option-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.tint-primary {
    background: rgba(15, 23, 42, 0.05);
    color: var(--primary);
}

.tint-accent {
    background: rgba(2, 132, 199, 0.05);
    color: var(--accent);
}

.training-option-card:hover .training-option-icon.tint-primary {
    background: var(--primary);
    color: white;
}

.training-option-card:hover .training-option-icon.tint-accent {
    background: var(--accent);
    color: white;
}

.training-card-arrow {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 0.75rem;
    color: #cbd5e1;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-10px);
}

.training-option-card:hover .training-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* Path Modal Styles */
.path-search-wrapper {
    position: relative;
}

.path-search-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.path-search-input {
    padding: 12px 15px 12px 45px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
    background: white !important;
}

.path-search-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px var(--accent-glow) !important;
    outline: none !important;
}

.path-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.path-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
}

/* --- Fast Access Premium Remaster --- */
.fast-access-container {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.6) 0%, rgba(253, 230, 138, 0.4) 100%);
    backdrop-filter: blur(25px) saturate(210%);
    -webkit-backdrop-filter: blur(25px) saturate(210%);
    border-radius: 8px;
    padding: 30px 25px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 15px 45px rgba(245, 158, 11, 0.1),
        inset 0 0 40px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fast-access-container::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3), transparent 70%);
    filter: blur(15px);
    opacity: 0.7;
}

.fast-premium-card {
    background: white;
    border-radius: 8px;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Strictly Left */
    text-decoration: none !important;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fast-premium-card .op-icon-sq {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    margin-right: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.fast-premium-card .op-label {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
    white-space: nowrap;
}

.fast-premium-card:hover {
    transform: translateX(8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.1);
    background: linear-gradient(to right, #ffffff, #f0f9ff);
}

.fast-premium-card:hover .op-icon-sq {
    transform: scale(1.1);
}

.fast-access-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
    z-index: 10;
}

.fast-premium-card:hover .fast-access-badge {
    opacity: 1;
    transform: translateY(0);
}

.path-info h6 {
    font-size: 0.85rem;
    color: var(--primary);
    line-height: 1.2;
}

.path-status {
    margin-left: 10px;
}