/* Custom styles for PAFI Kabupaten Nias */

/* Section divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Custom blue color scheme */
:root {
    --pafi-blue: #2563eb;
    --pafi-blue-dark: #1d4ed8;
    --pafi-blue-light: #3b82f6;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom hover effects for navigation */
nav a:hover {
    transition: all 0.3s ease;
}

/* FAQ styling */
.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Hero section gradient enhancement */
.bg-gradient-to-r {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
}

/* Card hover effects */
.hover\:shadow-md:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Service cards custom styling */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Testimonial cards enhancement */
blockquote {
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--pafi-blue);
}

/* Modal backdrop blur effect */
#partnerModal {
    backdrop-filter: blur(4px);
}

/* Custom button styles */
.btn-primary {
    background-color: var(--pafi-blue);
    border-color: var(--pafi-blue);
}

.btn-primary:hover {
    background-color: var(--pafi-blue-dark);
    border-color: var(--pafi-blue-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-divider {
        width: 60px;
        height: 3px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Loading animation for partner modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#partnerModal .bg-white {
    animation: fadeIn 0.3s ease-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
.focus\:ring-2:focus {
    outline: 2px solid var(--pafi-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .text-gray-700 {
        color: #000000;
    }
    
    .border-gray-200 {
        border-color: #000000;
    }
}

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