/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fc;
}

/* Header Styles */
header {
    background: url('/images/insurance/header.png') no-repeat center center/cover;
    color: #fff;
    padding: 5rem 1rem;
    position: relative;
    height: 35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.6);
    z-index: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

/* Left-side image */
.left-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.insurance {
    width: 30rem;
    animation: fade-in 2s forwards;
}

/* Right-side text */
.right-side {
    flex: 1;
    padding-left: 2rem;
    text-align: left;
}

/* Features section */
.features-glance {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
}

.features-glance.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-glance h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

/* Feature grid */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card {
    background-color: #001F3F;
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #f0f0f0;
    margin: 0;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Hidden class (used before JS triggers animation) */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Fade animation */
@keyframes fade-in {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .right-side {
        padding: 0;
    }

    .features-grid {
        flex-direction: column;
    }

    .insurance {
        width: 80%;
    }
}

/* Insurance Programs Section */
.programs-section {
    padding: 4rem 4rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.program-card {
    display: flex;
    flex-direction: row;
    background-color: #f1f5fb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card img {
    width: 300px;
    height: auto;
    object-fit: contain;
    background-color: #fff;
    padding: 1rem;
}

.program-info {
    padding: 2rem;
    flex: 1;
}

.program-info h3 {
    color: #001f3f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-info p {
    font-size: 1rem;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .program-card {
        flex-direction: column;
        text-align: center;
    }

    .program-card img {
        width: 100%;
    }

    .program-info {
        padding: 1.5rem;
    }
}

.program-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.program-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.insurance-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
}

.insurance-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}
