/* ============================================================
   DEV FEATURES — FINAL CLEAN WORKING VERSION
   - Image ALWAYS matches left column height
   - No white gaps on laptop sizes
   - Perfect stacking on tablet & mobile
   - Grey left column
============================================================ */

/* SECTION WRAPPER */
.dev-features {
    width: 100%;
    padding: 40px 0;
}

/* DESKTOP: TWO EQUAL COLUMNS */
.dev-features__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;      /* <— THIS is the key for equal heights */
}

/* LEFT COLUMN */
.dev-features__content {
    background: #f3f3f3;
    padding: 40px 140px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Heading */
.dev-features__heading {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-purple);
    margin: 0;
}

/* Pill label */
.dev-features__label {
    display: inline-block;
    background: var(--color-gold);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    margin: 24px 0;
}
}

/* Feature list */
.dev-features__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dev-features__item {
    display: flex;
    gap: 12px;
}

/* RIGHT COLUMN — IMAGE MATCHES LEFT HEIGHT */
.dev-features__image-wrapper {
    width: 100%;
    height: 100%;               /* <— THIS forces it to match left column */
    overflow: hidden;
}

.dev-features__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================================
   TABLET & MOBILE — STACKED LAYOUT
============================================================ */
@media (max-width: 1024px) {

    .dev-features__inner {
        grid-template-columns: 1fr;  /* stack */
    }

    .dev-features__content {
        padding: 40px 30px;
        text-align: center;
    }

    .dev-features__item {
        justify-content: center;
    }

    .dev-features__label {
        margin-left: auto;
        margin-right: auto;
    }

    /* Fixed nice visual height when stacked */
    .dev-features__image-wrapper {
        height: 350px;
    }
    .dev-features__image-wrapper img {
        height: 350px;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    .dev-features__content {
        padding: 24px;
        text-align: left;
    }

    .dev-features__image-wrapper,
    .dev-features__image-wrapper img {
        height: 260px;
    }
}


/* REMOVE padding/spacing from 'content-image-clean image-left' block */
section.content-image-clean.image-left {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Some themes add padding inside an inner div too */
section.content-image-clean.image-left .content-image-clean__inner,
section.content-image-clean.image-left .content-image-clean_inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* PERFECT KEY FEATURES PILL — FINAL VERSION */
.dev-features__label {
    all: unset !important;               /* remove ALL inherited junk */
    display: inline-block !important;    /* keeps pill tight */
    background: var(--color-gold) !important;
    color: #ffffff !important;

    font-family: var(--font-heading) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;

    padding: 6px 16px !important;        /* PERFECT pill padding */
    border-radius: 999px !important;     /* full pill */
    white-space: nowrap !important;      /* stops stretching */
    width: auto !important;
    max-width: max-content !important;

    margin: 0 0 0 0 !important;       /* desktop left alignment */
}

/* CENTER PILL ON TABLET + MOBILE */
@media (max-width: 1024px) {
    .dev-features__label {
        margin-left: auto !important;
        margin-right: auto !important;
        display: inline-block !important;
        text-align: center !important;
    }
}

/* Add spacing between each bullet line */
.dev-features__item {
    margin-bottom: 14px;   /* adjust to taste: 12–20px works well */
}

.dev-features__item:last-child {
    margin-bottom: 0; /* avoid extra space at the end */
}


/* Remove extra top padding on the section AFTER dev-features */
.dev-features {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* RESET ALL PREVIOUS PADDING OVERRIDES — Clean slate */
.dev-features__content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


@media (min-width: 1441px) {
    .dev-features__content {
        padding-left: 170px !important;
        padding-right: 60px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .dev-features__content {
        padding-left: 60px !important;
        padding-right: 50px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dev-features__content {
        padding-left: 40px !important;
        padding-right: 40px !important;
        text-align: left;
    }
}


@media (max-width: 767px) {
    .dev-features__content {
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-align: left;
    }
}


@media (min-width: 1600px) {
    .dev-features__image-wrapper,
    .dev-features__image-wrapper img {
        max-height: 750px !important;  /* adjust until perfect */
        height: 750px !important;
    }
}

/* CENTER THE LIST BLOCK, KEEP ITEMS LEFT-JUSTIFIED (TABLET & MOBILE) */
@media (max-width: 1024px) {

    /* Center the whole list block */
    .dev-features__list {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important;   /* keep item text left-aligned */
        display: inline-block !important; /* allows centering */
    }

    /* Each item stays left-aligned */
    .dev-features__item {
        justify-content: flex-start !important;
        text-align: left !important;
    }
}


