/* Custom CSS for ROR Educational Consultancy */

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Custom Colors */
.bg-primary {
    background-color: #c92a2a;
}

.text-primary {
    color: #c92a2a;
}

.hover\:text-primary:hover {
    color: #c92a2a;
}

.hover\:bg-primary:hover {
    background-color: #c92a2a;
}

.border-primary {
    border-color: #c92a2a;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #c92a2a;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 70vh; /* Increased minimum height */
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* Remove the ::before pseudo-element since we're using a div for the overlay */
/* .hero-section::before is no longer needed */

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 50vh;
    }
}

/* Cards */
.service-card {
    transition: all 0.3s ease;
    height: 100%; /* Make all cards same height */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Country Cards */
.country-card {
    overflow: hidden;
    height: 100%; /* Make all cards same height */
    display: flex;
    flex-direction: column;
}

.country-card img {
    transition: transform 0.5s ease;
    width: 100%;
    object-fit: cover;
}

.country-card:hover img {
    transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    height: 100%; /* Make all cards same height */
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.1;
    font-size: 3rem;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Contact Form */
.form-input:focus {
    border-color: #c92a2a;
    box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.2);
}

/* Stats Counter */
.stat-counter {
    font-weight: 700;
    font-size: 2.5rem;
    color: #c92a2a;
}

/* Gallery */
.gallery-filter .active {
    background-color: #c92a2a;
    color: white;
}

/* Mobile Menu */
#mobile-menu {
    position: absolute;
    width: 100%;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-dropdown.active .hidden {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-section h1 {
        font-size: 1.875rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .mb-12 {
        margin-bottom: 2rem;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .flex-wrap {
        justify-content: center;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section .flex {
        justify-content: center;
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}
