:root {
  --red: #e31e24;
  --red-dark: #c4191f;
  --gray-bg: #f5f5f5;
  --text: #222;
  --text-muted: #666;
  --white: #fff;
  --quote: #f4c4c6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo strong {
  color: var(--red);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--red);
}

.search-form {
  display: flex;
  gap: 0;
}

.search-form input {
  border: 1px solid #ddd;
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  min-width: 180px;
}

.search-form button {
  background: #333;
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  font-family: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  background: var(--gray-bg);
  min-height: 420px;
  padding: 0;
}

.hero-home-wrap {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  align-items: stretch;
  min-height: 420px;
  max-width: 100%;
  position: relative;
}

.hero-home-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 2rem 2rem;
  background: var(--gray-bg);
  position: relative;
  z-index: 2;
}

.hero-home-content {
  direction: rtl;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3rem 5rem;
  min-height: 420px;
}

.hero-home-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -140px;
  width: 280px;
  height: 280px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--red);
  z-index: -1;
}

.hero-image-photo {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 8px solid var(--white);
  background-color: #dde3ea;
  background-image: url("/static/images/hero-team.svg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-home h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-home .hero-content p {
  max-width: 640px;
}

.hero-red {
  background: var(--red);
  color: var(--white);
  min-height: 280px;
  display: flex;
  align-items: center;
}

.hero-red::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.04) 40px,
    rgba(255, 255, 255, 0.04) 80px
  );
  pointer-events: none;
}

.hero-red .hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-red h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-blog {
  background: var(--gray-bg);
  padding: 0;
}

.hero-split {
  direction: ltr;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  align-items: stretch;
  min-height: 360px;
}

.hero-split .hero-content-red {
  direction: rtl;
  position: relative;
  padding: 3rem 3rem 3rem 5rem;
}

.hero-split .hero-content-red::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -140px;
  width: 280px;
  height: 280px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--red);
  z-index: -1;
}

.hero-split .hero-image-circle {
  margin: 2rem auto;
}

.hero-image-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero-image-photo {
  background-color: #dde3ea;
  background-image: url("/static/images/hero-team.svg");
  background-size: cover;
  background-position: center;
  border: 8px solid var(--white);
}

.hero-content-red {
  background: var(--red);
  color: var(--white);
  padding: 3rem 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content-red h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--red);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.features {
  padding: 3rem 0;
}

.features-light {
  background: var(--gray-bg);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: #e0e0e0;
  border-radius: 4px;
}

.blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, #888, #555);
}

.blog-thumb-1 { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.blog-thumb-2 { background: linear-gradient(135deg, #e31e24, #ff6b6b); }
.blog-thumb-3 { background: linear-gradient(135deg, #434343, #7b7b7b); }
.blog-thumb-4 { background: linear-gradient(135deg, #141e30, #243b55); }
.blog-thumb-5 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.blog-thumb-6 { background: linear-gradient(135deg, #667eea, #764ba2); }

.blog-tag {
  display: inline-block;
  margin: 1rem 1rem 0;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
}

.blog-card h3 {
  padding: 0.5rem 1rem;
  font-size: 1.05rem;
}

.blog-meta {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination .btn-primary {
  background: var(--red);
  color: var(--white);
}

.pagination .btn-outline {
  border-color: var(--red);
  color: var(--red);
}

.testimonials-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.testimonial {
  margin-bottom: 3rem;
  position: relative;
  padding-right: 2rem;
  border: none;
}

.quote-mark {
  font-size: 4rem;
  color: var(--quote);
  line-height: 1;
  display: block;
  margin-bottom: -1rem;
  font-family: Georgia, serif;
}

.testimonial p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
  display: block;
}

.site-footer {
  background: var(--gray-bg);
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.enamad-placeholder {
  margin-bottom: 1rem;
}

.enamad-logo {
  font-weight: 700;
  color: #1a5f9e;
}

.stars {
  color: #f5a623;
  margin-right: 0.5rem;
}

.payment-return-page .header-inner {
  justify-content: center;
}

.payment-return {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--gray-bg);
}

.payment-return-card {
  max-width: 480px;
  width: 100%;
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.payment-return-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.payment-return-card h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.payment-return-lead {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.payment-return-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.payment-return-btn {
  display: inline-block;
  min-width: 220px;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
}

@media (max-width: 768px) {
  .hero-home-wrap,
  .hero-split {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .hero-home-visual {
    padding: 2rem 1rem 0;
  }

  .hero-home-content,
  .hero-split .hero-content-red {
    padding: 2rem 1.5rem;
  }

  .hero-home-content::before,
  .hero-split .hero-content-red::before {
    display: none;
  }

  .hero-image-circle,
  .hero-image-photo {
    width: 260px;
    height: 260px;
  }

  .header-inner {
    flex-direction: column-reverse;
  }
}
