
@media (min-width: 1920px) {
  .featured-news {
    display: flex;
    flex-direction: column;   /* stack content vertically */
    align-items: center;      /* centers horizontally */
    justify-content: center;  /* centers vertically if you give it height */
    margin: 0 auto;           /* auto-center as fallback */
  }
}

  @media (width: 1440px) {
.featured-news {
  margin-left: 80px;
}
  }

.search-container {
  width: 100%;            /* Fill available width up to max-width */
  padding-top: 40px;
  padding-right: 40px;
  padding-left: 0;
  margin: 0 auto; 
    }
.featured-news-section {
  padding-right: 40px;
  padding-left: 50px;
}

.search-input {
  position: relative;
  display: inline-block;
}

.search-input input {
  padding: 10px 40px 10px 15px;  /* space for icon on right */
  font-size: 16px;
  font-family: 'Futura', sans-serif;
  color: #865E47;
  width: 300px;
  border: 1px solid #865E47;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.search-input input:focus {
  border-color: #E6C3A0; /* subtle highlight */
  outline: none;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #865E47;   /* brand color overlay */
  pointer-events: none;
}

    /* Search Bar + Filters */
    .search-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.search-filters button {
  position: relative;        /* Needed for ::before */
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Futura', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  color: #865E47;
  border: none;
  border-radius: 50px;
  transition: color 0.3s ease;
  overflow: hidden;          /* prevents stray borders */
}

/* Border animation */
.search-filters button::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;
}

/* Hover effect */
.search-filters button:hover {
  color: #E6C3A0;
}
.search-filters button:hover::before {
  transform: scaleX(1);
}

/* Selected state (persists after click) */
.search-filters button.selected {
  color: #E6C3A0;
}
.search-filters button.selected::before {
  transform: scaleX(1);
}

    /* Article Layout */
    .article-main {
      display: flex;
      gap: 30px;
      background: none;
      padding: 20px;
      border-radius: 8px;
      align-items: top;
    
    }
    .article-text-main {
      flex: 1;
      color: #bda58f; /* beige text */
    }
    .article-text-main h3 {
      font-family: 'Futura', sans-serif;
      font-size: 20px;
      font-weight: 600;
      letter-spacing: 1px;
      margin-bottom: 10px;
      color: #865E47;
    }
    .article-text-main p {
      font-family: 'Acumin Pro', sans-serif;
      font-size: 15px;
      font-weight: 400;
      letter-spacing: 1px;
      margin-bottom: 15px;
      color: #E6C3A0;
    }
  /* Remove or comment out your old .article-text a styles */

/* Wrap article link with a button container for spacing if needed */
.article-text-main .button {
  padding: 0 0;
  text-align: left;
}

/* Animated button style for article links */
.article-text-main a {
  position: relative;
  display: inline-block;
  padding: .4rem .8rem;
  color: #15282D;
  text-decoration: none;
  border:  2px solid transparent;
  transition: 0.3s ease;
  font-family: 'Futura', sans-serif;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
}

/* Animated border effect */
.article-text-main a::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #E6C3A0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
}

/* Hover state */
.article-text-main a:hover {
  color: #E6C3A0;
}

.article-text-main a:hover::before {
  border-radius: 50px;
  transform: scaleX(1);
}

    .article-image-main {
      flex: 1;
      overflow: hidden;
      border-radius: 8px;
    }
    .article-image-main img {
      width: 100;
      height: 400px;
      border-radius: 8px;
      transition: all 0.3s ease;
    }
    .article-image-main img:hover {
      opacity: 0.9;
      transform: translateY(-5px);
    }



@media (max-width: 390px) {
  /* Container adjustments */
  .search-container {
    width: 100%;
    max-width: 100%;
  }

  /* Search bar stacked */
  .search-filters {
    flex-direction: column; /* stack search + buttons */
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
  }

  .search-input {
    align-items: center;
    padding-right: 40px;
    width: 100%;
    max-width: 250px;
  }

  .search-input input {
    width: 100%;
    font-size: 14px;
    padding: 10px 35px 10px 15px;
  }

  /* Filter buttons stacked */
  .search-filters button {
    width: 100%;
    max-width: 290px;
    text-align: center;
  }

  .article-main {
    display: flex;
    flex-direction: column;   /* stack items vertically */
    gap: 10px;                /* spacing between image, heading, text, button */
    padding: 20px 10px;
    align-items: center;      /* center content horizontally */
  }

  .article-image-main {
    width: 100%;
    max-width: 350px;         /* mobile-friendly width */
    height: auto;
  }

  .article-image-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .article-text-main {
    width: 100%;
    max-width: 350px;
    text-align: left;       /* heading and text centered */
    flex: none;               /* prevent flex shrinking */
  }

  .article-text-main h3 {
    font-size: 18px;
    margin: 10px 0 10px 0;
    color: #865E47;
  }

  .article-text-main p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #E6C3A0;
     display: -webkit-box;
  -webkit-line-clamp: 3;        /* show max 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  }

  .article-text-main .button a {
    display: inline-block;
    text-align: left;
    margin-top: -35px;
    margin-bottom: 0;
  }

    /* Filters / search buttons */
  .search-filters {
    display: flex;
    flex-direction: column; /* stack buttons vertically */
    gap: 15px;              /* space between buttons */
    padding: 0 20px;        /* align with container edges */
  }

  .search-input input {
    width: 100%;             /* make input full width on small screens */
    max-width: 350px;
  }
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-tile {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-subheading {
  font-size: 18px;
  margin: 10px 0 5px;
}

.article-text {
  font-size: 14px;
  color: #555;
}
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 390px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}