/* L2 Interius — Features section (premium SaaS-style) */

.features-mega-wrap .dropdown-menu.features-mega-menu {
    --fm-bg: rgba(12, 12, 14, 0.97);
    --fm-border: rgba(255, 193, 7, 0.15);
    --fm-hover: rgba(255, 193, 7, 0.08);
    background: var(--fm-bg);
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    padding: 1.25rem 1.5rem;
    min-width: min(920px, calc(100vw - 2rem));
    margin-top: 0.5rem;
    z-index: var(--z-dropdown, 1050);
    animation: featuresMenuIn 0.18s ease-out;
}

@keyframes featuresMenuIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.features-mega-col {
    min-width: 0;
}

.features-mega-cat {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #ffc107;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.features-mega-cat:hover {
    background: var(--fm-hover);
    color: #ffe066;
}

.features-mega-cat-desc {
    display: block;
    font-weight: 400;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.15rem;
    line-height: 1.35;
}

.features-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #e9ecef;
    transition: background 0.15s ease, transform 0.15s ease;
}

.features-mega-item:hover {
    background: var(--fm-hover);
    color: #fff;
    transform: translateX(2px);
}

.features-mega-item-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    font-size: 0.9rem;
}

.features-mega-item-title {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
}

.features-mega-item-desc {
    font-size: 0.68rem;
    color: #9ca3af;
    line-height: 1.3;
    margin-top: 0.1rem;
}

.features-mega-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.features-mega-footer a {
    font-size: 0.75rem;
    color: #ffc107;
    text-decoration: none;
}

.features-mega-footer a:hover {
    color: #ffe066;
}

/* Mobile features accordion in navbar */
.features-mobile-group .nav-link {
    padding-left: 1.5rem;
    font-size: 0.82rem;
}

/* Hub & cards */
.feature-hero {
    border: 1px solid rgba(255, 193, 7, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(30, 25, 10, 0.5) 100%);
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.feature-card {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card-link:hover .feature-card {
    border-color: rgba(255, 193, 7, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.feature-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.feature-breadcrumb {
    font-size: 0.75rem;
}

.feature-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
}

.feature-breadcrumb a:hover {
    color: #ffc107;
}

/* Content-focused blocks (no image placeholders) */
.feature-highlight {
    padding: 1rem 1.15rem;
    border-left: 3px solid rgba(255, 193, 7, 0.45);
    background: rgba(255, 193, 7, 0.05);
    border-radius: 0 10px 10px 0;
}

.feature-inline-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
    font-size: 1rem;
}

.feature-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
    opacity: 1;
}

.feature-section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-section-head .h6 {
    margin-bottom: 0;
}

.feature-list-check li {
    position: relative;
    padding-left: 0.15rem;
}

.feature-list-check li::marker {
    color: #ffc107;
}

.feature-cta-bar {
    border: 1px solid rgba(255, 193, 7, 0.25);
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.08), transparent);
    border-radius: 12px;
}

.feature-section-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-fade-in {
    animation: featureFadeIn 0.4s ease-out;
}

@keyframes featureFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feature-toc a {
    font-size: 0.78rem;
}

/* Sidebar: one sticky unit (TOC + related), no overlap with main column or siblings */
.feature-page-row {
    align-items: flex-start;
}

.feature-sidebar {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    z-index: 1;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.feature-sidebar-related {
    margin-bottom: 0;
}

.feature-toc-card {
    /* not sticky alone — parent .feature-sidebar handles stickiness */
}

.feature-toc .nav-link:hover,
.feature-toc .nav-link:focus {
    color: #ffc107 !important;
}

@media (max-width: 991.98px) {
    .feature-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .features-mega-wrap {
        position: relative;
    }

    .features-mega-wrap .dropdown-menu.features-mega-menu {
        min-width: calc(100vw - 2rem);
        max-height: 70vh;
        overflow-y: auto;
    }
}
