/* Header Section - "Mediclaim Services" */
.header-section {
    position: relative;
    width: 100%;
    height: 400px; /* Height of the header image area */
    background-color: #a0aec0; /* Placeholder color for the image */
    display: flex;
    align-items: center;
    /* Change this from 'center' to 'flex-start' to align content to the left */
    justify-content: flex-start;
    overflow: hidden;
    /* Added for the background image */
    background-image: url('Images/MediclaimBanner.png'); /* Set your banner image here */
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the image */
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(41, 128, 185, 0.7), rgba(52, 152, 219, 0.7)); /* Blue gradient overlay */
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
    color: white; /* White color for better visibility */
    font-size: 3rem;
    font-weight: bold;
    /* Align the text itself to the left within its own container */
    text-align: left;
    /* Add left padding to move it further from the edge */
    padding: 0 1rem 0 5%; /* Example: 5% from the left edge */
    /* Optional: Add text shadow for better readability on varying backgrounds */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* General Content Section Styling */
.content-section {
    background-color: #f3f4f6; /* Same as body background */
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-wrapper h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db; /* Blue color for heading */
    margin-bottom: 2rem;
    text-align: center;
}

.content-wrapper h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db; /* Blue color for subheading */
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.content-wrapper h4 {
    font-size: 1.5rem; /* Sub-subheading for detailed points */
    font-weight: bold;
    color: #3498db;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-wrapper p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
    text-align: justify; /* Justified text */
}

/* Styling for the horizontal lines within content */
.horizontal-line {
    border: none;
    border-top: 1px solid #3498db; /* Changed to blue line */
    margin: 2rem 0;
}
/* Styling for the new content blocks (white background, shadow, rounded corners) */
.content-block-box {
    background-color: white; /* White background */
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Subtle shadow */
    margin-bottom: 2rem; /* Space between blocks */
}
.content-block-box:last-child {
    margin-bottom: 0; /* No margin after the last block */
}

/* Image Gallery Section */
.image-gallery-section {
    background-color: #f3f4f6;
    padding: 4rem 0;
    text-align: center;
}

.image-gallery-section h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 3rem;
}

.image-row-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items when they wrap */
    gap: 2rem; /* Gap between image cards */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.image-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensures rounded corners apply to image */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem; /* Padding below image for text */
    flex: 1 1 calc(20% - 2rem); /* Approx 5 items per row, with gap consideration */
    min-width: 180px; /* Minimum width before wrapping */
    max-width: 220px; /* Max width for each card */
}

.image-card img {
    width: 100%; /* Image fills its container */
    height: 180px; /* Fixed height for consistent card size */
    object-fit: contain; /* Ensures image fits inside the area without cropping */
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.image-card p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
    padding: 0 0.5rem;
}

/* Responsive adjustments for image cards */
@media (max-width: 1200px) {
    .image-card {
        flex: 1 1 calc(25% - 2rem); /* 4 items per row */
    }
}

@media (max-width: 992px) {
    .image-card {
        flex: 1 1 calc(33.33% - 2rem); /* 3 items per row */
    }
}

@media (max-width: 768px) {
    .image-card {
        flex: 1 1 calc(50% - 2rem); /* 2 items per row */
    }
}

@media (max-width: 480px) {
    .image-card {
        flex: 1 1 100%; /* 1 item per row on very small screens */
    }
}

/* Mediclaim Process Explained Section Styling */
.mediclaim-process-section {
    background-color: #f3f4f6;
    padding: 4rem 0;
    text-align: center;
}

.mediclaim-process-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 3rem;
}

.mediclaim-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .mediclaim-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mediclaim-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mediclaim-card-header {
    background: linear-gradient(to right, #3498db, #2980b9); /* Dark blue gradient */
    color: white;
    padding: 1.5rem 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer; /* Indicate interactivity */
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover effect */
}

.mediclaim-card-header:hover {
    transform: translateY(-5px); /* Slight upward movement on hover */
}

.mediclaim-card-content {
    background-color: white;
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1; /* Ensures content fills remaining space */
}

.mediclaim-card-content p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.mediclaim-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mediclaim-card-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

.mediclaim-card-content ul li::before {
    content: '\2022'; /* Default bullet */
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.mediclaim-card-content ul.check-list li::before {
    content: '\2713'; /* Checkmark for schemes */
}