/* Page-specific styles for solution-health-insurance-customer */
/* Add overrides here — never edit compat.css for page-specific changes */

/* Force layout into a 2-column flex grid for large screens */
.section2.main,
.section3.main,
.section4.main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    gap: 2rem;
}

/* Banner uses full viewport width for background but constrains content to 1200px */
.banner.main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 4rem max(2rem, calc(50vw - 600px));
    gap: 2rem;
    background-color: #0c233e; /* Ensure background is dark */
    color: white;
}

.banner.main > div,
.section2.main > div,
.section3.main > div,
.section4.main > div {
    flex: 1 1 45%;
    min-width: 300px; /* Collapse to 1 column on small screens */
}

.banner.main .left h1, 
.banner.main .left p,
.banner.main .left .grey-text {
    color: white; /* Make text visible against dark background */
}

.banner.main .right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* User requirement: Reduce big hero section image to 90vh max, add border radius */
.banner.main .right img {
    max-height: 90vh;
    width: auto !important; /* Overrides inline HTML width */
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px; /* Added border radius */
}

/* Typography tweaks for readability */
.banner.main h1,
.section2.main h2,
.section3.main h2,
.section4.main h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0c233e;
}

.banner.main h1 {
    color: white; /* Override for hero */
}

.blue-text {
    color: #19b3b1; /* matches teal theme */
    margin-bottom: 1rem;
}

.grey-text, p {
    color: #666;
    line-height: 1.6;
}

/* Section 2 Custom Cards */
.section2-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.custom-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f4f4f4;
}

.custom-card .icon img {
    width: 40px;
    height: auto;
    margin-right: 1.2rem;
}

.custom-card .card-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #0c233e;
}

/* Section 3 Cards */
.section3-r {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.section3-r .card {
    flex: 1 1 calc(50% - 1.5rem);
    border: 1px solid #f4f4f4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 200px;
    text-align: left;
}

.section3-r .card img.card-img-top {
    width: 45px;
    margin-bottom: 1rem;
}

/* Buttons */
.common-btn {
    background-color: #19b3b1;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.common-btn:hover {
    background-color: #159b9a;
}

.common-btn img {
    width: 20px;
}

/* Section 4 Specifics */
.section4.main {
    background-color: #f9fbfd;
    border-radius: 16px;
    margin-bottom: 4rem;
    flex-direction: row-reverse; /* Swap left and right columns to match screenshot */
}

.section4-r {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.section4-r p {
    margin: 0;
}

.section4-r button {
    background-color: #0c233e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section4-r button:hover {
    background-color: #081729;
}
