/* Header Section */
.phast-feature-grid__header {
    text-align: center;
    margin-bottom: 78px;
}

/* Alignment */
.phast-feature-grid--align-left .phast-feature-grid__header {
    text-align: left;
}

.phast-feature-grid--align-center .phast-feature-grid__header {
    text-align: center;
}

.phast-feature-grid--align-center .phast-feature-grid__header .phast-badge {
    margin-bottom: 24px;
}

.phast-feature-grid--align-right .phast-feature-grid__header {
    text-align: right;
}

.phast-feature-grid--align-justify .phast-feature-grid__header {
    text-align: justify;
}

.phast-feature-grid--align-center {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.phast-feature-grid__title {
    padding: 0;
    margin: 0;
    color: #000000;
}

/* Body Layout */
.phast-feature-grid__body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 32px;
}

.phast-feature-grid__main-col {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
}

.phast-feature-grid__side-col {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 32px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Card Styles */
.phast-feature-card {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    min-height: 250px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.phast-feature-card--big {
    min-height: 552px;
}

.phast-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.5)));
    background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.phast-feature-card__content {
    position: relative;
    z-index: 3;
    padding: 24px;
    width: 100%;
}

.phast-feature-card--big .phast-feature-card__content {
    padding: 48px;
}

.phast-feature-card__icon {
    margin-bottom: 10px;
    display: block;
    position: relative;
    top: -5px;
}

.phast-feature-card__icon img {
    max-width: 48px;
    height: auto;
    display: block;
}

.phast-feature-card__title {
    color: #fff;
    padding-bottom: 0;
    font-weight: 500;
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 8px;
}

.phast-feature-card--big .phast-feature-card__title {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 24px;
}

.phast-feature-card--big .phast-feature-card__icon {
    top: 0;
    margin-bottom: 24px;
}

.phast-feature-card__desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 980px) {
    .phast-feature-grid__title {
        font-size: 38px;
    }

    .phast-feature-card--big .phast-feature-card__content {
        padding: 24px;
    }

    .phast-feature-grid__body {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .phast-feature-card--big {
        min-height: 400px;
    }
    
    .phast-feature-card--big .phast-feature-card__title {
        font-size: 24px;
        line-height: 34px;
        margin-bottom: 8px;
    }
}

@media (max-width: 600px) {
    .phast-feature-grid__side-col {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
}
