/* :root {
  --primary-color: #0056b3;
  --secondary-color: #004494;
  --accent-color: #ff9800;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #1a1a1a;
  --light-bg: #f5f7fa;
  --border-color: #e1e4e8;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
  --transition: all 0.3s ease;
} */

.case-hero {
  height: 40vh;
  min-height: 300px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../images/iccp-smart-hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-hero-content {
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.case-hero-content h1 {
  font-size: 3.0rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.case-hero-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.case-content {
  padding: 80px 0;
}

.case-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 0 15%;
}

.case-main {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.case-sidebar {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  align-self: start;
}

.case-section {
  margin-bottom: 40px;
}

.case-section:last-child {
  margin-bottom: 0;
}

.case-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.case-section h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.case-section p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.case-section ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.case-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  /* margin-top: 30px; */
  margin: 0 10%;
  align-items: center;
  justify-items: center;
}

.case-gallery img {
  width: 80%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--light-text);
  font-size: 0.9rem;
}

.case-info-list {
  list-style: none;
  padding: 0;
}

.case-info-list li {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.case-info-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  font-weight: 600;
  width: 120px;
  color: var(--secondary-color);
}

.info-value {
  flex: 1;
}

.sidebar-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  color: var(--primary-color);
}

.related-cases {
  list-style: none;
  padding: 0;
}

.related-cases li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.related-cases li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.related-cases a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  transition: var(--transition);
}

.related-cases a:hover {
  color: var(--primary-color);
}

.related-cases a i {
  margin-right: 10px;
  color: var(--primary-color);
}

.case-cta {
  margin-top: 40px;
  padding: 25px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  text-align: center;
}

.case-cta h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.case-cta p {
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .case-container {
    grid-template-columns: 1fr;
    margin: 0 2%;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }
}
