/**
 * WebEducation Custom Design System
 * Clean, Modern, Professional Educational UI
 * Built on top of Bootstrap 5
 */

:root {
    --we-primary: #1d4ed8;
    --we-primary-dark: #1e40af;
    --we-primary-light: #eff6ff;
    --we-accent: #0284c7;
    --we-secondary: #0f172a;
    --we-success: #10b981;
    --we-warning: #f59e0b;
    --we-danger: #ef4444;
    --we-info: #3b82f6;

    --we-text: #1e293b;
    --we-text-muted: #64748b;
    --we-text-light: #94a3b8;

    --we-bg: #f8fafc;
    --we-bg-card: #ffffff;
    --we-bg-alt: #f1f5f9;

    --we-border: #e2e8f0;
    --we-border-hover: #cbd5e1;

    --we-radius-sm: 0.375rem;
    --we-radius: 0.5rem;
    --we-radius-lg: 0.75rem;
    --we-radius-xl: 1rem;

    --we-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --we-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --we-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --we-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--we-bg);
    color: var(--we-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--we-secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--we-primary);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--we-primary-dark);
}

/* Navbar */
.we-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--we-border);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.we-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--we-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
}

.we-brand:hover {
    color: var(--we-primary);
}

.we-brand-badge {
    background: var(--we-primary);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    border-radius: var(--we-radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.we-nav-link {
    font-weight: 500;
    color: var(--we-text);
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--we-radius);
    transition: all 0.15s ease-in-out;
}

.we-nav-link:hover, .we-nav-link.active {
    color: var(--we-primary) !important;
    background-color: var(--we-primary-light);
}

/* Buttons */
.btn-we-primary {
    background-color: var(--we-primary);
    border-color: var(--we-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--we-radius);
    padding: 0.55rem 1.25rem;
    box-shadow: var(--we-shadow-sm);
    transition: all 0.15s ease-in-out;
}

.btn-we-primary:hover, .btn-we-primary:focus {
    background-color: var(--we-primary-dark);
    border-color: var(--we-primary-dark);
    color: #ffffff;
    box-shadow: var(--we-shadow);
}

.btn-we-outline {
    background-color: transparent;
    border: 1.5px solid var(--we-border);
    color: var(--we-text);
    font-weight: 600;
    border-radius: var(--we-radius);
    padding: 0.55rem 1.25rem;
    transition: all 0.15s ease-in-out;
}

.btn-we-outline:hover, .btn-we-outline:focus {
    border-color: var(--we-primary);
    background-color: var(--we-primary-light);
    color: var(--we-primary);
}

/* Cards */
.we-card {
    background-color: var(--we-bg-card);
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-lg);
    box-shadow: var(--we-shadow-sm);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-color 0.15s ease;
}

.we-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--we-shadow-md);
    border-color: var(--we-border-hover);
}

.we-card-flat {
    background-color: var(--we-bg-card);
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-lg);
}

/* Badges */
.we-badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--we-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.we-badge-primary {
    background-color: var(--we-primary-light);
    color: var(--we-primary);
    border: 1px solid rgba(29, 78, 216, 0.15);
}

.we-badge-secondary {
    background-color: var(--we-bg-alt);
    color: var(--we-text-muted);
    border: 1px solid var(--we-border);
}

.we-badge-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.we-badge-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Section Header */
.we-section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--we-secondary);
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
}

.we-section-subtitle {
    font-size: 1rem;
    color: var(--we-text-muted);
    margin-bottom: 0;
}

/* Breadcrumb */
.we-breadcrumb {
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.we-breadcrumb a {
    color: var(--we-text-muted);
    font-weight: 500;
}

.we-breadcrumb a:hover {
    color: var(--we-primary);
}

.we-breadcrumb .active {
    color: var(--we-text);
    font-weight: 600;
}

/* Hero Section */
.we-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--we-bg) 100%);
    border-bottom: 1px solid var(--we-border);
    padding: 3.5rem 0 3rem 0;
}

/* Quick Access Cards */
.we-quick-card {
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.15s ease-in-out;
    display: block;
    color: var(--we-text);
}

.we-quick-card:hover {
    background: var(--we-primary-light);
    border-color: var(--we-primary);
    transform: translateY(-2px);
    box-shadow: var(--we-shadow);
    color: var(--we-primary);
}

.we-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--we-radius);
    background: var(--we-primary-light);
    color: var(--we-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    transition: all 0.15s ease;
}

.we-quick-card:hover .we-quick-icon {
    background: var(--we-primary);
    color: #ffffff;
}

/* Search Box */
.we-search-wrap {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.we-search-input {
    width: 100%;
    padding: 0.85rem 3.5rem 0.85rem 1.25rem;
    font-size: 1.05rem;
    border: 2px solid var(--we-border);
    border-radius: var(--we-radius-lg);
    background: #ffffff;
    box-shadow: var(--we-shadow);
    transition: all 0.2s ease;
    color: var(--we-text);
}

.we-search-input:focus {
    outline: none;
    border-color: var(--we-primary);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15);
}

.we-search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 1.25rem;
    background: var(--we-primary);
    border: none;
    border-radius: var(--we-radius);
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.15s ease;
}

.we-search-btn:hover {
    background: var(--we-primary-dark);
}

/* Test Runner Layout */
.we-test-container {
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-lg);
    overflow: hidden;
    box-shadow: var(--we-shadow-sm);
}

.we-test-header {
    background: var(--we-secondary);
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.we-timer-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.4rem 0.85rem;
    border-radius: var(--we-radius);
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.we-palette-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--we-radius);
    border: 1px solid var(--we-border);
    background: #ffffff;
    color: var(--we-text);
    transition: all 0.15s ease;
}

.we-palette-btn.active {
    border-color: var(--we-primary);
    background: var(--we-primary);
    color: #ffffff;
}

.we-palette-btn.answered {
    background: var(--we-success);
    border-color: var(--we-success);
    color: #ffffff;
}

.we-palette-btn.marked {
    background: var(--we-warning);
    border-color: var(--we-warning);
    color: #ffffff;
}

/* Stats Card */
.we-stat-card {
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--we-shadow-sm);
}

.we-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--we-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.we-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--we-secondary);
    line-height: 1.1;
}

.we-stat-lbl {
    font-size: 0.85rem;
    color: var(--we-text-muted);
    font-weight: 500;
}

/* Footer */
.we-footer {
    background: #ffffff;
    border-top: 1px solid var(--we-border);
    padding: 4rem 0 2rem 0;
    color: var(--we-text-muted);
    font-size: 0.9rem;
}

.we-footer-title {
    color: var(--we-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.we-footer-link {
    color: var(--we-text-muted);
    display: block;
    margin-bottom: 0.6rem;
    transition: color 0.15s ease;
}

.we-footer-link:hover {
    color: var(--we-primary);
}

.we-footer-bottom {
    border-top: 1px solid var(--we-border);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* Empty State */
.we-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #ffffff;
    border: 1px dashed var(--we-border);
    border-radius: var(--we-radius-lg);
}

.we-empty-icon {
    font-size: 3rem;
    color: var(--we-text-light);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Mobile App-Like Bottom Navigation Bar & Mobile Optimizations
   ========================================================================== */

@media (max-width: 991.98px) {
    body {
        /* Prevents content from being covered by the sticky bottom nav */
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

.we-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--we-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.we-bottom-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 62px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.we-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    min-height: 48px;
    min-width: 48px;
    color: var(--we-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 2px 0;
}

.we-bottom-nav-item:active {
    transform: scale(0.94);
}

.we-nav-icon-wrapper {
    position: relative;
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 2px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    contain: layout style;
}

.we-bottom-nav-item.active {
    color: var(--we-primary);
}

.we-bottom-nav-item.active .we-nav-icon-wrapper {
    transform: translateY(-2px);
    color: var(--we-primary);
}

.we-nav-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
    display: block;
    max-width: 100%;
    contain: layout style;
}

.we-bottom-nav-item.active .we-nav-label {
    color: var(--we-primary);
    text-shadow: 0 0 0.5px var(--we-primary);
}

/* Featured Center Tests / Quiz Button */
.we-nav-featured .featured-icon {
    background: linear-gradient(135deg, var(--we-primary) 0%, var(--we-accent) 100%);
    color: #ffffff !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -12px;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
    border: 2px solid #ffffff;
    font-size: 1.15rem;
}

.we-nav-featured.active .featured-icon {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 6px 14px rgba(29, 78, 216, 0.45);
}

.we-nav-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.1rem 0.3rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   LaTeX & KaTeX Responsive Math Formulas
   ========================================================================== */

.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.75rem 0.5rem;
    max-width: 100%;
    margin: 1rem 0;
    border-radius: var(--we-radius);
    background: #f8fafc;
    border: 1px solid var(--we-border);
    -webkit-overflow-scrolling: touch;
}

.katex {
    font-size: 1.05em;
}

/* Formula Container for mobile scrolling */
.math-formula-box {
    background: #f8fafc;
    border: 1px solid var(--we-border);
    border-left: 4px solid var(--we-primary);
    border-radius: var(--we-radius);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

/* AI Direct Answer Snippet Box (GEO Optimization) */
.ai-direct-answer-box {
    background: #eff6ff;
    border-left: 4px solid var(--we-primary);
    border-radius: 0 var(--we-radius) var(--we-radius) 0;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Alpine.js Cloak utility */
[x-cloak] {
    display: none !important;
}

/* ==========================================================================
   Study Hub Quick Navigation Pills (Cross-Portal Seamless Switcher)
   ========================================================================== */

.we-study-nav-bar {
    position: relative;
}

.we-study-pills-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.we-study-pills-scroll::-webkit-scrollbar {
    display: none;
}

.we-hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--we-text);
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    flex-shrink: 0;
    min-height: 42px;
    box-shadow: var(--we-shadow-sm);
}

.we-hub-pill:hover {
    background: var(--we-primary-light);
    border-color: var(--we-primary);
    color: var(--we-primary);
    transform: translateY(-1px);
    box-shadow: var(--we-shadow);
}

.we-hub-pill.active {
    background: var(--we-primary);
    border-color: var(--we-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.we-hub-pill.active i {
    color: #ffffff !important;
}

.we-hub-pill.active .we-hub-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.we-hub-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--we-bg-alt);
    color: var(--we-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Exam Card Custom Elements */
.we-exam-feature-pill {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--we-radius-sm);
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================================================
   SelfStudys-Style Mega Header Dropdown Navigation Bar
   ========================================================================== */

.we-mega-header-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--we-border);
    position: relative;
    z-index: 1045;
}

.we-mega-nav-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.we-mega-nav-scroll::-webkit-scrollbar {
    display: none;
}

.we-mega-nav-list {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.25rem 0;
    margin: 0;
    list-style: none;
}

.we-mega-item {
    position: static;
    display: inline-block;
}

.we-mega-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--we-secondary);
    border-radius: var(--we-radius);
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

/* Hide duplicate Bootstrap caret arrow */
.we-mega-link.dropdown-toggle::after {
    display: none !important;
}

.we-mega-link:hover,
.we-mega-item.show > .we-mega-link,
.we-mega-item:hover > .we-mega-link {
    color: var(--we-primary);
    background-color: var(--we-primary-light);
}

.we-mega-link i.bi-chevron-down {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.we-mega-item.show .we-mega-link i.bi-chevron-down,
.we-mega-item:hover .we-mega-link i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Mega Dropdown Menu Container */
.we-mega-menu {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-xl);
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2), 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-top: 0.25rem;
    z-index: 99999 !important;
}

@media (min-width: 992px) {
    .we-mega-header-bar {
        overflow: visible !important;
    }

    .we-mega-nav-scroll {
        overflow: visible !important;
    }

    .we-mega-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        position: absolute !important;
        top: 100% !important;
        left: 20px !important;
        right: 20px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .we-mega-item:hover > .we-mega-menu,
    .we-mega-item.show > .we-mega-menu,
    .we-mega-item > .we-mega-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 991.98px) {
    .we-mega-menu {
        min-width: 100% !important;
        max-width: 96vw !important;
        width: 100% !important;
        position: fixed !important;
        top: 60px !important;
        left: 2vw !important;
        right: 2vw !important;
        max-height: 80vh;
        overflow-y: auto;
        padding: 1.25rem !important;
    }
}

/* Inner Tabs within Mega Dropdowns */
.we-mega-inner-tabs {
    display: flex;
    gap: 0.35rem;
    border-bottom: 1px solid var(--we-border);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

.we-mega-inner-tabs::-webkit-scrollbar {
    display: none;
}

.we-mega-inner-tabs .nav-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--we-secondary);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--we-border);
    background: #f8fafc;
    white-space: nowrap;
    transition: all 0.15s ease;
    cursor: pointer;
}

.we-mega-inner-tabs .nav-link:hover {
    color: var(--we-primary);
    background: var(--we-primary-light);
    border-color: var(--we-primary);
}

.we-mega-inner-tabs .nav-link.active {
    color: #ffffff !important;
    background: var(--we-primary) !important;
    border-color: var(--we-primary) !important;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}

.we-mega-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--we-secondary);
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--we-primary-light);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.we-mega-col-title i {
    color: var(--we-primary);
}

.we-mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.we-mega-list-item {
    margin-bottom: 0.3rem;
}

.we-mega-item-link {
    font-size: 0.82rem;
    color: var(--we-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    border-radius: var(--we-radius-sm);
    transition: all 0.15s ease;
    white-space: normal;
}

.we-mega-item-link:hover {
    color: var(--we-primary);
    background: var(--we-primary-light);
    transform: translateX(3px);
}

.we-mega-footer-bar {
    background: #f8fafc;
    border-top: 1px solid var(--we-border);
    border-radius: 0 0 var(--we-radius-xl) var(--we-radius-xl);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem -1.5rem -1.5rem -1.5rem;
}

.we-live-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* ==========================================================================
   Hero Promotional Carousel & Banner
   ========================================================================== */

.we-promo-slide {
    border-radius: var(--we-radius-xl);
    padding: 2.25rem 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.we-promo-bg-icon {
    position: absolute;
    right: 20px;
    bottom: -20px;
    font-size: 11rem;
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
}

/* ==========================================================================
   Notification Ticker Bar
   ========================================================================== */

.we-notification-ticker {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: var(--we-radius-lg);
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.we-ticker-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.we-ticker-text {
    font-size: 0.88rem;
    color: #991b1b;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Timeline Updates Carousel & Cards
   ========================================================================== */

.we-timeline-carousel-wrap {
    position: relative;
}

.we-timeline-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.we-timeline-card {
    flex: 0 0 320px;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-xl);
    padding: 1.25rem;
    box-shadow: var(--we-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.we-timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--we-shadow-md);
    border-color: var(--we-border-hover);
}

.we-timeline-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.we-timeline-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--we-radius);
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--we-border);
    background: #ffffff;
    padding: 2px;
}

.we-timeline-date {
    font-size: 0.76rem;
    color: var(--we-text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.we-timeline-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--we-secondary);
    line-height: 1.4;
    margin: 0.65rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.we-timeline-title a {
    color: inherit;
    text-decoration: none;
}

.we-timeline-title a:hover {
    color: var(--we-primary);
}

.we-timeline-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--we-border);
    margin-top: auto;
}

.we-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: #25D366;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.we-whatsapp-btn:hover {
    opacity: 0.9;
    transform: scale(1.04);
}

/* ==========================================================================
   FREE Study Materials Interactive Tabbed Grid (SelfStudys 4x4 Grid)
   ========================================================================== */

.we-tab-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
}

.we-materials-tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
    scroll-behavior: smooth;
    display: flex;
    gap: 0.5rem;
    flex-grow: 1;
}

.we-materials-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.we-material-tab-btn {
    padding: 0.55rem 1.25rem;
    background: #ffffff;
    border: 1.5px solid var(--we-border);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--we-secondary);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    user-select: none;
    flex-shrink: 0;
}

.we-material-tab-btn:hover {
    border-color: var(--we-primary);
    color: var(--we-primary);
    background: var(--we-primary-light);
}

.we-material-tab-btn.active {
    background: var(--we-primary);
    border-color: var(--we-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.we-tab-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--we-border);
    background: #ffffff;
    color: var(--we-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--we-shadow-sm);
    transition: all 0.15s ease;
    flex-shrink: 0;
    z-index: 2;
}

.we-tab-arrow-btn:hover {
    background: var(--we-primary);
    border-color: var(--we-primary);
    color: #ffffff;
}

.we-category-desc-box {
    background: var(--we-primary-light);
    border-left: 4px solid var(--we-primary);
    border-radius: 0 var(--we-radius) var(--we-radius) 0;
    padding: 0.9rem 1.25rem;
    font-size: 0.92rem;
    color: #1e3a8a;
    margin: 1.25rem 0;
}

/* 4x4 Grid Resource Cards */
.we-resource-card {
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-lg);
    padding: 1rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: all 0.18s ease-in-out;
    height: 100%;
}

.we-resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--we-primary);
    box-shadow: var(--we-shadow-md);
    background: #ffffff;
}

.we-resource-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--we-radius);
    background: var(--we-primary-light);
    color: var(--we-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease;
}

.we-resource-card:hover .we-resource-icon {
    background: var(--we-primary);
    color: #ffffff;
}

.we-resource-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--we-secondary);
    line-height: 1.3;
    margin: 0;
}

.we-resource-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--we-text-muted);
}

/* ==========================================================================
   Numbers / Stats Counter Bar (Our Numbers Speak For Us)
   ========================================================================== */

.we-stats-section {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-top: 1px solid var(--we-border);
    border-bottom: 1px solid var(--we-border);
}

.we-stat-counter-box {
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-xl);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--we-shadow-sm);
    transition: transform 0.15s ease;
}

.we-stat-counter-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--we-shadow-md);
}

.we-stat-counter-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

/* ==========================================================================
   Social Hub & Mobile App Showcase
   ========================================================================== */

.we-social-card {
    background: #ffffff;
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.we-social-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--we-shadow-md);
}

.we-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.we-app-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--we-radius-xl);
    color: #ffffff;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.we-app-preview-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--we-radius-lg);
    padding: 1.25rem;
    color: #ffffff;
}

/* ==========================================================================
   Comprehensive Mega Footer (SelfStudys Style)
   ========================================================================== */

.we-mega-footer {
    background: #ffffff;
    border-top: 1px solid var(--we-border);
    padding: 4.5rem 0 2rem 0;
}

.we-mega-footer-heading {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--we-secondary);
    margin-bottom: 1.15rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.we-mega-footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--we-primary);
    border-radius: 2px;
}

.we-mega-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.we-mega-footer-links li {
    margin-bottom: 0.45rem;
}

.we-mega-footer-links a {
    font-size: 0.84rem;
    color: var(--we-text-muted);
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
}

.we-mega-footer-links a:hover {
    color: var(--we-primary);
    padding-left: 3px;
}

.we-footer-company-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
}

.we-footer-link {
    font-size: 0.84rem;
    color: var(--we-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.we-footer-link:hover {
    color: var(--we-primary) !important;
}

/* ==========================================================================
   SelfStudys-Style Comprehensive Top Mega Dropdown Navigation Bar
   ========================================================================== */

.we-mega-header-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--we-border);
    position: relative;
    z-index: 1040;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Desktop vs Mobile Scrolling & Overflow: Prevent clipping on desktop */
@media (min-width: 992px) {
    .we-mega-header-bar,
    .we-mega-header-bar .container-fluid,
    .we-mega-nav-scroll {
        overflow: visible !important;
    }
}

@media (max-width: 991.98px) {
    .we-mega-nav-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .we-mega-nav-scroll::-webkit-scrollbar {
        display: none;
    }
}

.we-mega-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

.we-mega-item {
    position: static;
    flex-shrink: 0;
}

.we-mega-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: var(--we-radius);
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
    cursor: pointer;
}

.we-mega-link:hover,
.we-mega-item.show > .we-mega-link,
.we-mega-item:hover > .we-mega-link {
    color: var(--we-primary);
    background: var(--we-primary-light);
}

/* Suppress Bootstrap's duplicate caret triangle arrow */
.we-mega-link.dropdown-toggle::after {
    display: none !important;
}

.we-mega-caret {
    font-size: 0.68rem;
    transition: transform 0.2s ease;
    margin-left: 0.1rem;
    display: inline-block;
    vertical-align: middle;
}

.we-mega-item.show .we-mega-caret,
.we-mega-item:hover .we-mega-caret {
    transform: rotate(180deg);
}

/* Mega Menu Dropdown Container */
.we-mega-menu {
    display: none;
    position: absolute;
    top: 100% !important;
    left: 1.5rem !important;
    right: 1.5rem !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 1px solid var(--we-border) !important;
    border-radius: var(--we-radius-xl) !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    padding: 1.25rem 1.5rem !important;
    z-index: 99999 !important;
    transform: none !important;
    max-height: 82vh;
    overflow-y: auto;
}

/* Show on desktop hover or bootstrap show class */
@media (min-width: 992px) {
    .we-mega-item:hover > .we-mega-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.we-mega-item.show > .we-mega-menu,
.we-mega-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 991.98px) {
    .we-mega-menu {
        left: 0.5rem !important;
        right: 0.5rem !important;
        padding: 1rem !important;
        position: fixed !important;
        top: 105px !important;
        bottom: 70px !important;
        max-height: calc(100vh - 180px) !important;
        overflow-y: auto !important;
    }
}

/* Inner Sub-Tabs within Mega Menu */
.we-mega-inner-tabs {
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    gap: 0.4rem;
    display: flex;
    flex-wrap: wrap;
}

.we-mega-inner-tabs .nav-link {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.15s ease;
}

.we-mega-inner-tabs .nav-link:hover {
    color: var(--we-primary);
    background: var(--we-primary-light);
}

.we-mega-inner-tabs .nav-link.active {
    color: #ffffff !important;
    background: var(--we-primary) !important;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.35);
}

/* Column Headings inside Mega Menu */
.we-mega-col-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
    padding-bottom: 0.45rem;
    border-bottom: 1.5px solid #f1f5f9;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.we-mega-col-title i {
    color: var(--we-primary);
    font-size: 0.95rem;
}

/* List Items & Links */
.we-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.we-mega-list-item {
    margin: 0;
}

.we-mega-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.14s ease-in-out;
    line-height: 1.35;
}

.we-mega-item-link:hover {
    background: #f8fafc;
    color: var(--we-primary);
    padding-left: 0.75rem;
}

.we-mega-item-link span:first-child {
    white-space: normal;
}

/* Footer Bar inside Mega Menu */
.we-mega-footer-bar {
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.25rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom-left-radius: var(--we-radius-xl);
    border-bottom-right-radius: var(--we-radius-xl);
}

/* Live Badge pulse */
.we-live-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
    display: inline-block;
    animation: wePulse 1.8s infinite;
}

@keyframes wePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

/* ==========================================================================
   Multi-Language Switcher & Real-Time Dynamic Translation
   ========================================================================== */
.we-lang-switcher .dropdown-toggle {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.we-lang-switcher .dropdown-toggle:hover,
.we-lang-switcher .dropdown-toggle:focus {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: var(--we-primary);
}

.we-lang-menu {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    min-width: 190px;
    z-index: 1060;
}

.we-lang-opt {
    font-size: 0.84rem;
    color: #334155;
    border-radius: 6px;
    margin: 1px 4px;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.we-lang-opt:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Google Translate Clean Integration - Suppress banners and unwanted shifts */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

#google_translate_element {
    display: none !important;
}

.goog-tooltip, .goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

font font {
    background-color: transparent !important;
}

/* ==========================================================================
   Blog & Post Card 3-Column Visual Presentation & Featured Image System
   ========================================================================== */
.we-hover-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    overflow: hidden;
}

.we-hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.06) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.we-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 185px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #38bdf8 100%);
}

.we-card-img {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.we-hover-card:hover .we-card-img {
    transform: scale(1.06);
}

.we-card-fallback-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e40af 100%);
    transition: background 0.3s ease;
}

.we-hover-card:hover .we-card-fallback-banner {
    background: linear-gradient(135deg, #1e293b 0%, #1e40af 60%, #2563eb 100%);
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Mobile-First Touch Swipe System & Responsive Carousel Utilities
   ========================================================================== */

/* Swipe Track with Native Smooth Snapping */
.we-swipe-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.75rem;
    padding-top: 0.25rem;
}

.we-swipe-track::-webkit-scrollbar {
    display: none;
}

/* Peek Metric: Mobile gives 14% peek of next card */
.we-swipe-card-peek {
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .we-swipe-card-peek {
        flex: 0 0 68%;
        max-width: 68%;
    }
}

@media (min-width: 992px) {
    .we-swipe-track {
        display: grid;
        overflow-x: visible;
        padding-bottom: 0;
        padding-top: 0;
    }
    .we-swipe-track.we-desktop-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .we-swipe-track.we-desktop-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .we-swipe-track.we-desktop-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    .we-swipe-card-peek {
        flex: 1 1 auto;
        max-width: 100%;
        scroll-snap-align: none;
    }
}

/* User Affordance Swipe Hint Badge */
.we-swipe-hint-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
    animation: wePulseSwipeBadge 2.8s infinite;
}

@keyframes wePulseSwipeBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
}

.we-swipe-hint-badge .we-hand-icon {
    display: inline-block;
    animation: weSwipeHand 1.8s ease-in-out infinite;
}

@keyframes weSwipeHand {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Swipe Indicator Dots */
.we-swipe-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.we-swipe-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #cbd5e1;
    border: none;
    padding: 0;
    transition: all 0.25s ease;
    cursor: pointer;
}

.we-swipe-dot.active {
    width: 24px;
    background: #1d4ed8;
    border-radius: 9999px;
}

/* Swipe Navigation Arrows */
.we-swipe-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    cursor: pointer;
}

.we-swipe-arrow-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    transform: scale(1.05);
}



