img[fetchpriority="high"] {
  position: relative;
  z-index: 10;
max-width: 100%;
  height: auto;
}

@font-face {
  font-family: 'Vazir';
  src: url('Vazir-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* این خط را اضافه کنید */
  
  unicode-range: U+0600-06FF, U+0750-077F; 

  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

html, body {
  font-family: 'Vazir', sans-serif;
  background-color: #fff8ef;
  color: #222;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -moz-text-size-adjust: none;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* در CSS */
   .header .icon {
      visibility: hidden;
      opacity: 0;
    }
/* ==================== */
/* استایل پایه هدر */
/* ==================== */
.zayeat-header {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 400px;
  margin: 4rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.zayeat-header .circle-image {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background-image: url('../../img/heed.jpg');
  background-size: cover;
  background-position: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.zayeat-header .circle-image::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 25px;
  border: 3px solid #00C853;
  box-shadow: 
    0 0 15px rgba(0, 200, 83, 0.7),
    0 0 30px rgba(0, 200, 83, 0.4);
  z-index: -1;
  opacity: 0.9;
  transition: all 0.4s ease;
}

/* ==================== */
/* متن‌های شناور - نسخه اصلاح شده */
/* ==================== */
.zayeat-header .floating-text {
  position: absolute;
  background: linear-gradient(135deg, #ff8a00, #ff5e00);
  color: #000;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
  border: 1.5px solid #000;
  box-shadow: 
    0 2px 15px rgba(0, 200, 83, 0.3),
    0 0 0 1px rgba(255,255,255,0.5) inset;
  z-index: 10;
  transition: all 0.3s ease;
  /* خصوصیات جدید برای رفع مشکل کروم */
  min-width: 120px;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.4;
  /* رفع مشکل رندرینگ در کروم */
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}

/* ==================== */
/* موقعیت‌دهی متن‌ها - نسخه بهینه شده */
/* ==================== */
.zayeat-header .top-text {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.zayeat-header .right-text {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.zayeat-header .left-text {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.zayeat-header .bottom-text {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

/* ==================== */
/* تنظیمات ریسپانسیو */
/* ==================== */
@media (max-width: 768px) {
  .zayeat-header {
    height: 300px;
    max-width: 500px;
  }
  
  .zayeat-header .floating-text {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 100px;
  }
  
  .zayeat-header .right-text {
    right: 10px;
  }
  
  .zayeat-header .left-text {
    left: 10px;
  }
}

@media (max-width: 480px) {
  .zayeat-header {
    height: 250px;
    max-width: 350px;
  }
  
  .zayeat-header .floating-text {
    font-size: 11px;
    padding: 5px 10px;
    min-width: 80px;
  }
  
  .zayeat-header .top-text {
    top: 10px;
  }
  
  .zayeat-header .bottom-text {
    bottom: 10px;
  }
  
  .zayeat-header .right-text,
  .zayeat-header .left-text {
    transform: none;
  }
  
  .zayeat-header .right-text {
    right: 5px;
    top: 40%;
  }
  
  .zayeat-header .left-text {
    left: 5px;
    top: 60%;
  }
}

/* رفع مشکل خاص کروم برای نمایش متن */
@media (-webkit-min-device-pixel-ratio:0) {
  .zayeat-header .floating-text {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}
/* Header Styles */
header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(0, 80, 60, 0.9), rgba(0, 60, 40, 0.9));
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  border-radius: 30px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #ffa115, #ffc107);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-contact a {
  background: linear-gradient(90deg, #a7ffeb, #64ffda);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.header-contact a:hover {
  background-image: linear-gradient(90deg, #a7ffeb, #a7ffeb);
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  background: linear-gradient(90deg, #ffffff, #e0f2f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a i {
  color: #ff8a00;
  transition: all 0.3s ease;
}

nav ul li a:hover i {
  color: #ff5e00;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 12px;
  width: 0;
  height: 2px;
  background: #a7ffeb;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: calc(100% - 24px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 15px;
  display: inline-block;
  margin: 0 auto;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

/* Section Styles */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #00695c;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.grid-item {
  background-color: white;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 0 15px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.grid-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #00bfa5;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.grid-item h3 {
  margin-bottom: 0.5rem;
  color: #004d40;
  font-size: 1.3rem;
}

.grid-item p {
  color: #555;
  font-size: 0.95rem;
}

/* === جایگزین کامل برای بخش Features === */
.features {
  background: linear-gradient(135deg, #ffa116, #ff8a00);
  color: #000;
  text-align: center;
  border-radius: 30px;
  max-width: 100%;
  width: calc(100% - 30px);
  margin: 3rem auto;
  padding: 2.5rem 1rem;
  box-shadow: 
    0 10px 30px rgba(255, 161, 22, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,161,22,0) 70%);
  opacity: 0.6;
  z-index: 0;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.feature-item {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #000;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.feature-item i {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  color: #000;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.feature-item p {
  color: #222;
  line-height: 1.8;
  font-weight: 500;
  max-width: 90%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .features {
    padding: 2rem 0.5rem;
    width: calc(100% - 20px);
  }
  
  .feature-item {
    padding: 1.5rem;
  }
}
/* About Section - Updated */
.about {
  background: linear-gradient(135deg, #004d40, #00251a);
  color: white;
  padding: 4rem 2rem;
  border-radius: 30px;
  margin: 3rem auto;
  max-width: 1200px;
  text-align: right;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  object-fit: cover;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #a7ffeb;
  text-align: center;
}

.about p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Blog Posts */
/* پست‌گرید - نسخه کامل با اصلاحات لینک‌ها */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 0.5rem;
  color: #004d40;
}

.post-content p {
  color: #000;
  margin-top: 0.5rem;
}
.post-content-strong {
  color: #000;
font-weight: 400;
font-size: 1.0rem;
  margin-top: 0.5rem;
}

.post-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.5rem;
}

/* اصلاحات لینک‌ها - اضافه شده */
.posts-grid a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content h3 a {
  color: inherit;
  font-weight: bold;
}

.posts-grid a:hover {
  color: #333;
  text-decoration: underline;
}

.post-meta a {
  color: inherit;
}

.post-meta a:hover {
  color: #555;
  text-decoration: underline;
}

/* استایل اختیاری برای دکمه‌ها */
.post-card .post-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: #000;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-card .post-btn:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a {
  padding: 0.5rem 1rem;
  background: #e0e0e0;
  color: #333;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
  background: #004d40;
  color: white;
}

/* Call Button */
.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.call-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 200, 83, 0.4);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #004d40, #00251a);
  color: white;
  padding: 4rem 2rem;
  border-radius: 30px 30px 0 0;
  margin-top: 3rem;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: right;
}

footer h4 {
  color: #a7ffeb;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 50%;
  height: 2px;
  background: #a7ffeb;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.8rem;
}

footer ul li a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

footer ul li a:hover {
  color: #a7ffeb;
  transform: translateX(-5px);
}

footer ul li i {
  width: 20px;
  text-align: center;
}

footer p {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #c8f5e7;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .social-links a:hover {
        background: #a7ffeb;
        color: #004d40;
        transform: translateY(-3px);
    }
    
    .social-links .icon {
        width: 24px;
        height: 24px;
        fill: white;
    }
    
    .social-links a:hover .icon {
        fill: #004d40;
    }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .header-contact {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-right: auto;
    fill: white;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px;
    right: 20px;
    left: auto;
    background: rgba(0, 80, 60, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    width: calc(100% - 40px);
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 999;
    animation: fadeInUp 0.3s ease;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin-bottom: 1rem;
  }

  nav ul li:last-child {
    margin-bottom: 0;
  }

  .hero h1 {
    font-size: 2rem;
    padding: 1rem;
  }

  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    max-width: 100%;
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section h2, .features h2, .about h2 {
    font-size: 1.5rem;
  }

  .call-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .about-image {
    min-width: 100%;
  }
}