/* Custom styles for Hope Institute Online */

/* Arabic text styling */
.arabic-text {
    font-family: 'Amiri', serif;
    direction: rtl;
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating animations for contact section */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

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

/* Custom button styles */
.btn-primary {
    @apply bg-green-600 text-white px-6 py-2 rounded-md hover:bg-green-700 transition-colors duration-200;
}

.btn-secondary {
    @apply bg-gray-200 text-gray-800 px-6 py-2 rounded-md hover:bg-gray-300 transition-colors duration-200;
}

/* Course card hover effects */
.course-card {
    transition: transform 0.2s ease-in-out;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #34d399;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Responsive typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1.125rem;
    }
}

/* Custom form styles */
.form-input {
    @apply mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-green-500 focus:ring-green-500;
}

.form-label {
    @apply block text-sm font-medium text-gray-700;
}

/* Alert styles */
.alert {
    @apply p-4 rounded-md mb-4;
}

.alert-success {
    @apply bg-green-100 text-green-700;
}

.alert-error {
    @apply bg-red-100 text-red-700;
}

.alert-warning {
    @apply bg-yellow-100 text-yellow-700;
}

/* Custom container padding */
.section-padding {
    @apply py-12 px-4 sm:px-6 lg:px-8;
}

/* Custom grid gap */
.grid-gap {
    @apply gap-8;
}

/* Custom shadow */
.custom-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Utility classes for testimonial animations */
.opacity-0 {
    opacity: 0;
}

.translate-y-8 {
    transform: translateY(2rem);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonial card styling */
.testimonial-card {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}