/* Cases Page Styles */

/* Page Header - Blue Hero Section */
.page-header {
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header .subtitle {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #1e90ff;
}

.separator {
    margin: 0 8px;
    color: #adb5bd;
}

.current {
    color: #1e90ff;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.case-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.2);
}

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

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

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 144, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.case-item:hover .case-overlay {
    opacity: 1;
}

.case-link {
    background: white;
    color: #1e90ff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-link:hover {
    background: #f8f9ff;
    transform: scale(1.05);
}

.case-title {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 16px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.pagination-btn:hover {
    background: #1e90ff;
    color: white;
    border-color: #1e90ff;
}

.pagination-btn.active {
    background: #1e90ff;
    color: white;
    border-color: #1e90ff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .case-image {
        height: 200px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .case-image {
        height: 180px;
    }
    
    .case-title {
        padding: 15px;
        font-size: 15px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation delays */
.case-item:nth-child(1) { animation-delay: 0.1s; }
.case-item:nth-child(2) { animation-delay: 0.2s; }
.case-item:nth-child(3) { animation-delay: 0.3s; }
.case-item:nth-child(4) { animation-delay: 0.4s; }
.case-item:nth-child(5) { animation-delay: 0.5s; }
.case-item:nth-child(6) { animation-delay: 0.6s; }
.case-item:nth-child(7) { animation-delay: 0.7s; }
.case-item:nth-child(8) { animation-delay: 0.8s; }
.case-item:nth-child(9) { animation-delay: 0.9s; }
.case-item:nth-child(10) { animation-delay: 1.0s; }
.case-item:nth-child(11) { animation-delay: 1.1s; }
.case-item:nth-child(12) { animation-delay: 1.2s; }
.case-item:nth-child(13) { animation-delay: 1.3s; }
.case-item:nth-child(14) { animation-delay: 1.4s; }
.case-item:nth-child(15) { animation-delay: 1.5s; }
.case-item:nth-child(16) { animation-delay: 1.6s; }

/* Case Detail Page Styles */
.case-detail {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Case Info Section */
.case-info {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-item h4 {
    color: #1e90ff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-item p {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Case Content */
.case-content {
    padding: 40px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: #1e90ff;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

/* Case Images */
.case-images {
    margin: 30px 0;
    text-align: center;
}

.case-images img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Solution Features */
.solution-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #1e90ff;
}

.feature-icon {
    font-size: 24px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e90ff;
    border-radius: 50%;
    color: white;
}

.feature-content h3 {
    color: #1e90ff;
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.result-item {
    text-align: center;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 2px solid #e8f2ff;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: #1e90ff;
    transform: translateY(-5px);
}

.result-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e90ff;
    margin-bottom: 10px;
}

.result-desc {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Testimonial */
.testimonial {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #1e90ff;
    margin-top: 25px;
}

.testimonial blockquote {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-style: italic;
    margin: 0 0 15px 0;
    quotes: """ """ "'" "'";
}

.testimonial blockquote:before {
    content: open-quote;
    font-size: 24px;
    color: #1e90ff;
    vertical-align: top;
}

.testimonial blockquote:after {
    content: close-quote;
    font-size: 24px;
    color: #1e90ff;
    vertical-align: bottom;
}

.testimonial cite {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    font-style: normal;
}

/* Related Cases */
.related-cases {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.related-cases h2 {
    color: #1e90ff;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.15);
}

.related-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-item h4 {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* Responsive Design for Case Detail */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .solution-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .case-content {
        padding: 25px;
    }
    
    .case-info {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-info {
        padding: 15px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .result-number {
        font-size: 24px;
    }
}