.cs-335f3c6c-container {
    width: 100%;
    font-family: 'Roboto', sans-serif;
    margin: 0 auto;
}
/* Filter Tabs */
.cs-335f3c6c-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}
.cs-335f3c6c-filter-btn {
    background: #ffffff;
    border: 1px solid #e6f0fb;
    color: #002F5F;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cs-335f3c6c-filter-btn:hover,
.cs-335f3c6c-filter-btn.active {
    background: #0099ff;
    color: #ffffff;
    border-color: #0099ff;
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.2);
}
/* Grid Layout */
.cs-335f3c6c-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
    .cs-335f3c6c-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .cs-335f3c6c-grid {
        grid-template-columns: 1fr;
    }
}
/* Card Design */
.cs-335f3c6c-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e6f0fb;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 47, 95, 0.08);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Never underline any text inside the card, even if the theme underlines links */
.cs-335f3c6c-card,
.cs-335f3c6c-card:hover,
.cs-335f3c6c-card:focus,
.cs-335f3c6c-card .cs-335f3c6c-card-title,
.cs-335f3c6c-card .cs-335f3c6c-card-summary,
.cs-335f3c6c-card .cs-335f3c6c-card-more {
    text-decoration: none !important;
}
.cs-335f3c6c-card-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    overflow: hidden;
    position: relative;
}
.cs-335f3c6c-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
/* Branded placeholder when a case study has no featured image */
.cs-335f3c6c-noimg {
    background: linear-gradient(135deg, #002F5F 0%, #0099ff 100%);
}
/* Optional headline stat badge over the image */
.cs-335f3c6c-card-stat-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #002F5F;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 47, 95, 0.15);
    backdrop-filter: blur(2px);
}
/* Content */
.cs-335f3c6c-card-content {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
}
/* Tags */
.cs-335f3c6c-card-tags {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.cs-335f3c6c-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #002F5F;
    background: #eaf3fd !important;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}
.cs-335f3c6c-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #002F5F;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}
.cs-335f3c6c-card-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #5b6b7c;
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* View case study link */
.cs-335f3c6c-card-more {
    margin-top: auto;
    color: #0099ff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cs-335f3c6c-card-more::after {
    content: '\2192';
    font-size: 16px;
    transition: transform 0.3s ease;
}
.cs-335f3c6c-card:hover .cs-335f3c6c-card-more::after {
    transform: translateX(4px);
}
/* Hover Effects */
.cs-335f3c6c-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 153, 255, 0.15);
    border-color: #0099ff;
}
.cs-335f3c6c-card:hover .cs-335f3c6c-card-img-wrapper img {
    transform: scale(1.06);
}
.cs-335f3c6c-no-posts {
    text-align: center;
    grid-column: 1 / -1;
    color: #777;
    padding: 40px 0;
    font-style: italic;
}
/* Carousel */
.cs-335f3c6c-viewport {
    position: relative;
}
.cs-335f3c6c-grid.cs-335f3c6c-carousel {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 28px;
    padding: 4px 4px 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cs-335f3c6c-grid.cs-335f3c6c-carousel::-webkit-scrollbar {
    display: none;
}
.cs-335f3c6c-grid.cs-335f3c6c-carousel .cs-335f3c6c-card {
    flex: 0 0 calc((100% - 56px) / 3);
    scroll-snap-align: start;
}
@media (max-width: 1024px) {
    .cs-335f3c6c-grid.cs-335f3c6c-carousel .cs-335f3c6c-card {
        flex-basis: calc((100% - 28px) / 2);
    }
}
@media (max-width: 767px) {
    .cs-335f3c6c-grid.cs-335f3c6c-carousel .cs-335f3c6c-card {
        flex-basis: 85%;
    }
}
.cs-335f3c6c-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: #002F5F !important;
    color: #ffffff !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 47, 95, 0.22);
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}
.cs-335f3c6c-nav:hover,
.cs-335f3c6c-nav:focus {
    background: #0099ff !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 153, 255, 0.30);
    outline: none;
}
.cs-335f3c6c-nav.cs-335f3c6c-prev { left: -84px; }
.cs-335f3c6c-nav.cs-335f3c6c-next { right: -84px; }
.cs-335f3c6c-nav[hidden] { display: none !important; }
@media (max-width: 767px) {
    .cs-335f3c6c-nav.cs-335f3c6c-prev { left: -6px; }
    .cs-335f3c6c-nav.cs-335f3c6c-next { right: -6px; }
}