/*
 * DT Service Cards Block Styles (v3 - Fixed Resolution)
 */

/* 1. Main Wrapper */
.dtsc-wrapper {
    width: 100%;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

/* 2. Inner Container & Widths */
.dtsc-container {
    margin-left: auto;
    margin-right: auto;
}

.dtsc-width-1200 { max-width: 1200px; }
.dtsc-width-1400 { max-width: 1400px; }
.dtsc-width-1600 { max-width: 1600px; }
.dtsc-width-full { max-width: 100%; }

/* 3. Main Headline */
.dtsc-main-headline {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 2.5rem 0;
    color: #111;
    text-align: center;
}

/* 4. Cards Grid */
.dtsc-grid {
    display: flex !important; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
}

/* Grid column definitions */
.dtsc-grid-cols-1 { flex: 0 1 400px; }
.dtsc-grid-cols-2 { flex: 0 1 calc(50% - 20px); }
.dtsc-grid-cols-3 { flex: 0 1 calc(33.33% - 20px); }

/* 5. Individual Card Styling */
.dtsc-card {
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    flex: 0 1 350px;
    min-width: 300px;
    /* FIXED: Removed 'display: none' so cards actually show up */
    display: flex; 
    flex-direction: column;
}

.dtsc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 6. Card Content Wrapper */
.dtsc-card-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; 
}

/* 7. Card Title */
.dtsc-card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    margin: 0 0 1rem 0;
}

/* 8. Card Image */
.dtsc-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.dtsc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 9. Card Description */
.dtsc-card-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    flex-grow: 1; 
}

.dtsc-card-description p {
    margin: 0;
}

/* 10. Card Button - Hardened for Accordion Embedding */

.dtsc-card-button-wrap {
    margin-top: 25px !important; /* This creates the space at the top of the button */
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}
/* Ensure the service card button doesn't inherit accordion button widths */

.dtsc-card-button {
    display: inline-flex !important; /* Prevents full-width stretch */
    align-items: center;
    justify-content: center;
    width: auto 
    min-width: 200px; /* Gives it a nice consistent pill shape */
    padding: 10px 10px 
    border-radius: 999px !important;
    text-decoration: none !important;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--dtsc-btn-bg) !important;
    border: 2px solid var(--dtsc-btn-bg) !important;
    color: #fff !important;
}

.dtsc-card-button:hover {
    filter: brightness(90%);
}


.dtsc-card-button {
    /* This overrides the theme padding if you want it smaller/larger */
    padding: 10px 25px !important; 
    width: auto !important;
    display: inline-flex !important;
}

/* --- GEO LOGIC OVERRIDE --- */
/* * We comment these out because they were hiding your buttons. 
 * Only re-enable if you have the JS Geo-Bridge working.
 */
/*
.dtsc-geo-nz, .dtsc-geo-global {
    display: none !important;
}
*/

/* 11. Responsive (Mobile) */
@media (max-width: 900px) {
    .dtsc-card {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .dtsc-wrapper {
        padding: 3rem 1.5rem;
    }
    .dtsc-main-headline {
        font-size: 2rem;
    }
    .dtsc-card {
        flex: 0 1 100%;
    }
}