/* Force Hebrew-capable font everywhere; template fonts (Satoshi/Urbanist/Marcellus/Plus Jakarta) have no Hebrew glyphs.
   Deliberately excludes <i> tags (used exclusively for Font Awesome icons in this template). */
body, p, h1, h2, h3, h4, h5, h6, a, span, b, strong, em, small, li, button, input, select, textarea, div, label, td, th, blockquote, cite, figcaption {
  font-family: 'Heebo', Arial, sans-serif !important;
}
/* Marcellus/Satoshi/Urbanist are used on specific class selectors in main.css — override them */
.section-title h2 span,
.section-title h2 b,
.hero-content h1 span,
.hero-content h1 b,
.project-title span,
.cta-discuss-content h2 span,
.counter-items h2,
.service-content h3,
.pricing-box-items h3,
.footer-content h3,
.widget-head h3,
.about-content p,
.about-content h3 {
  font-family: 'Heebo', Arial, sans-serif !important;
}
i[class*="fa-"] {
  font-family: "Font Awesome 6 Pro" !important;
}
i.fa-brands, i[class*="fa-brands"] {
  font-family: "Font Awesome 6 Brands" !important;
}
.text-logo {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.text-logo span { color: var(--theme-color, #efe353); }

/* RTL submenu positioning fix */
.header-main .main-menu ul li .submenu {
  inset-inline-start: auto !important;
  right: 0;
  left: auto;
  text-align: right;
}
.header-main .main-menu ul li .submenu li a {
  text-align: right !important;
  display: block;
}

/* Compact nav so all items fit in one row */
.header-main .main-menu ul li {
  margin-inline-end: 28px !important;
}
.header-main .main-menu ul li a {
  font-size: 15px !important;
}

/* ============================================================
   Characters & Story — split landing + detail pages
   ============================================================ */

/* Split landing (characters.html) */
.split-landing { display: flex; min-height: calc(100vh - 90px); }
.split-panel {
  flex: 1; position: relative; overflow: hidden;
  cursor: pointer; text-decoration: none !important;
  display: flex; align-items: flex-end;
  transition: flex .5s cubic-bezier(.4,0,.2,1);
}
.split-panel:hover { flex: 1.35; }
.split-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: transform .6s ease;
}
.split-panel:hover .split-bg { transform: scale(1.04); }
.split-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.1) 100%);
  transition: background .4s;
}
.split-panel:hover .split-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1) 100%);
}
.split-content {
  position: relative; z-index: 2;
  padding: 48px 44px; width: 100%;
}
.split-label {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--theme, #efe353);
  margin-bottom: 10px; display: block;
}
.split-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900; color: #fff; line-height: 1.1;
  margin-bottom: 14px;
}
.split-content p {
  font-size: .93rem; color: rgba(255,255,255,.75);
  line-height: 1.7; max-width: 400px; margin-bottom: 24px;
}
.split-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--theme, #efe353); color: #000 !important;
  font-weight: 700; font-size: .88rem;
  padding: 12px 24px; border-radius: 6px;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
}
.split-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239,235,83,.3); }
.split-divider {
  width: 1px; background: rgba(255,255,255,.12);
  flex-shrink: 0; position: relative; z-index: 3;
}
@media (max-width: 767px) {
  .split-landing { flex-direction: column; min-height: auto; }
  .split-panel { min-height: 55vh; }
  .split-divider { width: 100%; height: 1px; }
  .split-content { padding: 32px 24px; }
}

/* ---- Characters detail page (char-profiles.html) ---- */
.char-detail-section { padding: 64px 0; background: #120f0f; }
.char-card-full {
  display: flex; gap: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 28px;
  margin-bottom: 24px; transition: border-color .3s;
}
.char-card-full:hover { border-color: var(--theme, #efe353); }
.char-card-full .char-photo { width: 160px; min-width: 160px; height: 190px; border-radius: 10px; overflow: hidden; }
.char-card-full .char-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.char-card-full .char-info h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 8px 0 10px; }
.char-card-full .char-info p  { font-size: .9rem; color: #bbb; line-height: 1.7; margin-bottom: 10px; }
.char-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.char-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 8px;
}
.badge-main    { background: rgba(239,235,83,.12); color: #efe353;  border: 1px solid rgba(239,235,83,.3); }
.badge-support { background: rgba(99,179,237,.12); color: #63b3ed; border: 1px solid rgba(99,179,237,.3); }
.badge-neutral { background: rgba(160,174,192,.1); color: #a0aec0; border: 1px solid rgba(160,174,192,.2); }
.badge-danger  { background: rgba(252,129,74,.1);  color: #fc814a; border: 1px solid rgba(252,129,74,.3); }
.char-traits   { list-style: none; padding: 0; margin: 0; }
.char-traits li { font-size: .83rem; color: #999; display: flex; align-items: flex-start; gap: 7px; margin-bottom: 5px; }
.char-traits li i { color: var(--theme, #efe353); margin-top: 3px; font-size: .78rem; flex-shrink: 0; }
.char-card-mini {
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; overflow: hidden; transition: border-color .3s;
}
.char-card-mini:hover { border-color: var(--theme, #efe353); }
.char-mini-img { height: 160px; overflow: hidden; }
.char-mini-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.char-mini-info { padding: 14px; }
.char-mini-info h4 { font-size: .95rem; font-weight: 700; color: #fff; margin: 6px 0 6px; }
.char-mini-info p  { font-size: .81rem; color: #aaa; line-height: 1.55; margin: 0; }

/* ---- Story/plot page (story-plot.html) ---- */
.story-chapter-item {
  display: flex; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.story-chapter-item:last-child { border-bottom: none; }
.ch-num {
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  color: rgba(239,235,83,.35); min-width: 64px;
  letter-spacing: -.04em; padding-top: 4px;
  font-family: 'Heebo', Arial, sans-serif !important;
}
.ch-body h4 { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.ch-body p  { font-size: .9rem; color: #aaa; line-height: 1.75; margin: 0; }
.story-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(239,235,83,.05); border: 1px solid rgba(239,235,83,.15);
  border-radius: 8px; padding: 16px 18px; margin-top: 28px;
}
.story-note i { color: var(--theme, #efe353); font-size: .95rem; margin-top: 2px; flex-shrink: 0; }
.story-note p { font-size: .81rem; color: #aaa; margin: 0; line-height: 1.6; }

@media (max-width: 991px) {
  .char-card-full { flex-direction: column; }
  .char-card-full .char-photo { width: 100%; height: 220px; }
  .char-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .char-mini-grid { grid-template-columns: 1fr; }
  .ch-num { font-size: 2.5rem; min-width: 48px; }
}

/* ============================================================
   Previous Chapters — banner + split landing + story pyramid
   ============================================================ */

/* "Previous Chapters" callout — full-bleed prominent section */
.prev-chapters-bar {
  background: linear-gradient(135deg, rgba(239,235,83,.08) 0%, rgba(239,235,83,.03) 100%);
  border-top: 3px solid #efe353;
  border-bottom: 1px solid rgba(239,235,83,.2);
  padding: 40px 0;
  position: relative;
}
.prev-chapters-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(239,235,83,.06) 0%, transparent 70%);
  pointer-events: none;
}
.prev-chapters-inner {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; position: relative;
}
.prev-chapters-inner .prev-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(239,235,83,.12); border: 1px solid rgba(239,235,83,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #efe353; flex-shrink: 0;
}
.prev-chapters-inner > div { flex: 1; min-width: 0; }
.prev-chapters-inner strong {
  color: #fff; font-size: 1.15rem; font-weight: 900;
  display: block; margin-bottom: 6px; letter-spacing: -.01em;
}
.prev-chapters-inner span { color: #aaa; font-size: .88rem; line-height: 1.6; }
.prev-chapters-inner .prev-cta {
  white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 10px;
  background: #efe353;
  color: #000 !important;
  padding: 14px 28px; border-radius: 8px;
  font-size: .92rem; font-weight: 900;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(239,235,83,.2);
}
.prev-chapters-inner .prev-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(239,235,83,.35);
}
@media (max-width: 575px) {
  .prev-chapters-bar { padding: 28px 0; }
  .prev-chapters-inner { gap: 16px; }
  .prev-chapters-inner .prev-cta { width: 100%; justify-content: center; }
}

/* Pyramid accordion on story-gta4/5.html */
.pyramid-section { margin-bottom: 12px; }
.pyramid-toggle {
  width: 100%; text-align: right; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  padding: 18px 22px; color: #fff; font-size: .97rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  transition: background .2s, border-color .2s;
}
.pyramid-toggle:hover,
.pyramid-toggle:not(.collapsed) { background: rgba(239,235,83,.06); border-color: rgba(239,235,83,.3); }
.pyramid-toggle .ptog-icon { color: var(--theme, #efe353); font-size: .9rem; transition: transform .3s; }
/* fix: icon sits flush against text in RTL — force a gap */
.pyramid-toggle > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.pyramid-toggle:not(.collapsed) .ptog-icon { transform: rotate(180deg); }
.pyramid-toggle .ptog-meta {
  font-size: .78rem; font-weight: 500; color: #666;
  margin-right: 12px; white-space: nowrap;
}
.pyramid-body { padding: 28px 4px 12px; }
.pyramid-body p { font-size: .9rem; color: #bbb; line-height: 1.8; margin-bottom: 14px; }
.pyramid-body .story-chapter-item { padding: 22px 0; }

/* Prev-chapters split landing (reuses split-landing CSS; just override colors) */
.prev-panel-gta4 { background: #0d1520; }
.prev-panel-gta5 { background: #1a1008; }

/* list-items SVG + span spacing */
.list-items li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.list-items li svg {
  flex-shrink: 0;
  margin-top: 4px;
}
.list-items li span {
  flex: 1;
}

/* theme-btn spacing inside about-content */
.about-content .theme-btn,
.about-content a.theme-btn {
  margin-top: 32px;
  display: inline-flex;
}

/* RTL accordion — text right, icon left */
.accordion-button {
  direction: rtl !important;
  text-align: right !important;
}
.accordion-button::after {
  margin-left: auto !important;
  margin-right: 0 !important;
  flex-shrink: 0;
}

/* Footer layout fix for RTL */
.footer-widgets-wrapper .list-items li a {
  padding-right: 0;
}
.footer-bottom-wrapper {
  direction: rtl;
}
