/*
|--------------------------------------------------------------------------
| Residence Cards
|--------------------------------------------------------------------------
*/

.cew-rc {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #f3f4f3;
}

.cew-rc-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.cew-rc-header {
    text-align: center;
    margin-bottom: 32px;
}

.cew-rc-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: #0f5238;
    margin: 0;
}

.cew-rc-subheading {
    font-size: 16px;
    line-height: 1.6;
    color: #404943;
    margin: 8px 0 0 0;
}

/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.cew-rc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.cew-rc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #bfc9c1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cew-rc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.10);
}

/*
|--------------------------------------------------------------------------
| Image
|--------------------------------------------------------------------------
*/

.cew-rc-image {
    height: 256px;
    overflow: hidden;
    background-color: #e2e2e2;
    flex-shrink: 0;
}

.cew-rc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}

.cew-rc-card:hover .cew-rc-image img {
    transform: scale(1.1);
}

/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/

.cew-rc-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cew-rc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.cew-rc-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f5238;
    margin: 0;
}

.cew-rc-badge {
    flex-shrink: 0;

    padding: 4px 12px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;

    background-color: #b1ecff;
    color: #001f27;
}

.cew-rc-text {
    font-size: 16px;
    line-height: 1.7;
    color: #404943;
    margin: 0 0 24px 0;
}

/*
|--------------------------------------------------------------------------
| Feature list
|--------------------------------------------------------------------------
*/

.cew-rc-features {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cew-rc-feature {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 16px;
    line-height: 1.5;
    color: #404943;
}

.cew-rc-feature .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 18px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;

    flex-shrink: 0;
    color: #2D6A4F;
}

/*
|--------------------------------------------------------------------------
| Link
|--------------------------------------------------------------------------
*/

.cew-rc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: auto;
    padding-top: 20px;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #2D6A4F;

    transition: gap 0.3s ease;
}

.cew-rc-link:hover {
    gap: 12px;
}

.cew-rc-link .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 18px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .cew-rc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 768px) {

    .cew-rc {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .cew-rc-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .cew-rc-heading {
        font-size: 28px;
    }

    .cew-rc-body {
        padding: 24px;
    }

    .cew-rc-head {
        flex-direction: column;
        gap: 8px;
    }

}
