/* ============================================
   LIFE AT UTOPIA PAGE - HERO SECTION
   ============================================ */

.about-hero-section {
    position: relative;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/about/about-hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(18, 50, 53, 0.9) 0%,
            rgba(18, 50, 53, 0.85) 50%,
            rgba(18, 50, 53, 0.95) 100%);
    z-index: 1;
}


/* WHAT YOU GET SECTION CSS */

.card-wrapper {
    position: relative;
    width: 320px;
    height: 400px;
    /* Adjust based on your preferred aspect ratio */
    background-color: #f1f5f9;
    /* border-radius: 12px; */
    overflow: hidden;
    /* Keeps the triangle and image clipped */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

/* Custom logic that Tailwind can't handle natively */
.accent-triangle {
    background: linear-gradient(to bottom, #014f43, #123235);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.text-overlay {
    background: linear-gradient(to bottom, #014f43, #123235);

    /* Use a percentage-based ellipse so the curve scales with the width */
    -webkit-mask-image: radial-gradient(ellipse 55% 100px at 50% -10px,
            transparent 99%,
            black 100%);
    mask-image: radial-gradient(ellipse 55% 100px at 50% -10px,
            transparent 99%,
            black 100%);
}

.text-label {
    /* Use clamp or responsive units if you want the text to scale perfectly */
    font-size: clamp(1.25rem, 8vw, 1.6rem);
    font-weight: 600;
}

@media screen and (max-width: 767px) {
    .card-wrapper {
        width: 100%;
    }
}