/* =============================================
   BLOG ARTICLES SHARED STYLES
   Finishing Company — finishing-company.net
   Bundled with theme v8.6 — no plugin needed
   
   v8.5 CHANGELOG (v8.4 + bugfix) (Specificity Fix):
   - Fixed CSS specificity conflicts where .fc-article h3/p/h4/strong
     rules were overriding container-specific styles (.fc-cta-title,
     .fc-cta-desc, .fc-feature-card, .fc-faq-a p, etc.)
   - All container-specific rules now use parent scope for specificity
     boost (0,2,x) that beats the article-scoped element selectors (0,1,1)
   - Added safety !important to .fc-faq-a max-height to guarantee
     accordion works regardless of HTML edits by WordPress editor
   - Backward compatible: articles WITHOUT .fc-article wrapper still
     work correctly (specificity is even higher than needed for them)
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --fc-navy: #1B365D;
  --fc-navy-dark: #12243F;
  --fc-navy-light: #243F6C;
  --fc-gold: #C8963E;
  --fc-gold-dark: #A67A2E;
  --fc-gold-light: #D4A84B;
  --fc-green: #25D366;
  --fc-green-dark: #1EBE5A;
  --fc-white: #FFFFFF;
  --fc-light-bg: #F8F6F2;
  --fc-cream: #F0EDE6;
  --fc-text-dark: #2C2C2C;
  --fc-text-body: #555555;
  --fc-text-muted: #888888;
  --fc-border: #E8E4DD;
  --fc-shadow-sm: 0 2px 8px rgba(27,54,93,0.06);
  --fc-shadow-md: 0 4px 20px rgba(27,54,93,0.10);
  --fc-shadow-lg: 0 8px 32px rgba(27,54,93,0.14);
  --fc-radius: 12px;
  --fc-radius-lg: 16px;
}

/* ===== ARTICLE WRAPPER ===== */
.fc-article {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--fc-text-body);
  line-height: 2;
  font-size: 17px;
  max-width: 100%;
  overflow-x: hidden;
}
.fc-article *,
.fc-article *::before,
.fc-article *::after {
  box-sizing: border-box;
}

/* ===== TYPOGRAPHY ===== */
.fc-article h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--fc-navy);
  margin: 48px 0 20px;
  line-height: 1.5;
  position: relative;
  padding-bottom: 14px;
}
.fc-article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to left, var(--fc-gold), var(--fc-gold-light));
  border-radius: 2px;
}
.fc-article h3 {
  font-size: 23px;
  font-weight: 700;
  color: var(--fc-navy);
  margin: 36px 0 16px;
  line-height: 1.6;
}
.fc-article h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fc-navy-light);
  margin: 28px 0 12px;
  line-height: 1.6;
}
.fc-article p {
  margin: 0 0 18px;
  line-height: 2.1;
  color: var(--fc-text-body);
}
.fc-article strong {
  color: var(--fc-navy);
  font-weight: 700;
}
.fc-article ul,
.fc-article ol {
  margin: 0 0 20px;
  padding: 0 24px 0 0;
}
.fc-article li {
  margin-bottom: 8px;
  line-height: 2;
  position: relative;
}
.fc-article ul li::marker {
  color: var(--fc-gold);
}
.fc-article ol li::marker {
  color: var(--fc-gold);
  font-weight: 700;
}

/* ===== HIGHLIGHT BOX =====
   Fix v8.4: Scoped .fc-highlight p to beat .fc-article p (0,1,1) */
.fc-highlight {
  background: linear-gradient(135deg, var(--fc-light-bg), var(--fc-cream));
  border-radius: var(--fc-radius);
  padding: 24px 28px;
  margin: 28px 0;
  border-right: 4px solid var(--fc-gold);
}
.fc-highlight p,
.fc-article .fc-highlight p {
  margin: 0 0 8px;
  line-height: 2.1;
  color: var(--fc-text-body);
}
.fc-highlight p:last-child,
.fc-article .fc-highlight p:last-child {
  margin-bottom: 0;
}

/* ===== CTA BLOCK (inline) =====
   Fix v8.4: All text elements scoped under .fc-cta parent
   to boost specificity above .fc-article h3/p (0,1,1) */
.fc-cta {
  background: linear-gradient(135deg, var(--fc-navy), var(--fc-navy-dark));
  border-radius: var(--fc-radius-lg);
  padding: 40px 36px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.fc-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200,150,62,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.fc-cta::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(200,150,62,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
/* v8.4: .fc-cta .fc-cta-title = (0,2,0) beats .fc-article h3 (0,1,1) */
.fc-cta .fc-cta-title,
.fc-cta h3.fc-cta-title,
.fc-cta h2.fc-cta-title,
.fc-cta h4.fc-cta-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--fc-white);
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
  padding-bottom: 0;
}
.fc-cta .fc-cta-title::after {
  display: none; /* Cancel the gold line inherited from .fc-article h2 */
}
.fc-cta .fc-cta-title span {
  color: var(--fc-gold);
}
/* v8.4: .fc-cta .fc-cta-desc = (0,2,0) beats .fc-article p (0,1,1) */
.fc-cta .fc-cta-desc,
.fc-cta p.fc-cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}
.fc-cta .fc-cta-phone {
  font-size: 28px;
  font-weight: 800;
  color: var(--fc-gold);
  margin: 16px 0;
  direction: ltr;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}
.fc-cta .fc-cta-phone a {
  color: var(--fc-gold);
  text-decoration: none;
}
.fc-cta .fc-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
/* v8.4: Button rules boosted to work inside/outside .fc-cta */
.fc-btn-whatsapp,
.fc-cta .fc-btn-whatsapp,
.fc-cta-mini .fc-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fc-green);
  color: var(--fc-white);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.fc-btn-whatsapp:hover,
.fc-cta .fc-btn-whatsapp:hover,
.fc-cta-mini .fc-btn-whatsapp:hover {
  background: var(--fc-green-dark);
  color: var(--fc-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.fc-btn-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.fc-btn-call,
.fc-cta .fc-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--fc-white);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
}
.fc-btn-call:hover,
.fc-cta .fc-btn-call:hover {
  border-color: var(--fc-gold);
  color: var(--fc-gold);
  transform: translateY(-2px);
}
.fc-btn-call svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== CTA MINI (smaller inline) =====
   Fix v8.4: Scoped text rules to beat .fc-article strong (0,1,1) */
.fc-cta-mini {
  background: var(--fc-light-bg);
  border: 2px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.fc-cta-mini .fc-cta-mini-text {
  flex: 1;
  min-width: 200px;
}
.fc-cta-mini .fc-cta-mini-text strong {
  display: block;
  font-size: 18px;
  color: var(--fc-navy);
  margin-bottom: 4px;
  font-weight: 700;
}
.fc-cta-mini .fc-cta-mini-text span {
  font-size: 14px;
  color: var(--fc-text-muted);
}
.fc-cta-mini .fc-btn-whatsapp {
  padding: 12px 24px;
  font-size: 14px;
}

/* ===== COMPARISON TABLE ===== */
.fc-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-md);
}
.fc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 15px;
}
.fc-table thead {
  background: linear-gradient(135deg, var(--fc-navy), var(--fc-navy-dark));
}
.fc-table thead th {
  padding: 18px 20px;
  color: var(--fc-white);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: none;
  white-space: nowrap;
}
.fc-table thead th:first-child {
  text-align: right;
  border-radius: 0 var(--fc-radius-lg) 0 0;
}
.fc-table thead th:last-child {
  border-radius: var(--fc-radius-lg) 0 0 0;
}
.fc-table thead th.fc-th-gold {
  background: linear-gradient(135deg, var(--fc-gold-dark), var(--fc-gold));
}
.fc-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--fc-border);
  text-align: center;
  vertical-align: middle;
  line-height: 1.8;
  color: var(--fc-text-body);
}
.fc-table tbody td:first-child {
  text-align: right;
  font-weight: 700;
  color: var(--fc-navy);
  background: var(--fc-light-bg);
}
.fc-table tbody tr:last-child td {
  border-bottom: none;
}
.fc-table tbody tr:hover td {
  background: rgba(200,150,62,0.04);
}
.fc-table tbody tr:hover td:first-child {
  background: rgba(200,150,62,0.08);
}
.fc-table .fc-check {
  color: var(--fc-green);
  font-size: 20px;
  font-weight: 700;
}
.fc-table .fc-cross {
  color: #e74c3c;
  font-size: 20px;
  font-weight: 700;
}

/* ===== FAQ SECTION =====
   Fix v8.4: 
   - Scoped rules with .fc-faq parent for specificity
   - !important on max-height:0 as safety net (guarantees accordion
     always starts closed regardless of WordPress HTML modifications) */
.fc-faq {
  margin: 40px 0;
}
.fc-faq .fc-faq-title,
.fc-faq h2.fc-faq-title,
.fc-faq h3.fc-faq-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--fc-navy);
  text-align: center;
  margin: 0 0 28px;
  padding-bottom: 0;
}
.fc-faq .fc-faq-title::after {
  display: none; /* Cancel the gold line inherited from .fc-article h2 */
}
.fc-faq .fc-faq-list {
  max-width: 100%;
}
.fc-faq .fc-faq-item {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  margin-bottom: 12px;
  border: 1px solid var(--fc-border);
  overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s;
}
.fc-faq .fc-faq-item:hover {
  box-shadow: var(--fc-shadow-sm);
}
.fc-faq .fc-faq-item.active {
  border-color: var(--fc-gold);
  box-shadow: var(--fc-shadow-md);
}
.fc-faq .fc-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--fc-navy);
  text-align: right;
  line-height: 1.7;
  gap: 16px;
  transition: color 0.3s;
  user-select: none;
}
.fc-faq .fc-faq-q > span:first-child:not(.fc-faq-icon) {
  flex: 1;
}
.fc-faq .fc-faq-q:hover {
  color: var(--fc-gold-dark);
}
.fc-faq .fc-faq-item.active .fc-faq-q {
  color: var(--fc-gold-dark);
}
.fc-faq .fc-faq-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, var(--fc-light-bg), var(--fc-cream));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  color: var(--fc-gold);
  transition: all 0.4s;
}
.fc-faq .fc-faq-item.active .fc-faq-icon {
  background: linear-gradient(135deg, var(--fc-gold), var(--fc-gold-light));
  color: var(--fc-white);
  transform: rotate(45deg);
  border-radius: 50%;
}
/* v8.4 CRITICAL: !important guarantees accordion closes by default
   even if WordPress inserts wrapper elements or modifies structure */
.fc-faq .fc-faq-a {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}
.fc-faq .fc-faq-item.active .fc-faq-a {
  max-height: 1500px !important;
  padding: 0 28px 28px;
}
.fc-faq .fc-faq-a p,
.fc-article .fc-faq .fc-faq-a p {
  font-size: 15px;
  line-height: 2.2;
  color: var(--fc-text-body);
  background: linear-gradient(135deg, var(--fc-light-bg), var(--fc-cream));
  padding: 20px 24px;
  border-radius: var(--fc-radius);
  border-right: 4px solid var(--fc-gold);
  margin: 0;
}
.fc-faq .fc-faq-a strong,
.fc-article .fc-faq .fc-faq-a strong {
  color: var(--fc-navy);
  font-weight: 700;
}



/* ===== FAQ SECTION (LEGACY - .faq-item / .faq-question / .faq-answer) =====
   v8.6: Support for legacy FAQ markup used on:
   - Homepage (front-page.php)
   - Service pages (تشطيب-فلل, تشطيب-شقق, تشطيب-واجهات, etc.)
   - Old area articles (المعادي, مدينتي, etc.)
   Same visual design as .fc-faq but different class names
   for backward compatibility with existing content. */

.faq-container {
  margin: 40px 0;
}
.faq-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--fc-navy);
  text-align: center;
  margin: 0 0 28px;
}
.faq-list {
  max-width: 100%;
}
.faq-item {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  margin-bottom: 12px;
  border: 1px solid var(--fc-border);
  overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s;
}
.faq-item:hover {
  box-shadow: var(--fc-shadow-sm);
}
.faq-item.active {
  border-color: var(--fc-gold);
  box-shadow: var(--fc-shadow-md);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--fc-navy);
  text-align: right;
  line-height: 1.7;
  gap: 16px;
  transition: color 0.3s;
  user-select: none;
}
.faq-question > span:first-child:not(.faq-icon) {
  flex: 1;
}
.faq-question:hover {
  color: var(--fc-gold-dark);
}
.faq-item.active .faq-question {
  color: var(--fc-gold-dark);
}
.faq-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, var(--fc-light-bg), var(--fc-cream));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  color: var(--fc-gold);
  transition: all 0.4s;
  flex: 0 0 38px;
}
.faq-item.active .faq-icon {
  background: linear-gradient(135deg, var(--fc-gold), var(--fc-gold-light));
  color: var(--fc-white);
  transform: rotate(45deg);
}
/* v8.6 CRITICAL: !important guarantees accordion closes by default */
.faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}
.faq-item.active .faq-answer {
  max-height: 1500px !important;
  padding: 0 28px 28px;
}
.faq-answer p {
  font-size: 15px;
  line-height: 2.2;
  color: var(--fc-text-body);
  background: linear-gradient(135deg, var(--fc-light-bg), var(--fc-cream));
  padding: 20px 24px;
  border-radius: var(--fc-radius);
  border-right: 4px solid var(--fc-gold);
  margin: 0;
}
.faq-answer strong {
  color: var(--fc-navy);
  font-weight: 700;
}

/* Responsive for legacy FAQ */
@media (max-width: 768px) {
  .faq-question {
    font-size: 15px;
    padding: 18px 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
  }
}

/* ===== NUMBERED LIST (steps) =====
   Fix v8.4: Scoped .fc-steps li rules to beat .fc-article li (0,1,1) */
.fc-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.fc-article ol.fc-steps,
ol.fc-steps {
  padding: 0;
}
.fc-steps li,
.fc-article .fc-steps li,
.fc-article ol.fc-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 70px 20px 20px;
  margin-bottom: 12px;
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
  transition: box-shadow 0.3s;
  line-height: 2;
  list-style: none;
}
.fc-steps li::marker,
.fc-article .fc-steps li::marker {
  content: '';
  color: transparent;
}
.fc-steps li:hover,
.fc-article .fc-steps li:hover {
  box-shadow: var(--fc-shadow-sm);
}
.fc-steps li::before,
.fc-article .fc-steps li::before {
  content: counter(step);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--fc-navy), var(--fc-navy-light));
  color: var(--fc-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

/* ===== FEATURE GRID =====
   Fix v8.4: Scoped h4 and p rules to beat .fc-article h4/p (0,1,1) */
.fc-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.fc-features .fc-feature-card {
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}
.fc-features .fc-feature-card:hover {
  border-color: var(--fc-gold);
  box-shadow: var(--fc-shadow-sm);
  transform: translateY(-2px);
}
.fc-features .fc-feature-card .fc-feat-icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}
.fc-features .fc-feature-card h4,
.fc-article .fc-features .fc-feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fc-navy);
  margin: 0 0 8px;
  line-height: 1.5;
}
.fc-features .fc-feature-card h4 a,
.fc-article .fc-features .fc-feature-card h4 a {
  color: var(--fc-navy);
  text-decoration: none;
  transition: color 0.3s;
}
.fc-features .fc-feature-card h4 a:hover,
.fc-article .fc-features .fc-feature-card h4 a:hover {
  color: var(--fc-gold-dark);
}
.fc-features .fc-feature-card p,
.fc-article .fc-features .fc-feature-card p {
  font-size: 14px;
  color: var(--fc-text-muted);
  margin: 0;
  line-height: 1.9;
}

/* ===== IMAGE PLACEHOLDER ===== */
.fc-img-placeholder {
  background: linear-gradient(135deg, var(--fc-light-bg), var(--fc-cream));
  border: 2px dashed var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 40px 20px;
  text-align: center;
  margin: 28px 0;
  color: var(--fc-text-muted);
  font-size: 14px;
}

/* ===== QUOTE / TIP BOX =====
   Fix v8.4: Scoped .fc-tip p to beat .fc-article p (0,1,1) */
.fc-tip {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  padding: 24px 28px;
  margin: 28px 0;
  border-right: 4px solid var(--fc-gold);
  box-shadow: var(--fc-shadow-sm);
  position: relative;
}
.fc-tip::before {
  content: '💡';
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--fc-white);
  padding: 0 8px;
  font-size: 20px;
}
.fc-tip p,
.fc-article .fc-tip p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--fc-text-body);
}
.fc-tip p:last-child,
.fc-article .fc-tip p:last-child {
  margin-bottom: 0;
}

/* ===== STATS BAR ===== */
.fc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.fc-stat {
  background: linear-gradient(135deg, var(--fc-navy), var(--fc-navy-dark));
  border-radius: var(--fc-radius);
  padding: 24px 16px;
  text-align: center;
}
.fc-stat .fc-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--fc-gold);
  display: block;
  line-height: 1.3;
}
.fc-stat .fc-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  display: block;
}

/* ===== SEPARATOR ===== */
.fc-sep {
  border: none;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--fc-border), var(--fc-gold), var(--fc-border), transparent);
  margin: 48px 0;
}

/* ===== BLOCKQUOTE (Testimonials) =====
   v8.4: Also works standalone (without .fc-article wrapper) */
.fc-article blockquote,
blockquote.fc-quote {
  background: linear-gradient(135deg, var(--fc-light-bg), var(--fc-cream));
  border-right: 5px solid var(--fc-gold);
  padding: 28px 30px;
  margin: 28px 0;
  border-radius: var(--fc-radius);
  position: relative;
  box-shadow: var(--fc-shadow-sm);
}
.fc-article blockquote::before,
blockquote.fc-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 24px;
  font-size: 90px;
  color: var(--fc-gold);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}
.fc-article blockquote p,
blockquote.fc-quote p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--fc-text-body);
  font-style: italic;
  margin-bottom: 10px;
}
.fc-article blockquote p:last-child,
blockquote.fc-quote p:last-child {
  margin-bottom: 0;
  font-style: normal;
  text-align: left;
  color: var(--fc-navy);
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fc-article h2 {
    font-size: 23px;
    margin: 36px 0 16px;
  }
  .fc-article h3 {
    font-size: 20px;
  }
  .fc-article h4 {
    font-size: 18px;
  }
  .fc-article {
    font-size: 16px;
  }
  .fc-cta {
    padding: 30px 24px;
  }
  .fc-cta .fc-cta-title,
  .fc-cta h3.fc-cta-title {
    font-size: 20px;
  }
  .fc-cta .fc-cta-phone {
    font-size: 22px;
  }
  .fc-cta .fc-cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .fc-btn-whatsapp,
  .fc-btn-call,
  .fc-cta .fc-btn-whatsapp,
  .fc-cta .fc-btn-call {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .fc-cta-mini {
    flex-direction: column;
    text-align: center;
  }
  .fc-cta-mini .fc-btn-whatsapp {
    width: 100%;
    max-width: 280px;
  }
  .fc-table {
    font-size: 13px;
  }
  .fc-table thead th,
  .fc-table tbody td {
    padding: 12px 10px;
  }
  .fc-faq .fc-faq-q {
    font-size: 15px;
    padding: 18px 20px;
  }
  .fc-faq .fc-faq-a {
    padding: 0 20px;
  }
  .fc-faq .fc-faq-item.active .fc-faq-a {
    padding: 0 20px 20px;
  }
  .fc-steps li,
  .fc-article .fc-steps li {
    padding-right: 60px;
  }
  .fc-features {
    grid-template-columns: 1fr;
  }
  .fc-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .fc-stat .fc-stat-num {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .fc-article h2 {
    font-size: 20px;
  }
  .fc-cta .fc-cta-title,
  .fc-cta h3.fc-cta-title {
    font-size: 18px;
  }
  .fc-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* =============================================
   LANDING PAGE STYLES (Isolated pages)
   ============================================= */

body.fc-landing-page {
  background: var(--fc-white);
}

.fc-landing-header {
  background: var(--fc-navy-dark);
  padding: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.fc-landing-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fc-landing-brand {
  color: var(--fc-white);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.fc-landing-brand-logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

.fc-landing-header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fc-landing-header-cta .fc-btn-whatsapp,
.fc-landing-header-cta .fc-btn-call {
  padding: 10px 18px;
  font-size: 14px;
  min-width: auto;
  width: auto;
  max-width: none;
}

.fc-landing-content {
  padding: 40px 0 60px;
  background: var(--fc-white);
}

.fc-landing-content .fc-article {
  max-width: 900px;
  margin: 0 auto;
}

.fc-landing-footer {
  background: var(--fc-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

.fc-landing-footer a {
  color: var(--fc-gold-light);
  text-decoration: none;
}

.fc-landing-footer a:hover {
  color: var(--fc-white);
}

.fc-landing-footer p {
  margin: 4px 0;
}

@media (max-width: 640px) {
  .fc-landing-header .container {
    flex-direction: column;
    gap: 12px;
  }
  .fc-landing-brand {
    font-size: 18px;
  }
  .fc-landing-header-cta .fc-btn-whatsapp,
  .fc-landing-header-cta .fc-btn-call {
    font-size: 13px;
    padding: 8px 14px;
  }
}
/* =============================================
   LANDING ARTICLE PAGE STYLES (v8.9)
   Template: page-landing-article.php
   Hybrid design: article + custom brand header/footer
   ADD THIS AT THE END OF blog-articles.css
   ============================================= */

body.fc-landing-article-page {
  background: var(--fc-white);
}

/* ===== ARTICLE HERO (Title Section) ===== */
.fc-landing-article-hero {
  background: linear-gradient(135deg, var(--fc-navy-dark), var(--fc-navy));
  padding: 60px 0 50px;
  text-align: center;
  color: var(--fc-white);
  position: relative;
  overflow: hidden;
}
.fc-landing-article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,150,62,0.08) 0%, transparent 60%);
  border-radius: 50%;
}
.fc-landing-article-hero .container {
  position: relative;
  z-index: 1;
}
.fc-landing-article-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.5;
  max-width: 900px;
  margin: 0 auto 16px;
  color: var(--fc-white);
  font-family: 'Cairo', sans-serif;
}
.fc-landing-article-excerpt {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FEATURED IMAGE ===== */
.fc-landing-article-featured {
  background: var(--fc-light-bg);
  padding: 40px 0;
}
.fc-landing-article-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-md);
  object-fit: cover;
}

/* ===== CONTENT + SIDEBAR LAYOUT ===== */
.fc-landing-article-content {
  padding: 50px 0 70px;
  background: var(--fc-white);
}
.fc-landing-article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.fc-landing-article-main {
  min-width: 0; /* Prevents overflow of long text/URLs */
}
.fc-landing-article-main .fc-article {
  max-width: 100%;
}

/* ===== SIDEBAR ===== */
.fc-landing-article-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar CTA Widget (WhatsApp + Phone) */
.fc-sidebar-cta {
  background: linear-gradient(135deg, var(--fc-navy), var(--fc-navy-dark));
  border-radius: var(--fc-radius-lg);
  padding: 32px 24px;
  text-align: center;
  color: var(--fc-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--fc-shadow-md);
}
.fc-sidebar-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(200,150,62,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.fc-sidebar-cta::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(200,150,62,0.10) 0%, transparent 70%);
  border-radius: 50%;
}
.fc-sidebar-cta > * {
  position: relative;
  z-index: 1;
}
.fc-sidebar-cta-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
}
.fc-sidebar-cta h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--fc-white);
  margin: 0 0 10px;
  line-height: 1.5;
  padding-bottom: 0;
}
.fc-sidebar-cta h3::after {
  display: none; /* Cancel gold underline from .fc-article h2 */
}
.fc-sidebar-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 20px;
  line-height: 1.8;
}
.fc-sidebar-cta-phone {
  font-size: 22px;
  font-weight: 800;
  color: var(--fc-gold);
  direction: ltr;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.fc-sidebar-cta-phone a {
  color: var(--fc-gold);
  text-decoration: none;
}
.fc-sidebar-cta-phone a:hover {
  color: var(--fc-gold-light);
}
.fc-sidebar-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fc-sidebar-cta-btns .fc-btn-whatsapp {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
}
.fc-sidebar-cta-btns .fc-btn-call-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--fc-white);
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
}
.fc-sidebar-cta-btns .fc-btn-call-alt:hover {
  border-color: var(--fc-gold);
  color: var(--fc-gold);
  transform: translateY(-2px);
}
.fc-sidebar-cta-btns .fc-btn-call-alt svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Trust Badges Widget */
.fc-sidebar-trust {
  background: var(--fc-white);
  border: 2px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 24px;
}
.fc-sidebar-trust h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--fc-navy);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fc-gold);
  font-family: 'Cairo', sans-serif;
}
.fc-sidebar-trust ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fc-sidebar-trust li {
  padding: 10px 0 10px 0;
  padding-right: 24px;
  font-size: 14px;
  color: var(--fc-text-body);
  border-bottom: 1px solid var(--fc-border);
  position: relative;
  line-height: 1.6;
}
.fc-sidebar-trust li:last-child {
  border-bottom: none;
}
.fc-sidebar-trust li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 10px;
  color: var(--fc-gold);
  font-weight: 800;
  font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .fc-landing-article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .fc-landing-article-sidebar {
    position: static;
  }
  .fc-landing-article-title {
    font-size: 26px;
  }
  .fc-landing-article-excerpt {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .fc-landing-article-hero {
    padding: 40px 0 30px;
  }
  .fc-landing-article-title {
    font-size: 23px;
    line-height: 1.4;
  }
  .fc-landing-article-content {
    padding: 30px 0 50px;
  }
  .fc-landing-article-featured {
    padding: 24px 0;
  }
  .fc-sidebar-cta {
    padding: 24px 20px;
  }
  .fc-sidebar-cta h3 {
    font-size: 18px;
  }
  .fc-sidebar-cta-phone {
    font-size: 20px;
  }
  .fc-sidebar-cta-icon {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .fc-landing-article-title {
    font-size: 20px;
  }
  .fc-landing-article-excerpt {
    font-size: 14px;
  }
}

/* =============================================
   v8.9.1 MOBILE OVERFLOW HOTFIX
   Aggressive rules to force ALL content to fit
   within mobile viewport — overrides any inline
   styles or plugin CSS that cause horizontal overflow
   ============================================= */

@media (max-width: 768px) {
  /* --- Force viewport containment at every level --- */
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  /* --- All top-level layout containers --- */
  body > *,
  .container,
  .site-header,
  .fc-header-sticky,
  .top-bar,
  .hero,
  .section,
  .cta-section,
  .single-post-header,
  .page-header,
  .article-section,
  .site-footer,
  .fc-landing-header,
  .fc-landing-content,
  .fc-landing-footer,
  .fc-landing-article-hero,
  .fc-landing-article-featured,
  .fc-landing-article-content,
  main {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* --- Article content wrappers --- */
  .article-content,
  .single-content,
  .fc-article,
  .service-page-content,
  .fc-landing-article-main,
  .fc-landing-article-layout {
    max-width: 100% !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* --- ALL direct children of article containers --- */
  .article-content > *,
  .single-content > *,
  .fc-article > *,
  .service-page-content > *,
  .fc-landing-article-main > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* --- Force images/media to fit (overrides inline width) --- */
  img,
  video,
  iframe,
  embed,
  object,
  picture,
  .wp-block-image,
  .wp-block-image img,
  figure,
  figure img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* --- Tables: make them horizontally scrollable if too wide --- */
  .article-content table,
  .single-content table,
  .fc-article table,
  .service-page-content table {
    max-width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* --- Break long words / URLs / long Arabic phrases --- */
  p, li, h1, h2, h3, h4, h5, h6, span, div, blockquote, a, strong, em {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100%;
  }

  /* --- Kill any element with inline width in content areas --- */
  .article-content [style*="width"],
  .single-content [style*="width"],
  .fc-article [style*="width"],
  .service-page-content [style*="width"],
  .fc-landing-article-main [style*="width"] {
    max-width: 100% !important;
    width: auto !important;
  }

  /* --- CTA blocks: force full width, no overflow --- */
  .fc-cta,
  .fc-cta-mini,
  .fc-highlight,
  .fc-tip,
  .fc-features,
  .fc-feature-card,
  .fc-steps,
  .fc-stats,
  .fc-stat,
  .fc-table-wrap {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* --- Prevent hero image and portfolio items from overflowing --- */
  .hero-image-main,
  .portfolio-item,
  .about-image,
  .post-card-image,
  .fc-landing-article-img {
    max-width: 100% !important;
  }

  /* --- Fixed-position elements (whatsapp float, sticky headers) --- */
  .whatsapp-float {
    max-width: 60px !important;
  }
}

/* Extra safety for very small screens */
@media (max-width: 480px) {
  html, body {
    font-size: 15px;
  }
  * {
    max-width: 100vw !important;
  }
  img {
    max-width: 100% !important;
  }
}
