/* Case Study Page Styles */

/* Case List Section */
.case-list-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.case-list {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

.case-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.case-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #e9ecef;
}

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

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

.case-content {
  padding: 25px;
}

.case-content h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.case-content time {
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.case-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  font-size: 14px;
  color: #007bff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0056b3;
}

.case-detail-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.case-study {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Breadcrumb */
.breadcrumb-nav {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.curmbs {
  color: #666;
  font-size: 14px;
}

.curmbs a {
  color: #007bff;
  text-decoration: none;
}

.curmbs a:hover {
  text-decoration: underline;
}

/* Case Header */
.case-header {
  margin-bottom: 30px;
}

.case-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.case-meta {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.case-category {
  padding: 4px 12px;
  background: #007bff;
  color: white;
  border-radius: 12px;
  font-size: 13px;
}

/* Summary Box */
.case-summary-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.case-summary-box h2 {
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 10px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-item strong {
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-item span {
  font-size: 16px;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border: 2px solid white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Case Content */
.case-content {
  margin-bottom: 40px;
  line-height: 1.8;
  color: #333;
}

.case-content h2 {
  font-size: 24px;
  color: #333;
  margin: 30px 0 20px;
  padding-left: 15px;
  border-left: 4px solid #007bff;
}

.case-content h3 {
  font-size: 20px;
  color: #555;
  margin: 25px 0 15px;
}

.case-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.case-content ul,
.case-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.case-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.case-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
}

.case-content table th,
.case-content table td {
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  text-align: left;
}

.case-content table thead th {
  background: #007bff;
  color: white;
  font-weight: 600;
}

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

/* Results Section */
.case-results {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

.case-results h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 25px;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.result-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.result-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.result-value {
  font-size: 20px;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 5px;
}

.result-label {
  font-size: 14px;
  color: #666;
}

/* Related Products */
.related-products {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

.related-products h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 25px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.product-link {
  text-decoration: none;
  color: inherit;
}

.product-card-mini {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
}

.product-card-mini:hover {
  border-color: #007bff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.product-card-mini h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.product-card-mini p {
  font-size: 13px;
  color: #007bff;
}

/* CTA Section */
.case-cta {
  margin: 40px 0;
  padding: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  text-align: center;
  color: white;
}

.case-cta h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.case-cta > p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Navigation Footer */
.case-navigation {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}

.content-exp {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-exp li {
  padding: 10px 0;
  color: #666;
}

.content-exp a {
  color: #007bff;
  text-decoration: none;
}

.content-exp a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .case-study {
    padding: 20px;
  }
  
  .case-header h1 {
    font-size: 24px;
  }
  
  .case-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  .case-cta,
  .related-products,
  .related-cases-section,
  .case-navigation {
    display: none;
  }
  
  .case-summary-box {
    background: white;
    color: black;
    border: 2px solid #333;
  }
  
  .result-card {
    border: 1px solid #333;
    box-shadow: none;
  }
}

/* Related Cases Section */
.related-cases-section {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

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

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

.related-case-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

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

.related-case-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #e9ecef;
  margin: 0;
}

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

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

.related-case-card h3 {
  font-size: 16px;
  color: #333;
  padding: 15px 15px 8px;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
  min-height: 50px;
}

.related-case-card time {
  display: block;
  font-size: 13px;
  color: #999;
  padding: 0 15px 15px;
}

@media (max-width: 768px) {
  .related-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .related-cases-grid {
    grid-template-columns: 1fr;
  }
}
