/* ── About Page Block — minimal overrides only ──────────────────────── */

/* Hide the decorative vertical line that the theme appends after rotated h6 labels */
.heading .column > h6::after {
    display: none !important;
}

/* Tighten section padding — default row-block is 150px which is too heavy here */
.about-intro    { padding: 50px 0 60px !important; }
.about-story    { padding: 80px 0 !important; }
.about-values   { padding: 80px 0 !important; }
.about-founder  { padding: 80px 0 !important; }

/* Theme sets .column .box { width: 50% } — override so box fills the full column */
.about-story .column .box,
.about-founder .column .box {
    width: 100% !important;
}

/* Founder photo in the split layout */
.about-founder-photo {
    width: 100%;
    display: block;
    border-radius: 2px;
}

/* Quote / intro text left-border treatment (matches .box blockquote) */
.about-intro-quote {
    border-left: 4px solid #144835;
    padding: 0.6rem 0 0.6rem 1.4rem !important;
    margin: 0;
}
.about-intro-quote p {
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.6em;
    margin-bottom: 0;
}

/* Pill / caption below the founder name */
.founder-role {
    font-size: 0.85rem;
    color: #1f7052;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-top: -0.6rem;
    margin-bottom: 1.4rem;
    display: block;
}

/* Arrow CTA link — mirrors .post-unit .cta */
.arrow-link {
    padding-left: 30px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 300;
    position: relative;
    color: #144835;
    text-decoration: none;
    transition: color 0.3s;
}
.arrow-link::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-image: url(../../img/long-arrow.svg);
    filter: invert(21%) sepia(49%) saturate(589%) hue-rotate(107deg) brightness(30%) contrast(92%);
    background-size: contain;
    background-repeat: no-repeat;
    height: 15px;
    width: 22px;
    left: 0;
    transition: all 0.3s;
}
.arrow-link:hover {
    color: #21d081;
    text-decoration: none;
}
.arrow-link:hover::before {
    filter: unset;
}

/* Value cards — top-border card matching .heading ul.categories li */
.about-values .heading h2 {
    border-bottom: none !important;
}
.about-values-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 40px;
    row-gap: 0;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
}
.about-values-list::after {
    display: none;
}
.about-values-list li {
    width: calc(33.33% - 28px);
    padding: 1.6rem 0 2rem 0;
    margin: 0;
    position: relative;
}
.about-values-list li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #144835;
}
/* Row gap between first and second row */
.about-values-list li:nth-child(n+4) {
    padding-top: 2.4rem;
}
.about-values-list li h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.about-values-list li p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 0;
    color: #144835;
}

/* Gap between text and image in split sections */
.about-story-image  { padding-left: 40px; }
.about-founder-text { padding-left: 40px; }

/* ── Tablet ─────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 960px) {
    .about-values-list li {
        width: calc(50% - 22px);
    }
    .about-values-list li:nth-child(n+3) {
        padding-top: 2.4rem;
    }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Theme drops container to 10px padding — restore to something comfortable */
    .about-intro .container,
    .about-story .container,
    .about-values .container,
    .about-founder .container,
    .section-header-block .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* Reduce section vertical padding */
    .about-intro   { padding: 36px 0 44px !important; }
    .about-story   { padding: 48px 0 !important; }
    .about-values  { padding: 48px 0 !important; }
    .about-founder { padding: 48px 0 !important; }

    /* Remove side gap — columns are now stacked full-width */
    .about-story-image,
    .about-founder-text {
        padding-left: 0 !important;
    }

    /* Space between stacked columns */
    .about-story .column.col-md-12 + .column.col-md-12,
    .about-founder .column.col-md-12 + .column.col-md-12 {
        margin-top: 28px;
    }

    /* Founder: show text before image on mobile */
    .about-founder .columns {
        display: flex;
        flex-direction: column;
    }
    .about-founder .column:first-child  { order: 2; margin-top: 28px; }
    .about-founder .column:last-child   { order: 1; }

    /* Values cards — single column */
    .about-values-list {
        column-gap: 0;
    }
    .about-values-list li {
        width: 100%;
    }
    .about-values-list li:nth-child(n+2) {
        padding-top: 2rem;
    }

    /* Intro quote — slightly smaller font */
    .about-intro-quote p {
        font-size: 1rem;
    }
}
