/* Custom Styles and Animations */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #125B39; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d422a; 
}

/* Fix Tailwind & Bootstrap .collapse conflict */
.collapse:not(.show) {
    display: none;
}
.collapse.show {
    visibility: visible !important;
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        visibility: visible !important;
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

/* Override Bootstrap Accordion Styles to match theme */
.accordion-button:not(.collapsed) {
    color: #125B39;
    background-color: #E8F5E9;
    box-shadow: none;
}
.accordion-button:focus {
    border-color: #125B39;
    box-shadow: 0 0 0 0.25rem rgba(18, 91, 57, 0.25);
}
.accordion-button::after {
    filter: invert(24%) sepia(34%) saturate(928%) hue-rotate(107deg) brightness(97%) contrast(92%); /* Approximates Islamic Green */
}
.accordion-button:not(.collapsed)::after {
    filter: invert(24%) sepia(34%) saturate(928%) hue-rotate(107deg) brightness(97%) contrast(92%);
}
