.card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1210px;
    margin: 100px auto;
    padding: 0 20px;
  }
  
  .news-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fafafa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
  }
  
  .news-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  }
  
  .news-card.right {
    flex-direction: row-reverse;
  }
  
  /* Wrapper for image and overlay */
  .news-image-wrapper {
    position: relative;
    width: 300px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
  }
  
  /* Image itself */
  .news-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  
  /* Overlay background animation */
  .news-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
    border-radius: 8px;
    transition: all 0.4s ease;
    z-index: 1;
  }
  
  .news-image-wrapper:hover::before {
    width: 100%;
    height: 100%;
  }
  
  /* Text overlay */
  .image-overlay-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 2;
  }
  .image-text span a {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #ffdd57;
    letter-spacing: 1px;
    text-decoration: none;
  }
  
  .image-text h3 a {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
  }
  
  .news-image-wrapper:hover .image-overlay-text {
    opacity: 1;
    transform: translateY(0);
  }
  
  .news-content {
    flex: 1;
    min-width: 280px;
  }
  
  .news-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
  }
  
  .news-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
  }
  
  /* Responsive behavior */
  @media (max-width: 768px) {
    .news-card {
      flex-direction: column !important;
      align-items: center;
      text-align: center;
    }
  
    .news-image-wrapper {
      width: 100%;
      margin-bottom: 20px;
    }
  
    .news-content h2 {
      font-size: 1.25rem;
    }
  
    .news-content p {
      font-size: 0.95rem;
    }
  }
  