/**
 * CASE STUDY TEMPLATE — Premium Dark Theme
 * Scoped to .template-case-study-behance
 * 11 modular sections — no global CSS touched
 */

/* ================================================================
   BASE & CUSTOM PROPERTIES
   ================================================================ */

.template-case-study-behance {
    --cs-bg: #0a0a0a;
    --cs-surface: rgba(255, 255, 255, 0.025);
    --cs-border: rgba(255, 255, 255, 0.06);
    --cs-text: #f5f5f7;
    --cs-text-secondary: rgba(255, 255, 255, 0.55);
    --cs-text-muted: rgba(255, 255, 255, 0.35);
    --cs-accent: #59a6ff;
    --cs-radius: 14px;
    --cs-radius-sm: 8px;
    --cs-transition: cubic-bezier(0.23, 1, 0.32, 1);

    background: var(--cs-bg);
    color: var(--cs-text);
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.template-case-study-behance *,
.template-case-study-behance *::before,
.template-case-study-behance *::after {
    box-sizing: border-box;
}

/* ================================================================
   CONTAINER
   ================================================================ */

.template-case-study-behance .section-container,
.template-case-study-behance .nav-container,
.template-case-study-behance .header-container,
.template-case-study-behance .meta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ================================================================
   BACK NAVIGATION
   ================================================================ */

.template-case-study-behance .back-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cs-border);
    padding: 1.2rem 0;
}

.template-case-study-behance .back-nav .nav-container {
    display: flex !important;
    justify-content: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.template-case-study-behance .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--cs-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--cs-transition);
}

.template-case-study-behance .back-link:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.template-case-study-behance .back-link svg {
    width: 18px;
    height: 18px;
}

/* ================================================================
   LOADING & ERROR STATES
   ================================================================ */

.template-case-study-behance .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 1.5rem;
}

.template-case-study-behance .loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: csSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes csSpin {
    to {
        transform: rotate(360deg);
    }
}

.template-case-study-behance .loading-state p {
    color: var(--cs-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.template-case-study-behance .error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.template-case-study-behance .error-container {
    max-width: 500px;
}

.template-case-study-behance .error-404 h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1;
}

.template-case-study-behance .error-404 h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.template-case-study-behance .error-404 p {
    color: var(--cs-text-secondary);
    margin-bottom: 2rem;
}

/* ================================================================
   HERO SECTION — 2-Column Layout
   ================================================================ */

.template-case-study-behance .case-study-header {
    padding: 80px 0 60px;
}

.template-case-study-behance .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Category Badge */
.template-case-study-behance .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--cs-border);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cs-text-secondary);
    width: fit-content;
    margin-bottom: 1.5rem;
}

.template-case-study-behance .category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
}

/* Title */
.template-case-study-behance .project-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* Description */
.template-case-study-behance .project-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--cs-text-secondary);
    line-height: 1.65;
    margin: 0 0 1.75rem;
    max-width: 500px;
    font-weight: 400;
}

/* Hero Meta Pills */
.template-case-study-behance .hero-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.template-case-study-behance .hero-pill {
    display: inline-flex;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cs-text-secondary);
    border: 1px solid var(--cs-border);
    border-radius: 999px;
    background: transparent;
}

/* Hero CTAs */
.template-case-study-behance .hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.template-case-study-behance .primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.template-case-study-behance .primary-cta:hover {
    background: #e5e5e5;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.template-case-study-behance .secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.template-case-study-behance .secondary-cta:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

/* Hero Image */
.template-case-study-behance .hero-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
}

.template-case-study-behance .hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Divider after hero */
.template-case-study-behance .hero-divider {
    border: none;
    height: 1px;
    background: var(--cs-border);
    margin: 0 0 80px;
}

/* ================================================================
   SECTIONS — SHARED
   ================================================================ */

.template-case-study-behance .case-study-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--cs-transition);
}

.template-case-study-behance .case-study-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.template-case-study-behance .case-study-sections {
    opacity: 0;
    transform: translateY(20px);
}

.template-case-study-behance .case-study-content.fade-in .case-study-sections {
    animation: csReveal 1s var(--cs-transition) forwards;
}

@keyframes csReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-case-study-behance .case-section {
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--cs-transition), transform 0.8s var(--cs-transition);
}

.template-case-study-behance .case-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.template-case-study-behance .section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1.25rem;
    letter-spacing: -0.03em;
    text-align: left;
}

.template-case-study-behance .section-description {
    font-size: 1.05rem;
    color: var(--cs-text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 0 2.5rem;
    text-align: left;
}

/* ================================================================
   SECTION — OVERVIEW (Role, Tools, Responsibilities)
   ================================================================ */

.template-case-study-behance .overview-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.template-case-study-behance .overview-detail-item {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 2rem;
    transition: all 0.4s var(--cs-transition);
}

.template-case-study-behance .overview-detail-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(89, 166, 255, 0.12);
}

.template-case-study-behance .overview-detail-full {
    grid-column: 1 / -1;
}

.template-case-study-behance .detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cs-text-muted);
    margin: 0 0 0.75rem;
}

.template-case-study-behance .detail-value {
    font-size: 1.05rem;
    color: var(--cs-text);
    font-weight: 500;
    margin: 0;
}

.template-case-study-behance .detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.template-case-study-behance .detail-tag {
    display: inline-flex;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cs-border);
    border-radius: 999px;
    transition: all 0.3s var(--cs-transition);
}

.template-case-study-behance .detail-tag:hover {
    background: rgba(89, 166, 255, 0.08);
    border-color: rgba(89, 166, 255, 0.2);
    color: var(--cs-accent);
}

/* ================================================================
   REUSABLE — TEXT BLOCK
   ================================================================ */

.template-case-study-behance .section-text-block {
    max-width: 700px;
}

.template-case-study-behance .section-text-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--cs-text-secondary);
    margin: 0;
}

.template-case-study-behance .section-text-block strong {
    color: var(--cs-text);
    font-weight: 600;
}

/* ================================================================
   SECTION — PROBLEM STATEMENT (Editorial Headline)
   ================================================================ */

.template-case-study-behance .problem-container {
    max-width: 850px;
    padding: 0 2.5rem;
}

.template-case-study-behance .problem-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cs-accent);
    margin: 0 0 1.75rem;
}

.template-case-study-behance .problem-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.65rem);
    font-weight: 600;
    color: var(--cs-text);
    line-height: 1.35;
    margin: 0 0 2.5rem;
    letter-spacing: -0.02em;
}

.template-case-study-behance .problem-headline .highlight {
    color: var(--cs-accent);
}

.template-case-study-behance .problem-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--cs-text-secondary);
}

.template-case-study-behance .problem-body strong {
    color: var(--cs-text);
    font-weight: 600;
}

/* ================================================================
   SECTION — GOALS (Icon Cards with Checklists)
   ================================================================ */

.template-case-study-behance .goals-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    align-items: start;
}

.template-case-study-behance .goals-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cs-text);
    margin: 0;
}

.template-case-study-behance .goals-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.template-case-study-behance .goal-card {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 2rem;
    transition: all 0.4s var(--cs-transition);
}

.template-case-study-behance .goal-card:hover {
    border-color: rgba(89, 166, 255, 0.15);
    background: rgba(255, 255, 255, 0.035);
}

.template-case-study-behance .goal-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(89, 166, 255, 0.08);
    border: 1px solid rgba(89, 166, 255, 0.12);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.template-case-study-behance .goal-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cs-text);
    margin: 0 0 1.25rem;
}

.template-case-study-behance .goal-card-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.template-case-study-behance .goal-card-items li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--cs-text-secondary);
    line-height: 1.55;
}

.template-case-study-behance .goal-check {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ================================================================
   SECTION — STRATEGY (Numbered Items with Offset Title)
   ================================================================ */

.template-case-study-behance .strategy-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    align-items: start;
    border-top: 1px solid var(--cs-border);
    padding-top: 4rem;
}

.template-case-study-behance .strategy-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cs-text);
    margin: 0;
}

.template-case-study-behance .strategy-items {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.template-case-study-behance .strategy-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.template-case-study-behance .strategy-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--cs-border);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cs-text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.template-case-study-behance .strategy-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cs-text);
    margin: 0 0 0.5rem;
}

.template-case-study-behance .strategy-item-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--cs-text-secondary);
    margin: 0;
}

/* ================================================================
   SECTION — UX DECISIONS
   ================================================================ */

.template-case-study-behance .ux-decisions-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.template-case-study-behance .ux-decision-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    transition: all 0.4s var(--cs-transition);
}

.template-case-study-behance .ux-decision-card:hover {
    border-color: rgba(89, 166, 255, 0.12);
}

.template-case-study-behance .ux-decision-card:nth-child(even) .ux-decision-content {
    order: 2;
}

.template-case-study-behance .ux-decision-card:nth-child(even) .ux-decision-image {
    order: 1;
}

.template-case-study-behance .ux-decision-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cs-text);
    margin: 0 0 0.75rem;
}

.template-case-study-behance .ux-decision-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cs-text-secondary);
    margin: 0;
}

.template-case-study-behance .ux-decision-image {
    border-radius: var(--cs-radius-sm);
    overflow: hidden;
}

.template-case-study-behance .ux-decision-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--cs-radius-sm);
}

/* Text-only decision (no image) */
.template-case-study-behance .ux-decision-card.text-only {
    grid-template-columns: 1fr;
}

/* ================================================================
   SECTION — LEARNINGS (Numbered Cards Grid)
   ================================================================ */

.template-case-study-behance .learnings-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.template-case-study-behance .learnings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.template-case-study-behance .learning-card {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 2.25rem;
    position: relative;
    transition: all 0.4s var(--cs-transition);
}

.template-case-study-behance .learning-card:hover {
    border-color: rgba(89, 166, 255, 0.15);
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-4px);
}

.template-case-study-behance .learning-index {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cs-accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.6;
}

.template-case-study-behance .learning-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cs-text-secondary);
    margin: 0;
}

/* ================================================================
   IMAGE LAYOUTS
   ================================================================ */

.template-case-study-behance .full-width-image {
    width: 100%;
    margin: 3rem 0;
}

.template-case-study-behance .full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}

.template-case-study-behance .constrained-image {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2.5rem;
}

.template-case-study-behance .constrained-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.template-case-study-behance .image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2.5rem;
}

.template-case-study-behance .image-grid-2 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.template-case-study-behance .image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2.5rem;
}

.template-case-study-behance .image-grid-3 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.template-case-study-behance .stacked-images {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2.5rem;
}

.template-case-study-behance .stacked-images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ================================================================
   IMPACT — REDESIGNED (Label + Headline + Cards)
   ================================================================ */

.template-case-study-behance .impact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cs-accent);
    margin: 0 0 1.75rem;
}

.template-case-study-behance .impact-headline {
    font-family: 'Outfit', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    font-style: italic;
    color: var(--cs-text);
    line-height: 1.2;
    margin: 0 0 2rem;
    letter-spacing: -0.03em;
    max-width: 650px;
}

.template-case-study-behance .impact-description {
    max-width: 700px;
    margin-bottom: 3.5rem;
}

.template-case-study-behance .impact-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cs-text-secondary);
    margin: 0;
}

.template-case-study-behance .impact-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.template-case-study-behance .impact-highlight-card {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 2.25rem 2rem;
    transition: all 0.4s var(--cs-transition);
}

.template-case-study-behance .impact-highlight-card:hover {
    border-color: rgba(89, 166, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

.template-case-study-behance .impact-highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(89, 166, 255, 0.08);
    border: 1px solid rgba(89, 166, 255, 0.12);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--cs-accent);
}

.template-case-study-behance .impact-highlight-icon svg {
    width: 22px;
    height: 22px;
}

.template-case-study-behance .impact-highlight-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cs-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.85rem;
}

.template-case-study-behance .impact-highlight-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--cs-text-secondary);
    margin: 0;
}

/* ================================================================
   FOOTER
   ================================================================ */

.template-case-study-behance .case-study-footer {
    display: flex !important;
    justify-content: center !important;
    text-align: center;
    padding: 80px 0 140px;
    border-top: 1px solid var(--cs-border);
    margin-top: 60px;
}

.template-case-study-behance .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.4s var(--cs-transition);
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.template-case-study-behance .btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-4px);
}

/* ================================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ================================================================ */

@media (max-width: 1024px) {
    .template-case-study-behance .image-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-case-study-behance .ux-decision-card {
        grid-template-columns: 1fr;
    }

    .template-case-study-behance .ux-decision-card:nth-child(even) .ux-decision-content,
    .template-case-study-behance .ux-decision-card:nth-child(even) .ux-decision-image {
        order: unset;
    }

    .template-case-study-behance .goals-layout,
    .template-case-study-behance .strategy-layout,
    .template-case-study-behance .learnings-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ================================================================ */

@media (max-width: 768px) {

    .template-case-study-behance .section-container,
    .template-case-study-behance .nav-container,
    .template-case-study-behance .header-container,
    .template-case-study-behance .meta-container {
        padding: 0 1.5rem;
    }

    .template-case-study-behance .case-study-header {
        padding: 80px 0 60px;
    }

    .template-case-study-behance .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .template-case-study-behance .project-title {
        font-size: 2.5rem;
    }

    .template-case-study-behance .case-section {
        margin-bottom: 80px;
    }

    .template-case-study-behance .overview-details {
        grid-template-columns: 1fr;
    }

    .template-case-study-behance .goals-cards,
    .template-case-study-behance .learnings-grid {
        grid-template-columns: 1fr;
    }

    .template-case-study-behance .problem-container {
        padding: 0;
    }

    .template-case-study-behance .image-grid-2,
    .template-case-study-behance .image-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .template-case-study-behance .stacked-images,
    .template-case-study-behance .constrained-image {
        padding: 0 1.5rem;
    }

    .template-case-study-behance .ux-decision-card {
        padding: 1.5rem;
    }

    .template-case-study-behance .impact-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-case-study-behance .impact-highlight-card:last-child {
        grid-column: 1 / -1;
    }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ================================================================ */

@media (max-width: 480px) {
    .template-case-study-behance .project-title {
        font-size: 2rem;
    }

    .template-case-study-behance .section-title {
        font-size: 1.5rem;
    }

    .template-case-study-behance .hero-grid {
        gap: 2rem;
    }

    .template-case-study-behance .impact-highlights-grid {
        grid-template-columns: 1fr;
    }

    .template-case-study-behance .impact-highlight-card:last-child {
        grid-column: auto;
    }

    .template-case-study-behance .impact-headline {
        font-size: 1.75rem;
    }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    .template-case-study-behance .case-section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .template-case-study-behance .case-study-content {
        transition: none;
    }

    .template-case-study-behance .case-study-content.fade-in .case-study-sections {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.template-case-study-behance .primary-cta:focus-visible,
.template-case-study-behance .secondary-cta:focus-visible,
.template-case-study-behance .back-link:focus-visible,
.template-case-study-behance .btn-secondary:focus-visible {
    outline: 2px solid var(--cs-accent);
    outline-offset: 3px;
}