/* ==========================================================================
   FONTS & CUSTOM TYPOGRAPHY (Reference: euro-pass.co.il)
   ========================================================================== */
@font-face {
  font-family: 'ploni';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('ploni-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'ploni';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('ploni-demibold.woff2') format('woff2');
}
@font-face {
  font-family: 'ploni';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('ploni-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'ploni';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('ploni-ultrabold.woff2') format('woff2');
}

/* ==========================================================================
   DESIGN SYSTEM - LUXURY LIGHT (Black, White, Gold, & Deep Red)
   ========================================================================== */

:root {
  --bg-dark: #ffffff;
  --bg-panel: #fcfcfc;
  --bg-input: #f5f5f5;
  --text-main: #141414;
  --text-muted: #4a4a4a;
  --text-dark: #ffffff;
  --accent-gold: #c5a028;
  --accent-gold-hover: #a8841a;
  --accent-red: #8b0000;
  --accent-red-hover: #b30000;
  --border-color: rgba(197, 160, 40, 0.3);
  --border-color-muted: rgba(0, 0, 0, 0.08);
  
  --font-display: 'ploni', 'Alef', sans-serif;
  --font-sans: 'ploni', 'Alef', 'Inter', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  --gold-shadow: 0 4px 20px rgba(197, 160, 40, 0.1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, .logo-name, .footer-logo {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.section-header .sub-title {
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.section-header .title {
  margin-bottom: 1.25rem;
}

.title-divider {
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
  margin: 1.25rem auto;
}

.section-header .description {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-gold {
  display: inline-block;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  border: 1px solid var(--accent-gold);
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: var(--gold-shadow);
  transition: var(--transition-fast);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.05);
  border-color: var(--accent-gold);
}

.btn-full {
  width: 100%;
  text-align: center;
}

.mt-2 {
  margin-top: 1.5rem;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  direction: ltr !important;
  direction: ltr !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.main-header.scroll {
  height: 95px;
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
  display: flex;
  flex-direction: row !important; /* Force Left-to-Right layout on all directions */
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
}

.header-logo-png {
  height: 68px; /* Slightly larger and beautifully balanced now that tagline is removed */
  width: auto;
  display: block;
  filter: none !important; /* Original color of black */
  transition: var(--transition-fast);
}

.logo-area:hover .header-logo-png {
  transform: scale(1.02);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 100%;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  color: #030303 !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Actions: Lang selector + Quick contact */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-bsd {
  position: absolute;
  top: 6px;
  right: 9px;
  z-index: 2;
  color: #5d6570;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0.48;
  white-space: nowrap;
  direction: rtl;
  pointer-events: none;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  color: #c5a028 !important; /* Gold text */
  font-weight: 700; /* Bold */
  padding: 0.5rem 1.4rem;
  border-radius: 30px; /* Highly rounded pill shape */
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  border: 2px solid #c5a028 !important;
  white-space: nowrap;
  font-family: var(--font-sans);
  line-height: 1;
}

.nav-cta-btn:hover {
  background-color: rgba(197, 160, 40, 0.06) !important;
  color: #c5a028 !important;
  border-color: #c5a028 !important;
  transform: scale(1.02);
}

.header-phone-btn, .header-whatsapp-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff !important;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.header-phone-btn svg, 
.header-whatsapp-btn svg {
  color: #ffffff !important;
  display: block;
}

.header-phone-btn svg path {
  stroke: #ffffff !important;
}

.header-whatsapp-btn svg path {
  fill: #ffffff !important;
}

.header-phone-btn {
  background-color: var(--accent-gold);
}

.header-phone-btn:hover {
  background-color: #dcb332;
  transform: scale(1.05);
}

.header-whatsapp-btn {
  background-color: #25D366; /* Native WhatsApp Green */
}

.header-whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .header-phone-btn, .header-whatsapp-btn {
    display: none !important;
  }
  .nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  color: #c5a028 !important; /* Gold text */
  font-weight: 700; /* Bold */
  padding: 0.5rem 1.4rem;
  border-radius: 30px; /* Highly rounded pill shape */
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  border: 2px solid #c5a028 !important;
  white-space: nowrap;
  font-family: var(--font-sans);
  line-height: 1;
}

.nav-cta-btn:hover {
  background-color: #ffffff !important;
  color: #ffffff !important;
  border-color: #c5a028 !important;
  transform: scale(1.02);
}
}

.custom-language-selector {
  display: flex;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color-muted);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  transition: var(--transition-fast);
  opacity: 0.6;
  text-decoration: none;
  color: inherit;
}

.lang-btn:hover, .lang-btn.active {
  opacity: 1;
  background-color: rgba(212, 175, 55, 0.15);
}

.contact-quick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--text-main);
}

.whatsapp-btn-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #25d366;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.whatsapp-btn-header:hover {
  background-color: #128c7e;
  transform: translateY(-1px);
}

/* Hamburger Menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.05) !important;
  border: 1px solid var(--accent-gold) !important;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(212, 175, 55, 0.15) !important;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background-color: var(--accent-gold) !important;
  transition: var(--transition-fast);
}

/* ==========================================================================
   SECTION 1: HERO BANNER
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  margin-top: 0;
  padding-top: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('hero5.png') !important;
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  overflow: hidden;
  direction: rtl;
}

.hero-center-container {
  width: 100%;
  max-width: 840px; /* Leaves side space for the columns */
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}



.hero-header-text {
  margin-bottom: 1.5rem;
}

.hero-main-title {
  font-family: 'ploni', sans-serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-name-title {
  font-family: 'ploni', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-tagline-text {
  font-family: 'ploni', sans-serif;
  font-size: 1.35rem;
  color: #f3cf65; /* Gold tagline */
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.hero-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;
  margin: 1.5rem 0 2.5rem 0;
  gap: 1rem;
}

.hero-gold-divider .divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
  flex-grow: 1;
}

.hero-gold-divider .divider-diamond {
  color: #d4af37;
  font-size: 0.8rem;
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  text-align: right; /* RTL alignment */
}

/* LTR layout alignment override */
body.translated-ltr .hero-features-list {
  text-align: left !important;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 0.75rem 0 !important;
  box-shadow: none !important;
  width: 100%;
}

.hero-feature-item:hover {
  transform: translateY(-2px);
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-right: none !important;
  border-left: none !important;
  box-shadow: none !important;
}

.feature-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.feature-icon-circle .gold-icon {
  width: 22px;
  height: 22px;
  color: #f3cf65;
}

.feature-text {
  flex-grow: 1;
}

.feature-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin: 0;
}

.hero-cta-btn-wrapper {
  margin-top: 1rem;
}

.hero-gold-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: var(--accent-gold);
  color: #030303;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 0.8rem 2.2rem 0.8rem 1rem; /* More padding on right (start), less on left (icon) */
  border-radius: 50px;
  transition: var(--transition-medium);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.hero-gold-pill-btn:hover {
  background-color: #e5c04f;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
  color: #030303;
}

.hero-gold-pill-btn .btn-arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #ffffff;
  border-radius: 50%;
  color: var(--accent-gold);
  transition: var(--transition-fast);
}

.hero-gold-pill-btn:hover .btn-arrow-circle {
  transform: translateX(-4px); /* Moves left on hover in RTL mode */
}

@media (max-width: 991px) {
  .hero-pillar {
    display: none !important;
  }
  .hero-section {
    min-height: auto;
    padding: 4rem 1.5rem;
    margin-top: 80px; /* Match mobile header height */
  }
  .hero-center-container {
    max-width: 95%;
  }
  .hero-main-title {
    font-size: 2.2rem;
  }
  .hero-name-title {
    font-size: 3rem;
  }
  .hero-tagline-text {
    font-size: 1.15rem;
  }
  .hero-feature-item {
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }
}

/* ==========================================================================
   SECTION 2: NOTARY / DOCUMENT TRANSLATION & CERTIFICATION SERVICES
   ========================================================================== */
.notary-section {
  scroll-margin-top: 110px;
  background: #080c14;
  position: relative;
}

.doc-hero-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.doc-hero-text {
  flex: 1.3;
  min-width: 320px;
}

.doc-hero-text h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 14px;
  font-weight: 700;
  font-family: 'Ploni', system-ui, sans-serif;
}

.doc-hero-divider {
  width: 60px;
  height: 2px;
  background: #c5a059;
  margin-bottom: 20px;
}

.doc-gold-subtitle {
  color: #c5a059;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 560px;
}

.doc-hero-text .description {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 560px;
}

.doc-hero-image {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

.doc-hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: block;
}

.doc-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 991px) {
  .doc-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .doc-cards-grid { grid-template-columns: 1fr; }
}

.doc-card {
  background: rgba(15, 23, 38, 0.75);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 10px;
  padding: 28px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.doc-card:hover {
  border-color: #f3c969;
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.doc-card-icon {
  color: #c5a059;
  margin: 0 auto 16px;
  width: fit-content;
}

.doc-card h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.doc-card .spec-list {
  margin-bottom: 22px;
  flex-grow: 1;
}

.doc-card .spec-list li {
  color: #e2e8f0;
  font-size: 0.92rem;
}

.doc-card-link {
  color: #c5a059;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  cursor: pointer;
  transition: color 0.3s ease;
}

.doc-card-link:hover {
  color: #f3c969;
}

.doc-why-header {
  text-align: center;
  margin-bottom: 36px;
}

.doc-why-header h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
}

.doc-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .doc-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .doc-why-grid { grid-template-columns: 1fr; }
}

.doc-why-item {
  text-align: center;
}

.doc-why-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  color: #c5a059;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-why-item h4 {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.doc-why-item p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   INHERITANCE POPUP: light contrast section, countries row, CTA banner
   ========================================================================== */
.inh-why-section {
  background: #f5f1e8;
  padding: 40px 40px 36px;
}

.inh-why-section .doc-why-header h3 {
  color: #1e293b;
}

.inh-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.inh-why-item {
  text-align: center;
  padding: 0 22px;
}

.inh-why-item + .inh-why-item {
  border-right: 1px solid rgba(197, 160, 89, 0.35);
}

.inh-why-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  color: #b8935a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inh-why-item h4 {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.inh-why-item p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.inh-countries-section {
  padding: 40px 40px 10px;
  text-align: center;
}

.inh-countries-sub {
  color: #94a3b8;
  margin-bottom: 30px;
  font-size: 0.98rem;
}

.inh-countries-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.inh-country-flag {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(197, 160, 89, 0.5);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1726;
  color: #c5a059;
}

.inh-country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inh-country-badge h4 {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.inh-country-badge span {
  color: #94a3b8;
  font-size: 0.82rem;
}

.inh-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 12px;
  margin: 40px 40px 40px;
  padding: 22px 28px;
}

.inh-cta-contacts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.inh-cta-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.inh-cta-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 160, 89, 0.15);
  color: #c5a059;
  flex-shrink: 0;
}

.inh-cta-contact .label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
}

.inh-cta-contact .value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.inh-cta-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
  text-align: center;
  min-width: 220px;
}

.inh-cta-btn {
  background: #c5a059;
  color: #080c14;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
  cursor: pointer;
}

.inh-cta-btn:hover {
  background: #f3c969;
}

/* Keep the Turkish crescent and star centered in every circular flag treatment. */
img.turkey-flag-centered {
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

.inh-details-link-wrap {
  display: flex;
  justify-content: center;
  padding: 34px 40px 46px;
}

.inheritance-modal-inner .inh-details-link-wrap .inh-cta-btn {
  min-width: 190px;
  text-align: center;
  border-radius: 999px;
  background: #b08948;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(176, 137, 72, 0.2);
}

.inheritance-modal-inner .inh-details-link-wrap .inh-cta-btn:hover {
  background: #97743b;
}

@media (max-width: 768px) {
  .inh-why-grid { grid-template-columns: repeat(2, 1fr); }
  .inh-why-item + .inh-why-item { border-right: none; }
  .inh-why-item { margin-bottom: 26px; }
  .inh-cta-banner { justify-content: center; text-align: center; }
}

/* ==========================================================================
   CORPORATE / COMPANY FORMATION POPUP: continent cards + alt CTA banner
   ========================================================================== */
.corp-continents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .corp-continents-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .corp-continents-grid { grid-template-columns: 1fr; }
}

.corp-continent-card {
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 38, 0.75);
}

.corp-continent-photo {
  height: 110px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.corp-continent-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 12, 20, 0.15), rgba(8, 12, 20, 0.9));
}

.corp-continent-title {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.02rem;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.corp-continent-flags {
  padding: 16px 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 8px;
  flex-grow: 1;
}

.corp-flag-item {
  text-align: center;
}

.corp-flag-item img,
.corp-flag-item .corp-flag-generic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(197, 160, 89, 0.4);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5a059;
}

.corp-flag-item span {
  display: block;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.corp-cta-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 12px;
  margin: 40px 40px 40px;
  padding: 24px 28px;
  flex-wrap: wrap;
}

.corp-cta-map {
  flex: 0 0 180px;
  border-radius: 8px;
  overflow: hidden;
  align-self: stretch;
}

.corp-cta-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.corp-cta-text {
  flex: 1.6;
  min-width: 260px;
}

.corp-cta-text h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.corp-cta-text .corp-cta-sub {
  color: #c5a059;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.corp-cta-text .corp-cta-sub:hover {
  color: #f3c969;
}

.corp-cta-text p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.corp-cta-contacts-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.corp-cta-contact-box {
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 8px;
  padding: 10px 18px;
}

@media (max-width: 768px) {
  .corp-cta-banner { justify-content: center; text-align: center; }
  .corp-cta-map { flex-basis: 100%; height: 100px; }
}

/* ==========================================================================
   REAL ESTATE POPUP: light-themed page with dark contrast sections
   ========================================================================== */
.re-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.re-hero-text {
  flex: 1.2;
  min-width: 300px;
}

.re-hero-text h2 {
  font-size: 2.4rem;
  color: #0f172a;
  margin-bottom: 12px;
  font-weight: 700;
  font-family: 'Ploni', system-ui, sans-serif;
}

.re-hero-text .doc-gold-subtitle {
  color: #b8842f;
}

.re-hero-text .description {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
}

.re-hero-image {
  flex: 1;
  min-width: 280px;
  max-width: 440px;
  position: relative;
}

.re-hero-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.re-hero-benefits {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 190px;
  background: rgba(10, 15, 25, 0.92);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.re-hero-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.re-hero-benefit svg {
  color: #c5a059;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.re-hero-benefit span {
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .re-hero-benefits { position: static; width: 100%; margin-top: 14px; }
}

.re-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 991px) {
  .re-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .re-cards-grid { grid-template-columns: 1fr; }
}

.re-card {
  background: #ffffff;
  border: 1px solid #e8e2d5;
  border-radius: 10px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.re-card-icon {
  color: #b8842f;
  margin: 0 auto 14px;
  width: fit-content;
}

.re-card h3 {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.re-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.re-card ul li {
  position: relative;
  padding-right: 16px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.88rem;
}

.re-card ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c5a059;
}

.re-why-banner {
  background: #0b1320;
  border-radius: 14px;
  padding: 34px 30px;
}

.re-why-banner .doc-why-header h3 {
  color: #ffffff;
}

.re-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .re-why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
}

.re-why-item {
  text-align: center;
  padding: 0 16px;
}

.re-why-item + .re-why-item {
  border-right: 1px solid rgba(197, 160, 89, 0.25);
}

@media (max-width: 768px) {
  .re-why-item + .re-why-item { border-right: none; }
}

.re-why-icon {
  color: #c5a059;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-why-item h4 {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.re-why-item p {
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

.re-process-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  gap: 6px;
}

.re-process-row::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(to right, #c5a059 0, #c5a059 4px, transparent 4px, transparent 9px);
  z-index: 0;
}

.re-process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.re-process-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0b1320;
  color: #c5a059;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  position: relative;
}

.re-process-num {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #c5a059;
  color: #0b1320;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-process-step h4 {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.re-process-step p {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 900px) {
  .re-process-row { flex-wrap: wrap; }
  .re-process-row::before { display: none; }
  .re-process-step { flex: 0 0 33%; margin-bottom: 20px; }
}

.re-dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .re-dest-grid { grid-template-columns: 1fr; }
}

.re-dest-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.re-dest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 20, 0.92) 30%, rgba(8, 12, 20, 0.25) 75%);
}

.re-dest-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.re-dest-flag-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.re-dest-flag-circle {
  width: 42px;
  height: 42px;
  padding: 3px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid #c5a059;
  background: #ffffff;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.re-dest-flag-circle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.re-dest-flag-title h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.re-dest-card-content .re-dest-sub {
  color: #c5a059;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.re-dest-card-content p {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.re-dest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.re-dest-tags span {
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: #f3c969;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.realestate-contact-prompt {
  margin: 38px clamp(34px, 5vw, 76px) 46px;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(176, 137, 72, 0.3);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(20, 33, 48, 0.06);
}

.realestate-contact-title {
  color: #142131;
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  font-weight: 700;
}

.realestate-contact-prompt .inh-cta-btn {
  min-width: 190px;
  text-align: center;
  border-radius: 999px;
  background: #b08948;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(176, 137, 72, 0.2);
}

/* ==========================================================================
   SECTION 3: CITIZENSHIP / RESIDENCY TABS SYSTEM
   ========================================================================== */
.citizenship-section {
  scroll-margin-top: 110px;
  background-color: var(--bg-panel);
}

.residency-section {
  scroll-margin-top: 110px;
  background-color: var(--bg-dark);
}

/* Tabs Header Controls */
.custom-tabs-wrapper {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color-muted);
  border-radius: 4px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color-muted);
}

.tab-trigger {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 1.25rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-trigger:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.tab-trigger.active {
  color: var(--accent-gold);
  background-color: var(--bg-panel);
  border-bottom: 2px solid var(--accent-gold);
}

/* Tabs Content Body */
.tabs-content {
  background-color: var(--bg-panel);
  padding: 3rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.tab-text h3 {
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.tab-text p {
  margin-bottom: 1.25rem;
}

.gold-subtitle {
  color: var(--accent-gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bullet list specs */
.spec-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.spec-list li {
  position: relative;
  padding-right: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spec-list li::before {
  content: '✦';
  position: absolute;
  right: 0;
  color: var(--accent-gold);
}

.spec-list li strong {
  color: var(--text-main);
}

/* Media/Image preview in tabs */
.tab-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.tab-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: var(--transition-slow);
}

.tab-media:hover .tab-img {
  transform: scale(1.03);
}

.overlay-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 60%, rgba(0,0,0,0));
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   SECTION 5: REAL ESTATE
   ========================================================================== */
.realestate-section {
  scroll-margin-top: 110px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.realestate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.estate-card {
  background-color: rgba(13, 13, 13, 0.85);
  border: 1px solid var(--border-color-muted);
  border-radius: 4px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-slow);
}

.estate-card:hover {
  border-color: var(--border-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.estate-badge {
  display: inline-block;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.estate-card h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.estate-card p {
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.estate-list {
  list-style: none;
}

.estate-list li {
  position: relative;
  padding-right: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.estate-list li::before {
  content: '✔';
  position: absolute;
  right: 0;
  color: var(--accent-gold);
}

.estate-list li strong {
  color: var(--text-main);
}

.estate-footer-box {
  background-color: rgba(13, 13, 13, 0.9);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 4px;
  max-width: 900px;
  margin: 0 auto;
}

.estate-footer-box h3 {
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.estate-footer-box p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   SECTION 6: ABOUT US
   ========================================================================== */
.about-section {
  scroll-margin-top: 110px;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color-muted);
  padding: 1.25rem 0 !important;
}

/* --- Scroll-triggered entrance animation --- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .founder-circle-photo,
  .firm-photo-col img {
    transition: none;
  }
}

/* --- Shared panel shell --- */
.about-hero-panel,
.about-firm-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 1.25rem 1.5rem;
}

.about-hero-panel {
  margin-bottom: 0.85rem;
}

/* --- Panel 1: credentials column --- */
.about-credentials-col {
  flex: 1.5;
  min-width: 320px;
}

.cred-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.cred-heading h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.cred-heading .cred-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.cred-circle-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.cred-circle-item {
  text-align: center;
  border: 1px solid var(--accent-gold);
  border-radius: 50px;
  padding: 0.9rem 0.4rem 0.7rem;
}

.cred-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.35rem;
}

.cred-circle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cred-circle-item h4 {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0;
}

.cred-circle-item .cred-sub {
  display: none;
}

.cred-circle-item .cred-year {
  display: block;
  font-size: 0.58rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: 0.1rem;
}

/* --- Panel 1: founder text column --- */
.about-founder-text-col {
  flex: 1.4;
  min-width: 280px;
  text-align: center;
}

.founder-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
}

.founder-eyebrow::before,
.founder-eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent-gold);
}

.founder-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.5rem;
}

.founder-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.founder-meta strong {
  color: var(--accent-gold);
}

.founder-flags {
  margin: 0.5rem 0;
}

.founder-flags img {
  height: 20px;
}

.founder-desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- Panel 1: founder photo column --- */
.about-founder-photo-col {
  flex: 0.7;
  min-width: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.founder-circle-photo {
  width: 210px;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s ease;
}

.founder-circle-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 34px rgba(0,0,0,0.24);
}

.founder-circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* --- Panel 2: firm stats column --- */
.firm-stats-col {
  flex: 1.3;
  min-width: 340px;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-content: center;
  justify-content: space-around;
}

.firm-stat {
  text-align: center;
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-inline-end: 1px solid var(--border-color-muted);
}

.firm-stat:last-child {
  border-inline-end: none;
}

.firm-stat svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.firm-stat-number {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.firm-stat-label {
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  line-height: 1.25;
}

/* --- Panel 2: firm text column --- */
.firm-text-col {
  flex: 1.1;
  min-width: 220px;
  text-align: center;
}

.firm-text-col h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.firm-text-col h3::before,
.firm-text-col h3::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent-gold);
}

.firm-rule {
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
  margin: 0 auto 0.5rem;
}

.firm-text-col p {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 0.35rem;
}

/* --- Panel 2: firm photo column --- */
.firm-photo-col {
  flex: 1.1;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.firm-photo-col img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 18px;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s ease;
}

.firm-photo-col img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  .about-hero-panel,
  .about-firm-panel {
    padding: 2rem;
    flex-direction: column;
  }

  .about-founder-photo-col {
    order: -1;
  }

  .cred-circle-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .firm-stats-col {
    order: 2;
    flex-wrap: wrap;
    min-width: 0;
  }
}

/* Scale up on large screens so the section fills the available width/height
   instead of sitting small in the middle of a wide viewport */
@media (min-width: 1400px) {
  .about-section .container {
    max-width: 1600px;
  }

  .about-hero-panel,
  .about-firm-panel {
    padding: 2rem 2.5rem;
    gap: 2.5rem;
  }

  .about-hero-panel {
    margin-bottom: 1.5rem;
  }

  .cred-circle {
    width: 62px;
    height: 62px;
  }

  .cred-circle img {
    width: 32px;
    height: 32px;
  }

  .cred-circle-item h4 {
    font-size: 0.72rem;
  }

  .founder-circle-photo {
    width: 240px;
    height: 300px;
  }

  .founder-title {
    font-size: 1.6rem;
  }

  .founder-meta {
    font-size: 0.95rem;
  }

  .founder-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .cred-heading h2 {
    font-size: 1.25rem;
  }

  .firm-photo-col img {
    max-width: 380px;
  }

  .firm-text-col h3 {
    font-size: 1.25rem;
  }

  .firm-text-col p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .firm-stat svg {
    width: 26px;
    height: 26px;
  }

  .firm-stat-number {
    font-size: 1.3rem;
  }

  .firm-stat-label {
    font-size: 0.68rem;
  }
}


/* ==========================================================================
   SECTION 7: CONTACT FORM
   ========================================================================== */
.contact-section {
  scroll-margin-top: 110px;
  background-color: var(--bg-panel);
}

.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.contact-form-wrapper {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color-muted);
  padding: 3rem;
  border-radius: 4px;
}

.contact-form-wrapper h2 {
  font-size: 1.6rem;
}

.contact-form-wrapper p {
  margin-bottom: 2rem;
}

/* Form Styling */
.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color-muted);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* Success notification message */
.form-success-alert {
  background-color: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--accent-gold);
  padding: 1.5rem;
  border-radius: 2px;
  margin-top: 1.5rem;
  text-align: center;
}

.form-success-alert h3 {
  color: var(--accent-gold);
}

.form-success-alert p {
  color: var(--text-main);
}

/* Side Contact info column */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
}

.contact-info-wrapper h2 {
  font-size: 1.6rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.info-item h3 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.info-item p {
  font-size: 0.88rem;
}

.office-hours {
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px dashed var(--border-color-muted);
}

.office-hours h3 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent-gold);
}

.office-hours p {
  font-size: 0.85rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: #030303;
  border-top: 1px solid var(--border-color-muted);
  padding: 0.42rem 0;
}

.footer-bar {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  direction: rtl;
}

.copyright {
  margin: 0;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: bold;
  line-height: 1.25;
  text-align: right;
}

.footer-credit {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #ffffff;
  opacity: 0.72;
  text-decoration: none;
  direction: ltr;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.64rem;
}

.footer-credit:hover {
  color: #ffffff;
  opacity: 1;
}

.metaflux-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: 'Cabinet Grotesk', 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.metaflux-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff3b30;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .main-footer {
    padding: 0.38rem 0;
  }

  .footer-bar {
    min-height: 26px;
    gap: 0.65rem;
  }

  .copyright {
    font-size: 0.62rem;
  }

  .footer-credit-label {
    display: none;
  }

  .metaflux-mark {
    font-size: 0.65rem;
  }

  .header-bsd {
    top: 4px;
    right: 5px;
    font-size: 0.58rem;
    opacity: 0.42;
  }
}

/* ==========================================================================
   GOOGLE TRANSLATE AUTO-ALIGNMENT RULES
   ========================================================================== */
body.translated-ltr {
  direction: ltr !important;
  text-align: left !important;
}

body.translated-ltr .nav-menu {
  flex-direction: row !important;
}

body.translated-ltr .spec-list li,
body.translated-ltr .estate-list li,
body.translated-ltr .about-credentials li {
  padding-right: 0 !important;
  padding-left: 1.25rem !important;
}

body.translated-ltr .spec-list li::before,
body.translated-ltr .estate-list li::before {
  right: auto !important;
  left: 0 !important;
}

body.translated-ltr .about-credentials li {
  padding-left: 1.75rem !important;
}

body.translated-ltr .tab-grid,
body.translated-ltr .about-grid,
body.translated-ltr .contact-box {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 992px) {
  body.translated-ltr .tab-grid,
  body.translated-ltr .about-grid,
  body.translated-ltr .contact-box {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .tab-grid, .about-grid, .contact-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-info-wrapper {
    padding-left: 0;
  }
  
  .about-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .main-header {
    height: 80px !important;
  }
  .main-header.scroll {
    height: 80px !important;
  }
  .header-logo-png {
    height: 55px !important;
  }

  /* Navigation mobile layout (Default RTL - slide from left) */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    right: auto;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: #121e2e !important; /* Premium dark navy blue to match header and brand colors */
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: var(--transition-slow);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
    right: auto;
  }

  /* Navigation mobile layout override (Translated LTR - slide from right) */
  body.translated-ltr .nav-menu {
    left: auto;
    right: -100%;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: none;
  }
  
  body.translated-ltr .nav-menu.active {
    right: 0;
    left: auto;
  }
  
  /* Hamburger to Close Icon Micro-animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .menu-toggle {
    display: flex;
  }

  .header-actions {
    gap: 0.5rem !important;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Spacing and Padding Adjustments for Mobile */
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }

  .estate-footer-box {
    padding: 1.5rem !important;
  }
  
  /* Responsive typography scaling and space consolidation */
  .section-padding {
    padding: 3.5rem 0 !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  h1 { font-size: 1.85rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.15rem !important; }

  .tabs-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide default scrollbar Firefox */
  }
  
  .tabs-header::-webkit-scrollbar {
    display: none; /* Hide default scrollbar Chrome/Safari */
  }
  
  .tab-trigger {
    flex: none !important;
    flex-shrink: 0 !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.82rem !important;
  }
  
  .tabs-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-tagline {
    display: none !important;
  }
  .logo-icon {
    font-size: 1.15rem !important;
  }
  .logo-name {
    font-size: 0.95rem !important;
  }
  .header-container {
    padding: 0 0.4rem !important;
  }
  .header-actions {
    gap: 0.25rem !important;
  }
  .custom-language-selector {
    gap: 0.05rem !important;
  }
  .lang-btn {
    padding: 0.2rem 0.35rem !important;
    font-size: 0.68rem !important;
  }

  /* Compact Experience Badge on small mobile viewports */
  .about-experience-badge {
    bottom: 0.75rem !important;
    right: 0.75rem !important;
    width: 90px !important;
    height: 90px !important;
  }
  
  .about-experience-badge .number {
    font-size: 1.7rem !important;
  }
  
  .about-experience-badge .text {
    font-size: 0.45rem !important;
  }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   GOOGLE TRANSLATE WIDGET OVERRIDES
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

html, body {
  top: 0 !important;
  position: static !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Force Google Translate default widgets and wrappers to stay completely hidden */
#google_translate_element,
.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body {
  top: 0 !important;
}

/* ==========================================================================
   PREMIUM CUSTOM LANGUAGE SELECTOR
   ========================================================================== */
.custom-language-dropdown {
  position: relative !important;
  display: inline-block !important;
}

.lang-dropdown-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(197, 160, 40, 0.4) !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: 4px !important;
  color: #c5a028 !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  transition: var(--transition-fast) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

.lang-dropdown-btn:hover {
  border-color: var(--accent-gold) !important;
}

.lang-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
  list-style: none !important;
  padding: 0.4rem 0 !important;
  margin: 4px 0 0 0 !important;
  min-width: 100px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  transition: all 0.2s ease !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.custom-language-dropdown:hover .lang-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.lang-dropdown-menu li {
  width: 100% !important;
  display: block !important;
}

.lang-btn {
  width: 100% !important;
  display: block !important;
  background: none !important;
  border: none !important;
  font-size: 0.8rem !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast) !important;
  text-align: center !important;
  border-radius: 0 !important;
}

.lang-btn:hover {
  color: var(--accent-gold) !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
}

.lang-btn.active {
  color: var(--accent-gold) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}



/* ==========================================================================
   FLOATING ACTION BUTTONS STACK (BOTTOM LEFT)
   ========================================================================== */
.floating-stack-left {
  position: fixed !important;
  bottom: 28px !important;
  left: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  z-index: 1050 !important;
  align-items: center !important;
}

.floating-btn {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  transition: var(--transition-fast) !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  background: linear-gradient(135deg, var(--accent-gold), #b8972f) !important;
  color: var(--text-dark) !important;
}

.floating-btn svg {
  fill: currentColor !important;
  stroke: none !important;
}

.floating-btn.phone-floating svg {
  fill: none !important;
  stroke: currentColor !important;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4) !important;
  background: linear-gradient(135deg, var(--accent-gold-hover), var(--accent-gold)) !important;
  color: var(--text-dark) !important;
}

.whatsapp-floating {
  font-size: 1.4rem !important;
  background: #25D366 !important;
  color: #ffffff !important;
}

.whatsapp-floating svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.whatsapp-floating:hover {
  background: #20ba5a !important;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4) !important;
  color: #ffffff !important;
}

.whatsapp-floating:hover svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.phone-floating {
  font-size: 1.4rem !important;
}

/* ==========================================================================
   AI CHATBOT FLOATING WIDGET (METAFLUX STYLE)
   ========================================================================== */
#chatFab {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  width: 56px !important;
  height: 56px !important;
  background: #1A2B42 !important; /* Dark header navy background */
  border: 1px solid var(--accent-gold) !important; /* Gold border */
  color: var(--text-dark) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 15px rgba(212, 175, 55, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

#chatFab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
  background: #243e60 !important; /* Slightly lighter navy on hover */
  border-color: var(--accent-gold-hover) !important;
  color: var(--text-dark) !important;
}

#chatFab.active {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: rotate(90deg);
}

#chatFab.active .chat-fab-icon {
  transform: rotate(45deg) scale(0.8);
}

.chat-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: transform var(--transition-fast);
}

#chatFab.active .chat-fab-icon {
  color: var(--text-main);
}

.chat-fab-icon svg {
  width: 24px;
  height: 24px;
}

.chat-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  opacity: 0;
  animation: fabPulse 2.5s infinite;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Chat Panel */
#chatPanel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  max-height: 520px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(197, 160, 40, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#chatPanel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0));
  border-bottom: 1px solid var(--border-color-muted);
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1A2B42; /* Match theme navy */
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  flex-shrink: 0;
}

.chat-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(65%) sepia(48%) saturate(1243%) hue-rotate(366deg) brightness(94%) contrast(89%) !important;
  transition: transform var(--transition-fast);
}

.chat-header-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(65%) sepia(48%) saturate(1243%) hue-rotate(366deg) brightness(94%) contrast(89%) !important;
}

.chat-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #25d366;
  border-radius: 50%;
  border: 2px solid rgba(13, 13, 13, 0.96);
}

.chat-header-info {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.chat-header-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.chat-header-status {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.chat-header-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.25s ease;
  line-height: 1;
}

.chat-header-close:hover {
  color: var(--text-main);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
  max-height: 340px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  animation: msgFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-items: flex-start;
}

.chat-msg.user {
  align-items: flex-end;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
  font-family: var(--font-sans);
}

.chat-bubble.bot {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-color-muted);
  border-bottom-left-radius: 2px;
  text-align: right;
}

.chat-buttons-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  direction: rtl !important;
  padding: 0 0.5rem !important;
}

body.translated-ltr .chat-buttons-container {
  direction: ltr !important;
}

.chat-btn-choice {
  background: rgba(212, 175, 55, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--accent-gold) !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  cursor: pointer !important;
  transition: var(--transition-fast) !important;
  font-family: var(--font-sans) !important;
  text-align: center !important;
}

.chat-btn-choice:hover {
  background-color: var(--accent-gold) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--accent-gold), #b8972f);
  color: var(--text-dark);
  border-bottom-right-radius: 2px;
  font-weight: 700;
  text-align: right;
}

/* Typing Dots */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.8rem 1.2rem !important;
  align-items: center;
  justify-content: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: dotBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Input Area */
.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-color-muted);
  background: rgba(245, 245, 245, 0.9);
  flex-shrink: 0;
  direction: rtl;
}

#chatInput {
  flex: 1;
  border: 1px solid var(--border-color-muted);
  background: #ffffff;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  text-align: right;
}

#chatInput:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

#chatSendBtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent-gold);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

#chatSendBtn:hover {
  background-color: var(--accent-gold-hover);
}

#chatSendBtn svg {
  width: 16px;
  height: 16px;
  transform: scaleX(-1); /* Flips icon direction for RTL */
}

@media (max-width: 480px) {
  #chatPanel {
    width: calc(100% - 32px) !important;
    right: 16px !important;
    left: 16px !important;
    bottom: 80px !important;
  }
  
  .floating-stack-left {
    left: 16px !important;
    bottom: 16px !important;
  }
}

/* ==========================================================================
   DROPDOWN MENU STYLING (CSS only)
   ========================================================================== */
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}
.nav-list li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.menu-item-has-children {
  position: relative;
}
.dropdown-arrow {
  font-size: 0.65rem;
  margin-right: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}
.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-item-has-children:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.sub-menu li {
  width: 100%;
  display: block;
  height: auto;
}
.sub-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition-fast);
  text-align: right;
  white-space: nowrap;
}
.sub-menu li a:hover {
  color: var(--accent-gold);
  background-color: rgba(0, 0, 0, 0.02);
}

/* Call Button in Header */
.btn-header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-gold);
  color: var(--text-dark) !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(197, 160, 40, 0.15);
}
.btn-header-phone:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}
.btn-header-phone .phone-icon {
  font-size: 0.95rem;
}
@media (max-width: 991px) {
  .btn-header-phone .phone-number {
    display: none;
  }
  .btn-header-phone {
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  
  /* Mobile dropdown spacing overrides */
  .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    height: auto !important;
    width: 100% !important;
  }
  .nav-list li {
    display: block !important;
    height: auto !important;
    position: relative !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .nav-list li a {
    padding: 1rem 1.5rem !important;
    color: #c5a028 !important;
    display: block !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .nav-list li a.active {
    color: var(--accent-gold) !important;
  }
  .sub-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
    width: 100% !important;
    min-width: 100% !important;
  }
  .sub-menu li a {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 0.75rem 2rem !important;
    display: block !important;
    height: auto !important;
  }
  .sub-menu li a:hover {
    color: var(--accent-gold) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
  }
  .menu-item-has-children.open .sub-menu {
    display: block !important;
  }

  /* Hero Content Mobile Positioning (Balanced height to keep background image clear and text in proportion) */
  .hero-content-container {
    padding: 2.5rem 1.5rem 7.5rem !important; /* Shifted top up by 1rem, bottom up by 1rem to clear floating buttons */
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  .hero-badge {
    font-size: 0.85rem !important;
    margin: 0 auto 1rem auto !important;
    padding: 0.4rem 1rem !important;
  }
}

/* ==========================================================================
   ALTERNATING REAL ESTATE GRID (Cross Layout)
   ========================================================================== */
.alternating-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 3.5rem;
}
.alt-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.alt-row.alt-reverse {
  grid-template-columns: 1fr 1.2fr;
}
.alt-row.alt-reverse .alt-content {
  grid-column: 2;
}
.alt-row.alt-reverse .alt-image {
  grid-column: 1;
  grid-row: 1;
}
.alt-content {
  text-align: right;
}
.alt-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.alt-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
}
.alt-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.alt-image {
  position: relative;
  border-radius: 40px; /* Highly rounded corners */
  overflow: hidden;
  border: 4px solid var(--accent-gold); /* Gold border frame */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.alt-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.alt-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .alt-row, .alt-row.alt-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .alt-row.alt-reverse .alt-content {
    grid-column: 1;
  }
  .alt-row.alt-reverse .alt-image {
    grid-column: 1;
    grid-row: auto;
  }
  .alternating-container {
    gap: 4.5rem;
  }
  .alt-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   GOOGLE TRANSLATE CUSTOM STYLING (HIDES BANNERS & FRAMES)
   ========================================================================== */
body {
  top: 0 !important;
}
.skiptranslate {
  display: none !important;
}
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}
.goog-te-balloon-frame {
  display: none !important;
}
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
iframe.goog-te-banner-frame {
  display: none !important;
}
#google_translate_element {
  display: none !important;
}

/* Google Translate Direction overrides to solve alignment bugs */
html.translated-ltr,
html.translated-ltr body {
  direction: ltr !important;
  unicode-bidi: embed;
}
html.translated-rtl,
html.translated-rtl body {
  direction: rtl !important;
  unicode-bidi: embed;
}

/* Custom overrides for translated LTR layout */
body.translated-ltr .hero-section {
  scroll-margin-top: 110px;
  direction: ltr !important;
}

body.translated-ltr .hero-text-side {
  text-align: left !important;
  align-items: flex-start !important;
  padding-left: 8% !important;
  padding-right: 5% !important;
}

body.translated-ltr .hero-stat-badge-inline {
  direction: ltr !important;
}

body.translated-ltr .alt-content {
  text-align: left !important;
}

body.translated-ltr .chat-input-area {
  direction: ltr !important;
}

body.translated-ltr #chatInput {
  text-align: left !important;
}

body.translated-ltr .chat-msg {
  text-align: left !important;
}

body.translated-ltr .chat-header-info {
  text-align: left !important;
}

/* Symmetric padding for hero CTA button to prevent overlap of text and circle arrow in both RTL and LTR modes */
.hero-gold-pill-btn {
  padding: 0.8rem 1.5rem !important;
}

/* For mobile view alignment */
@media (max-width: 992px) {
  body.translated-ltr .hero-text-side {
    text-align: left !important;
    align-items: flex-start !important;
    padding: 3rem 1.5rem 2rem 1.5rem !important;
  }
}

/* Fix desktop overlap for LTR pages */
@media (min-width: 992px) {
  body.translated-ltr .hero-text-side-wrapper {
    align-items: flex-start !important;
    padding-top: 60px !important;
  }
}


/* Circular flag styles in header actions */
.header-flags {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.flag-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.flag-link.active, .flag-link:hover {
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

.flag-icon-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header-contact-quick {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Middle Contact group layout */
.header-contact-mid {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 991px) {
  .header-contact-mid {
    display: none !important; /* Hide inside original desktop navbar layout on mobile toggle */
  }
}

@media (max-width: 991px) {
  .hero-section,
  .notary-section,
  .citizenship-section,
  .residency-section,
  .realestate-section,
  .about-section,
  .contact-section {
    scroll-margin-top: 80px !important; /* Mobile header height offset */
  }
}

/* Circular flag styles in header actions */
.header-flags {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.flag-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.flag-link.active, .flag-link:hover {
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

.flag-icon-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header-contact-quick {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Avoid wrapping header on translated LTR pages desktop */
@media (min-width: 992px) {
  body.translated-ltr .nav-menu {
    gap: 0.85rem !important; /* Consolidate navigation gap */
  }
  body.translated-ltr .nav-link {
    font-size: 0.82rem !important; /* Slightly smaller font size to fit long translated words */
    padding: 0 0.15rem !important;
  }
  body.translated-ltr .header-container {
    padding: 0 1.25rem !important; /* Extra side spacing in header wrapper */
  }
}

/* Force RTL navigation direction for Hebrew menu so ראשי is on the right */
.nav-list {
  direction: rtl !important;
}

body.translated-ltr .nav-list {
  direction: ltr !important;
}



/* Clean section scroll offsets to eliminate gap under fixed header */
.hero-section {
  scroll-margin-top: 0 !important;
}

.notary-section,
.citizenship-section,
.residency-section,
.realestate-section,
.about-section,
.contact-section {
  scroll-margin-top: 90px !important;
}

@media (max-width: 991px) {
  .hero-section {
    scroll-margin-top: 0 !important;
  }
  .notary-section,
  .citizenship-section,
  .residency-section,
  .realestate-section,
  .about-section,
  .contact-section {
    scroll-margin-top: 75px !important;
  }
}



/* ==========================================================================
   PRACTICE AREAS SECTION (תחומי עיסוק שלנו - 8 GRID CARDS EXACT LOOK)
   ========================================================================== */
.practice-areas-section {
  padding: 70px 0 60px;
  background: #0b1320 url('new2-hero-leon.webp') no-repeat center center / cover;
  position: relative;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  scroll-margin-top: 90px !important;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.practice-title {
  font-family: 'Ploni', system-ui, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.5px;
}

.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.diamond-line {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c5a059, transparent);
}

.diamond-icon {
  color: #c5a059;
  font-size: 10px;
}

/* 8 Grid Cards Container */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  direction: rtl;
}

@media (max-width: 991px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .practice-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Single Card */
.practice-card {
  background: rgba(15, 23, 38, 0.75);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.practice-card:hover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.10);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

.practice-card.active {
  border-color: #f3c969;
  background: rgba(212, 175, 55, 0.16);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 28px rgba(243, 201, 105, 0.3), inset 0 0 0 1px rgba(243, 201, 105, 0.2);
  transform: translateY(-2px);
  position: relative;
}

/* Arrow indicator below active card pointing to the panel */
.practice-card.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(243, 201, 105, 0.7);
  z-index: 5;
  pointer-events: none;
}


.card-circle-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(197, 160, 89, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  background: rgba(11, 19, 32, 0.5);
}

.card-circle-icon svg {
  width: 30px !important;
  height: 30px !important;
}

.practice-card:hover .card-circle-icon, .practice-card.active .card-circle-icon {
  border-color: #f3c969;
  transform: scale(1.06);
  background: rgba(212, 175, 55, 0.15);
}

.practice-card:hover .card-circle-icon svg, .practice-card.active .card-circle-icon svg {
  stroke: #f3c969;
}

.card-title {
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

.card-line {
  width: 32px;
  height: 2px;
  background: #c5a059;
  margin: 0 auto;
  transition: width 0.3s ease, background 0.3s ease;
}

.practice-card:hover .card-line, .practice-card.active .card-line {
  width: 48px;
  background: #f3c969;
}

/* Practice Details Modal Overlay (Replaces inline panel) */
.practice-details-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 9, 20, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  margin-top: 0;
}

.practice-details-wrapper.modal-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.practice-panel-inner {
  position: relative;
  width: 92%;
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 16px;
  padding: 48px 40px 40px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(197, 160, 89, 0.1);
  transform: scale(0.96) translateY(15px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  
  /* Custom scrollbar for modal content */
  scrollbar-width: thin;
  scrollbar-color: #c5a059 rgba(15, 23, 38, 0.5);
}

.practice-details-wrapper.modal-open .practice-panel-inner {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.practice-panel-inner::-webkit-scrollbar {
  width: 6px;
}
.practice-panel-inner::-webkit-scrollbar-track {
  background: rgba(15, 23, 38, 0.5);
  border-radius: 4px;
}
.practice-panel-inner::-webkit-scrollbar-thumb {
  background-color: #c5a059;
  border-radius: 4px;
}

/* Clean Full Bleed Modals (residency, legal-opinion, citizenship, notary, inheritance, banking, corporate, realestate) */
.practice-panel-inner.residency-modal-inner,
.practice-panel-inner.legal-opinion-modal-inner,
.practice-panel-inner.citizenship-modal-inner,
.practice-panel-inner.notary-modal-inner,
.practice-panel-inner.inheritance-modal-inner,
.practice-panel-inner.banking-modal-inner,
.practice-panel-inner.corporate-modal-inner,
.practice-panel-inner.realestate-modal-inner {
  max-width: 1200px !important;
  width: 95% !important;
  max-height: 88vh !important;
  padding: 0 !important;
  background: #080c14 !important;
  border: 1px solid rgba(197, 160, 89, 0.4) !important;
  border-radius: 16px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
}
/* Universal Animated Bold Gold Circle Close Button */
.practice-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  border: 2.5px solid #c5a059 !important;
  background: rgba(8, 12, 20, 0.85) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 1005 !important;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(197, 160, 89, 0.3) !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  animation: goldClosePulse 2.5s infinite !important;
}

@keyframes goldClosePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6), 0 4px 15px rgba(0, 0, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(197, 160, 89, 0), 0 4px 15px rgba(0, 0, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0), 0 4px 15px rgba(0, 0, 0, 0.6);
  }
}

.practice-panel-close svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff !important;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.practice-panel-close svg line {
  stroke-width: 3.5px !important;
}

.practice-panel-close:hover {
  background: #c5a059 !important;
  border-color: #f3c969 !important;
  color: #080c14 !important;
  transform: rotate(90deg) scale(1.15) !important;
  box-shadow: 0 0 20px rgba(243, 201, 105, 0.9), 0 6px 20px rgba(0, 0, 0, 0.8) !important;
  animation: none !important;
}

.practice-panel-close:hover svg {
  stroke: #080c14 !important;
}

/* Custom layout classes for Legal Opinion modal content */
.legal-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  padding: 80px 60px 40px;
  flex-wrap: wrap;
}

.legal-hero-text {
  flex: 1.4;
  min-width: 320px;
  color: #ffffff;
}

.legal-hero-spacer {
  flex: 1;
  min-width: 300px;
}

.legal-modal-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.legal-modal-desc {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 48px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Features Grid */
.legal-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.legal-feat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 8px;
  padding: 24px 16px;
  backdrop-filter: blur(8px);
}

.legal-feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid #c5a059;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #c5a059;
}

.legal-feat-icon svg {
  width: 24px;
  height: 24px;
}

.legal-feat-card p {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.4;
  margin: 0;
}

/* Process Section */
.legal-process-section {
  padding: 50px 60px;
  background: rgba(9, 13, 22, 0.9);
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.legal-section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #c5a059;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.legal-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #c5a059;
}

.legal-process-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-step-card {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 10px;
}

.legal-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #c5a059;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #c5a059;
  font-size: 1.25rem;
  font-weight: 700;
  background: rgba(197, 160, 89, 0.1);
}

.legal-step-card h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 600;
}

.legal-step-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.legal-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  color: rgba(197, 160, 89, 0.6);
}

.legal-step-arrow svg {
  width: 24px;
  height: 24px;
}

/* Values Grid */
.legal-values-section {
  padding: 40px 60px;
  background: rgba(7, 10, 18, 0.95);
}

.legal-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.legal-val-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: right;
}

.legal-val-icon {
  color: #c5a059;
  flex-shrink: 0;
  margin-top: 4px;
}

.legal-val-icon svg {
  width: 26px;
  height: 26px;
}

.legal-val-text h3 {
  font-size: 1.1rem;
  color: #c5a059;
  margin-bottom: 8px;
  font-weight: 600;
}

.legal-val-text p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .legal-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-process-steps {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .legal-step-arrow {
    transform: rotate(90deg); /* Arrow points down on mobile in RTL/LTR layout */
    padding: 0;
  }
  .legal-hero-row {
    padding: 60px 30px 30px;
  }
  .legal-process-section {
    padding: 40px 30px;
  }
  .legal-values-section {
    padding: 40px 30px;
  }
}

@media (max-width: 576px) {
  .legal-features-grid {
    grid-template-columns: 1fr;
  }
  .legal-values-grid {
    grid-template-columns: 1fr;
  }
  .legal-hero-text {
    flex: 1;
  }
  .legal-hero-spacer {
    display: none;
  }
}


/* Close (X) button */
.practice-panel-close {
  position: absolute;
  top: 16px;
  left: 16px; /* RTL: left = near start */
.practice-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.practice-panel-close svg {
  stroke: #ffffff !important;
}

.practice-panel-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
}
}
.practice-panel-close:hover {
  background: rgba(26, 26, 26, 0.1);
  border-color: #1a1a1a;
  color: #1a1a1a;
}

/* When panel is injecting section content, hide redundant container padding */
.practice-panel-content .container {
  max-width: 100%;
  padding: 0;
}

/* =========================================
   NEW RESIDENCY SECTION STYLES
========================================= */
.residency-new-content {
  margin-top: 2rem;
}

.features-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.residency-badge {
  background: rgba(197, 160, 89, 0.1);
  color: #c5a059;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(197, 160, 89, 0.5);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.residency-badge:hover {
  background: rgba(197, 160, 89, 0.2);
  transform: translateY(-2px);
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 3rem;
}

.country-card {
  background: rgba(15, 23, 38, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.country-card:hover {
  transform: translateY(-5px);
  border-color: #c5a059;
}

.country-card h3 {
  color: #f3c969;
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 10px;
}

.country-card .spec-list {
  padding-right: 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes link to bottom */
}
.country-card .spec-list li {
  margin-bottom: 8px;
  color: #e2e8f0;
}

.country-link {
  color: #c5a059;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: auto;
}
.country-link:hover {
  color: #fbbf24;
}

/* Modal Context Overrides (When displayed in white modal) */
.practice-panel-content .country-card {
  background: #f8fafc; /* light grey for cards on white bg */
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.practice-panel-content .country-card h3 {
  color: #b48632 !important; /* darker gold for readability on light bg */
}
.practice-panel-content .country-card .spec-list li {
  color: #334155 !important; /* dark text for lists */
}
.practice-panel-content .residency-badge {
  background: rgba(197, 160, 89, 0.1);
  color: #b48632 !important;
  border-color: #c5a059;
}


/* ==========================================================================
   CHATBOT LAUNCHER FAB OVERRIDES (Gold Bold Border, White BG, Black Logo)
   ========================================================================== */
#chatFab {
  background: #ffffff !important;
  border: 3.5px solid #c5a059 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(197, 160, 89, 0.3) !important;
}

#chatFab:hover {
  background: #ffffff !important;
  border-color: #d4af37 !important;
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(197, 160, 89, 0.5) !important;
}

#chatFab .chat-logo-img,
.chat-fab-icon img {
  filter: brightness(0) !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
}


/* ==========================================================================
   CHATBOT LAUNCHER FAB & HEADER AVATAR OVERRIDES
   (Gold Bold Border, White Inner BG, Pure Black Logo)
   ========================================================================== */

/* 1. Chatbot Floating Launcher FAB */
#chatFab {
  background: #ffffff !important;
  border: 3.5px solid #c5a059 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(197, 160, 89, 0.3) !important;
}

#chatFab:hover {
  background: #ffffff !important;
  border-color: #d4af37 !important;
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(197, 160, 89, 0.5) !important;
}

#chatFab .chat-logo-img,
.chat-fab-icon img {
  filter: brightness(0) !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
}

/* 2. Chatbot Panel Header Avatar Circle */
.chat-header-avatar {
  background: #ffffff !important;
  border: 3px solid #c5a059 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.chat-header-logo-img {
  filter: brightness(0) !important;
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

.chat-avatar-dot {
  border: 2px solid #ffffff !important;
}

/* ==========================================================================
   RESIDENCY POPUP: mobile responsive fixes (inline grid styles need !important
   to win over specificity, since they were never given breakpoints)
   ========================================================================== */
@media (max-width: 768px) {
  .residency-hero-text .title { font-size: 2.1rem !important; }
  .countries-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .benefits-icons-row { grid-template-columns: 1fr !important; gap: 20px !important; }
}

@media (max-width: 480px) {
  .countries-grid { grid-template-columns: 1fr !important; }
  .residency-features-icons { grid-template-columns: 1fr !important; }
  .residency-hero-text .title { font-size: 1.8rem !important; }
}
