/* Custom CSS for Construction Pollution Insurance Site */

/* Hero Background Image with Gradient Overlay */
.header-section {
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.75)), 
                url('../images/hero-background.webp') center/cover;
    background-attachment: fixed;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Ensure hero content is readable */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    color: white !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* FAQ Section Padding - CRITICAL FOR READABILITY */
.faq-item {
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 0.5rem !important;
    border-left: 4px solid #1E3A8A !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.faq-question {
    padding-bottom: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    color: #1E3A8A !important;
    margin-bottom: 0.5rem !important;
}

.faq-answer {
    padding-left: 1rem !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
    font-size: 1rem !important;
}

/* Blog Card Images Styling */
.blog-card img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Section Styling */
.blog-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.blog-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1E3A8A;
}

/* Contact Form Enhancement */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section Enhancement */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border-top: 4px solid #1E3A8A;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Testimonials Enhancement */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: #1E3A8A;
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: Georgia, serif;
    opacity: 0.3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-section {
        background-attachment: scroll;
        min-height: 500px;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .faq-item {
        padding: 1rem !important;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animation for FAQ items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Ensure all text in FAQ is clearly visible */
.faq-section * {
    visibility: visible !important;
    opacity: 1 !important;
}