/* ============================================================
   SINGLE CASE STUDIES — CUSTOM CSS
   Theme: Marezi  |  single-case-studies.css
   ============================================================ */


/* ============================================================
   STICKY SECTION NAV BAR
   ============================================================ */

.cs-section-nav {
    position: sticky;
    top: 90px;
    z-index: 999;
    background: #f0434e;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   SCROLL OFFSET — account for sticky navbar + sticky section nav
   ============================================================ */

.cs-section {
    scroll-margin-top: 140px;
}
.cs-section-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cs-nav-link {
    display: inline-block;
    color: rgb(255 255 255);
    font-family: var(--font-display, inherit);
    font-size: 18px;
    font-weight: 500;
    padding: 18px 30px;
    letter-spacing: 0.025em;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.cs-nav-link:hover,
.cs-nav-link.active {
    color: #ffffff;
   background: rgb(9 50 57);
}


/* ============================================================
   COMMON: SECTION CENTER HEADER
   ============================================================ */

.cs-center-header {
    max-width: 900px;
    margin: 0 auto 60px;
}

.cs-section-heading {
        font-size: 3rem;
    color: #111;
    line-height: 1.1;
    margin-bottom: 1.5rem;

}

.cs-section-heading em {
    font-style: normal;
}

.cs-section-intro {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #6b7280;
    margin: 0 auto;
}

.apb-section-darker .cs-section-intro,
.apb-section-darker .cs-section-intro p {
    color: #94a3b8;
}


/* ============================================================
   COMMON: SPLIT-DESC SPACING & COLOR (dark sections)
   ============================================================ */

.case-study-page .apb-split-desc {
    margin-top: 20px;
}

.case-study-page .apb-split-title {
    margin-bottom: 20px;
}

.case-study-page .cs-centered-text-block {
    max-width: 1000px;
    padding-bottom: 30px;
}

.case-study-page .apb-section-darker .apb-split-desc {
    color: #d1d5df;
}


/* ============================================================
   COMMON: IMAGE HOVER
   ============================================================ */

.case-study-page .apb-visual-card img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 5, 20, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
    object-fit: cover;
}

.case-study-page .apb-visual-card:hover img {
    transform: translateY(-5px);
    box-shadow: 0 28px 55px rgba(0, 5, 20, 0.13);
}


/* ============================================================
   COMMON: WYSIWYG CONTENT
   ============================================================ */

.case-study-page .cs-wysiwyg-content p {
    margin-bottom: 24px;
    line-height: 1.85;
    color: #4a5568;
    font-size: 1.05rem;
}

.apb-section-darker .cs-wysiwyg-content p {
    color: #cbd5e1;
}

.case-study-page .cs-wysiwyg-content ul {
    margin-bottom: 24px;
    padding-left: 0;
    list-style: none;
}

.case-study-page .cs-wysiwyg-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.75;
}

.apb-section-darker .cs-wysiwyg-content ul li {
    color: #cbd5e1;
}

.case-study-page .cs-wysiwyg-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--primary, #05728a);
}


/* ============================================================
   CLIENT REQUIREMENTS — KIOSK-STYLE DARK CARDS
   (Same as appointment booking page — apb-kiosk-cap-card)
   ============================================================ */

/* Grid layout — centered in container */
#cs-requirements .apb-kiosk-caps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Card — dark teal style matching appointment booking page */
#cs-requirements .apb-kiosk-cap-card {
    background: var(--card, #11363C);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

#cs-requirements .apb-kiosk-cap-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(5, 114, 138, 0.45);
}

/* Icon circle */
#cs-requirements .apb-kiosk-cap-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(5, 114, 138, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    color: var(--primary, #05728a);
    border: 1px solid rgba(5, 114, 138, 0.35);
    box-shadow: 0 4px 20px rgba(5, 114, 138, 0.2);
    transition: all 0.3s ease;
}

#cs-requirements .apb-kiosk-cap-card:hover .apb-kiosk-cap-icon {
    background: var(--primary, #05728a);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(5, 114, 138, 0.4);
}

#cs-requirements .apb-kiosk-cap-icon svg,
#cs-requirements .apb-kiosk-cap-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Title */
#cs-requirements .apb-kiosk-cap-title {
   line-height: 1.3;
    font-size: 22px;
    font-family: var(--font-display);
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 500;
    transition: color 0.5s;
}

/* Text */
#cs-requirements .apb-kiosk-cap-text {
        font-size: 16px;
       color: #e7e7e7b0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: color 0.5s;
}

/* ---- End Results light cards (kept for results section) ---- */
.cs-check-title {
    font-family: var(--font-display, inherit);
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cs-check-text {
        font-size: 16px;
    color: #e7e7e7;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: color 0.5s;
}

/* Light variant — End Results */
.cs-check-grid-light {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-top: 48px;
}

.cs-check-item-light {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 30px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.cs-check-item-light:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
    transform: translateY(-4px);
}

.cs-check-title-dark {
    color: #111827;
}

.cs-check-text-dark {
    color: #6b7280;
}


/* ============================================================
   OUR APPROACH — SECTION + CARDS
   ============================================================ */

.case-study-page .cs-approach-section {
    position: relative;
}

.case-study-page .cs-approach-section .phil-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.case-study-page .cs-approach-section .container {
    position: relative;
    z-index: 1;
}#cs-requirements .apb-section-header {
    max-width: 100%;
}

.case-study-page .cs-approach-section .apb-section-header {
    text-align: center;
    margin: 0 auto 56px;
}

/* Two-tone heading */
.case-study-page .cs-approach-title {
   
    margin-bottom: 20px;
    line-height: 1.2;
}

.case-study-page .cs-title-dark {
    color: #111827;
}

.case-study-page .cs-title-accent {
    color: var(--primary, #05728a);
    font-weight: 700;
}

/* Intro paragraph — now inside right column of split (not centered) */
.case-study-page .cs-approach-intro-right {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #6b7280;
}

/* Sub-heading block above the 3 cards */
.cs-approach-sub-header {
 
    margin: 56px auto 0;
    padding-bottom: 8px;
}

.case-study-page .cs-approach-sub-title {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.3;
}

.cs-approach-sub-desc {
    font-size: 1.02rem;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
}

/* Intro paragraph under heading (legacy kept) */
.case-study-page .cs-approach-intro {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #6b7280;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Visual image */
.case-study-page .cs-approach-img {
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    width: 100%;
    object-fit: cover;
}

/* Right column */
.case-study-page .cs-approach-right {
    padding-left: 24px;
}

.case-study-page .cs-approach-sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.case-study-page .cs-approach-desc {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 30px;
}

/* ============================================================
   OUR APPROACH — 3-COLUMN CARDS BELOW SPLIT
   ============================================================ */

.cs-approach-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}

.cs-approach-card {
    background: var(--darker, #051B1F);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.cs-approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
	    background: #057289;
    border-color: rgba(5, 114, 138, 0.35);
}

.cs-approach-card-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    font-family: var(--font-display, inherit);
}

.cs-approach-card-title {
        font-size: 22px;
    font-family: var(--font-display);
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 500;
    transition: color 0.5s;
}

.cs-approach-card-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Step cards (numbered, dark) */
.case-study-page .cs-approach-section .apb-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.case-study-page .cs-approach-section .apb-step {
    background: var(--darker, #051B1F);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.25rem;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.case-study-page .cs-approach-section .apb-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.case-study-page .cs-approach-section .apb-step-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
    margin: 0;
    transition: color 0.3s ease;
}

.case-study-page .cs-step-body {
    position: relative;
    z-index: 1;
}

.case-study-page .cs-step-title {
    font-family: var(--font-display, inherit);
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.case-study-page .cs-step-text {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.75;
    font-size: 0.98rem;
    margin: 0;
}


/* ============================================================
   OUR INSTALLATION — TIMELINE LIST  (dark bg)
   ============================================================ */

/* Installation heading — fully centered */
.cs-install-heading-wrap {
    text-align: center;
    width: 100%;
    margin-bottom: 56px;
}

.cs-install-heading {
    font-family: var(--font-display, inherit);
    line-height: 1.2;
    display: inline-block;
}

.cs-install-heading em {
    font-style: normal;
}

.cs-install-section {
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow top-right */
.cs-install-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(5, 114, 138, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.cs-install-split {
    margin-top: 0;
}

.cs-install-split .apb-demand-content {
    padding-right: 40px;
}

.cs-install-left {
    flex: 1;
}

.cs-timeline-list {
    display: flex;
    flex-direction: column;
}

.cs-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    padding-bottom: 40px;
}

.cs-timeline-item:last-child {
    padding-bottom: 0;
}

/* Vertical connecting line */
.cs-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 31px;
    top: 68px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(5, 114, 138, 0.6) 0%,
        rgba(5, 114, 138, 0.08) 100%
    );
}

/* Icon box — glassy dark card */
.cs-timeline-icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(5, 114, 138, 0.35);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #05728a);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(5, 114, 138, 0.15);
}

.cs-timeline-item:hover .cs-timeline-icon-wrap {
    background: rgba(5, 114, 138, 0.18);
    border-color: var(--primary, #05728a);
    box-shadow: 0 8px 28px rgba(5, 114, 138, 0.3);
    transform: scale(1.05);
}

.cs-timeline-icon-wrap img,
.cs-timeline-icon-wrap svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.cs-timeline-icon-wrap .cs-custom-icon-img {
    width: 30px;
    height: 30px;
}

/* Text content */
.cs-timeline-content {
    flex: 1;
    padding-top: 10px;
}

.cs-timeline-title {
    font-family: var(--font-display, inherit);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--primary, #05728a);
    margin-bottom: 8px;
    line-height: 1.35;
}

.cs-timeline-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0;
}

.cs-install-section .cs-timeline-text p,
.cs-install-section .cs-wysiwyg-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0;
}

/* Install image card */
.cs-install-img-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.cs-install-img-card img {
    border-radius: 24px;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Full-width timeline (no image on right) */
.cs-timeline-fullwidth {
    max-width: 680px;
    margin: 0 auto;
}


/* ============================================================
   END RESULTS — CENTERED TEXT
   ============================================================ */

.cs-results-wrap {
    margin: 0 auto;
    text-align: center;
}

.cs-results-heading {
    font-family: var(--font-display, inherit);
   
    line-height: 1.2;
    color: #111;
    margin-bottom: 36px;
}

.cs-results-heading em {
    font-style: normal;
}

.cs-results-body {
    text-align: center;
}

.cs-results-body p,
.cs-results-content p {
    font-size: 1.07rem;
    line-height: 1.9;
    color: #4a5568;
    margin-bottom: 22px;
    text-align: center;
}

.cs-results-body p:last-child,
.cs-results-content p:last-child {
    margin-bottom: 0;
}

/* Legacy */
.cs-results-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}


/* ============================================================
   RELATED CASE STUDIES SECTION
   ============================================================ */

.cs-related-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cs-related-header {
   text-align:center;
    margin: 0 auto 56px;
}

.cs-related-grid {
    /* inherits .posts-grid from main.css — 3-col, gap: 2rem */
}

.cs-related-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark, #0A2A30) 0%, var(--primary, #05728a) 100%);
}


/* ============================================================
   DOWNLOAD PDF — CTA STRIP
   ============================================================ */

.cs-cta-strip {
    background: var(--dark, #0A2A30);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cs-cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 110%, rgba(5, 114, 138, 0.28) 0%, transparent 65%);
    pointer-events: none;
}

.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--primary, #05728a);
    color: #ffffff;
    font-family: var(--font-display, inherit);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 18px 46px;
    border-radius: 50px;
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
}

.cs-cta-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(5, 114, 138, 0.5);
    background: #f0434e;
}

.cs-cta-icon {
    display: flex;
    align-items: center;
}


/* ============================================================
   CUSTOM ICON FALLBACK SIZES
   ============================================================ */

.case-study-page .cs-custom-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.case-study-page .cs-custom-icon-dash {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.case-study-page .cs-custom-icon-fa {
    font-size: 32px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .cs-approach-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #cs-requirements .apb-kiosk-caps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-check-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-check-grid-light {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-install-split .apb-demand-content {
        padding-right: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
	.cs-approach-sub-header {
    margin: -6px auto 0;
    padding-bottom: 8px;
}
      .cs-section-nav .container {
        padding: 0;
    }
.cs-section-nav-links {
    display: block;
	text-align: center;}

    .cs-section-nav {
        overflow: hidden;
    }.cs-nav-link {
        padding: 14px 12px;
        font-size: 16px;
        flex-shrink: 0;
    }

  

    .cs-section-nav-links {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px; /* Base padding for the whole scroll row */
    }

    .cs-section-nav-links::-webkit-scrollbar {
        display: none;
    }

  
    /* Approach cards grid */
    .cs-approach-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    /* Requirements grid */
    #cs-requirements .apb-kiosk-caps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Check grids */
    .cs-check-grid,
    .cs-check-grid-light {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cs-check-grid-light {
        gap: 16px;
    }

    /* Install split */
    .cs-install-split .apb-demand-content {
        padding-right: 0;
    }

    .cs-timeline-icon-wrap {
        width: 52px;
        height: 52px;
    }

    .cs-timeline-item:not(:last-child)::after {
        left: 25px;
        top: 56px;
    }

    /* Center header */
    .cs-center-header {
        margin-bottom: 40px;
    }

    /* Timeline */
    .cs-timeline-item {
        gap: 16px;
    }

    .cs-timeline-icon-wrap {
        width: 46px;
        height: 46px;
    }

    .cs-timeline-item:not(:last-child)::after {
        left: 22px;
        top: 48px;
    }

    /* Approach right */
    .case-study-page .cs-approach-right {
        padding-left: 0;
    }

    /* CTA */
    .cs-cta-btn {
        padding: 16px 32px;
        font-size: 0.9rem;
    }
	.single-case-studies section.contact-hero-refined.inner-page-hero {
    min-height: 70vh !important;
}
	.case-study-page .cs-custom-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
}
