/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Jul 24, 2024, 12:14:33 AM
    Author     : Ariel.Malka
*/
.home_newslist_left {
    float: left;
    width: 99%;
    padding-left: 1%;
}
.newslist_content_right {
    float: right;
    padding-left: 10px;
    padding-right: 10px;
    width: calc(75% - 20px);
    font-size: 0.9375rem !important;
    line-heigt: 1.125rem !important;
}
.newslist_content_right a.newscontinue {
    text-decoration: none;
    color: #2ea3f2;
}
.home_newslist_left .newslist_content_left {
    width: 25%;
    float: left;
    text-align: center;
}
/* Container */
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Article Row Container */
.article-row-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Article Row */
.article-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 10px;
  height: 280px;
  overflow-x: auto;
  scroll-behavior: smooth;
  transition: transform 0.3s ease;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.article-row::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* Article Card */
.article-card {
  flex: 0 0 auto;
  width: 300px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-right: 20px;
}

.article-card:hover {
  transform: translateY(-5px);
}

/*.article-card img {
  width: 70%;
  height: 70%;
  object-fit: cover;
}*/

.article-card a {
 display: inline-block;
    padding: 10px;
    margin: 0;
    font-size: 16px;
    color: #1859ea;
    text-decoration: none;
}

.article-card .date {
  padding: 0 10px;
  margin: 10px 0px 10px 0px;
  font-size: 12px;
  color: #666;
}

.article-card .read-link {
  padding: 10px;
  text-align: center;
  color: white;
  text-decoration: none;
}

.article-card .read-link:hover {
  background-color: #0056b3;
}

/* Post Title */
.post-title {
  text-decoration: none;
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}
.image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.article-card img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%; /* This ensures the image takes the full width of its container */
  max-width: 300px; /* Adjust this value as needed */
  height: auto; /* This maintains the aspect ratio */
}
/* Media Query */
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}