@font-face {
	font-family: 'IRANYekanX';
	font-style: normal;
	font-weight: 300;
	src: url('woff/IRANYekanX-Light.woff') format('woff'),   
	url('woff2/IRANYekanX-Light.woff2') format('woff2');		 
}



@font-face {
	font-family: 'IRANYekanX';
	font-style: normal;
	font-weight: 900;
	src: url('/Font/woff/IRANYekanX-Black.woff') format('woff'),   
	url('/Font/woff2/IRANYekanX-Black.woff2') format('woff2');		 
}
@font-face {
	font-family: 'IRANYekanX';
	font-style: normal;
	font-weight: 950;
	src: url('/Font/woff/IRANYekanX-ExtraBlack.woff') format('woff'),   
	url('/Font/woff2/IRANYekanX-ExtraBlack.woff2') format('woff2');		 
}



@font-face {
	font-family: 'IRANYekanX';
	font-style: normal;
	font-weight: bold;
	src: url('/Font/woff/IRANYekanX-Bold.woff') format('woff'),   
	url('/Font/woff2/IRANYekanX-Bold.woff2') format('woff2');	 
}

@font-face {
	font-family: 'IRANYekanX';
	font-style: normal;
	font-weight: normal;
	src: url('/Font/woff/IRANYekanX-Regular.woff') format('woff'),   
	url('/Font/woff2/IRANYekanX-Regular.woff2') format('woff2');	
}





:root {
  --green: #073b32;
  --green-2: #0f594d;
  --orange: #f7931e;
  --cream: #f6f4ef;
  --text: #1d1d1d;
  --muted: #737373;
  --white: #ffffff;
  --green-3: #1c7565;
  --soft: #eef0ec;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(7, 59, 50, .12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  /* font-family: "IRANSansX", Tahoma, sans-serif; */
  font-family: "IRANYekanX";
  background: var(--cream);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
  direction: rtl;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}




.site-header {
  height: 82px;
  background: rgba(245, 245, 245, 0.623);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(7, 59, 50, .08);
  position: sticky;
  top: 0;
  z-index: 999;
  /* border: 2px solid red; */
  /* From https://css.glass */

}

.nav-wrap {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.logo span {
  display: grid;
  color: var(--green);
  font-weight: bolder;
  margin-right: .4rem;
  text-align: center;
}

.logo small {
  color: var(--orange);
  font-weight: 700;
  font-size: 8px;
}

.logo img {
  width: 65px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
  color: #333;
}

.main-nav a {
  transition: .25s;
  font-weight: bold;
}

.main-nav a:hover {
  color: var(--orange);
}

.main-nav a {
  position: relative;
  padding: 8px 2px;
  color: #333;
  font-weight: 600;
  transition:
    color .25s ease,
    transform .25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  transition: width .28s ease;
}

.main-nav a:hover {
  color: var(--orange);
  transform: translateY(-3px);
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--green);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
}

/* BTNS */

.btn {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;

  position: relative;
  overflow: hidden;

  transition:
    transform .28s ease,
    background-color .28s ease,
    color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

.btn:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 28px rgba(7, 59, 50, .16);
}

.btn:active {
  transform: translateY(-3px);
}

.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn.primary:hover {
  background: #fff;
  color: var(--green);
  border-color: var(--green);
}

.btn.outline {
  background: rgba(255,255,255,.72);
  color: var(--orange);
  border-color: rgba(247,147,30,.55);
}

.btn.outline:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(247, 147, 30, .22);
}

.btn.orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn.orange:hover {
  background: #fff;
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(247, 147, 30, .22);
}

/* BTNS */

.language-switcher {
  position: relative;
  z-index: 2000;
  margin-left: 1rem;
}

.language-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(7, 59, 50, .12);
  background: rgba(255, 255, 255, .75);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 59, 50, .08);
  transition: .25s ease;
}

.language-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--green);
  transition: .25s ease;
}

.language-btn:hover {
  transform: translateY(-4px);
  background: var(--green);
  border-color: var(--green);
}

.language-btn:hover svg {
  fill: #fff;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  width: 82px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(7, 59, 50, .14);
  border: 1px solid rgba(7, 59, 50, .08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;

  transition: .25s ease;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.language-switcher.active .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.language-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: .22s ease;
}

.language-menu button:hover,
.language-menu button.active {
  background: var(--orange);
  color: #fff;
}

.section {
  padding: 95px 0;
}

.main-nav a.active {
  color: var(--orange);
}

.footer {
  background: #062c26;
  color: #fff;
  padding-top: 70px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,.68);
  font-size: 14px;
}

.footer a {
  display: block;
  margin-top: 9px;
}

.footer h3 {
  margin-bottom: 18px;
  color: #fff;
}


.footer {
  position: relative;
  /* min-height: 520px; */

  background:
    linear-gradient(rgba(5, 44, 38, .88), rgba(5, 44, 38, .92)),
    url("/icons/dna-bg.jpg") center/cover no-repeat fixed;

  color: #fff;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  left: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(247,147,30,.28), transparent 68%);
  filter: blur(35px);
}

.footer::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -160px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(60,120,100,.35), transparent 70%);
  filter: blur(45px);
}

.footer-overlay {
  position: relative;
  z-index: 2;
  /* min-height: 620px; */
  /* padding-top: 95px; */
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr .85fr .85fr 1.35fr;
  gap: 45px;
  align-items: start;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.footer-brand-head img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-brand-head h2 {
  font-size: 24px;
  margin: 0;
  color: #fff;
}

.footer-brand-head span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  margin-top: 2px;
}

.footer-brand p,
.footer-contact p {
  color: rgba(255,255,255,.76);
  font-size: 14px;
  line-height: 2.1;
  margin-bottom: 12px;
}

.footer h3 {
  color: #fff;
  font-size: 21px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  width: fit-content;
  min-width: 145px;

  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;

  padding: 8px 14px;
  margin-bottom: 10px;

  font-size: 14px;
  font-weight: 600;
  text-align: center;

  transition:
    transform .25s ease,
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.footer-links a:hover {
  transform: translateY(-5px);
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(247,147,30,.22);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);

  transition:
    transform .25s ease,
    background-color .25s ease,
    border-color .25s ease;
}

.footer-socials a:hover {
  transform: translateY(-6px);
  background: var(--orange);
  border-color: var(--orange);
}

.footer-socials svg {
  width: 21px;
  height: 21px;
  fill: #fff;
}

.footer-map {
  margin-top: 22px;
  width: 100%;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 35px rgba(0,0,0,.18);
  background: #fff;
}

.footer-map .offline-map-content {
  width: 100%;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(247,147,30,.22), transparent 35%),
    linear-gradient(135deg, #073b32, #0c5547);
}

.footer-map .offline-map-pin {
  width: 36px;
  height: 36px;
  color: #f7931e;
  flex-shrink: 0;
}

.footer-map .offline-map-content strong {
  font-size: 14px;
  font-weight: 800;
}

.footer-map .offline-map-content span {
  max-width: 100%;
  color: rgba(255,255,255,.85);
  font-size: 11px;
  line-height: 1.9;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 5px 0;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    grid-column: span 2;
  }

  .footer-map {
    height: 230px;
  }
}

@media (max-width: 760px) {
  .footer {
    background-attachment: scroll;
  }

  .footer-overlay {
    padding-top: 65px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px; 
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-links a {
    width: 100%;
    text-align: center;
  }

  .footer-map {
    height: 210px;
  }
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 82px;
    right: 0;
    width: 280px;
    height: calc(100vh - 82px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    box-shadow: var(--shadow);
    transform: translateX(110%);
    transition: .3s;
  }

  .main-nav.active {
    transform: translateX(0);
  }
}

/* =========================
   FOOTER COMPANY LINKS
========================= */

.footer-main > .footer-links:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.footer-main > .footer-links:nth-child(3) a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 60px;
    padding: 12px 16px;

    text-align: center;
    line-height: 1.9;

    white-space: normal;
    overflow-wrap: break-word;

    box-sizing: border-box;
}

/* =========================
   FOOTER QUICK ACCESS LINKS
========================= */

.footer-main > .footer-links:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.footer-main > .footer-links:nth-child(2) a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 60px;
    padding: 12px 16px;

    text-align: center;
    line-height: 1.9;

    white-space: normal;
    overflow-wrap: break-word;

    box-sizing: border-box;
}

/* =============================
   DYNAMIC SOCIAL LINKS
============================= */

.footer-brand .footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
    margin-top: 28px;
}

.footer-brand .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    padding: 9px;

    color: #fff;

    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;

    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.footer-brand .footer-socials a:hover {
    background: rgba(247,147,30,.22);
    border-color: #f7931e;
    transform: translateY(-3px);
}

.footer-brand .footer-socials svg {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
}

.footer-brand .footer-socials img {
    display: block;

    width: 24px;
    height: 24px;

    object-fit: contain;
}

@media (max-width: 576px) {

    .footer-brand .footer-socials {
        justify-content: center;
        gap: 10px;
    }

    .footer-brand .footer-socials a {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

/* =====================================
   LANGUAGE SWITCHER
===================================== */

.ofogh-language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    width: fit-content;
    background: #fff;
    border: 1px solid #e2e8e4;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(7, 59, 50, .08);
}

.ofogh-language-switcher a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 43px;
    height: 35px;
    padding: 0 10px;
    border-radius: 8px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #073b32;
    transition: .2s ease;
}

.ofogh-language-switcher a:hover {
    background: #e9f1ed;
}

.ofogh-language-switcher a.active {
    background: #f7931e;
    color: #fff;
}

.ofogh-language-switcher a.active:hover {
    background: #e98913;
}

/* ==========================================
   ENGLISH LANGUAGE SUPPORT
========================================== */

html[lang="en"] {
    direction: ltr;
}

html[lang="en"] body {
    direction: ltr;
    text-align: left;
}

html[lang="en"] main {
    direction: ltr;
}

html[lang="en"] .hero-module,
html[lang="en"] .ecosystem-module,
html[lang="en"] .companies,
html[lang="en"] .investment,
html[lang="en"] .home-blogs,
html[lang="en"] .blog-page,
html[lang="en"] .blog-details {
    direction: ltr;
}

html[lang="en"] .hero-text,
html[lang="en"] .section-text,
html[lang="en"] .blog-body,
html[lang="en"] .article-content {
    direction: ltr;
    text-align: left;
}

html[lang="en"] .hero-actions {
    direction: ltr;
}

html[lang="en"] .blog-details .article-content ul {
    padding-left: 25px;
    padding-right: 0;
}

html[lang="en"] .blog-details .article-content blockquote {
    border-right: 0;
    border-left: 4px solid #f7931e;
}

html[lang="en"] .blog-details .article-header,
html[lang="en"] .blog-details .blogs-heading {
    text-align: center;
}

/* =========================================
   HEADER LANGUAGE SWITCHER FIX
========================================= */

.site-header .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-header .logo {
    flex-shrink: 0;
}

.site-header .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.2vw, 22px);
    min-width: 0;
}

.site-header .main-nav a {
    white-space: nowrap;
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .site-language-switcher {
    white-space: nowrap;
}

/* در عرض‌های کوچک‌تر از دسکتاپ */
@media (max-width: 1200px) {
    .site-header .main-nav {
        gap: 10px;
    }

    .site-header .main-nav a {
        font-size: 13px;
    }
}

/* =====================================================
   OFOGH HEADER — FINAL VISUAL IMPROVEMENTS
   Logo + Navigation + Language Switcher
===================================================== */

/* ساختار کلی هدر */
.site-header .nav-wrap {
    width: 100%;
    max-width: none;
    padding-inline: clamp(20px, 2.5vw, 48px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

/* =========================
   LOGO
========================= */

.site-header .logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 9px;

    margin: 0;
    text-decoration: none;
}

.site-header .logo img {
    width: 75px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-header .logo span {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.6;
    white-space: nowrap;
}

.site-header .logo small {
    font-size: 9px;
    line-height: 1.6;
    font-weight: 600;
}

/* =========================
   MAIN NAVIGATION
========================= */

.site-header .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;
    min-width: 0;

    gap: clamp(12px, 1.4vw, 25px);
}

.site-header .main-nav a {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.7;

    padding: 9px 2px;
    white-space: nowrap;
}

/* =========================
   HEADER ACTIONS
========================= */

.site-header .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;

    margin: 0;
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.site-header .site-language-switcher {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    gap: 5px !important;

    padding: 5px 7px !important;

    min-height: 43px;

    background: #ffffff;
    border: 1px solid rgba(7, 59, 50, .13);
    border-radius: 13px;

    box-shadow:
        0 5px 18px rgba(7, 59, 50, .06);

    white-space: nowrap;
    direction: ltr;
}

/* دکمه‌های FA و EN */
.site-header .site-language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 32px;

    padding: 0 11px;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;

    color: #073b32;

    background: transparent;
    border-radius: 8px;

    text-decoration: none;

    opacity: 1 !important;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

/* جداکننده */
.site-header .site-language-switcher > span {
    color: rgba(7, 59, 50, .35);
    font-size: 12px;
    margin: 0 1px;
}

/* زبان فعال */
.site-header .site-language-switcher a[aria-current="page"] {
    background: #073b32;
    color: #ffffff;

    box-shadow:
        0 3px 10px rgba(7, 59, 50, .15);
}

/* زبان غیرفعال هنگام هاور */
.site-header .site-language-switcher a:not([aria-current="page"]):hover {
    background: rgba(247, 147, 30, .15);
    color: #e98913;

    transform: translateY(-1px);
}

/* حالت فوکوس کیبورد */
.site-header .site-language-switcher a:focus-visible {
    outline: 2px solid #f7931e;
    outline-offset: 3px;
}

/* =========================
   TABLET / SMALL DESKTOP
========================= */

@media (max-width: 1250px) {

    .site-header .nav-wrap {
        padding-inline: 20px;
        gap: 12px;
    }

    .site-header .logo img {
        width: 65px;
        height: 65px;
    }

    .site-header .logo span {
        font-size: 13px;
    }

    .site-header .main-nav {
        gap: 11px;
    }

    .site-header .main-nav a {
        font-size: 13px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {

    .site-header .nav-wrap {
        padding-inline: 15px;
        gap: 10px;
    }

    .site-header .logo img {
        width: 55px;
        height: 55px;
    }

    .site-header .logo span {
        font-size: 12px;
    }

    .site-header .logo small {
        font-size: 8px;
    }

    .site-header .header-actions {
        gap: 8px;
    }

    .site-header .site-language-switcher {
        min-height: 38px;
        padding: 3px 4px !important;
    }

    .site-header .site-language-switcher a {
        min-width: 31px;
        height: 30px;
        padding: 0 6px;
        font-size: 11px;
    }

    /* حفظ منوی کشویی موبایل */
    .site-header .main-nav {
        position: fixed;
        top: 82px;
        right: 0;

        width: min(280px, 85vw);
        height: calc(100vh - 82px);

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        gap: 10px;
        padding: 25px;

        background: #ffffff;
        box-shadow: var(--shadow);

        transform: translateX(110%);
        transition: transform .3s ease;

        overflow-y: auto;
        z-index: 1000;
    }

    .site-header .main-nav.active {
        transform: translateX(0);
    }

    .site-header .main-nav a {
        font-size: 15px;
        padding: 10px 5px;
    }

    .site-header .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        flex-shrink: 0;
        cursor: pointer;
    }
}

/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 390px) {

    .site-header .logo img {
        width: 45px;
        height: 45px;
    }

    .site-header .logo span {
        font-size: 10px;
    }

    .site-header .site-language-switcher a {
        min-width: 27px;
        padding: 0 4px;
    }

    .site-header .header-actions {
        gap: 5px;
    }
}

/* =========================================
   HOME HERO — ENGLISH LAYOUT FIX
========================================= */

@media (min-width: 1001px) {

    html[lang="en"] .hero-module .hero-content {
        direction: ltr;
    }

    html[lang="en"] .hero-module .hero-text {
        grid-column: 1;
        grid-row: 1;
        direction: ltr;
        text-align: left;
    }

    html[lang="en"] .hero-module .about-visual {
        left: auto;
        right: 120px;
    }

    html[lang="en"] .hero-module .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1000px) {

    html[lang="en"] .hero-module .about-visual {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        margin: 30px auto 0;
    }
}

/* ==========================================
   FINAL FOOTER FIX - ENGLISH
========================================== */

/* Orange underline: left in English, right in Persian */
html[lang="en"] footer.footer .footer-main h3::after {
    right: auto !important;
    left: 0 !important;
}

html[lang="fa"] footer.footer .footer-main h3::after {
    left: auto !important;
    right: 0 !important;
}

/* English footer direction */
html[lang="en"] footer.footer .footer-main {
    direction: ltr !important;
    text-align: left;
}

html[lang="en"] footer.footer .footer-brand,
html[lang="en"] footer.footer .footer-links,
html[lang="en"] footer.footer .footer-contact {
    direction: ltr !important;
    text-align: left;
}

/* Brand description */
html[lang="en"] footer.footer .footer-brand > p {
    direction: ltr !important;
    text-align: left !important;
}

/* Company links */
html[lang="en"] footer.footer .footer-company-links > a:not(.footer-persian-link) {
    direction: ltr !important;
    text-align: center;
}

/* Persian-language button remains RTL */
html[lang="en"] footer.footer .footer-company-links > a.footer-persian-link {
    direction: rtl !important;
    text-align: center;
    align-self: flex-start;
}

/* Contact details */
html[lang="en"] footer.footer .footer-contact > p {
    direction: ltr !important;
    text-align: left !important;
}

/* Social icons */
html[lang="en"] footer.footer .footer-socials {
    direction: ltr !important;
    justify-content: flex-start;
}

/* ========================================================
   2026-10-27 MOBILE / BILINGUAL HEADER HOTFIX
   Keep original desktop styles unchanged.
   ======================================================== */
html {
    overflow-x: clip;
}
body {
    max-width: 100%;
    overflow-x: clip;
}

/* Keep the header's direction independent of page language. */
.site-header .ofogh-language-switcher {
    direction: ltr;
    flex: 0 0 auto;
}
.site-header .ofogh-language-switcher a.active {
    background: #073b32;
    color: #fff;
}

@media (max-width: 760px) {
    .site-header {
        width: 100%;
        max-width: 100%;
    }
    .site-header .nav-wrap {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        gap: 8px;
        padding-inline: 12px;
    }
    .site-header .logo {
        min-width: 0;
        flex: 0 1 auto;
        gap: 4px;
    }
    .site-header .logo img {
        width: 43px;
        height: 48px;
    }
    .site-header .logo span {
        min-width: 0;
        font-size: 10px;
        line-height: 1.45;
    }
    .site-header .logo small {
        font-size: 7px;
    }
    .site-header .header-actions {
        flex: 0 0 auto;
        gap: 6px !important;
    }
    .site-header .ofogh-language-switcher {
        padding: 3px;
        gap: 2px;
        border-radius: 10px;
    }
    .site-header .ofogh-language-switcher a {
        min-width: 29px;
        height: 30px;
        padding: 0 5px;
        font-size: 11px;
    }
    .site-header .menu-toggle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    /* Absolute relative to sticky header: no backdrop-filter fixed-position bug. */
    .site-header .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: min(280px, 85vw);
        max-width: 100vw;
        height: auto;
        max-height: calc(100dvh - 82px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 18px;
        gap: 5px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        background: #fff;
        box-shadow: var(--shadow);
        transform: translateX(105%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
        z-index: 1000;
    }
    .site-header .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .site-header .main-nav a {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        white-space: normal;
    }
    html[lang="en"] .site-header .main-nav {
        left: 0;
        right: auto;
        direction: ltr;
        text-align: left;
        transform: translateX(-105%);
    }
    html[lang="en"] .site-header .main-nav.active {
        transform: translateX(0);
    }
    html[lang="fa"] .site-header .main-nav {
        direction: rtl;
        text-align: right;
    }
}

@media (max-width: 360px) {
    .site-header .nav-wrap { padding-inline: 8px; gap: 4px; }
    .site-header .logo img { width: 37px; height: 42px; }
    .site-header .logo span { font-size: 9px; }
    .site-header .logo small { font-size: 6px; }
    .site-header .header-actions { gap: 4px !important; }
    .site-header .menu-toggle { width: 37px; height: 37px; }
}

/* =====================================================
   OFOGH POP - PREMIUM MOBILE NAVIGATION
   Persian RTL / English LTR
===================================================== */

/* Backdrop */

.site-menu-backdrop {
    display: none;
}

@media (max-width: 760px) {

    /* Dark overlay behind mobile navigation */

    .site-menu-backdrop {
        display: block;

        position: fixed;
        inset: 0;

        z-index: 998;

        background: rgba(2, 19, 16, 0.78);

        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    body.ofogh-menu-open .site-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Header stays above backdrop */

    .site-header {
        position: relative;
        z-index: 999 !important;
        isolation: isolate;
    }

    /* Premium mobile drawer */

    .site-header .main-nav,
    html[lang="fa"] .site-header .main-nav,
    html[lang="en"] .site-header .main-nav {

        position: absolute;

        top: 100%;
        bottom: auto;

        width: min(320px, 86vw);
        max-width: 100vw;

        height: calc(100vh - 82px);
        height: calc(100dvh - 82px);

        min-height: 0;
        max-height: none;

        display: flex;
        flex-direction: column;

        align-items: stretch;
        justify-content: flex-start;

        gap: 8px;

        padding: 25px 16px 35px;

        overflow-y: auto;
        overflow-x: hidden;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        border-radius: 0;

        background:
            radial-gradient(
                circle at 15% 0%,
                rgba(247, 147, 30, 0.14),
                transparent 50%
            ),
            linear-gradient(
                165deg,
                #10594d 0%,
                #073b32 45%,
                #042920 100%
            );

        box-shadow:
            -15px 10px 45px rgba(0, 0, 0, 0.30);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.25s ease,
            visibility 0.25s ease;

        z-index: 1001;
    }

    /* Persian: open from right */

    html[lang="fa"] .site-header .main-nav {
        right: 0;
        left: auto;

        direction: rtl;
        text-align: right;

        transform: translateX(105%);

        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* English: open from left */

    html[lang="en"] .site-header .main-nav {
        left: 0;
        right: auto;

        direction: ltr;
        text-align: left;

        transform: translateX(-105%);

        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Open state */

    .site-header .main-nav.active,
    html[lang="fa"] .site-header .main-nav.active,
    html[lang="en"] .site-header .main-nav.active {

        transform: translateX(0);

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Orange decorative line */

    .site-header .main-nav::before {

        content: "";

        display: block;

        flex: 0 0 4px;

        width: 44px;
        height: 4px;

        margin: 0 12px 14px;

        border-radius: 20px;

        background: #f7931e;
    }

    /* Navigation links */

    .site-header .main-nav a,
    html[lang="en"] .site-header .main-nav a {

        display: flex;
        align-items: center;

        flex: 0 0 auto;

        width: 100%;
        min-height: 50px;

        padding: 12px 16px;

        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 13px;

        background: rgba(255, 255, 255, 0.065);

        color: #f5fffb;

        font-size: 14px;
        font-weight: 700;
        line-height: 1.6;

        text-align: start;
        text-decoration: none;

        white-space: normal;

        transition:
            background 0.22s ease,
            color 0.22s ease,
            border-color 0.22s ease;
    }

    .site-header .main-nav a::after {
        display: none;
    }

    /* Hover / Focus */

    .site-header .main-nav a:hover,
    .site-header .main-nav a:focus-visible,
    .site-header .main-nav a.active {

        background: rgba(247, 147, 30, 0.17);

        color: #ffd59e;

        border-color: rgba(247, 147, 30, 0.5);

        transform: none;
    }

    /* Menu button */

    .site-header .menu-toggle {
        position: relative;

        z-index: 2;

        transition:
            background 0.2s ease,
            color 0.2s ease;
    }

    body.ofogh-menu-open .site-header .menu-toggle {

        background: #f7931e;

        color: #062f29;
    }

    /* Prevent body scrolling when drawer is open */

    body.ofogh-menu-open {
        overflow: hidden;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .site-header .main-nav,
    .site-menu-backdrop {
        transition-duration: 0.01ms !important;
    }
}