/* Main Theme CSS */
body {
    background-color: #fff;
    color: #333;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: running;
}



/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Dropdown Menu Support */
#primary-menu .menu-item-has-children {
    position: relative; /* Anchor for submenu */
}

/* Hide Submenu by default */
#primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 280px; /* Slightly wider for long Spanish titles */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0; /* slate-200 */
    border-top: 4px solid #0C3D8E;
    z-index: 99;
    padding: 0;
}

/* Show Submenu on Hover */
#primary-menu .menu-item-has-children:hover > .sub-menu,
#primary-menu .menu-item-has-children:focus-within > .sub-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* Submenu Items */
#primary-menu .sub-menu li {
    border-bottom: 1px solid #f1f5f9;
}
#primary-menu .sub-menu li:last-child {
    border-bottom: none;
}

#primary-menu .sub-menu li a {
    display: block;
    padding: 12px 16px;
    color: #0C3D8E;
    font-size: 15px; /* Slightly smaller than main nav */
    line-height: 1.4;
    font-weight: 500;
    white-space: normal; /* Allow text wrapping */
    transition: all 0.2s ease;
}

#primary-menu .sub-menu li a:hover {
    background-color: #f8fafc; /* slate-50 */
    padding-left: 20px; /* Slight nudge effect */
    color: #0C3D8E;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom GTranslate Dropdown Styling */
.gt-custom-dropdown {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    display: inline-block;
    z-index: 100;
}

/* Hide original links but keep them in DOM for Proxy Click */
.gt-original-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.gt-selected {
    color: #0C3D8E;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gt-selected::after {
    content: '';
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #0C3D8E;
}

.gt-options {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 0;
}

.gt-custom-dropdown:hover .gt-options {
    display: block; /* Show on hover */
}

/* Option Items (Proxies) */
.gt-option-item {
    display: block;
    padding: 8px 12px;
    color: #0C3D8E;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gt-option-item:hover {
    background-color: #f1f5f9;
}
