/* =============================
   CASE STUDIES HERO
   ============================= */
.cs-hero-section {
    padding: 80px 0 100px;
    background-color: white;
}

/* --- 1. Header Styling --- */
.cs-pill {
    background-color: var(--color-primary); /* Dark Green */
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.cs-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary); /* Dark Green */
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.cs-subtitle {
    font-size: 1.15rem;
    color: var(--color-accent); /* Orange */
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* --- 2. Featured Card Styling --- */
.featured-case-card {
    margin-top: 50px;
    /* Optional: If you want the card itself to have a background/shadow
       background: #fff;
       box-shadow: 0 20px 40px rgba(0,0,0,0.05);
       border-radius: 20px;
    */
}

/* Image Wrapper */
.featured-img-wrapper {
    width: 100%;
    height: 500px; /* Fixed tall height like the screenshot */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #f0f0f0; /* Placeholder color while loading */
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.featured-img-wrapper:hover .featured-img {
    transform: scale(1.03); /* Subtle zoom effect */
}

/* Content Typography */
.featured-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.featured-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 0;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .cs-title { font-size: 2.5rem; }
    .featured-img-wrapper { height: 300px; }
    .featured-heading { font-size: 1.5rem; }
    .text-lg-end { text-align: left !important; margin-top: 15px; }
}


/* =============================
   TABS & GRID SECTION
   ============================= */
.cs-tabs-section {
    padding: 0 0 100px;
    background-color: white;
}

/* Tab Navigation */
.cs-tabs-wrapper {
    border-bottom: 1px solid #e0e0e0;
}

.cs-tabs-wrapper .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 0; /* No side padding, just spacing via gap */
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.cs-tabs-wrapper .nav-link:hover {
    color: var(--color-primary);
}

.cs-tabs-wrapper .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent); /* Orange Underline */
}

/* Case Study Cards */
.cs-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.cs-img-wrapper {
    height: 240px;
    overflow: hidden;
}

.cs-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-card:hover .cs-img-wrapper img {
    transform: scale(1.05);
}

.cs-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cs-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent); /* Orange */
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cs-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cs-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Improved Read Button */
.btn-read-story {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary); /* Dark Green */
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read-story i {
    transition: transform 0.3s ease;
}

.btn-read-story:hover {
    color: var(--color-accent); /* Orange on hover */
}

.btn-read-story:hover i {
    transform: translateX(5px); /* Arrow moves right */
}