.td-85803710-container {
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.td-85803710-header {
    margin-bottom: 24px;
}

.td-85803710-main-title {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.td-85803710-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

/* Flexbox/Grid Mix */
.td-85803710-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Card base setup */
.td-85803710-card {
    position: relative;
    overflow: hidden;
    height: 280px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-decoration: none;
    box-sizing: border-box;
    flex: 1 1 100%; /* Default mobile fallback */
}

/* Default sizes for Desktop */
@media (min-width: 1025px) {
    .td-85803710-card.col-6 {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    .td-85803710-card.col-4 {
        flex: 1 1 calc(33.333% - 13.33px);
        max-width: calc(33.333% - 13.33px);
    }
    .td-85803710-card.col-12 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Tablet styles (usually 2-column flow is best) */
@media (min-width: 768px) and (max-width: 1024px) {
    .td-85803710-card.col-6,
    .td-85803710-card.col-4 {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Mobile style (stacking full width) */
@media (max-width: 767px) {
    .td-85803710-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        height: 220px; /* Slightly shorter on mobile */
    }
}

.td-85803710-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 1;
}

/* Gradient Overlay at top for title visibility */
.td-85803710-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 2;
    pointer-events: none;
}

.td-85803710-card-title {
    position: relative;
    z-index: 3;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    padding: 20px;
    letter-spacing: 0.5px;
}
