@import url('https://cdn.fontiran.com/css2/iransans.css');

body {
  font-family: 'IRANSans', sans-serif;
  background: #fff;
  color: #222;
  direction: rtl;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

/* ساختار کلی */
header, main, footer {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* هدر و منو */
header {
  background-color: #fff;
  border-bottom: 2px solid #1e90ff;
  text-align: right;
  padding: 15px 20px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #1e90ff;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #0066cc;
}

/* بنر */
.banner img, .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* هدینگ‌ها */
h1, h2, h3, h4, h5, h6 {
  color: #1e90ff;
  margin: 20px 0 10px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

/* متن‌ها */
p {
  margin: 10px auto;
  max-width: 900px;
  text-align: justify;
  padding: 0 15px;
}

/* گالری */
.gallery, .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  padding: 20px;
  box-sizing: border-box;
}

.gallery img, .wp-block-gallery img {
  width: 100%;
  border-radius: 8px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery img:hover, .wp-block-gallery img:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* فوتر */
footer {
  background-color: #f5f5f5;
  color: #333;
  text-align: center;
  padding: 20px;
  border-top: 2px solid #1e90ff;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
  nav ul li {
    display: block;
    margin: 8px 0;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}
