/* =====================================================
   EQLIMA — GLOBAL CUSTOM CSS (RECOVERY / CLEAN VERSION)
   Shared across EN / FR / FA templates
   ===================================================== */

/* ================= DESIGN TOKENS ================= */

:root {
  --eqlima-bg: #f3f1ed;
  --eqlima-ink: #1f2a44;
  --eqlima-text: #2b2b2b;
  --eqlima-burgundy: #6e2c2c;
  --eqlima-gold: #c8a75a;
  --eqlima-copper: #b46e2c;
  --eqlima-teal: #4fa3a5;
  --eqlima-green: #2f6f5e;
  --eqlima-footer: #1c1c1c;

  --topbar-height: 32px;
  --header-height: 72px;
  --header-bg: rgba(18, 22, 28, 0.50);
  --header-bg-scroll: rgba(18, 22, 28, 0.62);
  --header-blur: 10px;

  --eqlima-container: 1320px;
  --eqlima-container-pad: 36px;
  --eqlima-article-wide: 1060px;
  --eqlima-article-text: 720px;
}

/* ================= GLOBAL ================= */

html {
  scroll-behavior: smooth;
}

body {
  color: var(--eqlima-text);
  background: var(--eqlima-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
p {
  line-height: 1.8;
}

a {
  color: var(--eqlima-burgundy);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--eqlima-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.sppb-addon-image {
  margin-bottom: 24px;
}

.sppb-addon-image img {
  display: block;
}

.sppb-section,
.sppb-row {
  overflow-x: clip;
}

/* ================= RTL / PERSIAN ================= */

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

.rtl-block {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}

.rtl-block p,
.rtl-block .sppb-addon-text {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: justify;
  line-height: 2;
  margin: 0 0 1.8em;
}

.rtl-block h1,
.rtl-block h2,
.rtl-block h3,
.rtl-block h4,
.rtl-block h5,
.rtl-block h6 {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
}

/* Text-only Persian font rules: avoids breaking icon fonts */
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] a,
html[dir="rtl"] label,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .article-body,
html[dir="rtl"] .item-content,
html[dir="rtl"] .sppb-addon-text,
html[dir="rtl"] .sppb-addon-content,
html[dir="rtl"] .sp-megamenu-parent > li > a,
html[dir="rtl"] .offcanvas-menu a,
.eqlima-fa-text {
  font-family: "Vazirmatn", "IRANSans", Tahoma, sans-serif !important;
}

.eqlima-fa-text,
html[dir="rtl"] .com-content,
html[dir="rtl"] .blog,
html[dir="rtl"] .item-page,
html[dir="rtl"] .article-body {
  direction: rtl;
  text-align: right;
  color: var(--eqlima-ink);
}

/* Preserve icon fonts */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
[class^="fa-"],
[class*=" fa-"] {
  font-style: normal !important;
}

.fab,
.fa-brands {
  font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome !important;
  font-weight: 400 !important;
}

.fas,
.fa-solid {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
  font-weight: 900 !important;
}

.far,
.fa-regular {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
  font-weight: 400 !important;
}

.sppb-icon,
[class^="sppb-icon-"],
[class*=" sppb-icon-"] {
  font-family: "sppb-icons" !important;
}

/* ================= HEADER / TOPBAR ================= */

#sp-top2,
#sp-header {
  position: fixed !important;
  left: 0;
  width: 100%;
  background: var(--header-bg) !important;
  backdrop-filter: blur(var(--header-blur)) !important;
  -webkit-backdrop-filter: blur(var(--header-blur)) !important;
  box-shadow: none !important;
  border: none !important;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

#sp-top2 {
  top: 0 !important;
  height: var(--topbar-height) !important;
  min-height: var(--topbar-height) !important;
  z-index: 10000;
}

#sp-header {
  top: var(--topbar-height) !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  z-index: 9999;
}

body.header-scrolled #sp-top2,
body.header-scrolled #sp-header {
  background: var(--header-bg-scroll) !important;
}

#sp-top2 .container,
#sp-header .container {
  max-width: var(--eqlima-container) !important;
  width: 100%;
  margin-inline: auto !important;
  padding-inline: var(--eqlima-container-pad) !important;
}

#sp-top2 .container,
#sp-top2 .row,
#sp-top2 .sp-column,
#sp-top2 .sp-module,
#sp-header .container,
#sp-header .row,
#sp-header .sp-column,
#sp-header .sp-module,
#sp-logo,
#sp-menu {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

#sp-top2 .row,
#sp-header .container,
#sp-header .row,
#sp-header .sp-column,
#sp-logo,
#sp-menu {
  display: flex !important;
  align-items: center !important;
}

#sp-top2 .row {
  justify-content: space-between !important;
  min-height: var(--topbar-height) !important;
}

#sp-header .row {
  justify-content: space-between !important;
}

#sp-logo {
  margin: 0 !important;
  padding: 0 !important;
}

#sp-logo .logo-image {
  display: block;
  height: 36px;
  width: auto;
}

#sp-menu {
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
}

#sp-header .logo,
#sp-header .logo a,
#sp-header .sp-megamenu-parent > li > a,
#sp-header .search i,
#sp-header .search a {
  color: #fff !important;
}

#sp-header .sp-megamenu-parent > li > a {
  font-size: 13px !important;
  letter-spacing: 0.4px;
  line-height: var(--header-height) !important;
}

#sp-header .sp-megamenu-parent > li > a:hover,
#sp-top2 a:hover {
  color: var(--eqlima-gold) !important;
}

#sp-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: calc(100% - 64px);
    max-width: var(--eqlima-container);
    height: 1px;
    margin: 0;
    background: rgba(255, 255, 255, 0.18);
}

/* Topbar social icons */

#sp-top2 .eqlima-social-top {
  order: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
}

#sp-top2 .eqlima-social-top a {
  display: inline-flex !important;
  align-items: center !important;
  height: var(--topbar-height) !important;
  line-height: var(--topbar-height) !important;
  color: #fff !important;
  font-size: 13px !important;
  text-decoration: none !important;
  opacity: 0.9;
}

#sp-top2 .eqlima-social-top a:hover {
  opacity: 1;
}

/* Language switcher */

#sp-top2 .mod-languages,
#sp-top2 .eqlimalang,
#sp-top2 .eqlima-lang-custom {
  order: 2;
  margin: 0 !important;
  padding: 0 !important;
  text-align: end !important;
}

#sp-top2 .mod-languages ul,
#sp-top2 .eqlimalang ul,
#sp-top2 .eqlima-lang-custom ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  direction: ltr !important;
}

#sp-top2 .mod-languages li,
#sp-top2 .eqlimalang li,
#sp-top2 .eqlima-lang-custom li {
  display: flex !important;
  align-items: center !important;
  height: var(--topbar-height) !important;
  margin: 0 !important;
  padding: 0 !important;
}

#sp-top2 .mod-languages a,
#sp-top2 .mod-languages span,
#sp-top2 .eqlimalang a,
#sp-top2 .eqlimalang span,
#sp-top2 .eqlima-lang-custom a,
#sp-top2 .eqlima-lang-custom span {
  display: inline-flex !important;
  align-items: center !important;
  height: var(--topbar-height) !important;
  line-height: var(--topbar-height) !important;
  color: #fff !important;
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding-inline: 6px !important;
  opacity: 0.9;
}

#sp-top2 .mod-languages a[lang^="fa"],
#sp-top2 .mod-languages a[hreflang^="fa"],
#sp-top2 .mod-languages span[lang^="fa"] {
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
}

#sp-top2 .mod-languages li.lang-active > a,
#sp-top2 .mod-languages li.lang-active > span,
#sp-top2 .eqlimalang li.lang-active > a,
#sp-top2 .eqlimalang li.lang-active > span {
  opacity: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75) !important;
}

/* Desktop-only breathing space */
@media (min-width: 992px) {
  #sp-top2 .mod-languages,
  #sp-top2 .eqlimalang,
  #sp-top2 .eqlima-lang-custom {
    margin-inline: 20px !important;
  }

  html[lang="fr-FR"] #sp-logo {
    padding-left: 24px !important;
  }

  html[lang="fa-IR"] #sp-logo,
  html[dir="rtl"] #sp-logo {
    padding-right: 24px !important;
  }
}

/* ================= HERO ================= */

.hero-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  margin-top: calc((var(--topbar-height) + var(--header-height)) * -1);
  padding-top: 210px !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.34) 32%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-section .sppb-row-container,
.hero-section .sppb-container,
.hero-section .sppb-column,
.hero-section .sppb-column-addons {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  max-width: 650px;
  font-size: clamp(42px, 6vw, 110px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff !important;
}

.hero-section p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.5;
}

.hero-section .sppb-btn,
.hero-section .btn {
  padding: 14px 28px;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.hero-section .sppb-btn:hover,
.hero-section .btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

html[lang^="fa"] .hero-section h1,
html[lang^="fa"] .hero-section p,
html[dir="rtl"] .hero-section h1,
html[dir="rtl"] .hero-section p {
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
  direction: rtl;
  text-align: right;
}

/* ================= ARTICLE TEMPLATE ================= */

body.view-article #sp-main-body {
  padding-top: 120px;
  padding-bottom: 60px;
  background: var(--eqlima-bg);
}

body.view-article .article-details,
body.view-article .com-content-article,
body.view-article article.item,
body.view-article .item-page {
  max-width: var(--eqlima-article-wide) !important;
  margin-inline: auto !important;
  padding-inline: 32px !important;
  background: transparent !important;
}

body.view-article h1 {
  max-width: 28ch !important;
  margin: 0 0 16px;
  font-family: "Source Sans 3", Inter, Arial, sans-serif !important;
  font-size: clamp(2.1rem, 3vw, 3.2rem) !important;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111;
  text-wrap: balance;
}

@media (min-width: 1200px) {
  body.view-article h1 {
    max-width: 30ch !important;
  }
}

html[dir="rtl"] body.view-article h1,
html[dir="rtl"] body.view-article .article-details h1,
html[dir="rtl"] body.view-article .com-content-article h1,
html[dir="rtl"] body.view-article article.item h1,
html[dir="rtl"] body.view-article .page-header h1 {
  max-width: 38ch !important;
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-align: right !important;
}

body.view-article .lead,
body.view-article .article-intro,
body.view-article .introtext {
  max-width: var(--eqlima-article-text);
  margin: 0 0 34px;
  font-size: 1.3rem;
  line-height: 1.55;
  color: #555;
}

/* Meta row */

body.view-article .article-info {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin: 2px 0 8px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  color: #666 !important;
}

body.view-article .article-info::after {
  content: none !important;
}

body.view-article .article-info::before {
  content: "- EQLIMA Editorial Desk";
  order: 1;
  color: #666 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

html[lang^="fa"] body.view-article .article-info::before {
  content: "تحریریه اقلیما";
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
}

body.view-article .article-info *,
body.view-article .article-info .category-name {
  color: #666 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
}

body.view-article .article-info .createdby,
body.view-article .article-info .author,
body.view-article .createdby,
body.view-article .author {
  display: none !important;
}

body.view-article .article-info .category-name::before,
body.view-article .article-info .published::before,
body.view-article .article-info .hits::before {
  content: "•";
  display: inline-block;
  margin-inline: 18px !important;
  color: #999 !important;
}

/* Article image */

body.view-article .article-image,
body.view-article figure.article-image,
body.view-article .full-image,
body.view-article .item-image {
  max-width: var(--eqlima-article-wide);
  margin: 26px 0 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

body.view-article .article-image img,
body.view-article figure.article-image img,
body.view-article .full-image img,
body.view-article .item-image img {
  display: block;
  width: 100%;
  height: auto;
}

body.view-article figure.article-image figcaption {
  margin-top: 10px;
  color: #777;
  font-size: 0.85rem;
  line-height: 1.6;
  font-style: normal;
  text-align: center;
}

html[dir="rtl"] body.view-article figure.article-image figcaption {
  text-align: right;
}

/* Article text */

body.view-article .article-body,
body.view-article .item-page .item-content,
body.view-article .item-page .itemFullText,
body.view-article .com-content-article .article-body,
body.view-article [itemprop="articleBody"] {
  max-width: var(--eqlima-article-text);
  margin-inline: auto;
  font-family: "Source Sans 3", Inter, Arial, sans-serif !important;
  font-size: 1.1rem;
  line-height: 1.85;
  color: #222;
}

body.view-article .article-body p,
body.view-article .item-page .item-content p,
body.view-article .item-page .itemFullText p,
body.view-article [itemprop="articleBody"] p {
  margin: 0 0 1.15em;
}

html[dir="rtl"] body.view-article .article-body,
html[dir="rtl"] body.view-article .item-content,
html[dir="rtl"] body.view-article .itemFullText,
html[dir="rtl"] body.view-article [itemprop="articleBody"] {
  max-width: 760px;
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.95 !important;
  text-align: right !important;
}

html[dir="rtl"] body.view-article p,
html[lang^="fa"] body.view-article p {
  font-size: 17px !important;
  line-height: 1.95 !important;
}

/* Drop cap: LTR only */

body.view-article .article-body > p:first-of-type:first-letter,
body.view-article .item-page .item-content > p:first-of-type:first-letter {
  float: left;
  margin-top: 7px;
  padding-right: 12px;
  color: #111;
  font-size: 4.7rem;
  line-height: 0.85;
  font-weight: 500;
}

html[dir="rtl"] body.view-article .article-body > p:first-of-type:first-letter,
html[dir="rtl"] body.view-article .item-page .item-content > p:first-of-type:first-letter {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}

/* Article headings */

body.view-article .article-body h2,
body.view-article .item-page .item-content h2 {
  margin: 1.7em 0 0.55em;
  color: #111;
  font-family: "Source Sans 3", Inter, Arial, sans-serif !important;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
}

body.view-article .article-body h3,
body.view-article .item-page .item-content h3 {
  margin: 1.5em 0 0.5em;
  color: #111;
  font-family: "Source Sans 3", Inter, Arial, sans-serif !important;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
}

html[dir="rtl"] body.view-article .article-body h2,
html[dir="rtl"] body.view-article .article-body h3,
html[dir="rtl"] body.view-article .item-content h2,
html[dir="rtl"] body.view-article .item-content h3 {
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
  text-align: right;
}

/* Blockquotes */

body.view-article blockquote {
  margin: 2em 0 !important;
  padding: 0.3em 0 0.3em 1.3em !important;
  border-left: 4px solid var(--eqlima-copper) !important;
  color: #333 !important;
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  font-style: italic !important;
}

html[dir="rtl"] body.view-article blockquote {
  padding-left: 0 !important;
  padding-right: 1.3em !important;
  border-left: none !important;
  border-right: 4px solid var(--eqlima-copper) !important;
  font-style: normal !important;
}

/* Tags */

body.view-article .tags,
body.view-article .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--eqlima-article-text);
  margin: 42px auto 0;
}

body.view-article .tags a,
body.view-article .article-tags a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 20px;
  background: #efefef;
  color: #444;
  font-size: 0.86rem;
  text-decoration: none;
}

/* ================= CUSTOM FIELDS ================= */

.field-entry.eqlima-subtitle,
.field-entry.eqlima-subtitle .field-value,
.field-value.eqlima-subtitle,
.eqlima-subtitle {
  display: block !important;
  margin: 10px 0 24px !important;
  color: #5a5a5a !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.field-entry.eqlima-byline,
.field-entry.eqlima-byline .field-value,
.field-value.eqlima-byline,
.eqlima-byline {
  display: block !important;
  margin: 8px 0 28px !important;
  color: #777 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
}

.field-entry.eqlima-hero-caption,
.field-entry.eqlima-hero-caption .field-value,
.field-value.eqlima-hero-caption,
.eqlima-hero-caption {
  display: block !important;
  margin: 8px 0 28px !important;
  color: #777 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.field-entry.eqlima-pullquote,
.field-entry.eqlima-pullquote .field-value,
.field-value.eqlima-pullquote,
.eqlima-pullquote {
  display: block !important;
  margin: 28px 0 !important;
  padding: 8px 0 8px 18px !important;
  border-left: 8px solid var(--eqlima-teal) !important;
  color: var(--eqlima-burgundy) !important;
  font-size: 20px !important;
  line-height: 1.55 !important;
  font-style: italic !important;
}

.field-entry.eqlima-highlight-box,
.field-entry.eqlima-highlight-box .field-value,
.field-value.eqlima-highlight-box,
.eqlima-highlight-box {
  display: block !important;
  margin: 36px 0 !important;
  padding: 20px 22px !important;
  background: #f4f1ea !important;
  border-left: 6px solid var(--eqlima-gold) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

.field-entry.eqlima-data-box,
.field-entry.eqlima-data-box .field-value,
.field-value.eqlima-data-box,
.eqlima-data-box {
  display: block !important;
  margin: 16px 0 !important;
  padding: 22px 24px !important;
  background: #f4f5f6 !important;
  border-left: 4px solid var(--eqlima-gold) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.field-entry.eqlima-source-note,
.field-entry.eqlima-source-note .field-value,
.field-value.eqlima-source-note,
.eqlima-source-note {
  display: block !important;
  margin-top: 10px !important;
  padding-top: 5px !important;
  border-top: 1px solid #ddd !important;
  color: #777 !important;
  font-size: 12px !important;
}

.eqlima-data-box ul,
.field-entry.eqlima-data-box ul,
.field-value.eqlima-data-box ul {
  margin: 0 !important;
  padding-left: 22px !important;
}

html[dir="rtl"] .eqlima-pullquote,
html[dir="rtl"] .eqlima-highlight-box,
html[dir="rtl"] .eqlima-data-box,
html[dir="rtl"] .field-entry.eqlima-pullquote,
html[dir="rtl"] .field-entry.eqlima-highlight-box,
html[dir="rtl"] .field-entry.eqlima-data-box,
html[dir="rtl"] .field-value.eqlima-pullquote,
html[dir="rtl"] .field-value.eqlima-highlight-box,
html[dir="rtl"] .field-value.eqlima-data-box {
  padding-left: 0 !important;
  padding-right: 22px !important;
  border-left: none !important;
  border-right: 8px solid var(--eqlima-teal) !important;
  text-align: right !important;
}

html[lang^="fa"] ul.fields-container {
  margin: 28px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html[lang^="fa"] li.field-entry.lead.eqlima-lead {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  direction: rtl !important;
  text-align: right !important;
}

html[lang^="fa"] li.field-entry.lead.eqlima-lead::marker {
  content: "" !important;
}

html[lang^="fa"] .field-value.eqlima-lead,
html[lang^="fa"] .eqlima-lead {
  display: block !important;
  margin-bottom: 18px !important;
  direction: rtl !important;
  unicode-bidi: plaintext !important;
  text-align: right !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-weight: 600 !important;
}

/* ================= HOMEPAGE / GRID ================= */

.sppb-row [class*="sppb-col-"] {
  padding-inline: 12px;
}

.sppb-row {
  margin-inline: -12px;
}

body.site .sppb-section .sppb-row-container {
  max-width: var(--eqlima-container) !important;
  margin-inline: auto !important;
}

body.site .sppb-section .sppb-row-container,
body.site .sppb-section .sppb-container-inner {
  padding-inline: 30px !important;
}

/* ================= FOOTER ================= */

footer,
#sp-footer,
#sp-bottom {
  background-color: var(--eqlima-footer);
  color: #e6e6e6;
}

footer a,
#sp-footer a,
#sp-bottom a {
  color: var(--eqlima-gold);
}

footer a:hover,
#sp-footer a:hover,
#sp-bottom a:hover {
  color: #fff;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 991px) {
  :root {
    --eqlima-container-pad: 18px;
  }

  #sp-menu {
    display: flex;
    justify-content: flex-end !important;
  }

  #sp-menu .sp-megamenu-wrapper {
    display: flex;
    justify-content: flex-end !important;
    width: 100%;
  }

  .offcanvas-menu-init,
  .burger-icon,
  #offcanvas-toggler {
    margin-left: auto !important;
  }

  html[dir="rtl"] .offcanvas-menu-init,
  html[dir="rtl"] .burger-icon,
  html[dir="rtl"] #offcanvas-toggler {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  #sp-header::after {
    display: none !important;
  }

  .hero-section {
    min-height: 700px;
    margin-top: -95px;
    padding-top: 180px !important;
  }

  .hero-section h1 {
    max-width: 90%;
  }

  body.view-article #sp-main-body {
    padding-top: 110px;
  }

  body.view-article .article-details,
  body.view-article .com-content-article,
  body.view-article article.item,
  body.view-article .item-page {
    padding-inline: 22px !important;
  }

  html[lang="fr-FR"] #sp-logo,
  html[lang="fa-IR"] #sp-logo,
  html[dir="rtl"] #sp-logo {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 768px) {
  :root {
    --eqlima-container-pad: 14px;
  }

  #sp-top2 .mod-languages ul,
  #sp-top2 .eqlimalang ul,
  #sp-top2 .eqlima-lang-custom ul {
    gap: 10px !important;
  }

  #sp-top2 .mod-languages a,
  #sp-top2 .mod-languages span,
  #sp-top2 .eqlimalang a,
  #sp-top2 .eqlimalang span,
  #sp-top2 .eqlima-lang-custom a,
  #sp-top2 .eqlima-lang-custom span {
    padding-inline: 3px !important;
    font-size: 11px !important;
  }

  .hero-section {
    min-height: 620px;
    margin-top: -85px;
    padding-top: 160px !important;
  }

  body.view-article #sp-main-body {
    padding: 100px 0 40px !important;
  }

  body.view-article #sp-main-body > .container,
  body.view-article #sp-main-body > .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 10px !important;
  }

  body.view-article .article-details,
  body.view-article .com-content-article,
  body.view-article article.item,
  body.view-article .item-page,
  body.view-article .article-body,
  body.view-article .item-content,
  body.view-article [itemprop="articleBody"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.view-article h1 {
    font-size: 2rem !important;
  }

  html[dir="rtl"] body.view-article h1 {
    font-size: 1.7rem !important;
    line-height: 1.45 !important;
  }

  html[dir="rtl"] body.view-article p,
  html[lang^="fa"] body.view-article p {
    font-size: 16px !important;
    line-height: 1.9 !important;
  }
}

/* ================= END ================= */