/* articles.css */
/* Base Colors Inherited */
:root {
  --gold-color: #a2823b;
  --accent-color: #dddddd;
  --background-color: #0d0902;
  --section-background: #0d0902;
}

/* Unified dark background everywhere */
body,
body.articles-page,
footer {
	background-color: black;
}

body .page,
header,
body.articles-page .articles {
  background-color: var(--background-color);
  color: var(--gold-color);
}

/* HEADER */
header {
  padding: 20px 0;
  margin-bottom: 20px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

@keyframes headerLogoGlow {
  0% { filter: drop-shadow(0 0 0px #c49a50); }
  50% { filter: drop-shadow(0 0 0.8px #c49a50); }
  100% { filter: drop-shadow(0 0 0px #c49a50); }
}

.header-logo {
  height: 70px;
  transition: filter 0.3s;
  animation: headerLogoGlow 6s ease-in-out infinite;
}

.header-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-link.active-page {
  font-weight: 700;
  cursor: default;
  pointer-events: none;
  opacity: 1;
}

.header-link {
  font-weight: 600;
}

/* ARTICLES GRID */
body.articles-page .articles {
  padding: 30px 20px;
  padding-top: 0px;
}

body.articles-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  direction: rtl;
}

body.articles-page .article-card {
  padding: 20px;
  background-color: transparent;
  border: 1px solid var(--gold-color);
  border-radius: 20px;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  direction: rtl;
  text-align: right;
  font-family: 'Rubik', sans-serif;
}

body.articles-page .article-card:hover {
  box-shadow: 0 0 12px rgba(162, 130, 59, 0.5);
  transform: translateY(-4px) scale(1.02);
}

body.articles-page .article-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--gold-color);
}

body.articles-page .article-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--gold-color);
  word-break: break-word;
}
