/* Articles Section */
.section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.articles-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.articles-container {
  position: relative;
  overflow: hidden;
  max-width: 1600px;
  margin: 0 auto;
  flex: 3;
  min-width: 300px;
  
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  overflow: hidden;
  padding: 2rem;
}

.articles-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1 1 100%;
}
.articles-wrapper::-webkit-scrollbar {
  display: none;
}

/* Article Card */
.article-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
}

/* Image Wrapper */
.article-card .image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}
.article-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Date Badge */
.article-card .date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color:var(--green-hover);
  color: white;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 0;
  text-align: center;
  width: 40px;
  height: 40px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  z-index: 1;
}
.date-badge .day {
  font-size: 0.9rem;
}
.date-badge .month {
  font-size: 0.65rem;
  text-transform: uppercase;
}

/* Content Box */
.article-card .content-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.article-card p {
  color: var(black);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* Read More */
.article-card hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 1rem 0 0.8rem;
}

.article-card .read-more {
  text-decoration: none;
  color:var(--green-hover);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card .read-more .arrow {
  transition: margin-left 0.3s ease;
}
.article-card .read-more:hover .arrow {
  margin-left: 8px;
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.scroll-btn:hover {
  background: var(--green-hover);
  color: white;
}
.scroll-btn.left {
  left: 10px;
}
.scroll-btn.right {
  right: 10px;
}

/* Responsive */


/* Media Queries for Responsiveness */
@media (min-width: 600px) {
  .article-card {
    min-width: 300px;
    max-width: 340px;
  }
}

@media (min-width: 1024px) {
  .articles-overview {
    flex-direction: row;
  }

  .articles-container {
    flex: 1 1 auto;
    padding: 2rem;
  }
}

/* Scroll Buttons (Hide on Mobile) */
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}