.features {
    padding: 5rem 0 6rem;
    text-align: center;
    background-color: #f1eeea;
}

.double-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.double-heading h2,
.double-heading p {
    text-align: left;
    width: 35%;
}

h3.subheading {
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    position: relative;
    flex: 1;
    max-width: 32%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 3;
    color: white;
    margin: 0;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3),
        1px 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-card.red-dark {
    background-color: #7d2e2e;
}

.feature-card.red-medium {
    background-color: #a13636;
}

.feature-card.blue {
    background-color: #2e3e7d;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1300px) {
    .double-heading h2 {
        width: 100%;
    }

    .double-heading p {
        display: none;
    }
}

@media (max-width: 768px) {
    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 400px;
    }
}