/* Global Stylesheet for National Research Ethics Board of Liberia */

/* Animation Keyframes */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.ticker-track {
    animation: ticker 30s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.partners-track {
    animation: ticker 25s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

/* Dropdown and Mega Menu Styles */
.dropdown-content {
    display: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.mega-menu {
    min-width: 600px;
    padding: 2rem;
}

.mega-menu-section {
    flex: 1;
    min-width: 0;
}

.mega-menu-section h4 {
    color: #1e40af;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-section li {
    margin-bottom: 0.5rem;
}

.mega-menu-section a {
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    position: relative;
}

.mega-menu-section a:hover {
    color: #3b82f6;
    padding-left: 1rem;
}

.mega-menu-section a:hover::before {
    content: '->';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-weight: bold;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    animation: dropdownFadeIn 0.3s ease-out;
}

.dropdown-content a {
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #021746 100%);
    color: white;
    padding-left: 20px;
    border-bottom: 1px solid #1e40af;
}

.dropdown-content a:hover::before {
    content: '->';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
}

.dropdown-content hr {
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    height: 1px;
    border: none;
    margin: 8px 0;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu.active {
        display: block;
    }
    
    .mega-menu {
        min-width: 100%;
        padding: 1rem;
    }
    
    .mega-menu-section {
        margin-bottom: 1rem;
    }
}

/* Additional Utility Classes */
.text-justify {
    text-align: justify;
}

.leading-relaxed {
    line-height: 1.6;
}

/* Form Focus States */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
    border-color: #3b82f6;
}

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

/* Logo Item Styles */
.logo-item {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
}

/* Custom Scrollbar (optional) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
