/* ==========================================================================
   CASE STUDIES — INNER PAGE  (shared across all service sub-pages)
   afrazalam.com/case-studies/[service]/
   ========================================================================== */

/* ── Design Tokens (same as hub) ────────────────────────────────── */
:root {
    --ci-navy:      #0B1320;
    --ci-navy-2:    #101B2D;
    --ci-paper:     #F6F7F5;
    --ci-ink:       #0B1320;
    --ci-muted:     #5B6573;
    --ci-line:      rgba(255,255,255,0.10);
    --ci-line-dark: rgba(11,19,32,0.10);
    --ci-accent:    #5EEAD4;
    --ci-green:     #34D399;
    --ci-green-dk:  #0F9D74;
    --ci-amber:     #F0B429;
    --ci-radius:    4px;
}

/* ══════════════════════════════════════════════════════════════════
   BREADCRUMB BAR
══════════════════════════════════════════════════════════════════ */
.ci-breadcrumb {
    background: var(--ci-navy);
    border-bottom: 1px solid var(--ci-line);
    padding: 14px 0;
}
.ci-breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}
.ci-breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color .2s;
}
.ci-breadcrumb a:hover { color: #fff; }
.ci-breadcrumb span { color: rgba(255,255,255,0.25); }

/* ── Breadcrumb INSIDE hero (same style as hub page) ────────────── */
.ci-hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 18px;
    justify-content: center;
}
.ci-hero-breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color .2s;
}
.ci-hero-breadcrumb a:hover { color: #fff; }
.ci-hero-breadcrumb span[aria-hidden] { color: rgba(255,255,255,0.28); }

/* ══════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════ */
.ci-hero {
    background: var(--ci-navy);
    color: #fff;
    padding: 150px 0 62px;
    position: relative;
    text-align: center;
    overflow: hidden;
}
.ci-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 340px at 50% 0%, rgba(94,234,212,0.12), transparent 62%);
    pointer-events: none;
}
.ci-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.ci-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ci-green);
    margin-bottom: 12px;
}
.ci-eyebrow--dark { color: var(--ci-green-dk); }

.ci-hero__h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.16;
    margin: 0;
}
.ci-hero__h1 em {
    font-style: normal;
    color: var(--ci-green);
}
.ci-hero__sub {
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.65;
    margin: 18px auto 0;
    max-width: 640px;
}

/* ══════════════════════════════════════════════════════════════════
   PROJECTS SECTION
══════════════════════════════════════════════════════════════════ */
.ci-projects {
    padding: 76px 0;
    background: var(--ci-paper);
}

/* Honest note */
.ci-note {
    background: #fff;
    border: 1px solid var(--ci-line-dark);
    border-left: 4px solid var(--ci-green);
    border-radius: 8px;
    padding: 22px 26px;
    font-size: 13.5px;
    color: var(--ci-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}
.ci-note strong { color: var(--ci-ink); }

/* 3-col grid */
.ci-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Card */
.ci-card {
    background: #fff;
    border: 1px solid var(--ci-line-dark);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ci-card:hover {
    border-color: var(--ci-green);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Image top */
.ci-card__img {
    height: auto;
    width: 100%;
    overflow: hidden;
    background: var(--ci-navy-2);
}
.ci-card__img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}
.ci-card:hover .ci-card__img img { transform: scale(1.04); }

/* Body */
.ci-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Platform badge */
.ci-platform {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ci-green-dk);
    background: #E7FAF3;
    padding: 4px 9px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: flex-start;
}
.ci-platform--custom { color: #9A6B00; background: #FEF3DD; }
.ci-platform--paid   { color: #1d4ed8; background: #DBEAFE; }
.ci-platform--auto   { color: #6D28D9; background: #EDE9FE; }

.ci-card__body h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ci-ink);
    margin: 0 0 5px;
}
.ci-card__niche {
    font-size: 12px;
    color: var(--ci-muted);
    margin-bottom: 10px;
    font-weight: 500;
}
.ci-card__body p {
    color: var(--ci-muted);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
}

/* Skill tags */
.ci-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.ci-tag {
    font-size: 11px;
    font-weight: 600;
    background: #F0F1EE;
    color: var(--ci-ink);
    padding: 4px 9px;
    border-radius: 20px;
}

/* Visit link */
.ci-card__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--ci-ink);
    text-decoration: none;
    margin-top: auto;
    transition: color .2s;
}
.ci-card__link::after { content: " ->"; }
.ci-card__link:hover { color: var(--ci-green-dk); }

/* Featured card (Active SEO/featured project) */
.ci-featured-card {
    background: #fff;
    border: 1px solid var(--ci-green);
    border-radius: 14px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(11,19,32,0.06);
}
.ci-featured-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ci-green);
    color: #06281E;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    align-self: flex-start;
}
.ci-featured-card__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #06281E;
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

.ci-featured-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 8px 0 10px;
    color: var(--ci-ink);
}
.ci-featured-card p {
    color: var(--ci-muted);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 16px;
}
.ci-featured-card__content {
    display: flex;
    flex-direction: column;
}
.ci-featured-card__media {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3/2;
    background: var(--ci-navy-2);
}
.ci-featured-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ci-featured-tag {
    font-size: 12px;
    font-weight: 700;
    background: #E7FAF3;
    color: var(--ci-green-dk);
    padding: 5px 12px;
    border-radius: 20px;
}

.ci-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--ci-green);
    color: #06281E;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--ci-radius);
    text-decoration: none;
    align-self: flex-start;
    transition: background .15s ease, transform .15s ease;
}
.ci-cta-btn-primary:hover {
    background: var(--ci-accent);
    transform: translateY(-1px);
    color: #06281E;
}

.ci-section-head-sub {
    max-width: 680px;
    margin: 40px 0 24px;
}
.ci-section-head-sub h2 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ci-ink);
    margin: 6px 0 0;
}

/* Outcome Box (Results block) */
.ci-outcome-box {
    background: var(--ci-paper);
    border: 1px solid var(--ci-line-dark);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}
.ci-outcome-box .label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ci-green-dk);
    margin-bottom: 6px;
}
.ci-outcome-box p {
    margin: 0;
    color: var(--ci-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

/* Corner Tags for Featured Card */
.ci-corner-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ci-corner-tag--win {
    background: var(--ci-green);
    color: #06281E;
}
.ci-corner-tag--live {
    background: var(--ci-navy);
    color: var(--ci-accent);
}
.ci-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ci-accent);
    animation: pulse 1.6s infinite;
}

/* Secondary/Outline Button */
.ci-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--ci-line-dark);
    color: var(--ci-ink);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--ci-radius);
    text-decoration: none;
    align-self: flex-start;
    transition: border-color .15s ease, transform .15s ease;
}
.ci-btn-outline:hover {
    border-color: var(--ci-green);
    transform: translateY(-1px);
    color: var(--ci-ink);
}


.ci-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ci-navy-2);
    border: 1px solid var(--ci-green);
    color: var(--ci-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 18px;
}
.ci-delivered__item:first-child .ci-step-num {
    background: var(--ci-green);
    color: #06281E;
}

/* Experience Card */
.ci-exp-card {
    background: #fff;
    border: 1px solid var(--ci-line-dark);
    border-radius: 14px;
    padding: 36px;
    margin-bottom: 8px;
    box-shadow: 0 14px 40px rgba(11,19,32,0.04);
}
.ci-exp-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 8px 0 14px;
    color: var(--ci-ink);
}
.ci-exp-card p {
    color: var(--ci-muted);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 18px;
}
.ci-exp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ci-exp-skill {
    font-size: 13px;
    font-weight: 700;
    background: #E7FAF3;
    color: var(--ci-green-dk);
    padding: 7px 14px;
    border-radius: 20px;
}

/* Upcoming Card (Dashed Border Card) */
.ci-upcoming-card {
    background: var(--ci-paper);
    border: 1px dashed var(--ci-line-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.ci-upcoming-card:hover {
    border-color: var(--ci-green);
    transform: translateY(-3px);
}
.ci-upcoming-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--ci-amber);
    color: #3D2A00;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 20px;
    z-index: 1;
}


/* Service Grid (3-col covers on AI Marketing page) */
.ci-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}
.ci-service-card {
    background: #fff;
    border: 1px solid var(--ci-line-dark);
    border-radius: 12px;
    padding: 28px;
    transition: border-color .15s ease, transform .15s ease;
}
.ci-service-card:hover {
    border-color: var(--ci-green);
    transform: translateY(-3px);
}
.ci-service-card .num {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--ci-green-dk);
    background: #E7FAF3;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.ci-service-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--ci-ink);
}
.ci-service-card p {
    color: var(--ci-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* Dark Featured Card variation */
.ci-featured-card--dark {
    background: var(--ci-navy);
    border: 1px solid var(--ci-line);
    color: #fff;
}
.ci-featured-card--dark h3 {
    color: #fff;
}
.ci-featured-card--dark p {
    color: rgba(255,255,255,0.65);
}
.ci-featured-card--dark .ci-featured-tag {
    background: var(--ci-navy-2);
    color: rgba(255,255,255,0.8);
    border: 1px solid var(--ci-line);
}
.ci-featured-card--dark .ci-outcome-box {
    background: var(--ci-navy-2);
    border: 1px solid var(--ci-line);
}
.ci-featured-card--dark .ci-outcome-box .label {
    color: var(--ci-accent);
}
.ci-featured-card--dark .ci-outcome-box p {
    color: #fff;
}

/* White ghost button style for dark card */
.ci-btn-ghost-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--ci-radius);
    text-decoration: none;
    align-self: flex-start;
    transition: border-color .15s ease, transform .15s ease;
}
.ci-btn-ghost-white:hover {
    border-color: #fff;
    transform: translateY(-1px);
    color: #fff;
}

@media (max-width: 980px) {
    .ci-service-grid {
        grid-template-columns: 1fr;
    }
    .ci-featured-card {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 26px;
    }
}

.ci-delivered {
    padding: 76px 0;
    background: var(--ci-navy);
    color: #fff;
}
.ci-section-head {
    max-width: 680px;
    margin-bottom: 40px;
}
.ci-section-head h2 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 10px 0 0;
    line-height: 1.2;
}
.ci-section-head p {
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.ci-delivered__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}
.ci-delivered__grid::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: rgba(255,255,255,0.15);
    z-index: 0;
}
.ci-delivered__item {
    position: relative;
    z-index: 1;
    padding-right: 20px;
    background: transparent;
}
.ci-delivered__item h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.ci-delivered__item p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    margin: 0;
}


/* ══════════════════════════════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════════════════════════════ */
.ci-final-cta {
    padding: 72px 0;
    background: var(--ci-paper);
}
.ci-cta-card {
    background: linear-gradient(115deg, #0B1320 0%, #16263F 55%, #1D3A5E 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 52px 48px;
    box-shadow: 0 24px 60px rgba(11,19,32,0.22);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.ci-cta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(520px 300px at 50% 0%, rgba(94,234,212,0.14), transparent 62%);
    pointer-events: none;
}
.ci-cta-card > * { position: relative; z-index: 1; }

.ci-cta-card h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    line-height: 1.15;
}
.ci-cta-card p {
    color: rgba(255,255,255,0.72);
    margin: 14px auto 0;
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 560px;
}

/* White button */
.ci-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 15px 32px;
    background: #fff;
    color: var(--ci-navy);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--ci-radius);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.ci-cta-btn:hover {
    background: var(--ci-accent);
    color: #06281E;
    transform: translateY(-1px);
}

/* Teal pill badges */
.ci-cta-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
    flex-wrap: wrap;
}
.ci-cta-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--ci-green);
    background: rgba(94,234,212,0.10);
    border: 1px solid rgba(94,234,212,0.20);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
    .ci-hero            { padding: 52px 0 46px; }
    .ci-hero__h1        { font-size: 28px; }
    .ci-projects,
    .ci-delivered,
    .ci-final-cta       { padding: 54px 0; }
    .ci-project-grid    { grid-template-columns: repeat(2, 1fr); }
    .ci-delivered__grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .ci-delivered__grid::before { display: none; }
    .ci-section-head h2 { font-size: 23px; }
    .ci-cta-card        { padding: 36px 26px; }
    .ci-cta-card h2     { font-size: 23px; }
}

@media (max-width: 560px) {
    .ci-hero__h1        { font-size: 24px; }
    .ci-hero__sub       { font-size: 14.5px; }
    .ci-project-grid,
    .ci-delivered__grid { grid-template-columns: 1fr; }
    .ci-cta-card        { padding: 28px 20px; }
    .ci-cta-card h2     { font-size: 20px; }
    .ci-cta-btn         { width: 100%; justify-content: center; }
}
