/* ------------------------------------------------------------ */
/* IMPORT GOOGLE FONTS */
/* ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700;900&family=Saira+Condensed:wght@600;700&display=swap');

/* ------------------------------------------------------------ */
/* CSS VARIABLES */
/* ------------------------------------------------------------ */
:root {
  --image-height: 400px; 
  --title-font: 'Roboto', sans-serif;
  --category-font: 'Saira Condensed', sans-serif;
  --card-gap: 18px; /* space between images */
}

/* ------------------------------------------------------------ */
/* BORDER + SPACING RESET */
/* ------------------------------------------------------------ */
#articleCarousel,
.article-carousel-container,
.article-carousel-container * {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ------------------------------------------------------------ */
/* CAROUSEL CONTAINER */
/* ------------------------------------------------------------ */
.article-carousel-container {
  width: 100%;
  display: flex;                  /* ensures equal spacing control */
  gap: var(--card-gap);           /* spacing between cards */
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  background: transparent !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 10px;                /* small side padding for visual balance */
}
.article-carousel-container::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------ */
/* ARTICLE CARD */
/* ------------------------------------------------------------ */
.article-card {
  display: inline-block;
  flex: 0 0 auto;
  width: 420px;
  vertical-align: top;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.25s ease;
  white-space: normal;
  scroll-snap-align: start;
  position: relative;
  background: #fff;
  overflow: hidden;
  border-radius: 8px;             /* slight rounding for smooth edges */
}
.article-card:hover { transform: translateY(-3px); }

/* ------------------------------------------------------------ */
/* IMAGE WRAPPER */
/* ------------------------------------------------------------ */
.article-image-wrapper {
  width: 100%;
  height: var(--image-height);
  overflow: hidden;
  position: relative;
  border-radius: 8px 8px 0 0;
  z-index: 1;
  background: #fff;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.2s ease;
}

.article-card:hover .article-image {
  transform: scale(1.02);
}

/* ------------------------------------------------------------ */
/* TEXT STYLING */
/* ------------------------------------------------------------ */
.article-category-tags {
  font-family: var(--title-font);
  font-weight: 900;
  font-size: 20px;
  line-height: 26px;
  color: #000 !important;
  margin: 10px 0 5px 0;
  text-transform: uppercase;
  position: relative;
  z-index: 5;
}

.article-title {
  font-family: var(--category-font);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: 0.2px;
  color: #000 !important;
  margin: 0 0 10px 0;
  text-decoration: none;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 5;
}

/* ------------------------------------------------------------ */
/* CONTENT ALIGNMENT FIX */
/* ------------------------------------------------------------ */
.article-card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 10px 15px 10px;
  margin: 0;
  position: relative;
  z-index: 5;
  background: #fff;
}

/* ------------------------------------------------------------ */
/* RESPONSIVENESS */
/* ------------------------------------------------------------ */
@media (max-width: 1024px) and (min-width: 601px) {
  .article-card {
    width: 360px;
  }
  .article-image-wrapper {
    height: 340px;
  }
  .article-category-tags {
    font-size: 18px;
    line-height: 24px;
  }
  .article-title {
    font-size: 16px;
    line-height: 21px;
  }
}

@media (max-width: 600px) {
  .article-card {
    width: 100%;
  }
  .article-image-wrapper {
    height: 340px;
  }
  .article-category-tags {
    font-size: 18px;
    line-height: 24px;
  }
  .article-title {
    font-size: 15px;
    line-height: 20px;
  }
}

/* ------------------------------------------------------------ */
/* IMAGE EDGE CLEANUP */
/* ------------------------------------------------------------ */
.article-carousel-container img {
  display: block;
  width: 100%;
  height: auto;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
