.what-we-do {
    max-width: 100%;
    min-height: auto;
    padding: 70px 20px 60px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
}

.section-header,
.section-header-text {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
}

.section-header h1,
.section-header-text h1 {
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: left;
    font-size: 56px;
    color: #102a43;
}

.section-header p,
.section-header-text p {
    margin-top: 20px;
    text-align: left;
    font-size: 22px;
    color: #475569;
    max-width: 760px;
}

/* --- Card Container --- */
.pillars-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 50px;
    width: 100%;
    max-width: 1080px;
}

.pillar-card {
    flex: 1 1 320px;
    max-width: 320px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    margin: 0 auto;
    padding: 0;
    overflow-wrap: break-word;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.pillar-image {
    width: 100%;
    height: 220px;
    background-color: #eef4fb;
    overflow: hidden;
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.pillar-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.pillar-content h2 {
    font-size: 24px;
    margin-bottom: 14px;
    color: #102a43;
}

.pillar-content p {
    color: #475569;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.75;
}

.pillar-btn {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(72, 140, 183);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 16px;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
    align-self: flex-start;
}

.pillar-btn:hover {
    transform: translateY(-1px);
    background-color: rgb(56, 114, 150);
}

@media (max-width: 900px) {
    .what-we-do {
        padding: 52px 18px 42px;
    }

    .pillar-card {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .what-we-do {
        padding: 32px 14px;
    }

    .pillars-container {
        flex-direction: column;
        align-items: center;
    }

    .pillar-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .what-we-do {
        background-color: #0f172a;
    }

    .pillar-card {
        background-color: #111827;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    }

    .pillar-content h2 {
        color: #f8fafc;
    }

    .pillar-content p {
        color: #cbd5e1;
    }

    .pillar-btn {
        background-color: rgb(56, 114, 150);
    }
}
