@tailwind base;
@tailwind components;
@tailwind utilities;



@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}




 /* Tiny Slider specific styles */


 
    #partner-slider .tns-outer {
        position: relative;
    }
    
    #partner-slider .tns-nav {
        display: none;
    }
    
    /* Smooth transitions for logo containers */
    #partner-slider .flex > div {
        transition: all 0.3s ease;
    }
    
    /* Custom arrow hover effects */
    #prev-btn:hover, #next-btn:hover {
        transform: scale(1.1);
        background-color: #f8fafc;
    }
    
    /* Hide scrollbar if any */
    #partner-slider {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    #partner-slider::-webkit-scrollbar {
        display: none;
    }
    .announcement-scroll, .policies-scroll {
    scroll-behavior: smooth;
}

/* Optional: Fade effect at edges */
#announcement-container::before,
#policies-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
    z-index: 1;
}

#announcement-container::after,
#policies-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    z-index: 1;
}





/* announcement and policy  */
/* Smooth scrolling animation */
@keyframes scroll-smooth {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.animate-scroll-smooth {
    animation: scroll-smooth 20s linear infinite;
}

/* Pause animation */
.paused {
    animation-play-state: paused;
}

/* Enhanced hover effects */
.announcement-item:hover,
.policy-item:hover {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* Custom scrollbar (if needed) */
#announcement-container::-webkit-scrollbar,
#policies-container::-webkit-scrollbar {
    width: 4px;
}

#announcement-container::-webkit-scrollbar-track,
#policies-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#announcement-container::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 2px;
}

#policies-container::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-scroll-smooth {
        animation-duration: 15s;
    }
    
    .announcement-item,
    .policy-item {
        padding: 12px 16px;
    }
}

/* Additional animations for better UX */
.announcement-item,
.policy-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.announcement-item:nth-child(2) { animation-delay: 0.1s; }
.announcement-item:nth-child(3) { animation-delay: 0.2s; }
.announcement-item:nth-child(4) { animation-delay: 0.3s; }
.announcement-item:nth-child(5) { animation-delay: 0.4s; }

.policy-item:nth-child(2) { animation-delay: 0.1s; }
.policy-item:nth-child(3) { animation-delay: 0.2s; }
.policy-item:nth-child(4) { animation-delay: 0.3s; }
.policy-item:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}







/* schemes section  */
  .slider-container {
            overflow: hidden;
        }
        
        .slider-wrapper {
            display: flex;
            transition: transform 0.4s ease-in-out;
            gap: 1.5rem; /* Fixed gap between cards */
        }
        
        .slide-card {
            flex: 0 0 calc(33.333% - 1rem); /* Exactly 1/3 width minus gap compensation */
            max-width: calc(33.333% - 1rem);
        }
        
        /* Responsive Design */
        @media (max-width: 1024px) {
            .slide-card {
                flex: 0 0 calc(50% - 0.75rem);
                max-width: calc(50% - 0.75rem);
            }
            
            .slider-wrapper {
                gap: 1rem;
            }
        }
        
        @media (max-width: 640px) {
            .slide-card {
                flex: 0 0 100%;
                max-width: 100%;
            }
            
            .slider-wrapper {
                gap: 0.5rem;
            }
        }
        
        .nav-button {
            transition: all 0.3s ease;
        }
        
        /* .nav-button:hover {
            transform: scale(1.1);
        } */
        
        .nav-button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: scale(1);
        }
        
        .dot {
            transition: all 0.3s ease;
        }
        
        .dot.active {
            background-color: #3b82f6 !important;
            opacity: 1 !important;
            transform: scale(1.2);
        }
          .scheme-card-detailed.card-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--forest-green);
        }

/* gallery section  */


@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Staggered animation delays for multiple elements */
.group:hover .delay-150 {
    transition-delay: 150ms;
}

/* Enhanced button hover effects */
.group button:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.05) translateY(-2px);
}

/* Smooth image zoom on hover */
.group:hover img {
    filter: brightness(1.1) contrast(1.1);
}



    .animation-delay-2000 {
        animation-delay: 2s;
    }
    .animation-delay-4000 {
        animation-delay: 4s;
    }