/* Custom CSS for New Republic Bank */

/* Base styles */
body, h1, h2, h3, h4, h5, h6, p, a, span, div {
    font-family: 'Saira', sans-serif;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Custom button styles */
.btn-primary {
    @apply bg-[#1e3a8a] text-white px-6 py-3 rounded-lg font-semibold hover:bg-[#0a2a6b] transition-colors duration-300;
}

.btn-secondary {
    @apply bg-[#465ba9] text-white px-6 py-3 rounded-lg font-semibold hover:bg-[#3a4f8a] transition-colors duration-300;
}

/* Card hover effects */
.card-hover {
    @apply transition-all duration-300 hover:shadow-xl hover:-translate-y-1;
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #0a2a6b 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #465ba9 0%, #1e3a8a 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0a2a6b;
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#1e3a8a] focus:border-transparent outline-none transition-all duration-300;
}

.form-input:focus {
    @apply border-[#1e3a8a] shadow-lg;
}

.form-label {
    @apply block text-sm font-semibold text-gray-700 mb-2;
}

/* Navigation styles */
.nav-link {
    @apply text-white font-bold hover:text-green-400 transition-colors duration-300;
}

.nav-link-sticky {
    @apply text-gray-700 hover:text-[#1e3a8a] transition-colors duration-300;
}

/* Dropdown styles */
.dropdown {
    @apply absolute top-full left-0 mt-2 w-64 bg-white rounded-lg shadow-lg opacity-0 invisible transition-all duration-300 z-50;
}

.dropdown:hover {
    @apply opacity-100 visible;
}

/* Service card styles */
.service-card {
    @apply bg-white rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 p-8 border border-gray-100 group;
}

.service-card:hover {
    @apply transform -translate-y-2;
}

/* Hero section styles */
.hero-bg {
    background-image: url('../images/main-slider/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Stats counter animation */
.stat-number {
    @apply text-2xl sm:text-3xl lg:text-4xl font-bold;
}

/* Partner logo styles */
.partner-logo {
    @apply h-10 w-auto object-contain opacity-60 hover:opacity-100 transition-opacity duration-300;
}

/* Footer styles */
.footer-link {
    @apply text-gray-300 hover:text-white transition-colors duration-300 flex items-center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        @apply text-2xl sm:text-3xl;
    }
    
    .section-title {
        @apply text-xl sm:text-2xl;
    }
    
    .card-grid {
        @apply grid-cols-1 gap-6;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    @apply outline-none ring-2 ring-[#1e3a8a] ring-offset-2;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        @apply text-gray-900;
    }
    
    .text-gray-300 {
        @apply text-white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

