.article-image-container {
  width: 100%;
  height: 30vh;
  overflow: hidden;
}

.article-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgb(9, 37, 68));
  /* pointer-events: none;  */
}

.content-container {
  margin: 0 30px;
  padding: 20px;
  margin-bottom: 50px;
}

.back-button {
  display: flex;
  width: fit-content;
  background-color: #008f8f;
  color: white;
  padding: 10px 20px;
  margin: 20px 0;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  font-family: 'Archivo Narrow', sans-serif;
  text-align: center;
  align-items: center;
}

.back-button:hover {
  background-color: #1a3e72;
  transform: translateY(-2px);
}

.back-button i {
  margin-right: 8px;
}

.article-header {
  margin-bottom: 30px;
}

.article-title {
  font-size: 2rem;
  color: #091D34;
  margin: 15px 0 10px;
}

.article-main-content {
  line-height: 1.7;
  font-size: 1.1rem;
}

.article-main-content h2{
  color: #091D34;

}

.article-layout {
  display: grid;
  grid-template-columns: 65% 1fr;
  gap: 40px;
  padding: 0 30px;
  margin: 0 auto;
}

.related-articles {
  border-left: 1px solid #e0e0e0;
  padding-left: 30px;
  margin-top: 20px;
}

.related-articles h3 {
  font-size: 1.5rem;
  color: #091D34;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.related-article-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 6px;
}

.related-article-card:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.related-article-card:hover {
  background-color: #f8f8f8;
  transform: translateX(5px);
}

.related-article-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.related-article-card h4 {
  font-size: 1rem;
  margin: 0;
  color: #091D34;
  font-weight: 600;
}

.article-bottom-cards {
  margin-top: 60px;
  padding: 40px 30px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f5f5;
  overflow: hidden;
}

.article-bottom-cards h2 {
  font-size: 2rem;
  color: #091D34;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
}

.cases-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.cases-carousel {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: calc(100% - 80px);
    margin: 0 auto;
}

.cases-carousel::-webkit-scrollbar {
    display: none;
}

.case-card {
    scroll-snap-align: start;
    flex: 0 0 280px;
    height: 150px;
    background: #091D34;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #091D34;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: white;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.case-card-content {
    z-index: 2;
    color: white;
    font-size: 1rem;
    text-align: center;
    padding: 15px;
    transition: opacity 0.3s ease;
    line-height: 1.4;
}

.case-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-card-content {
    opacity: 0;
}

.case-card:hover .case-card-hover {
    opacity: 1;
}
.cases-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.cases-carousel {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: calc(100% - 120px);
    margin: 0 40px;
    padding: 20px 10px;
}

.cases-carousel::-webkit-scrollbar {
    display: none;
}

.case-card {
    scroll-snap-align: start;
    flex: 0 0 280px;
    height: 150px;
    background: #091D34;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #091D34;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: white;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.case-card-content {
    z-index: 2;
    color: white;
    font-size: 1rem;
    text-align: center;
    padding: 15px;
    transition: opacity 0.3s ease;
    line-height: 1.4;
}

.case-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-card-content {
    opacity: 0;
}

.case-card:hover .case-card-hover {
    opacity: 1;
}

@media (max-width: 768px) {
  .article-image-container {
      height: 25vh;
  }

  
  .article-image-container::after {
    height: 25vh;
  }

  .content-container {
      padding: 15px;
  }
  
  .back-button {
      padding: 8px 15px;
      margin: 15px 0;
  }
  
  .article-title {
      font-size: 1.6rem;
  }
  
  .article-layout {
      grid-template-columns: 1fr;
      padding: 0 15px;
  }
  
  .related-articles {
      border-left: none;
      padding-left: 0;
      border-top: 1px solid #e0e0e0;
      padding-top: 30px;
      margin-top: 40px;
  }
  
  .cases-carousel {
    width: calc(100% - 80px); 
    margin: 0 30px; 
  }

  .carousel-button.prev {
    left: 15px; 
  }

  .carousel-button.next {
    right: 15px; 
  }

  .carousel-button {
      width: 30px;
      height: 30px;
      font-size: 16px;
  }

  .case-card {
      flex: 0 0 220px;
      height: 120px;
  }
}