/* --- Blog Body Background (Luxury Gradient) --- */
body {
  background: linear-gradient(180deg, #fdfefe 0%, #f2f6fa 100%);
}

/* --- Layout Wrapper --- */
.blog-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 1.5rem;
  background: none;
}

/* --- Blog Overview Title --- */
.blog-title {
  font-size: 3rem;
  text-align: center;
  font-weight: 700;
  color: #081b35;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}

.blog-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.2rem;
  color: #444;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

/* --- Blog Grid Cards --- */
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  justify-content: center;
}

/* --- Card Style --- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(8,27,53,0.07);
  max-width: 360px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  border: 1px solid rgba(8,27,53,0.06);
  min-height: 450px;
}

.post-card:hover {
  transform: translateY(-7px) scale(1.018);
  box-shadow: 0 16px 38px rgba(8,27,53,0.13);
}

.post-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 0;
  background: #f7fbff;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  padding: 0;
}

.post-content {
  padding: 1.15rem 1.4rem 1.5rem;
  color: #111;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.6rem 0 0.35rem 0;
  color: #081b35;
  font-family: 'Poppins', sans-serif;
}

.post-date {
  font-size: 0.96rem;
  color: #949494;
  margin-bottom: 0.7rem;
}

.post-excerpt {
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.62;
  margin-top: 0.15rem;
  margin-bottom: 1.15rem;
  flex: 1;
}

.post-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 160px;
  margin-top: auto;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0d274a;
  border: 1px solid rgba(255,193,7,0.85);
  box-shadow: 0 10px 24px rgba(8,27,53,0.12);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.post-card:hover .post-card-cta {
  transform: translateY(-1px);
  background: #fff8dd;
  box-shadow: 0 14px 28px rgba(8,27,53,0.16);
}

.post-lang-links {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.9rem;
  color: #4e5f79;
}

.post-lang-links a {
  color: #2c79cb;
  text-decoration: none;
  font-weight: 600;
}

.post-lang-links a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: #0d274a;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(13, 39, 74, 0.14);
  box-shadow: 0 8px 20px rgba(8, 27, 53, 0.08);
  transition: color 0.2s, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.back-link:hover {
  text-decoration: none;
  color: #081b35;
  transform: translateY(-1px);
  border-color: rgba(22, 128, 224, 0.45);
  background: #f7fbff;
  box-shadow: 0 12px 26px rgba(8, 27, 53, 0.12);
}

.blog-post-endcap {
  margin-top: 2rem;
}

.blog-post-endcap__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.blog-post-endcap__back,
.blog-post-endcap__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-post-endcap__back {
  color: #0d274a;
  background: #fff;
  border: 1px solid rgba(13, 39, 74, 0.14);
  box-shadow: 0 8px 20px rgba(8, 27, 53, 0.08);
}

.blog-post-endcap__contact {
  color: #fff7d1;
  background: linear-gradient(180deg, #123a66 0%, #0d274a 100%);
  border: 1px solid rgba(255, 210, 77, 0.45);
  box-shadow: 0 14px 26px rgba(8, 27, 53, 0.18);
}

.blog-post-endcap__back:hover,
.blog-post-endcap__contact:hover {
  transform: translateY(-1px);
}

.blog-post-endcap__back:hover {
  border-color: rgba(22, 128, 224, 0.45);
  background: #f7fbff;
}

.blog-post-endcap__contact:hover {
  background: linear-gradient(180deg, #164a82 0%, #10335a 100%);
}

.blog-post-endcap__card {
  padding: 22px 22px 20px;
  border-radius: 20px;
  background:
    radial-gradient(720px 220px at 100% 0%, rgba(255, 210, 77, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #cfe4fb;
  box-shadow: 0 18px 42px rgba(8, 27, 53, 0.08);
}

.blog-post-endcap__eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1680e0;
}

.blog-post-endcap__title {
  margin: 0;
  color: #0d274a;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.15;
}

.blog-post-endcap__description {
  margin: 12px 0 0;
  color: #31445f;
  font-size: 1.02rem;
  line-height: 1.65;
}

.blog-post-endcap__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.blog-post-endcap__chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(22, 128, 224, 0.18);
  box-shadow: 0 6px 18px rgba(8, 27, 53, 0.06);
  color: #0d274a;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blog-post-endcap__chip:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 128, 224, 0.45);
  box-shadow: 0 10px 24px rgba(8, 27, 53, 0.1);
  background: #f8fbff;
}

/* --- Single Post Page --- */
.post-container {
  max-width: 900px;
  margin: 2.6rem auto 2.2rem auto;
  padding: 1.5rem 2.1rem 2rem;
  background: #ffffffee;
  box-shadow: 0 8px 32px rgba(8,27,53,0.05);
  border-radius: 20px;
}

.blog-post h1.post-title {
  font-size: 2.1rem;
  color: #081b35;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
}

.blog-post .post-meta {
  font-size: 1.01rem;
  color: #888;
  margin-bottom: 1.2rem;
}

.blog-post p {
  font-size: 1.09rem;
  line-height: 1.72;
  color: #222;
  margin-bottom: 1.15rem;
}

.blog-post h2 {
  font-size: 1.32rem;
  color: #2c79cb;
  margin-top: 2rem;
  margin-bottom: 0.66rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.post-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
  margin-bottom: 1.6rem;
  display: block;
}

.post-container > .cluster-inline-links,
.post-container > .related-articles {
  margin-top: 1.4rem;
  padding: 22px 22px 20px;
  border-radius: 20px;
  background:
    radial-gradient(720px 220px at 100% 0%, rgba(255, 210, 77, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #cfe4fb;
  box-shadow: 0 18px 42px rgba(8, 27, 53, 0.08);
}

.post-container > .cluster-inline-links h2,
.post-container > .related-articles h2 {
  margin-top: 0;
  color: #0d274a;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.16;
}

.post-container > .cluster-inline-links p,
.post-container > .related-articles p {
  margin-bottom: 0;
  color: #31445f;
  line-height: 1.72;
}

.post-container > .cluster-inline-links a,
.post-container > .related-articles a {
  color: #0d274a;
  font-weight: 700;
  text-decoration: none;
}

.post-container > .cluster-inline-links a:hover,
.post-container > .related-articles a:hover {
  color: #145fa8;
  text-decoration: underline;
}

.authority-next-steps {
  margin-top: 2rem;
  padding: 1.4rem 1.2rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #cfe6ff;
  box-shadow: 0 8px 24px rgba(8,27,53,0.05);
}

.authority-next-steps h2,
.authority-next-steps h3 {
  color: #0d274a;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.authority-next-steps ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.authority-next-steps li {
  margin: 0.45rem 0;
}

.authority-next-steps a {
  color: #145fa8;
  font-weight: 700;
  text-decoration: none;
}

.authority-next-steps a:hover {
  text-decoration: underline;
}

.authority-faq {
  background: #ffffff;
  border: 1px solid #d7e9fb;
  border-radius: 14px;
  padding: 0 14px;
  margin-top: 12px;
}

.authority-faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  color: #0d274a;
}

.authority-faq p {
  margin: 0 0 14px;
}
.new-products-section {
  margin: 48px auto 38px;
  padding: 34px 0 0;
  max-width: 1200px;
}
.new-products-section h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #b30000;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 0.02em;
}
.new-products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.new-product-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(20,32,50,0.09);
  max-width: 320px;
  padding: 18px 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.new-product-card:hover {
  box-shadow: 0 12px 40px #ffc10744;
}
.new-product-img {
  width: 100%;
  max-width: 210px;
  height: 150px;
  object-fit: cover;
  border-radius: 11px;
  margin-bottom: 13px;
  background: #f7f8fa;
}
.new-product-card h3 {
  font-size: 1.18rem;
  color: #0f1c2e;
  margin: 0.6rem 0 0.2rem;
  font-weight: 600;
}
.new-product-card p {
  font-size: 1.01rem;
  color: #444;
  margin-bottom: 1.3rem;
}
.new-product-card .card-btn {
  margin-top: auto;
  padding: 10px 0;
  width: 85%;
  max-width: 180px;
  font-size: 1rem;
  font-weight: 600;
  background: #ffc107;
  color: #081b35;
  border-radius: 7px;
  text-decoration: none;
  box-shadow: 0 1px 8px #ffc10740;
  transition: background 0.2s, color 0.2s;
}
.new-product-card .card-btn:hover {
  background: #ffe191;
  color: #b30000;
}

/* --- Footer Styles --- */
.footer-lux {
  background: #081b35;
  color: #fff;
  padding: 2rem 1.5rem;
  font-size: 1.01rem;
  border-top: 3px solid #ffc107;
}
.footer-flex {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand img {
  width: 88px;
}
.footer-contact p {
  margin: 0.3rem 0;
  font-size: 0.93rem;
}
.footer-contact a {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.19s;
}
.footer-contact a:hover {
  color: #fff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}
.footer-links li {
  margin-bottom: 0.4rem;
}
.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 1.01rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #ffc107;
}
.footer-bar {
  text-align: center;
  border-top: 1px solid #344a69;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.92rem;
}

/* --- Responsive: Mobile Styles --- */
@media (max-width: 900px) {
  .blog-wrapper {
    padding: 2.2rem 0.6rem 1.5rem;
  }
  .footer-flex {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }
  .post-card {
    max-width: 97vw;
    min-width: 0;
  }
  .post-container {
    padding: 1rem 0.6rem 1.3rem;
  }

  .blog-post-endcap__top {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-post-endcap__back,
  .blog-post-endcap__contact {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .blog-title {
    font-size: 2.1rem;
  }
  .post-title {
    font-size: 1.1rem;
  }
  .post-container {
    margin: 1.4rem auto 1.1rem auto;
    border-radius: 11px;
  }
  .post-card {
    border-radius: 13px;
    min-height: 360px;
    box-shadow: 0 4px 12px rgba(8,27,53,0.09);
  }

  .blog-post-endcap__card {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .blog-post-endcap__links {
    gap: 8px;
  }

  .authority-grid {
    grid-template-columns: 1fr;
  }
}
/* ==== Blog H1: ریسپانسیو، شکستن درست واژه‌ها، وسط‌چین ==== */
.post-container .post-title{
  display:block;
  margin: clamp(8px, 2.2vw, 14px) auto 0.6rem;
  text-align:center;
  max-width: 30ch;                  /* عرضِ کنترل‌شده برای تیترهای بلند */
  font-size: clamp(1.35rem, 4.6vw, 2.2rem);
  line-height: 1.25;
  font-weight: 700;
  color:#081b35;

  /* جلوگیری از دررفتگی در کلمات بلند آلمانی */
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: anywhere;          /* اگر hyphen نشد، هرجا لازم بود بشکنه */
  word-break: normal;
}

@media (max-width: 520px){
  .post-container .post-title{ max-width: 26ch; }  /* جمع‌وجورتر در موبایل کوچک */
}

/* اگر از لینک‌های هشداری/Anchor استفاده می‌کنی، این کمک می‌کند زیر هدر نره */
.post-container .post-title,
.blog-post h2{
  scroll-margin-top: 88px; /* ارتفاع حدودی هدر چسبنده */
}
