/* Success Cases Page Styles */

/* Filter Tabs - Redesigned to Match Practice Areas */
.case-filter-section {
    padding: 40px 0 30px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.case-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0;
}

.case-tab {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    padding: 12px 28px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50px;
    min-width: 100px;
}

.case-tab:hover {
    background: #fff;
    border-color: var(--primary-navy);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 26, 114, 0.1);
}

.case-tab.active {
    background: var(--primary-navy) !important;
    border-color: var(--primary-navy) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 26, 114, 0.2);
}

.case-tab.active::after {
    display: none;
}

.filter-divider {
    display: none;
}

/* Grid Layout */
.case-list-section {
    padding: 40px 0 100px 0;
    background: #f9f9f9;
}

.case-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive Styles */

/* Tablet (768-1024px) */
@media (max-width: 1024px) {
    .case-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .case-filter-section {
        padding-bottom: 15px;
    }

    .case-tabs {
        gap: 20px;
    }

    .case-tab {
        font-size: 1rem;
    }

    .case-thumbnail {
        height: 220px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .case-filter-section {
        padding: 30px 0 20px 0;
    }

    .case-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .case-tab {
        font-size: 0.9rem;
        padding: 12px 10px;
        min-width: auto;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* "All" tab spans full width */
    .case-tab:first-child {
        grid-column: 1 / -1;
    }

    .case-list-section {
        padding: 30px 0 60px 0;
    }

    .case-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-thumbnail {
        height: 200px;
        padding: 15px;
    }

    .case-result-visual {
        width: 90%;
        height: 90%;
    }

    .visual-title {
        font-size: 1.6rem;
    }

    .case-info {
        padding: 20px;
    }

    .case-title {
        font-size: 1.1rem;
    }

    .case-meta {
        font-size: 0.85rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .case-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .case-tab {
        text-align: center;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 4px;
    }

    .case-tab.active {
        background: #f0f7ff;
        border-color: #0045ff;
    }

    .case-thumbnail {
        height: 180px;
    }

    .visual-title {
        font-size: 1.4rem;
    }

    .case-info {
        padding: 16px;
    }
}

/* Base Card Style */
.case-grid-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly rounded */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.case-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card Thumbnail Area with Document Look */
.case-thumbnail {
    height: 240px;
    background: #f4f6f9;
    /* Slight gray background for contrast */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

/* Card Thumbnail Area */
.case-thumbnail {
    height: 240px;
    background: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

/* Modern Abstract Result Visual (Copyright Safe) */
.case-result-visual {
    width: 85%;
    height: 85%;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.visual-header {
    background: #001a72;
    /* Top Brand Bar */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.visual-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.visual-decoration-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(0, 26, 114, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.visual-title {
    font-size: 2rem;
    color: #001a72;
    /* Navy Text */
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.2;
    z-index: 2;
}

.visual-sub {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
    font-weight: 500;
}

.visual-footer {
    border-top: 1px solid #f0f0f0;
    padding: 8px 0;
    text-align: center;
    background: #fafafa;
}

.visual-case-num {
    font-size: 0.7rem;
    color: #aaa;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Card Info */
.case-info {
    padding: 25px;
    /* Increased padding */
}

.case-category-badge {
    display: inline-block;
    background: #001a72;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    /* More square look */
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.case-title {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #111;
    margin-bottom: 25px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
}

.case-footer {
    display: flex;
    justify-content: space-between;
    /* Split left and right */
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 18px;
}

.case-result-text {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-view-link {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    transition: color 0.2s;
}

.case-grid-item:hover .case-view-link {
    color: var(--primary-navy);
    /* Highlight on hover */
    font-weight: 700;
}

.icon-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #001a72;
    /* Blue border */
    display: inline-block;
    position: relative;
}

.icon-check::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 5px;
    width: 5px;
    height: 8px;
    border: solid #001a72;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}