/* ==========================================================================
   AL-FAROUQ TOOLS - SEO & LANDING PAGES STYLESHEET (css/seo-pages.css)
   Colors: Primary Navy #203763 | Dark #122240 | Gold #fab019 | Border #e2e8f0
   Font: Cairo, sans-serif
   ========================================================================== */

/* Breadcrumb Navigation */
.breadcrumbs-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  font-size: 0.88rem;
}
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}
.breadcrumbs-list li + li::before {
  content: "›";
  color: #94a3b8;
  font-weight: 700;
  font-size: 1.1rem;
}
.breadcrumbs-list a {
  color: #203763;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.breadcrumbs-list a:hover {
  color: #fab019;
}
.breadcrumbs-list li[aria-current="page"] {
  color: #1e293b;
  font-weight: 700;
}

/* Article Hero Header */
.seo-hero {
  background: linear-gradient(135deg, #122240 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.seo-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(250, 176, 25, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.seo-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.seo-cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 176, 25, 0.18);
  border: 1px solid rgba(250, 176, 25, 0.4);
  color: #fab019;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.seo-hero h1 {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 16px;
}
.seo-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}
.seo-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seo-hero-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #e2e8f0;
  margin: 0;
  border-right: 3px solid #fab019;
  padding-right: 16px;
}

/* Page Layout */
.seo-page-container {
  padding: 40px 0 60px;
  background: #f8fafc;
}
.seo-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

/* Article Card / Box */
.seo-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}
.seo-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #122240;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid #fab019;
  display: inline-block;
}
.seo-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #203763;
  margin: 24px 0 10px;
}
.seo-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 16px;
}
.seo-card ul, .seo-card ol {
  line-height: 1.8;
  color: #334155;
  padding-right: 24px;
  margin-bottom: 20px;
}
.seo-card li {
  margin-bottom: 10px;
}
.seo-card strong {
  color: #0f172a;
}

/* Data Table Responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}
.seo-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.95rem;
  background: #ffffff;
}
.seo-data-table thead {
  background: #122240;
  color: #ffffff;
}
.seo-data-table th {
  padding: 14px 16px;
  font-weight: 700;
  border-bottom: 2px solid #fab019;
  white-space: nowrap;
}
.seo-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.seo-data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.seo-data-table tbody tr:hover {
  background: #f1f5f9;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 10px;
}
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item[open] {
  border-color: #fab019;
  box-shadow: 0 4px 15px rgba(250, 176, 25, 0.1);
}
.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #122240;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: #203763;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  content: "−";
  color: #fab019;
}
.faq-answer {
  padding: 0 20px 18px;
  color: #475569;
  line-height: 1.75;
  font-size: 0.95rem;
  border-top: 1px dashed #e2e8f0;
  margin-top: 4px;
  padding-top: 14px;
}

/* Authentic Al-Farouq CTA Box */
.seo-cta-box {
  background: linear-gradient(135deg, #122240 0%, #1e3a8a 100%);
  border-radius: 14px;
  padding: 36px 32px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(18, 34, 64, 0.15);
  border: 1px solid rgba(250, 176, 25, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.seo-cta-box h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fab019;
  margin: 0 0 10px;
}
.seo-cta-box p {
  font-size: 1rem;
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.seo-cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.seo-cta-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.seo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.btn-cta-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
}
.btn-cta-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}
.btn-cta-phone {
  background: #fab019;
  color: #122240;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
}
.btn-cta-phone:hover {
  background: #e09e13;
  transform: translateY(-2px);
}
.btn-cta-rfq {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}
.btn-cta-rfq:hover {
  background: #ffffff;
  color: #122240;
}

/* Related Guides Cards */
.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.related-guide-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.related-guide-card:hover {
  border-color: #fab019;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.related-guide-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #122240;
  margin: 0 0 8px;
  line-height: 1.45;
}
.related-guide-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.5;
}
.related-guide-card .read-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #203763;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Calculator Widget Component */
.seo-calculator-widget {
  background: #ffffff;
  border: 2px solid #fab019;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 8px 25px rgba(250, 176, 25, 0.12);
}
.calc-widget-header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}
.calc-widget-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #122240;
  margin: 0 0 6px;
}
.calc-widget-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}
.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.calc-field-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.calc-field-group select,
.calc-field-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.calc-field-group select:focus,
.calc-field-group input:focus {
  border-color: #203763;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(32, 55, 99, 0.1);
}
.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.calc-preset-btn {
  background: #e2e8f0;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background 0.2s;
}
.calc-preset-btn:hover {
  background: #cbd5e1;
}
.calc-results-panel {
  background: #f8fafc;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}
.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.calc-result-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.calc-result-box.highlight {
  border-color: #fab019;
  background: #fffdf5;
}
.calc-res-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}
.calc-res-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #122240;
}
.calc-res-val.gold {
  color: #d97706;
}
.calc-res-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 4px;
}

/* Hub Directory Grid */
.hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  justify-content: center;
}
.hub-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}
.hub-filter-btn.active, .hub-filter-btn:hover {
  background: #203763;
  color: #ffffff;
  border-color: #203763;
}
.hub-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.hub-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s;
}
.hub-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #fab019;
}
.hub-card-cluster {
  font-size: 0.78rem;
  font-weight: 700;
  color: #203763;
  background: #e0e7ff;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.hub-article-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #122240;
  margin: 0 0 10px;
  line-height: 1.4;
}
.hub-article-card p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.6;
}

/* Dashboard Styles */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.dash-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.dash-stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #203763;
  margin-bottom: 4px;
}
.dash-stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
}
.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-status.success {
  background: #dcfce7;
  color: #15803d;
}
.badge-status.info {
  background: #e0f2fe;
  color: #0369a1;
}

/* Responsive Rules for Small Devices */
@media (max-width: 768px) {
  .seo-hero h1 {
    font-size: 1.6rem;
  }
  .seo-card {
    padding: 20px 16px;
  }
  .seo-cta-box {
    padding: 26px 18px;
  }
  .seo-cta-contacts {
    flex-direction: column;
    align-items: stretch;
  }
  .calc-form-grid {
    grid-template-columns: 1fr;
  }
  .calc-results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .dash-stat-card {
    padding: 14px 10px;
  }
  .dash-stat-number {
    font-size: 1.6rem;
  }
  .dash-stat-label {
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .seo-hero {
    padding: 32px 0 26px;
  }
  .seo-hero h1 {
    font-size: 1.35rem;
  }
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
  .hub-filter-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

