@font-face{
  font-family: IRANSans;
  src: url('../fonts/IRANSans.woff2') format('woff2');
}

/* ===== Reset ===== */
*{
  box-sizing: border-box;
  font-family: IRANSans, Tahoma, sans-serif;
}

body{
  margin: 0;
  direction: rtl;
  background: #f6f8fb;
}

a{
  text-decoration: none;
}

/* ===== Container ===== */
.site-container{
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== HEADER (مثل پنل ادمین) ===== */
.site-header{
  background: #0f4c81;
  height: 70px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-flex{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
/* ===== Logo Circle Fix ===== */
.site-logo{
  background: #fff;           /* دایره سفید */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

/* خود تصویر لوگو */
.site-logo img{
  height: 56px;               /* بزرگ و واضح */
  width: auto;
  display: block;
}

/* Navigation */
.site-nav{
  display: flex;
  gap: 12px;
}

.site-nav a{
  color: #fff;
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 14px;
}

/* Mobile button */
.mobile-menu-btn{
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px){
  .site-nav{
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #0f4c81;
    flex-direction: column;
    padding: 10px 0;
  }

  .site-nav.open{
    display: flex;
  }

  .mobile-menu-btn{
    display: block;
  }
}

/* ===== FOOTER (FIXED DESKTOP / MOBILE) ===== */
.site-footer{
  background: #0f4c81;
  color: #fff;
  padding: 30px 0 0;
}

/* دسکتاپ: دقیقاً دو ستون */
.footer-grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* دو قسمت مساوی */
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* ستون راست: اطلاعات تماس */
.footer-item{
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-item a{
  color: #fff;
}

/* ستون چپ: نقشه */
.map-wrap iframe{
  width: 100%;
  height: 260px;
  border-radius: 8px;
  border: 0;
}

/* ===== موبایل: همه زیر هم ===== */
@media (max-width: 768px){
  .footer-grid{
    grid-template-columns: 1fr; /* تک ستون */
  }

  .map-wrap iframe{
    height: 220px;
  }
}

/* کپی‌رایت */
.site-copyright{
  background: #fff;
  color: #555;
  text-align: center;
  font-size: 12px;
  padding: 10px;
}


/* Floating buttons */
.floating-btn{
  position: fixed;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  z-index: 999;
}

.whatsapp{
  right: 20px;
  background: #25D366;
}

.phone{
  right: 80px;
  background: #0f4c81;
}
/* ===== Articles Grid (3x3 Fixed) ===== */
.article-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* همیشه 3 ستون */
  gap: 24px;
}

/* ریسپانسیو */
@media (max-width: 992px){
  .article-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px){
  .article-grid{
    grid-template-columns: 1fr;
  }
}

.article-card{
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card img{
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.article-card h3{
  font-size: 17px;
  margin: 12px;
}

.article-card p{
  font-size: 14px;
  color: #555;
  margin: 0 12px;
  flex-grow: 1;
}

/* دکمه وسط */
.card-action{
  display: flex;
  justify-content: center;
  padding: 14px;
}

.read-more{
  background: #0f4c81;
  color: #fff;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
}

/* تصویر شاخص مقالات */
.article-image {
  width: 100%;
  height: 200px;       /* ارتفاع ثابت کاشی */
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* انتخاب نهایی */
  object-position: center;
  display: block;
}

/* ===== Pagination ===== */
.pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a{
  padding: 6px 12px;
  border-radius: 6px;
  background: #eee;
  color: #333;
  font-size: 13px;
}

.pagination a.active{
  background: #0f4c81;
  color: #fff;
}

.pagination .nav-btn{
  background: #ddd;
}
/* ===== Post Page ===== */
.post-featured{
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0;
}

.post-content{
  line-height: 2;
  font-size: 15px;
}

/* ===== Comment Form ===== */
.comment-form{
  display: grid;
  gap: 10px;
  max-width: 500px;
}

.comment-form input,
.comment-form textarea{
  padding: 10px;
  font-family: IRANSans;
}

.comment-form button{
  background: #0f4c81;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
}

.success{
  color: green;
  margin-bottom: 10px;
}
/* بخش ارسال نظر */
.comment-section {
  max-width: 700px;
  margin: 60px auto 100px auto; /* فاصله از بالا و فوتر */
  padding: 30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* عنوان ارسال نظر */
.comment-section h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: bold;
}
.comment-section textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  font-size: 15px;
  padding: 12px;
}
.comment-section button {
  display: block;
  margin: 25px auto 0 auto; /* وسط + فاصله پایین */
  padding: 12px 40px;
  font-size: 16px;
  border-radius: 10px;
}
.post-featured-image {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-radius: 16px;
  margin: 30px 0;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
//////////////////////////////////////////////////////////////
