/* ============================================================
   APPROACH BLOCK — CLEAN + NO BOXES + PERFECT ALIGNMENT
============================================================ */

.approach-block {
    position: relative;
    width: 100%;
}

/* Heading */
.approach-block__heading {
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* Grid */
.approach-block__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

/* Items — NO GREY BOXES ANYMORE */
.approach-block__item {
    text-align: center;
    padding: 0; /* remove card padding */
    background: none !important; /* ensure no grey box */
    border: none !important;
    box-shadow: none !important;
}

/* Icon */
.approach-block__icon {
    width: 80px;
    margin: 0 auto var(--space-sm);
    transition: transform 0.25s ease;
}

.approach-block__item:hover .approach-block__icon {
    transform: scale(1.1);
}

/* Title */
.approach-block__title {
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-purple);
}

/* Body text */
.approach-block__text {
    max-width: 340px;
    margin: 0 auto;
    color: var(--color-black);
    line-height: var(--lh-relaxed);
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .approach-block__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .approach-block__item {
        max-width: 420px;
        margin: 0 auto;
    }

    .approach-block__item:hover .approach-block__icon {
        transform: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .approach-block__icon {
        width: 70px;
    }
}

/* Force consistent width for each approach item */
.approach-block__item {
    text-align: center;
    width: 100%;
}

.approach-block__title,
.approach-block__text {
    max-width: 280px; /* adjust as needed */
    margin-left: auto;
    margin-right: auto;
}

/* Optional: slightly increase spacing between title and paragraph */
.approach-block__title {
    margin-bottom: var(--space-xs);
}

.approach-block__text {
    line-height: var(--lh-relaxed);
}

/* Desktop: keep columns evenly aligned */
@media (min-width: 1025px) {
    .approach-block__grid {
        align-items: start;
    }
}

/* ============================================================
   APPROACH BLOCK — SMALLER TITLES
============================================================ */

.approach-block__title {
    font-family: var(--font-heading) !important;
    font-size: 20px !important;   /* Desktop size */
    font-weight: 700 !important;
    color: var(--color-purple) !important;
    line-height: 1.3 !important;
    margin-bottom: var(--space-xs) !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .approach-block__title {
        font-size: 18px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .approach-block__title {
        font-size: 16px !important;
    }
}

/* ============================================================
   APPROACH BLOCK — SMALLER ICONS (Match How We Work)
============================================================ */

.approach-block__icon {
    width: 70px !important;  /* Desktop */
    margin: 0 auto var(--space-sm) !important;
    transition: transform 0.25s ease; /* Preserve hover animation */
}

/* ============================================================
   APPROACH BLOCK — PERFECT ALIGNMENT ACROSS ALL DEVICES
============================================================ */

/* Force each item to behave like a fixed vertical card */
.approach-block__item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; 
    align-items: center !important;
    height: 100% !important;
    text-align: center;
}

/* Maintain consistent spacing */
.approach-block__icon {
    flex-shrink: 0;
}

.approach-block__title {
    flex-shrink: 0;
}

/* Make body text stretch to equalise height */
.approach-block__text {
    flex-grow: 1;         /* This balances columns */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 280px;
}

/* Fix: ensure inner <p> doesn't collapse */
.approach-block__text p {
    margin: 0 auto var(--space-xs);
}

/* Desktop: equal height columns */
@media (min-width: 1025px) {
    .approach-block__grid {
        align-items: stretch !important; /* ensures equal height cards */
    }
}

/* ============================================================
   APPROACH BLOCK — PERFECT VERTICAL ALIGNMENT FIX
============================================================ */

/* Make the GRID itself stretch items */
.approach-block__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    align-items: stretch !important;   /* CRITICAL */
}

/* Each item becomes a vertical flex card */
.approach-block__item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    height: 100% !important;
    text-align: center;
    padding: 0;
}

/* Icons and titles must not grow or shrink */
.approach-block__icon,
.approach-block__title {
    flex-shrink: 0 !important;
}

/* TEXT area grows to equalise the height */
.approach-block__text {
    flex: 1 1 auto !important; /* This makes all 3 blocks equal height */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    max-width: 280px;
}

/* Ensure <p> inside stays consistent */
.approach-block__text p {
    margin: 0 auto;
}

/* MOBILE: single column but still centred */
@media (max-width: 1024px) {
    .approach-block__grid {
        grid-template-columns: 1fr;
        align-items: center !important;
    }
}


/* ============================================================
   APPROACH BLOCK — FORCE PERFECT TITLE ALIGNMENT
============================================================ */

/* Create a fixed vertical space for all titles */
.approach-block__title {
    min-height: 48px !important; /* adjust if needed */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: var(--space-xs) !important;
}

/* If your titles are long and wrap to 2 lines, increase this: 
   min-height: 52px or 60px */

   /* ============================================================
   APPROACH BLOCK — MATCH "HOW WE WORK" SPACING
============================================================ */

/* Match icon spacing from How-we-work */
.approach-block__icon {
    margin-bottom: var(--space-sm) !important; /* identical to how-we-work icon spacing */
}

/* Match title spacing from How-we-work */
.approach-block__title {
    margin-bottom: var(--space-xs) !important; /* identical title spacing */
}

/* Force consistent vertical spacing structure */
.approach-block__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center;
}

/* Keep icons + titles from stretching */
.approach-block__icon,
.approach-block__title {
    flex-shrink: 0 !important;
}

/* Body text behaves exactly like How-we-work text */
.approach-block__text {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    max-width: 320px !important; /* same width as how-we-work text */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Ensure paragraphs align consistently */
.approach-block__text p {
    margin: 0 0 var(--space-xs) 0 !important;
}

/* Match grid gap with how-we-work */
.approach-block__grid {
    gap: var(--space-lg) !important; /* same block-to-block spacing */
}
