/* ================================================
   CASE STUDY CPT STYLES — v3 specific overrides
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Wrapper ─────────────────────────────────── */
.cs-wrapper {
    background: #F4F2EE !important;
    color: #1A1A18 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    padding-bottom: 4rem;
    padding-top: 5rem;
}

.cs-wrapper * {
    box-sizing: border-box;
}

/* ── HERO ────────────────────────────────────── */
.cs-hero {
    padding: 3.5rem 0 2rem;
}

.cs-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.cs-tag {
    color: #B85C38 !important;
    background: #F5E8E2 !important;
    border-radius: 50px;
    padding: 0.2rem 0.7rem;
    font-weight: 500;
    font-size: 0.72rem;
}

.cs-tag-sep {
    color: #6B6860;
    padding: 0 0.15rem;
}

.cs-wrapper h1.cs-title {
    font-size: clamp(2rem, 5vw, 3.4rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--dtr-text-color-heading);
    margin: 0.5rem 0 0.6rem !important;
    max-width: 660px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.cs-subtitle {
    font-size: 0.95rem !important;
    color: var(--dtr-text-color-secondary);
    margin: 0 0 0.25rem !important;
    font-weight: 400 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

.cs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--dtr-bg-primary);
    color: #fff;
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

/* ── META CARDS ──────────────────────────────── */
.cs-meta {
    padding: 2rem 0 4rem;
}

.cs-meta-row {
    border: 1px solid #DEDAD3 !important;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF !important;
}

.cs-meta-card {
    padding: 1.4rem 1.6rem;
    border-right: 1px solid #DEDAD3;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #FFFFFF !important;
}

.cs-meta-card--last {
    border-right: none;
}

@media (max-width: 767.98px) {
    .cs-meta-card {
        border-right: none;
    }
   
}

.cs-meta-label {
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #6B6860 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 400 !important;
}

.cs-meta-value {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #1A1A18 !important;
    line-height: 1.35 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

/* ── CHALLENGE ───────────────────────────────── */
.cs-challenge {
    padding: 0 0 4rem;
}

.cs-blockquote {
    font-size: clamp(1.2rem, 2.8vw, 1.65rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--dtr-text-color-heading);
    border: none !important;
    border-left: 3px solid #B85C38 !important;
    padding: 0.25rem 0 0.25rem 1.5rem !important;
    margin: 0 !important;
    background: none !important;
}

.cs-blockquote::before,
.cs-blockquote::after { content: none !important; }

.cs-challenge-body p {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
    color: #6B6860 !important;
    margin-bottom: 1.1rem !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

/* ── WHAT I DID ──────────────────────────────── */
.cs-what {
    padding: 0 0 4rem;
}

.cs-wrapper h2.cs-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: var(--dtr-text-color-heading);
    margin: 0 !important;
    text-transform: none !important;
}

.cs-what-body ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.cs-what-body ul li {
    position: relative;
    padding-left: 1.4rem !important;
    font-size: 0.94rem !important;
    line-height: 1.7 !important;
    color: #6B6860 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

.cs-what-body ul li::before {
    content: '' !important;
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #B85C38 !important;
}

.cs-what-body p {
    font-size: 0.94rem !important;
    line-height: 1.7 !important;
    color: #6B6860 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

/* ── DELIVERABLES ────────────────────────────── */
.cs-deliverables {
    padding: 0 0 4rem;
}

.cs-deliverable-card {
    background: #FFFFFF !important;
    border: 1px solid #DEDAD3 !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none !important;
}

.cs-deliverable-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.75rem 1rem 0.5rem;
}

.cs-deliverable-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.cs-deliverable-dots span:nth-child(1) { background: #E05252 !important; }
.cs-deliverable-dots span:nth-child(2) { background: #E0B352 !important; }
.cs-deliverable-dots span:nth-child(3) { background: #52B96A !important; }

.cs-deliverable-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #EDEBE6;
    overflow: hidden;
}

.cs-deliverable-screen img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.cs-deliverable-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(237,235,230,0.6) 50%,
        rgba(237,235,230,0.95) 100%
    );
    pointer-events: none;
}

.cs-deliverable-meta {
    padding: 0.75rem 1rem 1rem;
}

.cs-deliverable-badge {
    display: inline-flex !important;
    align-items: center;
    background: #F5E8E2 !important;
    color: #B85C38 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    width: fit-content;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

/* ── RESULTS ─────────────────────────────────── */
.cs-results {
    padding: 0;
}

.cs-results-inner {
    background: #EDEBE6 !important;
    border: 1px solid #DEDAD3 !important;
    border-radius: 12px;
    padding: 3rem 2.5rem;
}

.cs-wrapper h2.cs-results-headline {
    font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
    font-weight: 800 !important;
    color: #1A1A18 !important;
    margin-bottom: 2rem !important;
    max-width: 540px;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.cs-results-body ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem 2rem;
}

.cs-results-body ul li {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    color: #6B6860 !important;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    padding-left: 0 !important;
}

.cs-results-body ul li::before {
    content: '—' !important;
    color: #B85C38 !important;
    font-weight: 700;
    flex-shrink: 0;
    background: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    position: static !important;
    top: auto !important;
}

.cs-results-body p {
    font-size: 0.88rem !important;
    color: #6B6860 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

@media (max-width: 767.98px) {
    .cs-results-inner { padding: 2rem 1.5rem; }
    .cs-results-body ul { grid-template-columns: 1fr; }
    .cs-wrapper h2.cs-section-title { position: static; }

    .cs-wrapper{
        padding-bottom: 4rem;
        padding-top: 1rem;
    }
}
