/**
 * Custom CSS for IHRPSC Website
 * Defines specific visual elements, gradients, and rolling/ticker animations.
 */

html, body, header, #main-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* 1. Custom Gradients matching instructions */
.bg-maroon-gradient {
    background: linear-gradient(135deg, #500000, #700000, #8C0000);
}

.bg-navy-gradient {
    background: linear-gradient(135deg, #000020, #001030);
}

.bg-gold-gradient {
    background: linear-gradient(135deg, #F0C000, #FFD000, #F0C000);
}

.bg-hero-gradient {
    background: linear-gradient(135deg, rgba(0, 0, 32, 0.96), rgba(80, 0, 0, 0.88));
}

/* 2. Brand Font assignments */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Poppins', sans-serif;
}

body, .font-sans {
    font-family: 'Inter', sans-serif;
}

/* 3. Curved Gold Separators & Borders */
.gold-separator-curved {
    position: relative;
    height: 30px;
    background: transparent;
    overflow: hidden;
}

.gold-separator-curved::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    border-top: 2px solid #F0C000;
    box-shadow: 0 -4px 10px rgba(240, 192, 0, 0.15);
}

.gold-border-accent {
    border: 1px solid rgba(240, 192, 0, 0.3);
    position: relative;
}

.gold-border-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #F0C000;
    border-left: 2px solid #F0C000;
}

.gold-border-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #F0C000;
    border-right: 2px solid #F0C000;
}

/* 4. Infinite Horizontal rolling/marquee animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 15s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 5. Infinite Vertical Rolling quotes/ticker */
.vertical-ticker-container {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.vertical-ticker-list {
    animation: ticker-scroll 20s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

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

@keyframes ticker-scroll {
    0%, 15% { transform: translateY(0); }
    20%, 35% { transform: translateY(-20%); }
    40%, 55% { transform: translateY(-40%); }
    60%, 75% { transform: translateY(-60%); }
    80%, 95% { transform: translateY(-80%); }
    100% { transform: translateY(0); }
}

/* 6. Humanitarian photography overlays & tratamientos */
.humanitarian-photo-wrapper {
    position: relative;
    overflow: hidden;
}

.humanitarian-photo-wrapper::before {
    display: none;
}

.humanitarian-photo-wrapper img {
    filter: none;
    transition: transform 0.7s ease;
}

.humanitarian-photo-wrapper:hover img {
    transform: scale(1.05);
}

/* 7. Campaign Slider styling */
.campaign-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.campaign-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* 8. Extra utilities */
.text-gold-gradient {
    background: linear-gradient(135deg, #F0C000, #FFD000, #F0C000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-premium {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 9. Portal Split Diagonal Background */
.bg-split-diagonal {
    background: linear-gradient(168deg, #000020 54%, #700000 54.5%);
}

/* 10. Horizontal scrolling marquee for mobile top credentials bar */
.animate-marquee {
    display: inline-flex;
    width: max-content;
    animation: marquee-scroll 15s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 11. Floating Vertical Complaint Button for Mobile Hero Section */
.vertical-text-btn {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

@keyframes floatHeroBtn {
    0%, 100% {
        transform: translateY(-50%) translateY(0px);
    }
    50% {
        transform: translateY(-50%) translateY(-8px);
    }
}

.animate-floating-hero-btn {
    animation: floatHeroBtn 2.8s ease-in-out infinite;
}
