/* ✅ CLAUDE FTP SYNC TEST SUCCESSFUL */
/* ===== Heebo fallback font to minimize CLS ===== */
@font-face {
  font-family: 'Heebo-fallback';
  src: local('Arial');
  ascent-override: 92.7%;
  descent-override: 24.4%;
  line-gap-override: 0%;
  size-adjust: 107.1%;
}
/* ===== Self-hosted Heebo font (no external request) ===== */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/heebo-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/heebo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --navy: #1B3A5C;
  --navy-dark: #142d48;
  --navy-light: #224a73;
  --cream: #2563EB;
  --cream-dark: #1D4ED8;
  --cream-light: #EFF6FF;
  --white: #ffffff;
  --bg: #F8FAFC;
  --bg-alt: #EFF6FF;
  --text-dark: #1e293b;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --border: #DBEAFE;
  --border-light: #EFF6FF;
  --radius: 10px;
  --transition: .3s ease; 
  --max-w: 1140px;
  --shadow-sm: 0 2px 8px rgba(27,58,92,.06);
  --shadow-md: 0 8px 30px rgba(27,58,92,.08);
  --shadow-lg: 0 16px 50px rgba(27,58,92,.12);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  overflow-x: hidden;
  font-family: 'Heebo', 'Heebo-fallback', sans-serif;
  font-synthesis: none;
  direction: rtl;
  text-align: right;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
ul, li { list-style: none; list-style-type: none; }
li { display: block; }
li::marker, ul::marker { content: none !important; display: none !important; font-size: 0 !important; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.1);
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .logo-title {
  font-family: 'Heebo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .5px;
}

.logo-text .logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav { display: flex; align-items: center; justify-content: center; gap: 0; flex: 1; }

.nav a {
  padding: 22px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 16px; left: 16px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

/* WordPress menu reset */
.nav ul.menu,
.nav > ul { display: flex; align-items: center; gap: 0; list-style: none !important; margin: 0; padding: 0; }
.nav ul.menu li,
.nav > ul > li,
.nav > li { list-style: none !important; list-style-type: none !important; margin: 0; padding: 0; }
.nav > li > a,
.nav ul.menu li a,
.nav > ul > li > a {
  padding: 22px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
  display: block;
  text-decoration: none;
}
.nav > li > a:hover,
.nav ul.menu li a:hover,
.nav > ul > li > a:hover { color: var(--navy); }
.nav > li > a::after,
.nav ul.menu li a::after,
.nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 16px; left: 16px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav > li > a:hover::after,
.nav ul.menu li a:hover::after,
.nav > ul > li > a:hover::after { transform: scaleX(1); }
.nav > li.current-menu-item > a,
.nav ul.menu li.current-menu-item > a,
.nav ul.menu li.current_page_item > a { color: var(--navy); }
.nav > li.current-menu-item > a::after,
.nav ul.menu li.current-menu-item > a::after,
.nav ul.menu li.current_page_item > a::after { transform: scaleX(1); }

/* ===== Dropdown submenu ===== */
.nav .menu-item-has-children,
.nav > ul > li.menu-item-has-children { position: relative !important; }

.nav .menu-item-has-children > a::before,
.nav > ul > li.menu-item-has-children > a::before {
  content: ' \25BE'; /* ▾ */
  font-size: 11px;
  margin-right: 4px;
  display: inline-block;
}

/* Hide mobile arrow toggle on desktop */
.submenu-arrow { display: none; }

.nav .sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  list-style: none;
  margin: 0 !important;
  padding: 6px 0 !important;
  z-index: 9999;
  direction: rtl;
}

/* Desktop only: hover opens submenu */
@media (hover: hover) {
  .nav .menu-item-has-children:hover > .sub-menu { display: block !important; }
}
/* Both: .open class opens submenu */
.nav .menu-item-has-children.open > .sub-menu { display: block !important; }

.nav .sub-menu li { display: block !important; }

.nav .sub-menu li a {
  display: block !important;
  padding: 10px 18px !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  transition: background .15s, color .15s;
  border-bottom: none !important;
}

.nav .sub-menu li a:hover { background: var(--bg-light); color: var(--navy); }
.nav .sub-menu li a::after { display: none !important; }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy-dark) !important; }

/* Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 28px; height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  filter: brightness(.4) contrast(1.1) saturate(.9);
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,58,92,.6) 0%, rgba(20,45,72,.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  min-height: 380px;
}

.hero-content h1 {
  font-family: 'Heebo', 'Heebo-fallback', sans-serif;
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,.3);
}

.hero-content h2 {
  font-family: 'Heebo', 'Heebo-fallback', sans-serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}

.hero-tagline {
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-tagline span {
  margin: 0 10px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-cream {
  background: var(--cream);
  color: var(--white);
}
.btn-cream:hover { background: var(--cream-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-black {
  background: var(--navy) !important;
  color: var(--white) !important;
  border: 2px solid var(--navy);
}
.btn-black:hover { background: var(--navy-dark) !important; border-color: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hero .btn-black {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.hero .btn-black:hover { background: rgba(255,255,255,.25); }

.btn-custom {
  border: 2px solid transparent;
}
.btn-custom:hover { opacity:.85; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== CONSULTATION BAR ===== */
.consult-bar {
  position: relative;
  z-index: 10;
  margin-top: -30px;
  margin-left: 40px;
  margin-right: 40px;
  min-height: 160px;
  background: var(--navy);
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.consult-bar h3 {
  font-family: 'Heebo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.consult-form {
  display: flex;
  gap: 12px;
  max-width: 750px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.consult-form input {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  direction: rtl;
  background: rgba(255,255,255,.1);
  color: var(--white);
}

.consult-form input::placeholder { color: rgba(255,255,255,.6); }
.consult-form input:focus { outline: none; border-color: var(--cream); background: rgba(255,255,255,.15); }

.consult-form button {
  padding: 14px 30px;
  background: var(--cream);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.consult-form button:hover { background: var(--cream-dark); transform: translateY(-1px); }
.consult-form .privacy-label { width: 100%; flex: none; justify-content: center; }

/* ===== PILLARS ===== */
.pillars {
  padding: 60px 0;
  background: var(--white);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  padding: 40px 24px 32px;
  transition: var(--transition);
  border-radius: 12px;
}

.pillar:hover {
  border-color: var(--cream);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--navy);
  background: var(--cream-light);
  border: 2px solid var(--cream);
  border-radius: 50%;
}

.pillar h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  font-weight: 400;
}

/* ===== ABOUT ===== */
.about-section {
  padding: 80px 0;
  background: var(--bg);
}

/* 2-column about layout */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-col-img {
  order: 0;
}

.about-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  box-shadow: var(--shadow-md);
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 2px dashed var(--cream);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 22px;
  cursor: pointer;
  gap: 12px;
}

.about-img-placeholder span {
  font-size: 14px;
  font-weight: 600;
}

.about-col-text {
  order: 1;
}

.about-heading {
  font-family: 'Heebo', sans-serif;
  font-size: 42px;
  font-weight: 900;
  text-align: right;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
  -webkit-text-stroke: 0;
}

.about-text {
  max-width: 100%;
  margin: 0;
  text-align: right;
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.9;
}

.about-text p { margin-bottom: 16px; }

@media (max-width: 768px) {
  .about-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-col-img { order: 1; }
  .about-col-text { order: 0; }
}

.about-cta {
  text-align: center;
  margin-top: 30px;
}

/* ===== GENERIC 2-COLUMN SECTION LAYOUT ===== */
.ab-2col > .container,
.about-section.ab-2col > .container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 60px;
  align-items: center;
}
.ab-2col-text { min-width: 0; }
.ab-2col-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: center / cover no-repeat #e2e8f0;
  box-shadow: var(--shadow-md);
  position: relative;
}
/* Flip: swap image and text sides */
.ab-2col-flip .ab-2col-img { order: 0 !important; }
.ab-2col-flip .ab-2col-text { order: 1 !important; }
/* about-section specific flip */
.about-section.ab-2col-flip .about-col-img { order: 1 !important; }
.about-section.ab-2col-flip .about-col-text { order: 0 !important; }
/* When blocks are inserted inside the image column, let it grow */
.ab-2col-img:not(:empty) { aspect-ratio: unset; min-height: 120px; padding: 20px; }
.ab-2col-img:has(iframe), .ab-2col-img:has(video) { background: none !important; padding: 0 !important; min-height: unset; aspect-ratio: unset !important; box-shadow: none; }
@media (max-width: 768px) {
  .ab-2col > .container { grid-template-columns: 1fr !important; gap: 30px; }
}

/* ===== CATEGORIES GRID ===== */
.categories-section {
  padding: 60px 0;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #1B3A5C, #2a5580);
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: var(--transition);
}

.category-card:hover img { transform: scale(1.06); }

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(27,58,92,.8) 0%, rgba(27,58,92,.15) 50%, transparent 100%);
  pointer-events: none;
}

.category-card h3 {
  position: absolute;
  bottom: 20px;
  right: 0; left: 0;
  text-align: center;
  z-index: 3;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.category-card .img-placeholder {
  position: absolute;
  inset: 0;
}
.category-card-desc {
  position: absolute;
  bottom: 50px;
  right: 0; left: 0;
  text-align: center;
  z-index: 2;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  padding: 0 12px;
  margin: 0;
}

/* ===== STONE TYPES ===== */
.stones-section {
  padding: 60px 0;
  background: var(--bg);
}

.stones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stone-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.stone-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stone-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: var(--transition);
}

.stone-card:hover img { transform: scale(1.06); }

.stone-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27,58,92,.7) 0%, transparent 60%);
}

.stone-card h4 {
  position: absolute;
  bottom: 12px;
  right: 0; left: 0;
  text-align: center;
  z-index: 2;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

/* ===== SERVICES ===== */
.services-section {
  padding: 80px 0;
  background: var(--navy);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.services-grid.ab-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid rgba(255,255,255,.12);
  transition: var(--transition);
  background: rgba(255,255,255,.05);
  border-radius: 12px;
}

.service-card:hover {
  border-color: var(--cream);
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

a.service-card-link { text-decoration: none; color: inherit; display: block; cursor: pointer; }

.service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--cream);
  border: 2px solid rgba(232,209,189,.3);
  border-radius: 50%;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.service-card h3, .service-card .service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: 'Heebo', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
  -webkit-text-stroke: 0;
}

.services-section .section-title h2 {
  color: var(--white);
}

.section-title p {
  font-size: 17px;
  color: var(--text-muted);
}

.services-section .section-title p {
  color: rgba(255,255,255,.6);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 70px 0;
  background: var(--bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px;
  position: relative;
  transition: var(--transition);
  border-radius: 12px;
}

.testimonial:hover {
  border-color: var(--cream);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial::before {
  content: '\201D';
  font-family: 'Heebo', sans-serif;
  font-size: 80px;
  color: var(--cream);
  position: absolute;
  top: 5px; right: 18px;
  line-height: 1;
  opacity: .3;
}

.stars { color: #f5a623; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }

.testimonial p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author { font-weight: 700; color: var(--navy); font-size: 14px; }

/* ===== CONTACT ===== */
.contact-section {
  padding: 70px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3, .contact-info .contact-section-title {
  font-family: 'Heebo', sans-serif;
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 24px;
  font-weight: 700;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px;
  transition: var(--transition);
  border-radius: 8px;
}

.contact-item:hover { background: var(--bg); }

.contact-icon {
  width: 48px; height: 48px;
  background: var(--cream-light);
  border: 2px solid var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--navy);
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.contact-item h4, .contact-item .contact-label { font-size: 15px; color: var(--text-dark); margin-bottom: 2px; font-weight: 700; }
.contact-item p, .contact-item a { font-size: 15px; color: var(--text-body); }
.contact-item a:hover { color: var(--navy); }

/* Contact Form */
.contact-form {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}

.form-group { margin-bottom: 14px; }
.form-group-privacy { margin-bottom: 18px; }
.privacy-label { display: flex !important; align-items: center; gap: 10px; font-size: 14px; color: var(--text-body); cursor: pointer; }
.privacy-label input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: var(--cream); }
.privacy-label a { color: var(--cream); text-decoration: underline; }

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  direction: rtl;
  transition: var(--transition);
  color: var(--white);
}

/* Hide native select — replaced by custom JS dropdown */
.form-group select { display: none; }

/* Custom dropdown */
.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-display {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  direction: rtl;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  transition: border-color .3s;
}
.custom-select-display:hover,
.custom-select-wrapper.open .custom-select-display { border-color: var(--blue); }
.custom-select-arrow { font-size: 11px; transition: transform .2s; flex-shrink: 0; opacity: .7; }
.custom-select-wrapper.open .custom-select-arrow { transform: rotate(180deg); }
.custom-select-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  background: #1b3a5c;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 9999;
  max-height: 230px;
  overflow-y: auto;
  display: none;
  direction: rtl;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.custom-select-wrapper.open .custom-select-list { display: block; }
.custom-select-list li { padding: 10px 14px; color: #fff; cursor: pointer; font-size: 15px; transition: background .15s; }
.custom-select-list li:hover { background: rgba(255,255,255,.13); }
.custom-select-list li.placeholder { color: rgba(255,255,255,.45); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.5); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cream);
  background: rgba(255,255,255,.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--cream);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.form-submit:hover { background: var(--cream-dark); transform: translateY(-1px); }

/* ===== FAQ ===== */
.faq-section {
  padding: 70px 0;
  background: var(--bg);
}

.faq-list { max-width: 100% !important; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
  transition: var(--transition);
  border-radius: 8px;
  background: var(--white);
}

.faq-item.active { border-color: var(--navy); box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: var(--faq-q-bg, var(--white));
  border: none;
  text-align: right;
  font-size: var(--faq-q-size, 16px);
  font-weight: 600;
  color: var(--faq-q-color, var(--text-dark));
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: var(--transition);
  gap: 14px;
}

.faq-question:hover { background: var(--faq-q-bg, var(--bg)); filter: brightness(0.97); }

.faq-question .faq-q-text { flex: 1; }
.faq-question .arrow { font-size: 12px; color: var(--text-muted); transition: var(--transition); }

.faq-item.active .faq-question { background: var(--faq-q-bg, var(--cream-light)); color: var(--faq-q-color, var(--navy)); }
.faq-item.active .arrow { transform: rotate(180deg); color: var(--faq-q-color, var(--navy)); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }

.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: var(--faq-a-size, 15px);
  color: var(--faq-a-color, var(--text-body));
  line-height: 1.85;
  background: var(--faq-a-bg, transparent);
}

/* FAQ editor overrides */
body.ab-fe-on .faq-item { overflow: visible !important; position: relative; }
body.ab-fe-on .faq-item:hover .ab-faq-del-btn { opacity: 1; }
body.ab-fe-on .faq-question { cursor: text; }
.faq-item.ui-sortable-helper { box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important; opacity: 0.9; }
.faq-item.ui-sortable-placeholder,
.faq-sortable-placeholder { background: #e0f2fe !important; border: 2px dashed #3b82f6 !important; visibility: visible !important; min-height: 60px; border-radius: 8px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover;
  filter: brightness(.35) contrast(1.1) saturate(.7);
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,58,92,.65) 0%, rgba(20,45,72,.8) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 50px 20px;
}

.page-hero h1, .page-hero h2 {
  font-family: 'Heebo', sans-serif;
  font-size: 60px;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.page-hero p {
  font-size: 18px;
  color: var(--cream);
  margin-top: 10px;
}

/* ===== SERVICES DETAIL (inner page) ===== */
.services-detail { padding: 60px 0; background: var(--bg); }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }
a.service-block-link { text-decoration: none; color: inherit; display: block; }
a.service-block-link:hover .service-block { box-shadow: var(--shadow-md); background: rgba(var(--primary-rgb, 6,110,171), 0.03); }
.service-block-linked { transition: box-shadow .25s, background .25s; cursor: pointer; }
.service-block:nth-child(even) { direction: ltr; }
.service-block:nth-child(even) .service-block-text { direction: rtl; text-align: right; }

.service-block-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-block-text h3 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-block-text p {
  color: var(--text-body);
  line-height: 1.85;
  font-size: 15px;
}

.about-list { margin-top: 16px; }

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-dark);
}

.about-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  font-weight: 800;
}

/* ===== CATALOG GRID ===== */
.catalog-content { padding: 60px 0; background: var(--bg); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.catalog-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  box-shadow: var(--shadow-sm);
}

.catalog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.catalog-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.catalog-card:hover img { transform: scale(1.06); }

.catalog-card .img-placeholder {
  position: absolute;
  inset: 0;
}

.catalog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27,58,92,.8) 0%, transparent 50%);
  pointer-events: none;
}

.catalog-card h4 {
  position: absolute;
  bottom: 16px;
  right: 0; left: 0;
  text-align: center;
  z-index: 2;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.catalog-card-desc {
  position: absolute;
  bottom: 44px;
  right: 0; left: 0;
  text-align: center;
  z-index: 2;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  padding: 0 10px;
  margin: 0;
}

/* ===== PRIVACY ===== */
.privacy-hero {
  padding: 60px 20px 30px;
  text-align: center;
  background: var(--white);
}

.privacy-hero h1 {
  font-family: 'Heebo', sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.privacy-content {
  padding: 30px 20px 60px;
  max-width: 860px;
  margin: 0 auto;
}

.privacy-content h3 {
  font-size: 22px;
  color: var(--navy);
  margin: 32px 0 12px;
  font-weight: 700;
}

.privacy-content h3:first-of-type {
  margin-top: 10px;
}

.privacy-content p {
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 12px;
  font-size: 15px;
}

.privacy-content a { color: var(--navy); transition: var(--transition); font-weight: 600; }
.privacy-content a:hover { color: var(--navy-light); }

.privacy-content + .consult-bar {
  margin-top: 0;
}

@media (max-width: 768px) {
  .privacy-hero h1 { font-size: 44px; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,58,92,.95);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 3px solid rgba(232,209,189,.2);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transition: opacity .3s ease;
}

.lightbox.active .lightbox-img {
  animation: lb-zoom-in .4s cubic-bezier(.25,.46,.45,.94);
}

@keyframes lb-zoom-in {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.lightbox-close:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  letter-spacing: 2px;
  background: rgba(0,0,0,.3);
  padding: 6px 18px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .lightbox-prev { right: 10px; }
  .lightbox-next { left: 10px; }
  .lightbox-close { top: 12px; left: 12px; width: 40px; height: 40px; font-size: 16px; }
  .lightbox-img { max-width: 95vw; max-height: 80vh; border-width: 2px; }
}

/* ===== BLOG ===== */
.blog-section {
  padding: 60px 0;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  border-radius: 12px;
}

.blog-card:hover {
  border-color: var(--cream);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-img a { pointer-events: none; }
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 2;
}

.blog-card-body {
  padding: 22px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-meta i {
  margin-left: 5px;
  color: var(--navy);
  font-size: 12px;
}

.blog-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
  transition: var(--transition);
}

.blog-card:hover .blog-card-body h3 {
  color: var(--navy);
}

.blog-card-body p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}

.blog-read-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.blog-read-more:hover {
  color: var(--navy-light);
  gap: 10px;
}

/* Blog Featured Post */
.blog-featured {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.blog-featured:hover {
  border-color: var(--cream);
  box-shadow: var(--shadow-md);
}

.blog-featured-img {
  flex: 0 0 50%;
  min-height: 320px;
  overflow: hidden;
  display: block;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-featured:hover .blog-featured-img img {
  transform: scale(1.04);
}

.blog-featured-body {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-body h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.blog-featured-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.blog-featured-body h3 a:hover {
  color: var(--navy);
}

.blog-featured-body p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 18px;
}

.blog-tag-inline {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* ===== BLOG ARTICLE PAGE ===== */
.blog-article-hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.blog-article-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.35) contrast(1.1);
}

.blog-article-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,58,92,.6) 0%, rgba(20,45,72,.8) 100%);
}

.blog-article-hero .container {
  position: relative;
  z-index: 2;
  padding: 60px 20px 40px;
  max-width: 860px;
}

.blog-article-hero .blog-tag {
  position: static;
  display: block;
  margin-bottom: 16px;
  width: auto !important;
  max-width: fit-content !important;
  margin-left: auto;
  margin-right: auto;
}

.blog-article-hero h1 {
  font-family: 'Heebo', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}

.blog-article-hero .blog-meta {
  justify-content: center;
  color: rgba(255,255,255,.7);
  margin-bottom: 0;
}

.blog-article-hero .blog-meta i {
  color: var(--cream);
}

.blog-article-content {
  padding: 50px 0 60px;
}
.blog-article-content > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-article-content h2 {
  font-family: 'Heebo', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 16px;
  line-height: 1.4;
}

.blog-article-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}

.blog-article-content p {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.95;
  margin-bottom: 18px;
}

.blog-article-content ul,
.blog-article-content ol {
  margin: 16px 0 20px 0;
  padding-right: 24px;
  list-style: initial;
}

.blog-article-content ul li,
.blog-article-content ol li {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 8px;
}

.blog-article-content blockquote {
  border-right: 4px solid var(--navy);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--cream-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.8;
}

.blog-article-content .article-img {
  margin: 0 0 36px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(27,58,92,.14);
  background: var(--bg);
  line-height: 0;
  border: 4px solid var(--navy);
  outline: 1px solid var(--navy);
  position: relative;
}

.blog-article-content .article-img img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
  transition: transform .4s ease;
}

.blog-article-content .article-img:hover img {
  transform: scale(1.02);
}

.blog-article-content .article-img figcaption {
  padding: 10px 16px;
  background: var(--bg);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.blog-article-content strong {
  color: var(--navy);
  font-weight: 700;
}

/* Article Author / Share */
.article-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-avatar {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}

.article-author-info span { display: block; }
.article-author-info .author-name { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.article-author-info .author-role { font-size: 13px; color: var(--text-muted); }

/* Author Box */
.ab-author-box {
  margin: 40px 0;
  border-radius: 16px;
  position: relative;
}
.ab-author-box > .container {
  padding-top: 40px;
  padding-bottom: 40px;
}
.ab-author-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  direction: rtl;
}
.ab-author-img-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 200px;
  border: 2px solid;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.ab-author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-author-content {
  flex: 1;
}
.ab-author-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}
.ab-author-role {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.ab-author-desc {
  font-size: 15px;
  line-height: 1.8;
  opacity: .8;
  margin: 0;
}
@media (max-width: 768px) {
  .ab-author-inner { flex-direction: row; text-align: right; gap: 20px; }
  .ab-author-img-wrap { width: 100px; height: 130px; flex-shrink: 0; }
  .ab-author-box > .container { padding-top: 24px; padding-bottom: 24px; }
}

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-share span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.article-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid var(--border);
  color: var(--text-body);
  transition: var(--transition);
}

.article-share a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Related Articles */
.related-articles {
  padding: 60px 0;
  background: var(--bg);
}

.related-articles .section-title {
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-breadcrumb {
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-muted);
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-breadcrumb a {
  color: var(--navy);
  font-weight: 600;
  transition: var(--transition);
}

.blog-breadcrumb a:hover { color: var(--navy-light); }
.blog-breadcrumb span { margin: 0 8px; }

.page-breadcrumb {
  padding: 0 0 12px 0;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  position: relative;
  z-index: 2;
}
.page-breadcrumb a {
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
}
.page-breadcrumb a:hover { opacity: .8; }
.page-breadcrumb span { margin: 0 6px; }

/* Breadcrumb at bottom of hero */
.page-hero--bc-bottom .container {
  display: flex;
  flex-direction: column;
}
.page-hero--bc-bottom .page-breadcrumb {
  order: 10;
  padding: 14px 0 0;
}

@media (max-width: 768px) {
  .blog-article-hero h1 { font-size: 32px; }
  .blog-article-hero { min-height: 280px; }
  .blog-article-content h2 { font-size: 24px; }
  .related-grid, .ab-recent-articles__grid { grid-template-columns: 1fr !important; }
  .article-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { flex-direction: column; }
  .blog-featured-img { flex: none; min-height: 260px; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-img { height: 200px; }
  .blog-featured-img { min-height: 220px; }
  .blog-featured-body { padding: 24px; }
  .blog-featured-body h3 { font-size: 20px; }
}

/* Blog card links */
.blog-card-body h3 a { color: inherit; text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--navy); }

/* Pagination */
.pagination { text-align: center; margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.pagination .page-numbers.dots { background: transparent; border: none; }

/* ===== CATEGORY DETAIL PAGE ===== */
.category-hero {
  padding: 50px 20px 30px;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.category-hero h1 {
  font-family: 'Heebo', sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}

.category-desc {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.9;
}

.category-desc span {
  color: var(--navy);
  font-weight: 600;
}

.category-cta {
  text-align: center;
  margin-bottom: 10px;
}

.category-cta .btn {
  font-size: 20px;
  padding: 16px 40px;
}

.category-gallery {
  padding: 40px 0 60px;
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.category-info {
  padding: 50px 0;
  background: var(--white);
}

.category-info .container {
  max-width: 900px;
}

.category-info h2 {
  font-family: 'Heebo', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}

.category-info p {
  color: var(--text-body);
  line-height: 1.85;
  font-size: 16px;
  margin-bottom: 14px;
}

.category-info ul {
  list-style: none;
  margin: 16px 0;
}

.category-info ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-dark);
}

.category-info ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .category-hero h1 { font-size: 44px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-item { aspect-ratio: 4/3; }
  .category-info h2 { font-size: 28px; }
  .category-info .container { padding: 0 16px; }
  .category-info p, .category-info h2 { word-break: break-word; overflow-wrap: break-word; }
}

/* ===== FOOTER CONTACT STRIP ===== */
.footer-contact {
  background: var(--navy);
  padding: 40px 0;
}

.footer-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

.footer-contact-col {
  text-align: center;
}

.footer-contact-col h3 {
  font-family: 'Heebo', sans-serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}

.fc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  justify-content: center;
}

.fc-icon {
  width: 42px;
  height: 42px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--cream);
  flex-shrink: 0;
  transition: var(--transition);
}

.fc-item:hover .fc-icon {
  background: var(--cream);
  color: var(--navy);
}

.fc-item a, .fc-item span {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}

.fc-item a:hover { color: var(--cream); }

.fc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}

.fc-form input {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  direction: rtl;
  color: var(--white);
  transition: var(--transition);
}

.fc-form input::placeholder { color: rgba(255,255,255,.5); }
.fc-form input:focus { outline: none; border-color: var(--cream); }

.fc-form button {
  padding: 12px;
  background: var(--cream);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.fc-form button:hover { background: var(--cream-dark); }

@media (max-width: 768px) {
  .footer-contact-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 50px 0;
  background: var(--cream-light);
  text-align: center;
}

.cta-section h2 {
  font-family: 'Heebo', sans-serif;
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 10px;
}

.cta-section p { color: var(--text-body); margin-bottom: 24px; }

.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btns .btn-black { color: var(--white) !important; }
.cta-btns .btn-cream { color: var(--white) !important; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid-1col { grid-template-columns: 1fr; }
.footer-grid-2col { grid-template-columns: repeat(2, 1fr); }
.footer-grid-3col { grid-template-columns: repeat(3, 1fr); }
.footer-grid-4col { grid-template-columns: repeat(4, 1fr); }
.footer-grid-5col { grid-template-columns: repeat(5, 1fr); }

.footer-col h4, .footer-col h3, .footer-col h2, .footer-col p.footer-col-title { color: var(--cream); font-size: 17px; margin-bottom: 14px; font-weight: 700; }
.footer-col p { font-size: 14px; line-height: 1.8; opacity: .7; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 14px; opacity: .6; transition: var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: .45;
}

/* Gallery blocks */
.ab-gallery-item { position: relative; overflow: hidden; border-radius: 8px; }
.ab-gallery-item img { display: block; transition: transform .3s; }
.ab-gallery-item:hover img { transform: scale(1.03); }
.ab-gallery-grid .ab-gallery-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ab-gallery-masonry .ab-gallery-items { columns: 3; column-gap: 10px; }
.ab-gallery-masonry .ab-gallery-item { break-inside: avoid; margin-bottom: 10px; }
.ab-gallery-carousel .ab-gallery-items { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 10px; scrollbar-width: thin; }
.ab-gallery-carousel .ab-gallery-item { flex: 0 0 300px; scroll-snap-align: start; }
.ab-gallery-carousel .ab-gallery-items::-webkit-scrollbar { height: 6px; }
.ab-gallery-carousel .ab-gallery-items::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 3px; }
@media (max-width: 768px) {
  .ab-gallery-grid .ab-gallery-items { grid-template-columns: 1fr !important; }
  .ab-gallery-masonry .ab-gallery-items { columns: 1 !important; }
  .ab-gallery-carousel .ab-gallery-item { flex: 0 0 250px; }
}

.footer-social {
  padding: 16px 0;
}
.footer-social--center { text-align: center; }
.footer-social--right { text-align: right; }
.footer-social--left { text-align: left; }
.form-intro { color: var(--text-muted); margin-bottom: 20px; font-size: 14px; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 16px;
  margin: 0 5px;
  transition: all .3s;
}
.footer-social-link:hover {
  transform: translateY(-3px);
  color: #fff;
}
.footer-social-link.social-facebook:hover { background: #1877f2; }
.footer-social-link.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social-link.social-tiktok:hover { background: #010101; }
.footer-social-link.social-youtube:hover { background: #ff0000; }
.footer-social-link.social-linkedin:hover { background: #0a66c2; }
.footer-social-link.social-twitter:hover { background: #1da1f2; }

/* ===== FOOTER ICONS ===== */
.footer-col ul li i { margin-left: 8px; color: var(--cream); font-size: 13px; }

/* ===== PLACEHOLDERS ===== */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #e8e4e0, #d8d4d0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,.08);
  font-size: 40px;
}

/* ===== COUNTER ===== */
.counter-section {
  padding: 40px 0;
  background: var(--navy);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.counter-item h3, .counter-item .counter-num {
  font-family: 'Heebo', sans-serif;
  font-size: 44px;
  color: var(--cream);
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.1;
}

.counter-item p { font-size: 15px; color: rgba(255,255,255,.65); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 70px; }
  .hero-content h2 { font-size: 50px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .stones-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .services-grid.ab-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .service-block { grid-template-columns: 1fr; }
  .footer-grid,.footer-grid-3col,.footer-grid-4col,.footer-grid-5col { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .about-heading { font-size: 50px; }
  .section-title h2 { font-size: 34px; }
  .consult-bar { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: var(--white);
    flex-direction: column;
    flex: none;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    border-top: 1px solid var(--border-light);
  }

  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--border-light); }
  .nav > li { list-style: none; width: 100%; }
  .nav > li > a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border-light); }
  .nav ul.menu, .nav > ul { flex-direction: column; width: 100%; }
  .nav ul.menu li, .nav > ul > li { width: 100%; }
  .nav ul.menu li a, .nav > ul > li > a { padding: 14px 24px; border-bottom: 1px solid var(--border-light); }
  .nav a::after, .nav > li > a::after { display: none; }
  .nav ul.menu li a::after, .nav > ul > li > a::after { display: none; }
  .nav-cta { padding: 8px 14px !important; font-size: 13px !important; }
  .menu-toggle { display: flex; }

  /* Mobile: separate arrow toggle button for parent items */
  .nav .menu-item-has-children > a::before,
  .nav > ul > li.menu-item-has-children > a::before {
    display: none !important; /* hide old CSS arrow */
  }

  .nav .menu-item-has-children { position: relative !important; }
  .nav .menu-item-has-children > a { padding-left: 56px !important; }

  .submenu-arrow {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 100%;
    background: none;
    border: none;
    border-right: 1px solid rgba(27,58,92,.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #2563EB;
    transition: transform .25s ease, background .2s;
    z-index: 2;
    padding: 0;
  }
  .submenu-arrow:hover, .submenu-arrow:active { background: rgba(37,99,235,.08); }
  .submenu-arrow i { transition: transform .25s ease; }
  .nav .menu-item-has-children.open > .submenu-arrow i {
    transform: rotate(180deg);
  }
  .nav .menu-item-has-children.open > .submenu-arrow {
    color: #1B3A5C;
  }

  /* Mobile submenu: accordion style */
  .nav .sub-menu {
    display: none !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 2px solid rgba(27,58,92,.15) !important;
    border-radius: 0 !important;
    padding: 4px 0 !important;
    background: #dbeafe !important;
  }
  .nav .menu-item-has-children.open > .sub-menu { display: block !important; }
  .nav .sub-menu li a { padding: 13px 36px; font-size: 14px; color: var(--navy) !important; font-weight: 600; border-bottom: 1px solid rgba(27,58,92,.08) !important; }
  .logo-text .logo-title { font-size: 18px; }
  .logo-text .logo-sub { font-size: 10px; }
  .logo-img { height: 46px; }

  .hero { min-height: 500px; height: 520px; overflow: hidden; padding-bottom: 40px; }
  .hero-content { min-height: 320px; }
  .hero-content h1 { font-size: 48px; }
  .hero-content h2 { font-size: 36px; }
  .hero-tagline { font-size: 16px; }
  .consult-bar { margin: -30px 12px 0; padding: 20px; border-radius: 10px; min-height: 280px; }
  .consult-form { flex-direction: column; }
  .categories-grid, .catalog-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 280px; }
  .stones-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .services-grid.ab-grid-3 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid,.footer-grid-2col,.footer-grid-3col,.footer-grid-4col,.footer-grid-5col { grid-template-columns: 1fr !important; }
  .about-heading { font-size: 36px; }
  .section-title h2 { font-size: 28px; }
  .page-hero h1, .page-hero h2 { font-size: 38px; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item h3, .counter-item .counter-num { font-size: 34px; }
}

@media (max-width: 480px) {
  .hero { height: 480px; }
  .hero-content h1 { font-size: 36px; }
  .hero-content h2 { font-size: 28px; }
  .hero-btns { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .hero-btns .btn { flex: 0 0 auto; padding: 10px 18px; font-size: 15px; justify-content: center; }
  .page-hero h1, .page-hero h2 { font-size: 30px; }
  .stones-grid { grid-template-columns: 1fr; }
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}

.preloader-text {
  font-family: 'Heebo', sans-serif;
  font-size: 20px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy), var(--cream), var(--navy));
  transition: width .1s linear;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  left: 28px;
  width: 46px;
  height: 46px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .35s ease;
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-element {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94);
}

.reveal-element.revealed {
  opacity: 1;
}

/* Section fade-in */
.section-reveal {
  opacity: 0;
  transition: opacity .8s ease;
}

.section-reveal.section-visible {
  opacity: 1;
}

/* ===== SECTION DIVIDERS ===== */
/* ===== STICKY MOBILE CTA ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 997;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.mobile-cta-bar .cta-inner {
  display: flex;
  gap: 10px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.mobile-cta-bar .cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-cta-bar .cta-btn-phone {
  background: var(--navy);
  color: var(--white);
}

.mobile-cta-bar .cta-btn-whatsapp {
  background: #128c4a;
  color: #fff;
}

/* ===== LAZY LOAD ===== */
img[data-src] {
  opacity: 0;
  transition: opacity .4s ease;
}

img.lazy-loaded {
  opacity: 1;
}

/* ===== RESPONSIVE: mobile CTA bar + adjust bottom spacing ===== */
@media (max-width: 768px) {
  .mobile-cta-bar { display: block; }

  .footer { padding-bottom: 70px; }

  .phone-float { bottom: 80px; left: 100px; }

  .whatsapp-float { bottom: 80px; }

  .back-to-top { bottom: 150px; }
}

/* ===== Block Editor: base block styles ===== */
.ab-block {
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  .ab-block { padding-left: 16px; padding-right: 16px; }
}

/* ===== Block Editor: column grids (must be in main CSS for saved blocks) ===== */
.ab-block-grid-2col, .ab-block-grid-3col, .ab-block-grid-4col {
  display: grid;
  gap: 24px;
  direction: rtl;
}
.ab-block-grid-2col { grid-template-columns: 1fr 1fr; }
.ab-block-grid-3col { grid-template-columns: 1fr 1fr 1fr; }
.ab-block-grid-4col { grid-template-columns: 1fr 1fr 1fr 1fr; }
.ab-block-grid-2col .ab-block-col,
.ab-block-grid-3col .ab-block-col,
.ab-block-grid-4col .ab-block-col {
  padding: 12px;
  min-height: 60px;
  border-radius: 8px;
}
.ab-block-col > p[style*="color:#94a3b8"] {
  display: none;
}
@media (max-width: 900px) {
  .ab-block-grid-4col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ab-block-grid-2col, .ab-block-grid-3col, .ab-block-grid-4col {
    grid-template-columns: 1fr;
  }
}

/* Contact Form Block */
.ab-cf-fields { display: flex; flex-direction: column; gap: 16px; }
.ab-cf-form input:focus, .ab-cf-form textarea:focus, .ab-cf-form select:focus {
  outline: none; border-color: #1B3A5C; box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
}
.ab-cf-submit:hover { opacity: 0.9; }
.ab-cf-status.ab-cf-success { color: #16a34a; }
.ab-cf-status.ab-cf-error { color: #ef4444; }

/* Inline form — reuse consult-bar/consult-form styles */
.ab-cf-field-gear, .ab-cf-field-opts, .ab-cf-field-del { display: none; }
.ab-cf-inline .ab-cf-subtitle { display: none; }
.ab-cf-inline .ab-cf-field > label { display: none; }
.ab-cf-inline .consult-form > div { margin-top: 0 !important; }
.ab-cf-inline .consult-form { max-width: 900px; }
.ab-cf-inline .ab-cf-field { background: transparent !important; }
.ab-cf-inline .consult-form input,
.ab-cf-inline .consult-form textarea,
.ab-cf-inline .consult-form select:not(.ab-cf-type-select) {
  background: rgba(255,255,255,.1) !important;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  font-size: 15px !important;
}
.ab-cf-inline .consult-form input::placeholder,
.ab-cf-inline .consult-form textarea::placeholder,
.ab-cf-inline .consult-form select:not(.ab-cf-type-select) { color: rgba(255,255,255,.6) !important; }
.ab-cf-inline .consult-form select:not(.ab-cf-type-select) option { color: #333; background: #fff; }
.consult-form .ab-cf-field { flex: 1; min-width: 140px; }
.consult-form .ab-cf-field input { width: 100%; }
.consult-form .ab-cf-field-submit { flex: 0 0 auto; min-width: auto; }
.consult-form .ab-cf-field-submit .ab-cf-submit {
  padding: 14px 30px; background: var(--cream); border: none; border-radius: 8px;
  font-size: 16px; font-weight: 700; font-family: inherit; color: #fff;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: var(--transition); white-space: nowrap;
}
.consult-form .ab-cf-field-submit .ab-cf-submit:hover { background: var(--cream-dark); transform: translateY(-1px); }
@media (max-width: 768px) {
  .ab-contact-form { padding: 24px 16px !important; margin: 10px 0 !important; border-radius: 12px !important; }
  .ab-contact-form .ab-cf-title { font-size: 20px !important; }
  .ab-contact-form .ab-cf-submit { padding: 12px 24px !important; font-size: 15px !important; }
  .ab-cf-inline.consult-bar { padding: 20px 16px !important; }
  .consult-form .ab-cf-field { min-width: 100%; }
  .consult-form .ab-cf-field-submit { min-width: 100%; }
  .consult-form .ab-cf-field-submit .ab-cf-submit { width: 100%; justify-content: center; }
}

/* ===== Table of Contents (TOC) Block ===== */
.ab-toc {
  background: #f8fafc; border: 1px solid #e2e8f0; border-right: 4px solid #3b82f6;
  border-radius: 12px; padding: 24px 28px; margin: 32px auto;
  font-family: 'Heebo', sans-serif; direction: rtl;
  width: 100%; min-width: 250px; box-sizing: border-box;
  white-space: normal; word-break: normal;
}

/* <details>/<summary> reset */
.ab-toc details {
  border: none; background: none; padding: 0; margin: 0;
  width: 100%; min-width: 0; display: block; white-space: normal;
}
.ab-toc summary {
  list-style: none; display: flex; width: 100%;
  white-space: normal; word-break: normal;
}
.ab-toc summary::-webkit-details-marker { display: none; }

/* Summary row */
.ab-toc-summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; margin-bottom: 0; padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  user-select: none;
}
.ab-toc details:not([open]) .ab-toc-summary { border-bottom: none; padding-bottom: 0; }

.ab-toc-title {
  font-size: 20px; font-weight: 700; color: #1B3A5C; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.ab-toc-title::before {
  content: '\f03a'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 18px; color: #3b82f6;
}

.ab-toc-chevron {
  color: #64748b; font-size: 14px; transition: transform 0.25s ease;
}
.ab-toc details[open] .ab-toc-chevron { transform: rotate(180deg); }

/* Force list numbers back against global resets */
.ab-toc ol { list-style-type: decimal !important; padding-right: 20px !important; margin: 0; }
.ab-toc li { display: list-item !important; }

/* Ultra-specific override for stubborn RTL theme resets */
nav.ab-toc {
    box-sizing: border-box !important;
    min-width: 250px !important;
}
.blog-article-content .ab-toc {
    width: calc(100% - 40px) !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
@media (max-width: 768px) {
    .blog-article-content .ab-toc,
    .blog-article-content nav.ab-toc {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 20px !important;
    }
}
nav.ab-toc details {
    width: 100% !important; box-sizing: border-box !important;
    min-width: 250px !important; text-align: right !important;
}
.ab-block .ab-block-content nav.ab-toc details ol.ab-toc-list {
    list-style-type: decimal !important;
    padding-right: 15px !important;
    list-style-position: inside !important;
    text-align: right !important;
    margin: 10px 0 !important;
}
.ab-block .ab-block-content nav.ab-toc details ol.ab-toc-list li {
    display: list-item !important;
    list-style: inherit !important;
    text-align: right !important;
    margin-bottom: 8px !important;
}

/* TOC list */
.ab-toc .ab-toc-list {
  list-style: none; padding: 0; margin: 12px 0 0 0;
  counter-reset: toc-counter;
}
.ab-toc .ab-toc-list li {
  counter-increment: toc-counter; display: block;
  padding: 0; margin: 0;
}
.ab-toc .ab-toc-list > li {
  padding: 6px 0; border-bottom: 1px solid #f1f5f9;
}
.ab-toc .ab-toc-list > li:last-child { border-bottom: none; }
.ab-toc .ab-toc-list li a {
  color: #2563eb; text-decoration: none; font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: baseline; gap: 8px;
  transition: color 0.2s, padding-right 0.2s;
}
.ab-toc .ab-toc-list li a:hover { color: #1d4ed8; padding-right: 4px; }

/* Numbered style */
.ab-toc ol.ab-toc-list { counter-reset: toc-counter; }
.ab-toc ol.ab-toc-list > li { counter-increment: toc-counter; }
.ab-toc ol.ab-toc-list > li > a::before {
  content: counter(toc-counter) ".";
  color: #3b82f6; font-weight: 700; font-size: 15px; min-width: 22px;
}
/* Bullets style */
.ab-toc ul.ab-toc-list:not(.ab-toc-plain) > li > a::before {
  content: '●'; color: #3b82f6; font-size: 8px;
  position: relative; top: -2px; min-width: 14px;
}
/* Plain style — no markers */
.ab-toc .ab-toc-list.ab-toc-plain li a::before { content: none; }

/* Sub-levels */
.ab-toc .ab-toc-sub {
  list-style: none; padding: 0 20px 0 0; margin: 4px 0 0 0;
  counter-reset: toc-sub-counter;
}
.ab-toc .ab-toc-sub li { counter-increment: toc-sub-counter; }
.ab-toc .ab-toc-sub li a { font-size: 14px; font-weight: 400; color: #475569; }
.ab-toc .ab-toc-sub li a:hover { color: #2563eb; }
.ab-toc ol.ab-toc-list .ab-toc-sub > li > a::before {
  content: counter(toc-counter) "." counter(toc-sub-counter);
  color: #60a5fa; font-weight: 600; font-size: 13px;
}

/* Hide editor-only elements on frontend */
.ab-toc-toolbar, .ab-toc-placeholder { display: none; }

@media (max-width: 768px) {
  .ab-toc { padding: 18px 16px; margin: 20px 0; }
  .ab-toc-title { font-size: 17px; }
  .ab-toc .ab-toc-list li a { font-size: 14px; }
}

/* ============================================
   Recent Articles Block
   ============================================ */
.ab-recent-articles {
  padding: 60px 0;
}
.ab-recent-articles__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1e293b;
}
.ab-recent-articles__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 30px;
}
@media (max-width: 900px) {
  .ab-recent-articles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .ab-recent-articles__grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
}
.ab-recent-articles__card {
  width: 100% !important; max-width: 100% !important;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.ab-recent-articles__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  transform: translateY(-3px);
}
.ab-recent-articles__img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.ab-recent-articles__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.ab-recent-articles__card:hover .ab-recent-articles__img { transform: scale(1.04); }
.ab-recent-articles__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ab-recent-articles__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7c3aed;
  background: #f3f0ff;
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.ab-recent-articles__meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ab-recent-articles__meta i { margin-left: 4px; }
.ab-recent-articles__post-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}
.ab-recent-articles__post-title a { color: #1e293b; text-decoration: none; }
.ab-recent-articles__post-title a:hover { color: #7c3aed; }
.ab-recent-articles__excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.ab-recent-articles__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: gap .2s;
}
.ab-recent-articles__more:hover { gap: 10px; }

/* ===== Post Tables ===== */
.blog-article-content .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,58,92,.08);
}
.blog-article-content .entry-content table thead tr {
  background: var(--navy);
  color: var(--white);
}
.blog-article-content .entry-content table th {
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
}
.blog-article-content .entry-content table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.blog-article-content .entry-content table tr:nth-child(even) td {
  background: var(--bg-alt);
}
.blog-article-content .entry-content table tr:last-child td {
  border-bottom: none;
}
.blog-article-content .entry-content table tr:hover td {
  background: #dbeafe;
}
@media (max-width: 768px) {
  .blog-article-content .entry-content table { display: block; width: 100%; }
  .blog-article-content .entry-content table thead { display: none; }
  .blog-article-content .entry-content table tbody { display: block; }
  .blog-article-content .entry-content table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(27,58,92,.08);
    overflow: hidden;
  }
  .blog-article-content .entry-content table tr:nth-child(even) td { background: var(--white); }
  .blog-article-content .entry-content table tr:nth-child(even) td:first-child { background: var(--navy) !important; color: var(--white) !important; }
  .blog-article-content .entry-content table tr:hover td { background: var(--white); }
  .blog-article-content .entry-content table td {
    display: block;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 18px;
    color: var(--text-dark);
    text-align: right;
    direction: rtl;
  }
  .blog-article-content .entry-content table td:last-child { border-bottom: none; }
  .blog-article-content .entry-content table td::before {
    content: attr(data-label) ":";
    font-weight: 700;
    color: var(--text-dark);
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
  }
  .blog-article-content .entry-content table td:first-child {
    display: block;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    padding: 13px 16px;
  }
  .blog-article-content .entry-content table td:first-child::before { display: none; }
}
