/*
 * DT Process Block Styles (v2 - Flexible Grid)
 */

/* 1. Main Wrapper */
.dtpb-wrapper {
    width: 100%;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.dtpb-container {
    max-width: 1100px; /* Default width */
    margin-left: auto;
    margin-right: auto;
}

/* 2. Width Classes */
.dtpb-wrapper.dtpb-width-1100 .dtpb-container { max-width: 1100px; }
.dtpb-wrapper.dtpb-width-1400 .dtpb-container { max-width: 1400px; }
.dtpb-wrapper.dtpb-width-full .dtpb-container { max-width: 100%; }


/* 3. Main Headline */
.dtpb-main-headline {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4rem 0;
    color: #111;
    text-align: center;
}

/* 4. Steps Grid */
.dtpb-steps-grid {
    display: grid;
    gap: 2.5rem; /* A bit more gap for wrapping */
    
    /* * This is the magic:
     * - auto-fit: Creates as many columns as will fit.
     * - minmax(250px, 1fr): Each column will be at least 250px wide,
     * but will stretch to be equal (1fr) if there's space.
     * This makes it automatically responsive.
    */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 5. Dotted Lines (REMOVED) */
/* The ::before pseudo-element was removed as it cannot work with a dynamic grid */


/* 6. Individual Step */
.dtpb-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* 7. Image & Number Wrapper */
.dtpb-image-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: visible; /* Allows number to overlap */
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.dtpb-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.dtpb-step-number {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #a987c2;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid #fff;
    box-sizing: border-box;
}

/* 8. Content */
.dtpb-content-wrapper {
    padding-top: 1rem; /* Space for the number */
}
.dtpb-step-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.75rem 0;
}
.dtpb-step-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* 9. Optional Button */
.dtpb-step-button-wrap {
    margin-top: 1.5rem;
}
.dtpb-step-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #6a4c89;
    background-color: transparent;
    color: #6a4c89;
    font-family: 'Poppins', sans-serif;
}
.dtpb-step-button:hover {
    background-color: #6a4c89;
    color: #fff;
}
/* 11. Main CTA Button */
.dtpb-main-cta-wrap {
    text-align: center;
    margin-top: 4rem; /* Space if below steps */
    margin-bottom: 3rem; /* Space if below title */
    width: 100%;
}

/* If below title, reduce top margin */
.dtpb-main-headline + .dtpb-main-cta-wrap {
    margin-top: -2rem; 
}

.dtpb-main-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    /* Primary Purple Style */
    background-color: #6a4c89;
    color: #fff;
    border: 2px solid #6a4c89;
    box-shadow: 0 4px 12px rgba(106, 76, 137, 0.3);
}

.dtpb-main-btn:hover {
    background-color: #583d73;
    border-color: #583d73;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(106, 76, 137, 0.4);
}

/* 10. Responsive (Mobile) */
@media (max-width: 600px) {
    /* The grid handles itself, we just need to adjust text */
    .dtpb-main-headline {
        font-size: 2rem;
    }
}