/* Success Cases Page Styles */
.success-cases-main {
    min-height: 100vh;
    padding-top: 100px;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.back-button-container {
    margin-bottom: 30px;
    margin-top: 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1D3557;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(29, 53, 87, 0.2);
}

.back-button:hover {
    background: #2E4A6B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 53, 87, 0.3);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1D3557;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.case-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.case-card:hover .case-thumbnail img {
    transform: scale(1.05);
}

.default-thumbnail {
    height: 100%;
    background: linear-gradient(135deg, #1D3557, #457b9d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1D3557;
    margin-bottom: 15px;
    line-height: 1.4;
}

.case-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.2em;
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.case-date, .created-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.case-date {
    color: #1D3557;
    font-weight: 500;
}

.created-date {
    color: #6c757d;
}

.case-date i, .created-date i {
    color: #1D3557;
}

.no-cases {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-cases i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #1D3557;
}

.no-cases h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1D3557;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 80px;
}

.page-btn, .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: white;
    color: #1D3557;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 44px;
    height: 44px;
}

.page-btn {
    gap: 8px;
    padding: 12px 20px;
    min-width: auto;
}

.page-btn:hover, .page-number:hover {
    background: #1D3557;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(29, 53, 87, 0.3);
}

.page-number.active {
    background: #1D3557;
    color: white;
    box-shadow: 0 4px 10px rgba(29, 53, 87, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .success-cases-main {
        padding-top: 80px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-card {
        margin: 0 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .page-number {
        padding: 10px 12px;
        min-width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .back-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .page-header {
        margin-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-content h3 {
        font-size: 1.2rem;
    }
}