/* ── case-studies.css ── */

/* Hero */
.cs-hero {
    display: flex;
    height: 55vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a2e4a 60%, #0d3b6e 100%);
}

.cs-hero-text {
    text-align: center;
    padding: 0 15%;
}

.cs-hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.cs-hero-text p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .cs-hero { height: 35vh; }
    .cs-hero-text h1 { font-size: 1.6rem; }
    .cs-hero-text p { font-size: 1rem; }
    .cs-hero-text { padding: 0 5%; }
}

/* Grid */
.cs-grid-section {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    padding: 0 2rem;
}

.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .cs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .cs-grid { grid-template-columns: 1fr; }
    .cs-grid-section { padding: 0 1rem; }
}

/* Card */
.cs-card {
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13,59,110,0.12);
}

.cs-card-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e4e8ef;
}

.cs-card-thumbnail-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #0d3b6e, #1a2e4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

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

.cs-card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.cs-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: #e8f0fa;
    color: #0d3b6e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2e4a;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.cs-card-summary {
    font-size: 0.92rem;
    color: #7f8c8d;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.2rem;
}

.cs-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0d3b6e;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.cs-read-more:hover {
    color: #c9a227;
}

.cs-read-more::after {
    content: '→';
}

/* Empty state */
.cs-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* ── Case Study Detail ── */
.cs-detail-hero {
    display: flex;
    height: 50vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a1628 0%, #0d3b6e 100%);
    padding: 0 5%;
    text-align: center;
}

.cs-detail-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    max-width: 900px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .cs-detail-hero { height: auto; padding: 3rem 1.5rem; }
    .cs-detail-hero h1 { font-size: 1.5rem; }
}

.cs-detail-wrapper {
    max-width: 900px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
}

.cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0d3b6e;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.cs-back-link:hover { color: #c9a227; }
.cs-back-link::before { content: '←'; }

.cs-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.2rem 1.5rem;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid #e4e8ef;
}

.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cs-meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2e4a;
}

.cs-section {
    margin-bottom: 2.5rem;
}

.cs-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d3b6e;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e4e8ef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cs-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.3rem;
    background: #c9a227;
    border-radius: 2px;
}

.cs-section-body {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
}

.cs-products-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.cs-products-list li a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #e8f0fa;
    color: #0d3b6e;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.cs-products-list li a:hover {
    background: #0d3b6e;
    color: #fff;
}

@media (max-width: 768px) {
    .cs-detail-wrapper { padding: 0 1rem; }
}
