/**
 * AbhyasOrbit - Design System & Modern Theme
 * Theme Identity: Deep Orbit Navy (#08427b) & Glowing Cyan/Teal (#00b4d8)
 * Subtitle: PRACTICE • KNOWLEDGE • GROWTH
 * ❤️ Made with Heart by Web Era Solutions
 */

:root {
    --orbit-navy-dark: #071a2e;
    --orbit-navy: #08427b;
    --orbit-blue: #0077b6;
    --orbit-cyan: #00b4d8;
    --orbit-cyan-light: #90e0ef;
    --orbit-teal: #00cec9;
    --orbit-glow: rgba(0, 180, 216, 0.25);
    
    --primary-color: #08427b;
    --primary-hover: #06325e;
    --secondary-color: #00b4d8;
    --secondary-hover: #0096c7;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #00b4d8;
    --dark-color: #071a2e;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-shadow: 0 4px 6px -1px rgba(8, 66, 123, 0.08), 0 2px 4px -2px rgba(8, 66, 123, 0.05);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 180, 216, 0.15), 0 8px 10px -6px rgba(8, 66, 123, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Brand Logo Elements */
.brand-logo-container, .brand-logo-pill {
    background: #ffffff;
    padding: 6px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-pill:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4), 0 0 0 2px rgba(0, 180, 216, 0.6);
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.brand-logo-img-sm {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-img-lg {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Modern Header / Navbar Specifics */
.app-header-nav {
    background: rgba(7, 26, 46, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.25);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .nav-pill-track {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(0, 180, 216, 0.22);
        border-radius: 50px;
        padding: 4px 8px;
        backdrop-filter: blur(10px);
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    .nav-pill-track {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(0, 180, 216, 0.2);
        border-radius: 16px;
        padding: 8px 10px;
        width: 100%;
        margin: 10px 0;
    }
    .nav-pill-track .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        gap: 3px;
    }
    .nav-link-modern {
        width: 100%;
        padding: 0.55rem 1rem !important;
    }
}

.nav-link-modern {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.42rem 0.9rem !important;
    border-radius: 50px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.nav-link-modern:hover {
    color: #00b4d8 !important;
    background: rgba(0, 180, 216, 0.15);
    transform: translateY(-1px);
}

.nav-link-modern.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(8, 66, 123, 0.8) 0%, rgba(0, 180, 216, 0.5) 100%);
    border: 1px solid rgba(0, 180, 216, 0.6);
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
    font-weight: 600;
}

.btn-nav-portal {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.35);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 0.45rem 1.15rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.btn-nav-portal:hover, .btn-nav-portal:focus {
    background: rgba(0, 180, 216, 0.25);
    border-color: #00b4d8;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(0, 180, 216, 0.4);
    transform: translateY(-1px);
}

.btn-nav-cta {
    background: linear-gradient(135deg, #08427b 0%, #0077b6 50%, #00b4d8 100%);
    color: #ffffff !important;
    border: 1px solid rgba(0, 180, 216, 0.6);
    border-radius: 50px;
    padding: 0.48rem 1.4rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 18px rgba(0, 180, 216, 0.4);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.btn-nav-cta:hover, .btn-nav-cta:focus {
    background: linear-gradient(135deg, #06325e 0%, #005f92 50%, #0096c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.55);
    color: #ffffff !important;
}

/* Frosted Glass Dropdown Menu */
.dropdown-menu-glass {
    background: rgba(7, 26, 46, 0.96) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(0, 180, 216, 0.35) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 180, 216, 0.15) !important;
}

.dropdown-menu-glass .dropdown-item {
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.dropdown-menu-glass .dropdown-item:hover {
    background: rgba(0, 180, 216, 0.18) !important;
    transform: translateX(4px);
}

/* Global Smooth Scroll Padding */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

/* Primary Button & Gradient Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--orbit-navy) 0%, var(--orbit-blue) 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(8, 66, 123, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #06325e 0%, #005f92 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 180, 216, 0.3);
}

.btn-orbit {
    background: linear-gradient(135deg, var(--orbit-navy) 0%, var(--orbit-blue) 50%, var(--orbit-cyan) 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--orbit-glow);
    transition: all 0.3s ease;
}

.btn-orbit:hover {
    background: linear-gradient(135deg, #052646 0%, #08427b 50%, #0096c7 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

.btn-outline-orbit {
    border: 2px solid var(--orbit-cyan);
    color: var(--orbit-navy);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-orbit:hover {
    background: var(--orbit-cyan);
    color: #ffffff;
    border-color: var(--orbit-cyan);
    box-shadow: 0 4px 15px var(--orbit-glow);
}

/* Orbit Card & Hero Gradient with High-Tech SVG Background */
.orbit-hero-gradient {
    background: #071a2e url('../images/hero-bg.svg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.orbit-about-gradient {
    background: #071a2e url('../images/about-bg.svg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.orbit-portals-gradient {
    background: #071a2e url('../images/portals-bg.svg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.orbit-workflow-gradient {
    background: #071a2e url('../images/workflow-bg.svg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.orbit-cta-gradient {
    background: #071a2e url('../images/cta-bg.svg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.orbit-stats-strip {
    background: #051424;
    border-top: 1px solid rgba(0, 180, 216, 0.2);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.orbit-hero-gradient::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.3) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* Glassmorphic Dark Section Cards */
.dark-glass-card {
    background: rgba(7, 26, 46, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 180, 216, 0.6);
    box-shadow: 0 15px 30px -5px rgba(0, 180, 216, 0.25) !important;
}

/* Sidebar Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 270px;
    background: var(--orbit-navy-dark);
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.app-sidebar .sidebar-brand {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 66, 123, 0.3);
}

.app-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.925rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.15s ease-in-out;
}

.app-sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(0, 180, 216, 0.1);
    border-left-color: var(--orbit-cyan);
}

.app-sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.2) 0%, transparent 100%);
    border-left-color: var(--orbit-cyan);
    font-weight: 600;
}

.app-sidebar .nav-link i {
    font-size: 1.15rem;
    color: var(--orbit-cyan-light);
}

.app-sidebar .sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 1.25rem 1.5rem 0.5rem;
    font-weight: 700;
}

/* App Main & Top Navbar */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-navbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.app-content {
    flex-grow: 1;
    padding: 2rem;
}

/* Metric Cards */
.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hover-elevate {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-elevate:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover) !important;
}

/* Custom Table */
.table-custom {
    vertical-align: middle;
}

.table-custom thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1.25rem;
}

.table-custom tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.925rem;
}

.table-custom tbody tr:hover {
    background-color: rgba(0, 180, 216, 0.03);
}

/* Creator Branding Footer */
.creator-branding {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.creator-branding strong {
    color: var(--orbit-navy);
}

.creator-branding i {
    color: #ef4444;
}

/* Advanced Homepage & Landing Component Styles */
.text-gradient-cyan {
    background: linear-gradient(135deg, #00b4d8 0%, #90e0ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
}

.hero-grid-pattern {
    background-image: radial-gradient(rgba(0, 180, 216, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 180, 216, 0.7);
    }
}

.floating-element {
    animation: floatAnim 4s ease-in-out infinite;
}

.floating-element-delay {
    animation: floatAnim 4s ease-in-out 2s infinite;
}

.pulse-glow {
    animation: pulseGlow 3s infinite;
}

.portal-feature-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
}

.portal-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(8, 66, 123, 0.15) !important;
    border-color: var(--orbit-cyan);
}

.workflow-card {
    position: relative;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.workflow-card:hover {
    border-color: var(--orbit-cyan);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.step-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orbit-navy) 0%, var(--orbit-cyan) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.3);
}

.stat-counter-box {
    background: linear-gradient(135deg, rgba(8, 66, 123, 0.04) 0%, rgba(0, 180, 216, 0.08) 100%);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-counter-box:hover {
    transform: translateY(-4px);
    border-color: var(--orbit-cyan);
}

/* 5 Column Grid for Workflow Steps */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* ========================================================
   ANIMATIONS & DYNAMIC EFFECTS
======================================================== */

/* Particle Canvas Background */
#orbitCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Scroll Reveal Base Classes */
.reveal-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll[data-anim="fade-up"] {
    transform: translateY(40px);
}

.reveal-on-scroll[data-anim="fade-down"] {
    transform: translateY(-40px);
}

.reveal-on-scroll[data-anim="fade-left"] {
    transform: translateX(-40px);
}

.reveal-on-scroll[data-anim="fade-right"] {
    transform: translateX(40px);
}

.reveal-on-scroll[data-anim="zoom-in"] {
    transform: scale(0.92);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Interactive Option Selection in Hero Mockup */
.mockup-option {
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.mockup-option:hover {
    transform: translateY(-2px);
    border-color: var(--orbit-cyan) !important;
    background: rgba(0, 180, 216, 0.15) !important;
}

.mockup-option.active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Shimmer Button Effect */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg);
    animation: buttonShimmer 3.5s infinite;
}

@keyframes buttonShimmer {
    0% { left: -60%; }
    25% { left: 140%; }
    100% { left: 140%; }
}

/* Atomic Ring Revolving Animation */
@keyframes spinOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-slow {
    animation: spinOrbit 20s linear infinite;
}

/* ========================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS SYSTEM (320px - 1920px)
   ======================================================== */

/* Sidebar Overlay Backdrop */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 26, 46, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fluid Typography */
@media (max-width: 767.98px) {
    h1, .h1 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
    h2, .h2 { font-size: clamp(1.3rem, 4.5vw, 1.75rem) !important; }
    h3, .h3 { font-size: clamp(1.15rem, 4vw, 1.5rem) !important; }
    h4, .h4 { font-size: clamp(1rem, 3.5vw, 1.25rem) !important; }
    h5, .h5 { font-size: clamp(0.925rem, 3vw, 1.1rem) !important; }
    .lead { font-size: 1rem !important; }
}

/* Global Math & KaTeX Formula Overflow Protection */
.katex-display, .katex {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 0 !important;
}

/* Image & Diagram Responsiveness */
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

.img-fluid, [class*="docx_img_"], .question-diagram {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* Responsive Table Container Enhancements */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 180, 216, 0.4) transparent;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 180, 216, 0.4);
    border-radius: 4px;
}

/* General Mobile Breakpoint (< 992px) */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: -300px;
        width: min(290px, 85vw);
        height: 100vh;
        height: 100dvh;
        z-index: 1060;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .app-sidebar.show {
        left: 0;
    }

    .app-main {
        width: 100%;
        min-width: 0;
    }

    .app-navbar {
        padding: 0.75rem 1rem;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .app-content {
        padding: 1rem;
    }
}

/* Tablet & Phablet Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .brand-logo-img {
        max-width: 110px;
        height: 32px;
    }

    .brand-logo-pill {
        padding: 4px 12px;
    }

    /* Stack filter bars and toolbars */
    form.row.g-2 {
        row-gap: 0.6rem !important;
    }

    .btn-group-responsive {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.4rem;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

/* Standard Mobile Breakpoint (<= 576px) */
@media (max-width: 576px) {
    .app-navbar h5 {
        font-size: 1rem;
    }

    .app-navbar .btn-sm {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }

    .app-content {
        padding: 0.75rem;
    }

    /* KPI / Metric cards */
    .metric-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
        border-radius: 10px;
    }

    /* Custom Table Compact on Mobile */
    .table-custom thead th {
        padding: 0.65rem 0.75rem;
        font-size: 0.75rem;
    }

    .table-custom tbody td {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Form Controls */
    .form-control, .form-select {
        font-size: 0.925rem;
    }

    /* Card Padding */
    .card-body {
        padding: 1rem !important;
    }

    /* Scorecard KPI Cards */
    .scorecard-kpi-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Extra Small Mobile Viewports (320px - 380px) */
@media (max-width: 380px) {
    .app-content {
        padding: 0.5rem;
    }

    .app-navbar {
        padding: 0.5rem;
    }

    .brand-logo-img {
        max-width: 95px;
        height: 28px;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .scorecard-kpi-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Touch-Device Tap Target Sizing */
@media (hover: none) and (pointer: coarse) {
    .nav-link, .dropdown-item, .btn {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .app-sidebar .nav-link {
        padding: 0.85rem 1.25rem;
    }
}

/* ==========================================
   Ultra-Modern Mega Footer System
========================================== */
.footer-modern {
    background: linear-gradient(180deg, #07192b 0%, #030d17 100%) !important;
    position: relative;
    border-top: 1px solid rgba(0, 180, 216, 0.3);
    color: #cbd5e1;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #00b4d8 50%, transparent 100%);
    box-shadow: 0 0 15px #00b4d8;
}

.footer-heading {
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00b4d8;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 24px;
    height: 2px;
    background: #00b4d8;
    border-radius: 2px;
}

.footer-link {
    color: rgba(226, 232, 240, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.2rem 0;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-link i {
    font-size: 0.75rem;
    color: #00b4d8;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-link:hover i {
    opacity: 1;
}

.btn-social-footer {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 180, 216, 0.25);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-social-footer:hover {
    background: #00b4d8;
    color: #ffffff;
    border-color: #00b4d8;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 180, 216, 0.4);
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ===================================================
   MODERN HERO BANNER & 3-FEATURE HIGHLIGHTS RIBBON
   (Inspired by Sarthaks / Abhyas Learning Platform)
====================================================== */
.sarthaks-hero-section {
    background: #ffffff;
    padding: 3rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-welcome-title {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    font-weight: 800;
    color: #ff4757;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.18;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
}

.hero-platform-title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    color: #ff4757;
    background: linear-gradient(135deg, #ff4757 0%, #ee5253 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-sarthaks-desc {
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 1.85rem;
    max-width: 500px;
}

.btn-explore-emerald {
    background: #00c292;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 2.2rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 194, 146, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-explore-emerald:hover {
    background: #00aa7f;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 194, 146, 0.45);
}

/* Right Hero Slider Card */
.sarthaks-carousel-card {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 32%, #ec4899 68%, #f97316 100%);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.22), 0 6px 16px rgba(0, 0, 0, 0.06);
    min-height: 310px;
}

.sarthaks-carousel-card.slide-variant-2 {
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 35%, #e84393 75%, #fd79a8 100%);
}

.sarthaks-carousel-card.slide-variant-3 {
    background: linear-gradient(135deg, #1e3799 0%, #0c2461 40%, #eb2f06 80%, #f6b93b 100%);
}

.banner-top-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 1.1rem;
}

.banner-dot-grid {
    display: grid;
    grid-template-columns: repeat(4, 4px);
    gap: 5px;
    opacity: 0.55;
}

.banner-dot-grid span {
    width: 4px;
    height: 4px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
}

.banner-exam-title {
    font-size: clamp(1.4rem, 2.6vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.15rem;
}

.banner-course-title {
    font-size: clamp(1.1rem, 2.1vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.15rem;
}

.banner-year-title {
    font-size: clamp(1.6rem, 3.2vw, 2.45rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin-top: 0.2rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.banner-badge-pill {
    background: #ffffff;
    color: #111827;
    font-size: 0.725rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    text-transform: uppercase;
    display: inline-block;
}

.btn-enroll-yellow {
    background: #ffd600;
    color: #000000 !important;
    font-weight: 700;
    border: 1.5px solid #000000;
    border-radius: 50px;
    padding: 0.42rem 1.25rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-enroll-yellow:hover {
    background: #ffea00;
    color: #000000 !important;
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.banner-illustration-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

/* Custom Carousel Controls & Indicators */
.sarthaks-carousel-indicators {
    position: relative;
    margin-top: 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.sarthaks-carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0;
}

.sarthaks-carousel-indicators .active {
    background-color: #0284c7;
    width: 18px;
    border-radius: 10px;
    opacity: 1;
}

.sarthaks-carousel-control {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.sarthaks-carousel-control:hover {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

/* 3-Feature Highlights Ribbon Bar */
.feature-ribbon-bar {
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
    padding: 1.25rem 0;
}

.feature-ribbon-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.feature-ribbon-item:hover {
    transform: translateY(-2px);
    color: inherit;
}

.feature-circle-icon {
    width: 48px;
    height: 48px;
    background: #ff3366;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-ribbon-item:hover .feature-circle-icon {
    transform: scale(1.08) rotate(5deg);
}

.feature-ribbon-title {
    color: #ff3366;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.feature-ribbon-sub {
    color: #64748b;
    font-size: 0.825rem;
    margin-bottom: 0;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .sarthaks-hero-section {
        padding: 1.75rem 0 1rem 0;
    }
    .hero-welcome-title, .hero-platform-title {
        text-align: center;
    }
    .hero-sarthaks-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .btn-explore-emerald {
        margin: 0 auto;
        display: flex;
        width: fit-content;
    }
    .banner-text-content {
        text-align: center;
        padding: 1.25rem 1rem 0.75rem 1rem !important;
    }
    .banner-illustration-img {
        max-width: 180px;
        margin: 0 auto;
    }
    .feature-ribbon-item {
        justify-content: flex-start;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #f1f5f9;
    }
    .feature-ribbon-item:last-child {
        border-bottom: none;
    }
}

/* ===================================================
   WHY ABHYASORBIT ECONNECT? 9-FEATURE GRID SECTION
====================================================== */
.why-abhyas-section {
    background-color: #f8fafc;
    padding: 3.5rem 0 4rem 0;
}

.why-abhyas-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: #ff4757;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.why-abhyas-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2.25rem;
}

.why-features-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    padding: 3rem 2.75rem 1.5rem 2.75rem;
}

.why-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    margin-bottom: 2.25rem;
}

.why-feature-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

.why-feature-item:hover .why-feature-icon-wrap {
    transform: translateY(-2px) scale(1.05);
}

.why-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.why-feature-desc {
    font-size: 0.865rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .why-features-card {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .why-abhyas-section {
        padding: 2.5rem 0 3rem 0;
    }
    .why-features-card {
        padding: 1.5rem 1rem 0.5rem 1rem;
        border-radius: 14px;
    }
    .why-feature-item {
        gap: 0.85rem;
        margin-bottom: 1.75rem;
    }
    .why-feature-title {
        font-size: 1.05rem;
    }
    .why-feature-desc {
        font-size: 0.825rem;
    }
}

