/* Custom Scrollbar Styling for About Us Page */

/* Webkit browsers (Chrome, Safari, Edge) */
.about-content-scroll::-webkit-scrollbar {
    width: 8px;
}

.about-content-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 2px 0;
}

.about-content-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #c91d25, #dc3545);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-height: 40px;
}

.about-content-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #dc3545, #c91d25);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    transform: scale(1.05);
}

.about-content-scroll::-webkit-scrollbar-thumb:active {
    background: linear-gradient(45deg, #b02a37, #c91d25);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.about-content-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
.about-content-scroll {
    scrollbar-width: thin;
    scrollbar-color: #c91d25 rgba(255, 255, 255, 0.1);
}

/* For better compatibility with older browsers */
.about-content-scroll {
    scrollbar-gutter: stable;
}

/* Smooth scrolling for the content */
.about-content-scroll {
    scroll-behavior: smooth;
}

/* Additional styling for the scrollable container */
.about-content-scroll {
    padding-right: 5px; /* Add some padding to prevent content from touching scrollbar */
    position: relative;
}

/* Custom scrollbar for different themes */
.about-content-scroll.theme-dark::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.about-content-scroll.theme-light::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
}

/* Animation for scrollbar thumb on hover */
.about-content-scroll::-webkit-scrollbar-thumb {
    transition: all 0.3s ease;
}

.about-content-scroll::-webkit-scrollbar-thumb:hover {
    transform: scale(1.1);
}

/* Custom scrollbar for RTL languages */
[dir="rtl"] .about-content-scroll::-webkit-scrollbar {
    width: 8px;
}

[dir="rtl"] .about-content-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

[dir="rtl"] .about-content-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #c91d25, #dc3545);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Mobile responsive scrollbar */
@media (max-width: 768px) {
    .about-content-scroll::-webkit-scrollbar {
        width: 6px;
    }
    
    .about-content-scroll::-webkit-scrollbar-thumb {
        border-radius: 8px;
        min-height: 30px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .about-content-scroll::-webkit-scrollbar-thumb {
        background: #000000;
        border: 1px solid #ffffff;
    }
    
    .about-content-scroll::-webkit-scrollbar-track {
        background: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .about-content-scroll::-webkit-scrollbar-thumb {
        transition: none;
    }
    
    .about-content-scroll::-webkit-scrollbar-thumb:hover {
        transform: none;
    }
    
    .about-content-scroll {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.about-content-scroll:focus {
    outline: 2px solid #c91d25;
    outline-offset: 2px;
}

/* Custom scrollbar for different content types */
.about-content-scroll.content-light::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
}

.about-content-scroll.content-dark::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

/* Gradient scrollbar variants */
.about-content-scroll.gradient-red::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #c91d25, #dc3545, #e74c3c);
}

.about-content-scroll.gradient-blue::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #007bff, #0056b3, #004085);
}

.about-content-scroll.gradient-green::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #28a745, #20c997, #17a2b8);
}
