/* =====================================================================
           Wahid Marketing — Services page supplemental styling (v2)
           Extends the existing theme (navy / white / light-blue) without
           overriding core template classes. Update --wahid-navy below if the
           theme's primary variable differs elsewhere on the site.
           ===================================================================== */

        :root {
            --wahid-navy: #0b1f3a;
            --wahid-navy-deep: #071527;
            --wahid-blue: #1e4dd8;
            --wahid-blue-tint: #eaf1fb;
            --wahid-blue-tint-2: #f4f8fd;
            --wahid-border: #e2e6ec;
            --wahid-muted: #667085;
        }

        /* ---------- Hero / Page title ---------- */
        .wahid-hero {
            position: relative;
            overflow: hidden;
        }

        .wahid-hero-overlay {
            position: absolute;
            inset: 0;
            z-index: 1;
        }

        /* NOTE: no padding / min-height set here on purpose — .wahid-hero
           relies entirely on the shared .page-title rule (master stylesheet)
           for banner size, so Services always matches Home/About/Blog/Contact
           automatically. Only vertical alignment of the extra content
           (eyebrow + heading + breadcrumb) is handled below. */
        .page-title.wahid-hero{
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .wahid-hero .auto-container {
            position: relative;
            z-index: 2;
            padding-bottom: 22px;
        }

        /* The theme renders this h1 as a large decorative watermark behind the
           parallax hero. Forcing it into normal flow (instead of the theme's
           absolute positioning) stops it colliding with the breadcrumb above,
           and the reduced opacity + margin keeps it a quiet background detail. */
        .wahid-hero h1 {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            z-index: 1;
            display: block;
            margin: 6px 0 0 !important;
            opacity: 0.4;
            pointer-events: none;
        }

        .wahid-hero-eyebrow {
            display: inline-block;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1.6px;
            text-transform: uppercase;
            color: #bcd0f7;
            padding: 6px 16px;
            border: 1px solid rgba(188, 208, 247, 0.4);
            border-radius: 30px;
            margin-bottom: 16px;
        }

        .wahid-hero .page-breadcrumb li a,
        .wahid-hero .page-breadcrumb li {
            color: #cdd9ef;
        }

        /* ---------- Section rhythm / background variation ---------- */
        .wahid-services-bg {
            background: linear-gradient(180deg, #ffffff 0%, var(--wahid-blue-tint-2) 100%);
            padding-top: 100px;
            padding-bottom: 90px;
            position: relative;
        }

        .sec-title.style-three .sec-title-tag {
            display: inline-block;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            color: var(--wahid-blue);
            background: var(--wahid-blue-tint);
            padding: 6px 16px;
            border-radius: 30px;
            margin-bottom: 14px;
        }

        .sec-title.style-three.centered {
            max-width:  100%; 
            margin: 0 auto 55px;
            text-align: center;
        }

        .sec-title.style-three h2 {
            color: var(--wahid-navy);
            font-weight: 700;
            letter-spacing: -0.3px;
            margin-bottom: 16px;
        }

        .sec-title.style-three .text {
            color: var(--wahid-muted);
            font-size: 16px;
            line-height: 1.8;
        }

        /* ---------- Service cards ---------- */
        .wahid-service-grid {
            row-gap: 34px;
        }

        .wahid-service-grid .service-block-two {
            margin-bottom: 0;
        }

        .wahid-service-grid .inner-box {
            display: flex;
            flex-direction: column;
            height: 100%;
            background: #ffffff;
            border: 1px solid var(--wahid-border);
            border-radius: 14px;
            padding: 0 26px 26px;
            box-shadow: 0 2px 10px rgba(11, 31, 58, 0.04);
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
            position: relative;
        }

        .wahid-service-grid .inner-box:hover {
            transform: translateY(-6px);
            box-shadow: 0 22px 40px rgba(11, 31, 58, 0.12);
            border-color: rgba(30, 77, 216, 0.25);
        }

        /* Image placeholder blocks — clean, fixed-size, no broken-image icons.
           To add a real photo later: either
           (a) change the <span class="img-frame"> to an <img src="..."> tag, or
           (b) add style="background-image:url('...')" to the span using the
               path already stored in its data-image-src attribute.
           Either way the block keeps its current size/position, so the layout
           will not shift once images are added. */
        .wahid-service-grid .inner-box .image {
            display: block;
            margin: 0 -26px;
        }

        .wahid-service-grid .inner-box .image .img-frame {
            display: block;
            width: 100%;
            height: 230px;
            background-color: var(--wahid-blue-tint-2);
            background-size: cover;
            background-position: center;
            border-bottom: 1px solid var(--wahid-border);
            border-radius: 14px 14px 0 0;
        }

        .wahid-service-grid .inner-box h4 {
            margin-top: 22px;
            margin-bottom: 10px;
        }

        .wahid-service-grid .inner-box h4 a {
            color: var(--wahid-navy);
            font-size: 19px;
            font-weight: 700;
            transition: color 0.3s ease;
        }

        .wahid-service-grid .inner-box:hover h4 a {
            color: var(--wahid-blue);
        }

        .wahid-service-grid .inner-box .text {
            color: var(--wahid-muted);
            font-size: 15px;
            line-height: 1.7;
            margin: 0 0 18px;
        }

        .wahid-service-grid .inner-box .view-details-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--wahid-navy);
            font-weight: 600;
            font-size: 13px;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            border-top: 1px solid var(--wahid-border);
            padding-top: 16px;
            margin-top: auto;
            transition: all 0.3s ease;
        }

        .wahid-service-grid .inner-box .view-details-link i {
            font-size: 12px;
            transition: transform 0.3s ease;
        }

        .wahid-service-grid .inner-box .view-details-link:hover {
            color: var(--wahid-blue);
        }

        .wahid-service-grid .inner-box .view-details-link:hover i {
            transform: translateX(5px);
        }

        /* ---------- CTA Section ---------- */
        .wahid-cta-section {
            position: relative;
        }

        .wahid-cta-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, rgba(7, 21, 39, 0.94) 0%, rgba(11, 31, 58, 0.88) 60%, rgba(30, 77, 216, 0.65) 100%);
            z-index: 1;
        }

        .wahid-cta-section .auto-container {
            position: relative;
            z-index: 2;
        }

        .wahid-cta-eyebrow {
            display: inline-block;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            color: #bcd0f7;
            padding: 6px 16px;
            border: 1px solid rgba(188, 208, 247, 0.4);
            border-radius: 30px;
            margin-bottom: 18px;
        }

        .wahid-cta-section h2 {
            color: #ffffff;
            font-weight: 700;
            line-height: 1.3;
        }

        .wahid-cta-section .wahid-cta-box {
            max-width: 640px;
            margin-top: 24px;
        }

        .wahid-cta-section .wahid-cta-box .text {
            color: #d7dce6;
            font-size: 16px;
            line-height: 1.8;
            margin-bottom: 30px;
        }

        .wahid-cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            border-radius: 30px;
            padding: 17px 40px;
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            background: var(--wahid-blue);
            border-color: var(--wahid-blue);
            box-shadow: 0 12px 26px rgba(30, 77, 216, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
        }

        .wahid-cta-btn:hover {
            transform: translateY(-3px);
            background: #1640b8;
            box-shadow: 0 16px 32px rgba(30, 77, 216, 0.4);
        }

        /* ---------- Responsive ---------- */
        @media only screen and (max-width: 991px) {
            .wahid-services-bg {
                padding-top: 70px;
                padding-bottom: 60px;
            }

            .wahid-service-grid .inner-box {
                margin-bottom: 4px;
            }
        }

        @media only screen and (max-width: 767px) {
            .wahid-service-grid .inner-box .image .img-frame {
                height: 200px;
            }

            .sec-title.style-three.centered {
                margin-bottom: 36px;
            }

            .wahid-cta-section h2 {
                font-size: 26px;
            }

            .wahid-hero h1 {
                font-size: 15vw;
                opacity: 0.3;
                word-break: break-word;
            }
        }

        @media only screen and (max-width: 575px) {
            .wahid-service-grid .inner-box {
                padding: 0 18px 22px;
            }

            .wahid-service-grid .inner-box .image {
                margin: 0 -18px;
            }

            .wahid-cta-btn {
                padding: 15px 30px;
                font-size: 14px;
            }
        }
/* =====================================================================
   Services page — screenshot style update (Aug 2026)
   Appended only. Restyles the tag, card, divider and button to match
   the flatter navy-button look shown in the reference screenshot, and
   styles the new quick-links row. Nothing above this block was edited.
   ===================================================================== */

/* Plain text category tag (no pill background) */
.sec-title.style-three .sec-title-tag {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

/* Flatter card: shadow only, no border */
.wahid-service-grid .inner-box {
    border: none;
    box-shadow: 0 4px 18px rgba(11, 31, 58, 0.08);
}

.wahid-service-grid .inner-box:hover {
    box-shadow: 0 16px 32px rgba(11, 31, 58, 0.12);
}

.wahid-service-grid .inner-box .image .img-frame {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

/* Small underline accent below title */
.wahid-service-grid .inner-box h4 {
    position: relative;
    padding-bottom: 14px;
}

.wahid-service-grid .inner-box h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 2px;
    background: var(--wahid-blue);
}

/* Divider line sits above the button, under the excerpt text */
.wahid-service-grid .inner-box .text {
    border-bottom: 1px solid var(--wahid-border);
    padding-bottom: 18px;
}

/* Solid navy button instead of plain text link */
.wahid-service-grid .inner-box .view-details-link {
    display: inline-flex;
    align-self: flex-start;
    background: var(--wahid-navy);
    color: #ffffff;
    border-top: none;
    border-radius: 6px;
    padding: 12px 22px;
    margin-top: 18px;
}

.wahid-service-grid .inner-box .view-details-link i {
    color: #ffffff;
}

.wahid-service-grid .inner-box .view-details-link:hover {
    background: var(--wahid-blue);
    color: #ffffff;
    transform: none;
}

/* Bottom quick-links row */
.wahid-quicklinks {
    text-align: center;
    margin-top: 46px;
    font-size: 14px;
    font-weight: 700;
}

.wahid-quicklinks a {
    color: var(--wahid-blue);
    transition: color 0.3s ease;
}

.wahid-quicklinks a:hover {
    color: var(--wahid-navy);
}

.wahid-quicklinks .sep {
    color: var(--wahid-border);
    margin: 0 14px;
}
/* =====================================================================
   Services page — equal height + exact card match (Aug 2026, part 2)
   Appended only. Makes every card in a row exactly the same height and
   keeps the title underline / divider / button in the same position
   regardless of how long the title or excerpt text is — matching the
   reference screenshot exactly, card to card.
   ===================================================================== */

/* Force the row/column to stretch so every card is forced to equal height */
.wahid-service-grid {
    align-items: stretch;
}

.wahid-service-grid .service-block-two {
    display: flex;
}

.wahid-service-grid .inner-box {
    width: 100%;
}

/* Fixed image height — already 230px above, kept consistent here too */
.wahid-service-grid .inner-box .image .img-frame {
    height: 230px;
}

/* FIXED (not min) height for the title block on every card, regardless
   of whether the title is 1 line or 2 — this pins the blue underline to
   the exact same spot on every card, every time. */
.wahid-service-grid .inner-box h4 {
    height: 58px;
    overflow: hidden;
}

.wahid-service-grid .inner-box h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FIXED (not min) height for the excerpt block on every card — pins the
   divider line above the button to the exact same spot on every card. */
.wahid-service-grid .inner-box .text {
    height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-grid-section .blog-card-body p,
.wahid-service-grid .inner-box .text,
.categories-section .cat-card p {
    display: none;
}