/* =======================
   BizHelpers Modern Styles
   ======================= */

/* Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    
    --transition-fast: all 0.2s ease-in-out;
    --transition-normal: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Utilities */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
}

.shadow-2xl {
    box-shadow: var(--shadow-2xl) !important;
}

.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.text-light-subtle {
    color: rgba(255, 255, 255, 0.8) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Header & Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-nav .nav-link {
    color: rgba(33, 37, 41, 0.85);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar .navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.navbar .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar .navbar-nav .nav-link:not(.dropdown-toggle).active::after {
    width: 100%;
}

/* Custom underline for dropdown toggles - positioned only under the text */
.navbar .navbar-nav .nav-link.dropdown-toggle::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    transform: translateX(0);
}

.navbar .navbar-nav .nav-link.dropdown-toggle:hover::before,
.navbar .navbar-nav .nav-link.dropdown-toggle.active::before {
    width: calc(100% - 1.5em);
}

.navbar .navbar-toggler {
    border: 1px solid rgba(33, 37, 41, 0.2);
    color: rgba(33, 37, 41, 0.8);
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    background: white;
}

.dropdown-item {
    color: rgba(33, 37, 41, 0.85);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-shape.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

/* Dashboard Mockup */
.dashboard-mockup {
    max-width: 500px;
    margin: 0 auto;
}

.mockup-card {
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg);
    transition: var(--transition-slow);
}

.mockup-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

.mockup-dots {
    display: flex;
    gap: 4px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chart-bar {
    background: linear-gradient(to top, var(--primary-color), #4dabf7);
    transition: var(--transition-normal);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.floating-card {
    position: absolute;
    z-index: 10;
}

.floating-card-1 {
    top: 10%;
    left: -10%;
    animation: floatCard1 4s ease-in-out infinite;
}

.floating-card-2 {
    bottom: 20%;
    right: -15%;
    animation: floatCard2 5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-15px) translateX(5px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(10px) translateX(-5px); }
}

/* Scroll Indicator */
.scroll-indicator .animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Features Section */
.features-section {
    position: relative;
}

.feature-card .card {
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonial */
.avatar-placeholder {
    width: 50px;
    height: 50px;
}

/* CTA Section */
.cta-section {
    position: relative;
}

.cta-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatElement 8s ease-in-out infinite;
}

.floating-element.element-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 10%;
    animation-delay: 3s;
}

.floating-element.element-3 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 15%;
    animation-delay: 6s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(-15px) rotate(240deg); }
}

.trust-item {
    text-align: center;
    padding: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .hover-primary:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

footer h5 {
    color: white !important;
}

footer .text-light {
    color: white !important;
}

footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer .list-unstyled a:hover {
    color: white !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.8, 0.8, 0.8);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out;
}

.animate-zoom-in {
    animation: zoomIn 0.8s ease-out;
}

.animate-float-1 {
    animation: floatCard1 4s ease-in-out infinite;
}

.animate-float-2 {
    animation: floatCard2 5s ease-in-out infinite;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .mockup-card {
        transform: none;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-cta {
        text-align: center;
    }
    
    .feature-card .card-text {
        min-height: auto !important;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* =======================
   Pricing Page Styles
   ======================= */

/* Pricing Hero */
.pricing-hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.trust-indicators-row .trust-item {
    color: rgba(255, 255, 255, 0.9);
}

/* Pricing Cards */
.pricing-card .card {
    transition: var(--transition-normal);
    overflow: hidden;
}

.pricing-card .card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-card .card-header {
    position: relative;
    overflow: hidden;
}

.pricing-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.pricing-card:hover .card-header::before {
    left: 100%;
}

/* Price Display */
.price-display {
    position: relative;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 0.25rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.price-period {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-left: 0.25rem;
}

.price-per-user {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Popular Badge */
.popular-badge {
    z-index: 10;
    margin-top: -10px;
}

.popular-badge .badge {
    box-shadow: var(--shadow);
    font-size: 0.8rem;
}

/* Feature List */
.feature-list li {
    padding: 0.25rem 0;
    transition: var(--transition-fast);
}

.feature-list li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Comparison Table */
.comparison-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.comparison-table-container {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.comparison-table {
    margin-bottom: 0;
}

.comparison-table thead th {
    border-bottom: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem 1rem;
}

.comparison-table .feature-column {
    width: 25%;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.05);
}

.comparison-table .table-highlight {
    background: rgba(255, 193, 7, 0.1);
    position: relative;
}

.comparison-table .table-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--warning-color);
}

.comparison-table tbody tr {
    transition: var(--transition-fast);
}

.comparison-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
    transform: scale(1.01);
}

.comparison-table td {
    padding: 1rem;
    border-color: rgba(0, 0, 0, 0.1);
}

.feature-name {
    font-weight: 500;
    color: var(--dark-color);
}

.plan-header h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.price-small {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Support CTA */
.support-cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Pricing Animations */
.pricing-card {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.pricing-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pricing-hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .trust-indicators-row {
        flex-direction: column;
        gap: 1rem !important;
        align-items: center;
    }
    
    .comparison-table-container {
        overflow-x: auto;
    }
    
    .comparison-table {
        min-width: 800px;
    }
    
    .plan-header h5 {
        font-size: 0.9rem;
    }
    
    .price-small {
        font-size: 0.9rem;
    }
    
    .popular-badge {
        margin-top: -5px;
    }
    
    .popular-badge .badge {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .pricing-cards-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .pricing-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .feature-list {
        font-size: 0.9rem;
    }
}

/* =======================
   Helpers Info Styles
   ======================= */

.helpers-info-page {
    background-color: #f8f9fa;
}

.helpers-info-hero {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.helpers-info-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="m0 20l100-20v20z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
    background-size: 100px 20px;
    opacity: 0.3;
    animation: waves 3s ease-in-out infinite;
}

@keyframes waves {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-25px); }
}

/* Breadcrumbs */
.breadcrumb-section {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: #0056b3;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Sidebar Navigation */
.helpers-sidebar {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.sidebar-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.nav-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-section .nav-title {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--dark-color);
    font-weight: 600;
    border: none;
    transition: var(--transition-fast);
}

.nav-section .nav-title:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: var(--primary-color);
}

.nav-section .nav-title:focus {
    box-shadow: none;
    border-color: transparent;
}

.nav-section .nav-title .bi {
    transition: var(--transition-fast);
}

.nav-section .nav-title[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

.nav-section .nav-link {
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    transition: var(--transition-fast);
    position: relative;
}

.nav-section .nav-link:hover {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-section .nav-link.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.nav-section .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--primary-color);
    transform: translateY(-50%);
    transition: var(--transition-fast);
}

.nav-section .nav-link:hover::before,
.nav-section .nav-link.active::before {
    height: 100%;
}

/* Mobile Off-canvas */
.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-body {
    padding: 0;
}

/* Main Content Area */
.helpers-info-main-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    min-height: 60vh;
}

/* Help Content */
.help-content h1 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0;
}

.help-content .text-muted {
    font-size: 1.1rem;
}

/* Help Accordion */
.help-accordion {
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.help-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.help-accordion .accordion-item:last-child {
    border-bottom: none;
}

.help-accordion .accordion-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    transition: var(--transition-fast);
}

.help-accordion .accordion-button:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--primary-color);
}

.help-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.help-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.help-accordion .accordion-button::after {
    transition: var(--transition-fast);
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
}

.help-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
}

.help-accordion .accordion-body {
    padding: 2rem 1.5rem;
    background: #ffffff;
}

.help-accordion .accordion-body .ratio {
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.help-accordion .accordion-body iframe {
    border: none;
}

/* Welcome Content */
.welcome-content .card {
    border: none;
    transition: var(--transition-normal);
}

.welcome-content .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.welcome-content .fs-1 {
    font-size: 3rem !important;
}

.welcome-content .btn {
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.welcome-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Alert Styles for Missing Content */
.help-accordion .alert-info {
    border: none;
    background: linear-gradient(135deg, #e7f1ff 0%, #f0f8ff 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--info-color);
}

/* Video Loading States */
.help-accordion .accordion-body .ratio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.help-accordion .accordion-body .ratio iframe {
    position: relative;
    z-index: 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Color variations for different sections */
.help-content .text-primary { color: var(--primary-color) !important; }
.help-content .text-info { color: var(--info-color) !important; }
.help-content .text-success { color: var(--success-color) !important; }
.help-content .text-warning { color: var(--warning-color) !important; }

/* Mobile Responsive for Helpers Info */
@media (max-width: 991px) {
    .helpers-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .helpers-info-main-content {
        padding: 1.5rem;
    }
    
    .help-content h1 {
        font-size: 2rem;
    }
    
    .help-accordion .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .help-accordion .accordion-body {
        padding: 1.5rem 1rem;
    }
    
    .helpers-info-hero h1 {
        font-size: 2rem;
    }
    
    .helpers-info-hero .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .helpers-info-main-content {
        padding: 1rem;
    }
    
    .help-content .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .help-content .d-flex .fs-2 {
        margin-bottom: 1rem;
    }
    
    .help-accordion .accordion-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .help-accordion .accordion-body {
        padding: 1rem 0.75rem;
    }
}

/* =======================
   Mega Menu Styles
   ======================= */

/* Mega Menu Container */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    background: white;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
    padding: 2rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1050;
    overflow: visible;
}

/* Show mega menu on hover */
.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .dropdown.position-static:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Keep dropdown open when hovering over menu */
.dropdown .mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .dropdown.position-static .mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Debug: ensure all columns are visible */
.mega-menu .col-lg-2,
.mega-menu .col-lg-3 {
    display: block !important;
    flex: 0 0 auto;
}

/* Mega Menu Headers */
.mega-menu-header {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.mega-menu-header i {
    font-size: 1.2rem;
}

/* Mega Menu Lists */
.mega-menu-list {
    margin-bottom: 1.5rem;
}

.mega-menu-list li {
    margin-bottom: 0.5rem;
}

/* Mega Menu Links */
.mega-menu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    font-size: 0.9rem;
    position: relative;
}

.mega-menu-link:hover {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-menu-link i {
    font-size: 0.875rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.mega-menu-link:hover i {
    opacity: 1;
    color: var(--primary-color);
}

/* View All Links */
.mega-menu-view-all {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.mega-menu-view-all:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mega-menu-view-all i {
    transition: var(--transition-fast);
}

.mega-menu-view-all:hover i {
    transform: translateX(3px);
}

/* Column Styling */
.mega-menu .col-lg-2,
.mega-menu .col-lg-3 {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    min-height: 300px;
}

.mega-menu .col-lg-2:first-child,
.mega-menu .col-lg-3:first-child {
    padding-left: 0;
}

.mega-menu .col-lg-2:last-child,
.mega-menu .col-lg-3:last-child {
    border-right: none;
    padding-right: 0;
}

/* Color Variations for Different Sections */
.mega-menu .text-primary { color: var(--primary-color) !important; }
.mega-menu .text-info { color: var(--info-color) !important; }
.mega-menu .text-success { color: var(--success-color) !important; }
.mega-menu .text-warning { color: var(--warning-color) !important; }

/* Mobile Responsive for Mega Menu */
@media (max-width: 991px) {
    .mega-menu {
        position: static;
        width: 100%;
        max-width: none;
        padding: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
        background: rgba(248, 249, 250, 0.95);
        backdrop-filter: blur(10px);
        left: auto;
        right: auto;
        margin: 0;
    }
    
    .mega-menu .container {
        padding: 0;
    }
    
    .mega-menu .row {
        flex-direction: column;
    }
    
    .mega-menu .col-lg-2,
    .mega-menu .col-lg-3 {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .mega-menu .col-lg-2:last-child,
    .mega-menu .col-lg-3:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .mega-menu-header {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .mega-menu-list li {
        margin-bottom: 0.75rem;
    }
    
    .mega-menu-link {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        padding: 0.5rem;
    }
    
    .mega-menu-header {
        font-size: 1rem;
    }
    
    .mega-menu-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .mega-menu-view-all {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation Enhancement */
.mega-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--primary-color);
    transform: translateY(-50%);
    transition: var(--transition-fast);
}

.mega-menu-link:hover::before {
    height: 60%;
}

/* Navbar positioning for mega menu */
.navbar .dropdown.position-static {
    position: static !important;
}

.navbar .dropdown.position-static .mega-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    right: auto;
    width: 90vw;
    max-width: 1200px;
}

/* Fix navbar dropdown toggle styles */
.navbar .nav-link.dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.navbar .nav-link.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5em;
    vertical-align: 0.125em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.2s ease-in-out;
    transform-origin: center center;
}

.navbar .dropdown:hover .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Ensure hover effects don't break layout */
.navbar .nav-link {
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar {
    overflow: visible !important;
    position: relative !important;
}

.navbar .container {
    overflow: visible !important;
}

.navbar .navbar-collapse {
    overflow: visible !important;
}

.navbar .navbar-nav {
    overflow: visible !important;
}

/* Enhanced Dropdown Hover Behavior */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-toggle {
        color: var(--primary-color) !important;
    }
    
    /* Prevent text decoration line from affecting dropdown arrow */
    .nav-link.dropdown-toggle:hover {
        text-decoration: none !important;
    }
    
    /* Ensure mega menu has enough space */
    .mega-menu {
        margin-top: 0.5rem;
        min-width: 1000px;
    }
    
    /* Fix for missing columns */
    .mega-menu .container {
        max-width: 1200px !important;
        width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
    }
    
    .mega-menu .row {
        margin: 0 !important;
        width: auto !important;
        padding: 0 15px !important;
    }
    
    .mega-menu .col-lg-2 {
        width: 20% !important;
        flex: 0 0 20% !important;
    }
    
    .mega-menu .col-lg-3 {
        width: 30% !important;
        flex: 0 0 30% !important;
    }
}

/* Loading State for Mega Menu */
.mega-menu.loading {
    opacity: 0.7;
}

.mega-menu.loading .mega-menu-link {
    pointer-events: none;
}

/* Focus States for Accessibility */
.mega-menu-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mega-menu-view-all:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}


.modal-xl .modal-dialog {
    margin: 1.75rem auto;
    max-width: 1140px;
    width: 90%;
    max-height: calc(100vh - 3.5rem);
}

.modal-xl .modal-content {
    max-height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
}

.modal-xl .modal-header {
    flex-shrink: 0;
    border-bottom: 1px solid #dee2e6;
}

.modal-xl .modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    max-height: calc(80vh - 120px);
}

.modal-xl .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
}

/* Ensure proper modal display */
#termsModal, #privacyModal {
    overflow-x: hidden;
    overflow-y: auto;
}
