/* ----------------------------
   Base Styles (Default Desktop)
-----------------------------*/

.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 20px 40px 0 40px;
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.news-tile {
  width: 360px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.news-tile.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  height: 0;
  margin: 0;
  padding: 0;
}

.news-category {
  display: inline-block;          /* fits to content width */
  margin: 1px 0 10px 0;           /* spacing above and below */
  padding: 6px 14px;              /* top/bottom and left/right padding */
  font-family: 'Futura', sans-serif;
  font-weight: 400;
  font-size: 10px;
  text-transform: uppercase;      /* all caps */
  color: #865E47;                    /* text color */
  border: 1px solid #865E47;
  border-radius: 20px;            /* rounded pill shape */
  letter-spacing: 2px;            /* spacing between letters */
  text-align: center;             /* center text inside badge */
  width: fit-content;             /* only as wide as content */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* subtle shadow */
}

.news-category:hover {
  background-color: #E6C3A0; /* Change background on hover */
  border: none;
  color: #865E47;            /* Change text color on hover */
cursor: pointer;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 0;
}

.news-subheading {
  font-family: 'Futura', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #865E47;
  margin: 6px 0 3px;
  text-align: left;
}

.news-text {
  font-family: 'Acumin Pro', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #E6C3A0;
  letter-spacing: 0.5px;
  line-height: 1;
  margin: 0 0 6px 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 4px;
  font-family: 'Futura', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: #15282D;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: color 0.3s ease;
}

.read-more::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #E6C3A0;
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
  width: 100px;
}

.read-more:hover {
  color: #E6C3A0;
}

.read-more:hover::before {
  transform: scaleX(1);
}

/* ----------------------------
   Tablet (max-width: 1024px)
-----------------------------*/
@media (max-width: 1024px) {
  .news-container {
    padding: 20px 20px;
    gap: 20px;
  }

  .news-tile {
    width: 300px;
  }

  .news-subheading {
    font-size: 16px;
    margin: 8px 0;
  }

  .news-text {
    font-size: 13px;
    letter-spacing: 0.8px;
    line-height: 1.4;
  }
}

/* ----------------------------
   Mobile (max-width: 390px)
-----------------------------*/
@media (max-width: 390px) {
  .news-container {
    flex-direction: column;
    gap: 15px;
    padding: 10px;
  }

  .news-tile {
    width: 100%;
  }

  .news-subheading {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .news-text {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* ----------------------------
   Ultra-Wide (min-width: 2560px)
-----------------------------*/
@media (min-width: 2560px) {
  .news-container {
    max-width: 2200px;
    gap: 40px;
  }

  .news-tile {
    width: 420px;
  }

  .news-subheading {
    font-size: 22px;
  }

  .news-text {
    font-size: 16px;
    line-height: 1.5;
  }
}



.pagination {
  margin: 60px auto 80px;
  text-align: center;
}

.pagination-arrow,
.pagination-number {
  font-size: 20px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: inline-block;
  margin: 0 8px;
  transition: background 0.3s, color 0.3s;
  color: #865E47;
   vertical-align: middle;
}

/* ACTIVE page number: filled circle */
.pagination-number.active {
  background-color: #865E47;
  color: #E6C3A0;
}

/* HOVER EFFECT (optional) */
.pagination-number:hover {
  background-color: #865E47;
  color: #E6C3A0;
  transform: translateY(0px);
  transition: opacity 0.7s ease;
}

/* Arrows: optionally match style */
.pagination-arrow {
  font-weight: bold;
  color: #865E47;
  vertical-align: middle;
  padding: 0 0 30px;
}

.pagination-arrow:hover {
  background-color: #865E47;
  color: #E6C3A0;
  padding: 0 0 30px;
  transition: opacity 0.7s ease;
}

