/* 0. Top-level section container */
.cardstyle-section {
    width: auto;
    /*min-height: 80vh;*/
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    /*box-sizing: border-box;*/
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    margin-bottom: 1rem;
}

.cardstyle-showcase {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 10px; /* adjust top/bottom padding as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* 1. Content container with rounded corners, white background and shadow */
.cardstyle-section-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    width: auto;
    min-height: 400px;
    max-width: 100%;            /* Don't overflow */
    box-sizing: border-box;
    flex: 1 1 0;             /* Allow cards to grow/shrink */
    min-width: 600px;        /* Only wrap when smaller than this */
}

.cardstyle-split{
    display: flex;
    gap: 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: stretch; /* ensures children fill height */
}

.cardstyle-split > :first-child {
    /*flex: 1; !* 1 part *!*/
    background: white;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 12px;
    min-height: 100% !important;
    align-items: start;
    color: black;
    text-align: start;
    flex-grow: 1;
}

.cardstyle-split > :last-child {
    background: transparent;
    margin-bottom: 1rem;
}

/* Collapse columns on narrow screens */
@media (min-width: 1250px) {
    .cardstyle-split{
        flex-direction: row;
        padding: 1rem 2rem;
        justify-content: center;
    }
    .cardstyle-split > :first-child {
        max-width: min(25vw, 320px);
        height: 100%;
    }

    .cardstyle-split > :last-child {
        max-width: min(75vw,1360px);
        padding: 2rem 0 !important;
    }
}
@media (max-width: 1250px) {
    .cardstyle-split{
        flex-direction: column;
        padding: 1rem 2rem;
    }

    .cardstyle-split .cardstyle-section{
        padding: 0;
    }
}

@media (max-width: 768px) {
    .cardstyle-section-content {
        min-width: 100%;
        flex-direction: column;
        min-height: 550px;
        height: fit-content;
    }

    .cardstyle-section {
        flex-direction: column;
        padding: 1rem;
        width: auto;
    }

    .cardstyle-split{
        padding: 1rem;
    }
}


@media (min-width: 1700px) {
    .cardstyle-section-content{
        max-width: 800px;
    }
    .cardstyle-section{
        padding-left: 150px;
        padding-right: 150px;
    }
}

/* 2. Creative image container */
.cardstyle-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    min-height: 300px;
    filter: brightness(0.95);
}

.cardstyle-image:hover {
    transform: scale(1.02);
}

/* 2. Info container with text */
.cardstyle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
    box-sizing: border-box;
}

/* 3. Title */
.cardstyle-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0;
}

/* 3. Description */
.cardstyle-description {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.cardstyle-hero{
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    background-size: cover;
    background-position: center;
    backdrop-filter: brightness(0.4);
    max-width: 100vw;
}

.cardstyle-hero-container{
    background-size: cover;
    background-position: center;
    max-width: 100vw;
}
