/* Case Detail Page Styles */
.case-detail-main {
    min-height: 100vh;
    padding-top: 120px;
    background: #ffffff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #1D3557;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #457b9d;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: #adb5bd;
}

.breadcrumb span {
    color: #6c757d;
    font-weight: 500;
}

.case-detail {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.case-header {
    background: white;
    color: #2c3e50;
    padding: 40px 40px 30px 40px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.case-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #2c3e50;
}

.case-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
}

.case-date {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

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

.case-image {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
}

.case-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
}

.case-overview {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.case-overview h2 {
    color: #1D3557;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.case-overview p {
    color: #495057;
    line-height: 1.6;
    font-size: 1.05rem;
}

.case-content {
    padding: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.case-content h2 {
    color: #1D3557;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.case-content p {
    margin-bottom: 20px;
}

.case-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.case-footer {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.case-tags {
    margin-bottom: 25px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background: #1D3557;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px;
}

.case-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px;
    width: 100%;
    text-align: center;
}

.btn-back, .btn-consultation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-consultation {
    background: #1D3557;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-consultation:hover {
    background: #457B9D;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Related Cases */
.related-cases {
    margin-top: 50px;
}

.related-cases h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1D3557;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

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

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-thumbnail {
    height: 150px;
    overflow: hidden;
    position: relative;
}

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

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

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

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1D3557;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1D3557;
    font-size: 0.9rem;
    font-weight: 500;
}

.related-date i {
    color: #457b9d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .case-detail-main {
        padding-top: 80px;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .case-header {
        padding: 25px 20px;
    }
    
    .case-header h1 {
        font-size: 1.8rem;
    }
    
    .case-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .case-image {
        padding: 25px 20px;
    }
    
    .case-content {
        padding: 25px 20px;
        font-size: 1rem;
    }
    
    .case-footer {
        padding: 20px;
    }
    
    .case-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-back, .btn-consultation {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .case-header h1 {
        font-size: 1.5rem;
    }
    
    .case-content {
        font-size: 0.95rem;
        padding: 20px 15px;
    }
    
    .related-cases h2 {
        font-size: 1.5rem;
    }
}