@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

:root {
  --primary-color: #f7af68;
  --secondary-color: #465C88;
  --Background: #f0f5fa;
  --text: #10375C;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Vazir', sans-serif;
  background-image: var(--Background);
  background-blend-mode: multiply;
}

header {
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Vazir', sans-serif;
}

header ul {
  margin: 0;
  height: 60px;
  list-style: none;
}

header ul li {
  display: inline-block;
  margin-top: 15px;
}

header ul li a {
  text-decoration: none;
  font-size: 1em;
  color: var(--text);
  font-weight: bold;
  transition: color 0.4s ease;
  font-family: 'Vazir', sans-serif;
}

header ul li a:hover {
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.logo img {
  height: 70px;
  margin-right: 15px;
}

.logo span {
  font-weight: bold;
  font-size: 1.6em;
  color: var(--text);
}

main h1 {
  font-weight: bold;
  font-size: 2.5em;
  color: var(--text);
  text-align: center;
}

main ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

main ul li {
  background-color: var(--primary-color);
  width: 330px;
  height: 370px;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  border-radius: 4px;
  box-sizing: border-box;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-family: 'Vazir', sans-serif;
}
main ul li h3 {
  font-size: 1.5em;
  font-family: 'Vazir', sans-serif;
}
main ul li img {
  border-radius: 4px;
  width: 250px;
}

main ul li a {
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
  padding: 5px 12px;
  font-size: 1em;
  font-weight: bold;
  transform: translateY(10px);
  position: relative;
  display: inline-block;
  font-family: 'Vazir', sans-serif;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border-radius: 8px;
}
main ul li a:nth-child(even) {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background-color: var(--primary-color);
  border-radius: 8px;
}
main ul li:hover a {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.article-list li:nth-child(odd) {
  background-color: var(--secondary-color); 
  color: var(--primary-color)
}

.article-list li:nth-child(even) {
  background-color: var(--primary-color); 
  color: var(--text)
}
.article-list li:hover {
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.gallery-img {
  width: 20%;
  border-radius: 3px;
  transition: transform 0.3s ease;
}
.gallery-img:hover {
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .gallery img {
    width: 45%;
  }
}
