/* =============================================================================
   HERO
============================================================================= */

.cs-hero {
    background: linear-gradient(135deg, #1a2e10 0%, #14161A 50%, #0e1012 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.cs-hero-glow {
    position: absolute;
    top: -120px;
    left: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(123,185,62,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cs-hero-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-green);
    border-left: 4px solid var(--primary-green);
    padding-left: 14px;
    margin-bottom: 1.5rem;
    display: block;
}

.cs-hero-title {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.cs-hero-title span { color: var(--primary-green); }

.cs-hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 2rem;
}

.cs-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    border: 1px solid var(--primary-green);
    color: #ffffff;
    border-radius: var(--btn-radius);
    padding: 0.85rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.cs-hero-btn-primary:hover { background: #96DC4B; border-color: #96DC4B; color: #ffffff; }

.cs-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--btn-radius);
    padding: 0.85rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.cs-hero-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #ffffff; }

.cs-hero-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.cs-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================================================
   CTA SECTION
============================================================================= */

.cs-cta {
    background: linear-gradient(135deg, #14161A 0%, #1a2e10 100%);
    padding: 5rem 0;
    text-align: center;
}

.cs-cta-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cs-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(123, 185, 62, 0.9);
    display: block;
    margin-bottom: 1rem;
}

.cs-cta-title {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.cs-cta-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 auto 2.5rem;
}

.cs-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    border: 1px solid var(--primary-green);
    color: #ffffff;
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.cs-cta-btn-primary:hover { background: #96DC4B; border-color: #96DC4B; color: #ffffff; }

.cs-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.cs-cta-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #ffffff; }

/* --- Section Label --- */
.cs-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-green-dark);
    background: var(--light-green);
    border: 1px solid rgba(123, 185, 62, 0.3);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    margin-bottom: 1rem;
}

/* =============================================================================
   CASE LIBRARY — Browsable card grid
============================================================================= */

.cs-case-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.cs-case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.cs-case-card.is-coming-soon {
    opacity: 0.6;
    pointer-events: none;
}

.cs-case-card.is-coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.cs-card-soon-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--neutral-700);
    color: white;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    z-index: 2;
}

.cs-card-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--neutral-100);
    position: relative;
}

.cs-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.cs-case-card:hover .cs-card-image-wrap img {
    transform: scale(1.04);
}

.cs-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--neutral-100);
    color: var(--neutral-400);
}

.cs-card-image-placeholder i {
    font-size: 2.5rem;
}

.cs-card-image-placeholder span {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--primary-green-dark);
    margin-bottom: 0.75rem;
}

.cs-card-pill i {
    font-size: 0.65rem;
    color: var(--primary-green);
}

.cs-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navbar-bg);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.cs-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.cs-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-green-dark);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.cs-card-cta:hover {
    color: var(--primary-green);
    gap: 0.75rem;
}

.cs-card-cta i {
    font-size: 0.75rem;
}

.cs-card-logo-strip {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--neutral-50);
}

.cs-card-logo-strip img {
    height: 22px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
}

.cs-card-logo-strip span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* =============================================================================
   CASE ARTICLE — Full case study detail
============================================================================= */

.cs-article-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cs-article-divider::before,
.cs-article-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.cs-article-divider-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Key facts sidebar */
.cs-key-facts {
    background: var(--neutral-50);
    border: 1px solid var(--border-color);
    /*border-top: 3px solid var(--primary-green);*/
    border-radius: var(--radius-small);
    padding: 1.5rem;
}

.cs-key-facts-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    margin-bottom: 1.25rem;
    min-height: 70px;
}

.cs-key-facts-logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.cs-key-facts-title {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.cs-key-facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-key-facts-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--neutral-200);
    font-size: 0.875rem;
}

.cs-key-facts-list li:last-child {
    border-bottom: none;
}

.cs-key-facts-list li i {
    color: var(--primary-green);
    font-size: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 14px;
}

.cs-key-facts-list li strong {
    color: var(--navbar-bg);
    font-weight: 500;
}

.cs-key-facts-list li span {
    color: var(--text-secondary);
}

/* Hero Image */
.cs-hero-image {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-small);
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
}

.cs-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.cs-hero-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-style: italic;
}

/* Stats Row */
.cs-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    overflow: hidden;
    margin-bottom: 3.5rem;
}

.cs-stat {
    background: white;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: background 0.2s;
}

.cs-stat:hover {
    background: var(--lighter-green);
}

.cs-stat-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    display: block;
}

.cs-stat-value {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--navbar-bg);
    line-height: 1.1;
    display: block;
    margin-bottom: 0.4rem;
}

.cs-stat-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    line-height: 1.4;
    display: block;
}

/* Story Blocks (Challenge / Solution) */
.cs-story-block {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    padding: 2rem;
    height: 100%;
}

.cs-story-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cs-story-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cs-story-icon.is-challenge,
.cs-story-icon.is-solution {
    background: var(--light-green);
    border: 1px solid rgba(123,185,62,0.25);
    color: var(--primary-green);
}

.cs-story-block h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navbar-bg);
    margin: 0;
}

.cs-story-block p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.cs-story-block p:last-child {
    margin-bottom: 0;
}

/* Narrative Body — float-wrap layout */
.cs-narrative {
    width: 100%;
}

.cs-narrative::after {
    content: '';
    display: table;
    clear: both;
}

.cs-narrative h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navbar-bg);
    margin-bottom: 1rem;
}

.cs-narrative p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

/* Quote Block */
.cs-quote-block {
    /*border-left: 4px solid var(--primary-green);*/
    background: var(--light-green);
    border-radius: var(--radius-small);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    position: relative;
}

.cs-quote-block::before {
    content: '\201C';
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-green);
    opacity: 0.25;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: Georgia, serif;
    pointer-events: none;
}

.cs-quote-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cs-quote-cite {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cs-quote-cite::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 2px;
    background: var(--primary-green);
}

/* Participants Photo — float left, 1:1 square */
.cs-participants-photo {
    float: left;
    width: 42%;
    margin: 0.25rem 2.5rem 2rem 0;
    border-radius: var(--radius-small);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cs-participants-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.cs-participants-photo figcaption {
    padding: 0.75rem 1rem;
    background: var(--neutral-50);
    border: 1px solid var(--border-color);
    border-top: none;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

/* Technology Used */
.cs-tech-section {
    background: var(--neutral-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.cs-tech-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.cs-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cs-tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--primary-green);
    border-radius: 20px;
    background: white;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-green-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cs-tech-tag:hover {
    background: var(--primary-green);
    color: white;
}

.cs-tech-tag i {
    font-size: 0.72rem;
}

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

@media screen and (max-width: 1024px) {
    .cs-stats-row { grid-template-columns: repeat(2, 1fr); }
    .cs-hero-image { height: 380px; }
}

@media screen and (max-width: 768px) {
    .cs-hero { padding: 60px 0 50px; }
    .cs-hero-subtitle { max-width: 100%; text-align: center; }
    /* Hero mobile centering */
    .cs-hero .column:first-child { text-align: center; }
    .cs-hero .buttons { justify-content: center; }
    .cs-hero-img { margin-top: 2.5rem; }
    .cs-cta { padding: 3.5rem 0; }
    .cs-hero-image { height: 260px; }
    .cs-participants-photo {
        float: none;
        width: 100%;
        margin: 0 0 2rem 0;
    }
    .cs-stats-row { grid-template-columns: repeat(2, 1fr); }
    .cs-stat { padding: 1.25rem 1rem; }
    .cs-stat-value { font-size: 1.15rem; }
    .cs-stat-icon { font-size: 1.25rem; }
    .cs-story-block { padding: 1.5rem; margin-bottom: 1rem; }
    .cs-quote-block { padding: 1.5rem 1.75rem; }
    .cs-quote-text { font-size: 0.95rem; }
    .cs-tech-section { gap: 1rem; }
    .cs-key-facts { margin-top: 2rem; }
    .cs-card-image-wrap { height: 180px; }
}

@media screen and (max-width: 480px) {
    .cs-stats-row { grid-template-columns: 1fr 1fr; }
    .cs-stat { padding: 1rem 0.75rem; }
    .cs-stat-value { font-size: 1rem; }
    .cs-quote-block::before { display: none; }
}
