/* Custom CSS for the Insights page */

/* Import core styles from the main site for consistency */
@import url('style.css');

/* Hero Section specific to Insights */
.insights-hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.9)),
    url('https://i.postimg.cc/KzcMSBGT/image.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8vh 5% 0;
}

.insights-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  color: var(--gold);
  line-height: 1.2;
  font-weight: 700;
}

.insights-hero-text {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text);
  opacity: 0.9;
}

/* Main Content Section */
.insights-main-content {
  background-color: var(--primary);
  padding-top: 5rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(200, 169, 126, 0.2);
  margin-bottom: 3rem;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--secondary);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: var(--transition);
}

.search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 5px rgba(200, 169, 126, 0.3);
}

.search-wrap .fa-search {
  color: var(--text);
  opacity: 0.6;
  margin-right: 10px;
}

#searchInput {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  width: 250px;
}

#searchInput::placeholder {
  color: var(--text);
  opacity: 0.6;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tab {
  background: transparent;
  border: 1px solid rgba(200, 169, 126, 0.3);
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.category-tab:hover {
  background: rgba(200, 169, 126, 0.1);
  color: var(--gold);
}

.category-tab.active {
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.article-card {
  background: var(--secondary);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.article-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--gold);
}

.article-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.article-title {
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.article-description {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-read-more {
  color: var(--gold);
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  margin-top: auto;
}

.article-read-more:hover {
  color: var(--text);
  padding-left: 5px;
}

.article-read-more:hover .fa-arrow-right {
  transform: translateX(5px);
}

.noscript-warning-container {
  text-align: center;
  padding: 2rem;
  margin-top: 5rem;
  background: var(--secondary);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-wrap {
    width: 100%;
  }

  #searchInput {
    width: 100%;
  }
}