/**
 * Porto Theme Unification CSS
 * Standardizes typography, sections, and visual design across all 283 pages
 * to match the Porto marketing demo theme.
 *
 * IMPORTANT: All rules scoped to .page-content to avoid affecting
 * the header, navigation, and footer (which also use Elementor).
 *
 * Format A: "Porto Clean" — body.porto-format-a (default)
 * Format B: "Porto Split" — body.porto-format-b
 *
 * Version: 1.3.0
 */

/* ========================================
   :ROOT — Porto Demo Color & Typography Tokens
   ======================================== */
:root {
  --porto-primary: #6b39f4;
  --porto-secondary: #9e17f1;
  --porto-dark: #212529;
  --porto-text: #777;
  --porto-text-dark: #333;
  --porto-bg-light: #f7f7ff;
  --porto-bg-mint: #d6efe8;
  --porto-bg-gradient: linear-gradient(135deg, #f7f7ff 0%, #d6efe8 100%);
  --porto-bg-dark: #212529;
  --porto-card-radius: 16px;
  --porto-card-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --porto-btn-radius: 9999px;
  --porto-section-pad: clamp(3.5rem, 6vw, 5rem);
  --porto-section-pad-lg: clamp(5rem, 8vw, 8.75rem);
  --porto-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL HEADING TYPOGRAPHY — Lexend
   Scoped to .page-content on NON-HOMEPAGE pages only.
   The homepage uses Elementor with its own font sizes —
   these overrides must NOT apply there.
   ======================================== */

/* H1 — Hero headings (service/inner pages only) */
body:not(.home) .page-content h1,
body:not(.home) .page-content h1.elementor-heading-title,
body:not(.home) .page-content .nexura-page-header h1.elementor-heading-title {
  font-family: "Lexend", sans-serif !important;
  font-size: 3.75rem !important;
  font-weight: 400 !important;
  line-height: 1.1em !important;
  letter-spacing: -0.05em !important;
  color: var(--porto-dark);
}

/* H2 — Section headings (service/inner pages only) */
body:not(.home) .page-content h2,
body:not(.home) .page-content h2.elementor-heading-title {
  font-family: "Lexend", sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  line-height: 1.1em !important;
  letter-spacing: -0.05em !important;
  color: var(--porto-dark);
}

/* H2 inside content sections — dark for clean readability */
body:not(.home) .page-content .e-con.e-parent:not(.nexura-page-header):not(.nexura-cta-section) h2.elementor-heading-title {
  color: var(--porto-dark);
}

/* H3 — Card titles, sub-section headings (service/inner pages only) */
body:not(.home) .page-content h3,
body:not(.home) .page-content h3.elementor-heading-title {
  font-family: "Lexend", sans-serif !important;
  font-size: 1.3125rem !important;
  font-weight: 500 !important;
  line-height: 1.4em !important;
  letter-spacing: -0.05em !important;
  color: var(--porto-text-dark) !important;
}

/* H4 — Card sub-headings (service/inner pages only) */
body:not(.home) .page-content h4 {
  font-family: "Lexend", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  line-height: 1.4em !important;
  letter-spacing: -0.03em !important;
  color: var(--porto-dark) !important;
}

/* Section labels — small uppercase labels above headings (service/inner pages only) */
body:not(.home) .page-content .section-label,
body:not(.home) .page-content span.elementor-heading-title {
  font-family: "Lexend", sans-serif !important;
  font-size: 0.9625rem !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--porto-secondary) !important;
}

/* Body text — Poppins (service/inner pages only) */
body:not(.home) .page-content p {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--porto-text);
}

/* Text-editor widget content (service/inner pages only) */
body:not(.home) .page-content .elementor-widget-text-editor h2 {
  font-family: "Lexend", sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  line-height: 1.1em !important;
  letter-spacing: -0.05em !important;
  color: var(--porto-dark);
}

body:not(.home) .page-content .elementor-widget-text-editor h3 {
  font-family: "Lexend", sans-serif !important;
  font-size: 1.3125rem !important;
  font-weight: 500 !important;
  line-height: 1.4em !important;
  letter-spacing: -0.05em !important;
  color: var(--porto-text-dark) !important;
}

.page-content .elementor-widget-text-editor ul {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--porto-text);
}

.page-content .elementor-widget-text-editor ul li {
  margin-bottom: 8px;
}

.page-content .elementor-widget-text-editor a {
  color: var(--porto-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--porto-transition);
}

.page-content .elementor-widget-text-editor a:hover {
  color: var(--porto-secondary);
  text-decoration: underline;
}

/* Sub-heading (paragraph used as Elementor heading — inner pages only) */
body:not(.home) .page-content p.elementor-heading-title {
  font-family: "Poppins", sans-serif !important;
  font-size: 1.0125rem !important;
  font-weight: 400 !important;
  line-height: 1.7em !important;
  color: #555 !important;
}

/* Breadcrumb headings */
.page-content .nexura-breadcrumb .elementor-heading-title {
  font-family: "Lexend", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: #555 !important;
}

.page-content .nexura-breadcrumb .elementor-heading-title a {
  color: var(--porto-primary) !important;
  text-decoration: none !important;
}

.page-content .nexura-breadcrumb .elementor-heading-title a:hover {
  color: var(--porto-secondary) !important;
  text-decoration: underline !important;
}

/* Breadcrumb inside .page-header shortcode */
.page-content .page-header .breadcrumb {
  font-family: "Lexend", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: #555 !important;
}

.page-content .page-header .breadcrumb a {
  color: var(--porto-primary) !important;
  text-decoration: none !important;
}

.page-content .page-header .breadcrumb a:hover {
  color: var(--porto-secondary) !important;
  text-decoration: underline !important;
}

/* Porto WPBakery heading normalization (inner pages only) */
body:not(.home) .page-content .porto-u-heading h2,
body:not(.home) .page-content .porto-u-main-heading h2 {
  font-family: "Lexend", sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  line-height: 1.1em !important;
  letter-spacing: -0.05em !important;
}

body:not(.home) .page-content .porto-u-heading h3,
body:not(.home) .page-content .porto-u-main-heading h3 {
  font-family: "Lexend", sans-serif !important;
  font-size: 1.3125rem !important;
  font-weight: 500 !important;
  line-height: 1.4em !important;
  letter-spacing: -0.05em !important;
}

/* Elementor widget image safety */
.page-content .elementor-widget-image img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   PAGE HEADER / HERO — Service & Location Pages
   Scoped to .page-content to avoid Porto page-top
   ======================================== */
.page-content .page-header,
.page-content .service-page-header {
  background: var(--porto-bg-gradient) !important;
  padding: clamp(5rem, 8vw, 7.5rem) 5% var(--porto-section-pad) !important;
  text-align: center !important;
  position: relative !important;
}

/* Elementor page-header section (nexura-page-header class) */
.page-content .nexura-page-header {
  background: var(--porto-bg-gradient) !important;
}

/* Hero decorative circle */
.page-content .page-header::before {
  content: '' !important;
  position: absolute !important;
  width: 400px !important;
  height: 400px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(107, 57, 244, 0.06) 0%, transparent 70%) !important;
  top: -100px !important;
  right: -100px !important;
  pointer-events: none !important;
}

.page-content .page-header h1 {
  margin-bottom: 1.25rem !important;
}

.page-content .page-header p,
.page-content .page-header-description,
.page-content .nexura-header-desc {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #555 !important;
}

/* ========================================
   SECTION STANDARDIZATION
   ======================================== */

/* Base section padding (custom shortcode sections) */
.page-content .section,
.page-content .section-light,
.page-content .section-gradient,
.page-content .section-dark {
  padding: var(--porto-section-pad) 5% !important;
}

/* Light background */
.page-content .section-light {
  background: var(--porto-bg-light) !important;
}

/* Gradient */
.page-content .section-gradient {
  background: var(--porto-bg-gradient) !important;
}

/* Dark */
.page-content .section-dark {
  background: var(--porto-bg-dark) !important;
  color: #fff !important;
}

.page-content .section-dark h2,
.page-content .section-dark h3,
.page-content .section-dark h4,
.page-content .section-dark h2.elementor-heading-title,
.page-content .section-dark h3.elementor-heading-title {
  color: #fff !important;
}

.page-content .section-dark p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Section header */
.page-content .section-header {
  text-align: center !important;
  margin-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}

/* Section label pill */
.page-content .section-label {
  display: inline-block !important;
  padding: 8px 20px !important;
  background: rgba(107, 57, 244, 0.08) !important;
  color: var(--porto-secondary) !important;
  border-radius: 30px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 1rem !important;
}

/* ========================================
   CARD STANDARDIZATION — Porto Demo Style
   ======================================== */

/* Service cards */
.page-content .service-detail-card,
.page-content .service-card {
  background: #fff !important;
  border-radius: var(--porto-card-radius) !important;
  box-shadow: var(--porto-card-shadow) !important;
  padding: 2rem !important;
  transition: var(--porto-transition) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.page-content .service-detail-card:hover,
.page-content .service-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12) !important;
}

/* Services detail grid */
.page-content .services-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 1.5rem !important;
}

/* Glass cards */
.page-content .glass-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: var(--porto-card-radius) !important;
  box-shadow: var(--porto-card-shadow) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  transition: var(--porto-transition) !important;
}

.page-content .glass-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 25px 70px rgba(107, 57, 244, 0.15) !important;
}

/* Testimonial cards */
.page-content .testimonial-card {
  background: #fff !important;
  border-radius: var(--porto-card-radius) !important;
  box-shadow: var(--porto-card-shadow) !important;
  padding: 2rem !important;
  transition: var(--porto-transition) !important;
}

.page-content .testimonial-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12) !important;
}

/* Case study cards */
.page-content .case-study-card {
  background: #fff !important;
  border-radius: var(--porto-card-radius) !important;
  box-shadow: var(--porto-card-shadow) !important;
  transition: var(--porto-transition) !important;
}

.page-content .case-study-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 25px 70px rgba(107, 57, 244, 0.12) !important;
}

/* ========================================
   INDUSTRY TAGS — Porto pill style
   ======================================== */
.page-content .industry-tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 22px !important;
  background: #fff !important;
  border: 1px solid rgba(107, 57, 244, 0.15) !important;
  border-radius: var(--porto-btn-radius) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--porto-text-dark) !important;
  transition: var(--porto-transition) !important;
  margin: 4px !important;
}

.page-content .industry-tag:hover {
  background: var(--porto-primary) !important;
  color: #fff !important;
  border-color: var(--porto-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(107, 57, 244, 0.25) !important;
}

/* ========================================
   FAQ SECTION — Porto clean accordion
   ======================================== */
.page-content .faq-section {
  padding: var(--porto-section-pad) 5% !important;
}

.page-content .faq-item {
  background: #fff !important;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  transition: var(--porto-transition) !important;
}

.page-content .faq-item:hover,
.page-content .faq-item.active {
  box-shadow: 0 8px 30px rgba(107, 57, 244, 0.1) !important;
  border-color: rgba(107, 57, 244, 0.15) !important;
}

.page-content .faq-question {
  font-family: "Lexend", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--porto-dark) !important;
  padding: 1.25rem 1.5rem !important;
}

.page-content .faq-question:hover {
  color: var(--porto-primary) !important;
}

.page-content .faq-answer-inner {
  font-family: "Poppins", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--porto-text) !important;
  padding: 0 1.5rem 1.5rem !important;
}

/* ========================================
   CTA SECTION — Porto demo dark gradient
   ======================================== */
.page-content .cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
  padding: var(--porto-section-pad-lg) 5% !important;
  text-align: center !important;
}

.page-content .cta-section h2,
.page-content .cta-section .cta-content h2 {
  color: #fff !important;
  font-size: 2.5rem !important;
}

.page-content .cta-section p,
.page-content .cta-section .cta-content p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.1rem !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ========================================
   BUTTON STANDARDIZATION — Porto pill buttons
   Scoped to .page-content only
   ======================================== */
.page-content .btn-primary,
.page-content a.btn-primary,
.page-content .hero-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 32px !important;
  background: linear-gradient(135deg, var(--porto-primary) 0%, var(--porto-secondary) 100%) !important;
  color: #fff !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  border-radius: var(--porto-btn-radius) !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--porto-transition) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 25px rgba(107, 57, 244, 0.3) !important;
  line-height: 1.5 !important;
}

.page-content .btn-primary:hover,
.page-content a.btn-primary:hover,
.page-content .hero-btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(107, 57, 244, 0.4) !important;
  color: #fff !important;
}

/* Elementor button widgets — consistent styling across all pages */
.page-content .elementor-widget-button .elementor-button {
  border-radius: var(--porto-btn-radius) !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  padding: 14px 32px !important;
  transition: var(--porto-transition) !important;
  text-decoration: none !important;
}

/* Hero button — gradient purple bg, white text */
.page-content .nexura-hero-btn .elementor-button {
  background: linear-gradient(135deg, var(--porto-primary) 0%, var(--porto-secondary) 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(107, 57, 244, 0.3) !important;
}

.page-content .nexura-hero-btn .elementor-button-text {
  color: #fff !important;
}

.page-content .nexura-hero-btn .elementor-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(107, 57, 244, 0.4) !important;
}

/* General page buttons (non-hero, non-CTA) — purple gradient */
.page-content .e-con.e-parent:not(.nexura-page-header):not(.nexura-cta-section) .elementor-widget-button .elementor-button {
  background: linear-gradient(135deg, var(--porto-primary) 0%, var(--porto-secondary) 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(107, 57, 244, 0.3) !important;
}

.page-content .e-con.e-parent:not(.nexura-page-header):not(.nexura-cta-section) .elementor-widget-button .elementor-button-text {
  color: #fff !important;
}

.page-content .e-con.e-parent:not(.nexura-page-header):not(.nexura-cta-section) .elementor-widget-button .elementor-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(107, 57, 244, 0.4) !important;
}

/* Porto WPBakery buttons — pill radius only */
.page-content .vc_btn3 {
  border-radius: var(--porto-btn-radius) !important;
}

/* ========================================
   TAB COMPONENT — Porto-style horizontal tabs
   ======================================== */
.porto-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.porto-tab-nav li {
  list-style: none;
}

.porto-tab-nav .porto-tab-btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: "Lexend", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--porto-text);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--porto-transition);
  white-space: nowrap;
}

.porto-tab-nav .porto-tab-btn:hover {
  color: var(--porto-primary);
}

.porto-tab-nav .porto-tab-btn.active {
  color: var(--porto-primary);
  border-bottom-color: var(--porto-primary);
  font-weight: 600;
}

.porto-tab-panel {
  display: none;
  animation: portoTabFadeIn 0.35s ease;
}

.porto-tab-panel.active {
  display: block;
}

@keyframes portoTabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.porto-tabs {
  margin: 1.5rem 0;
}

/* Vertical tabs */
.porto-tabs-vertical {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

.porto-tabs-vertical .porto-tab-nav {
  flex-direction: column;
  border-bottom: none;
  border-right: 2px solid #eee;
  margin-bottom: 0;
}

.porto-tabs-vertical .porto-tab-nav .porto-tab-btn {
  text-align: left;
  border-bottom: none;
  border-right: 3px solid transparent;
  margin-bottom: 0;
  margin-right: -2px;
  padding: 0.75rem 1.25rem;
}

.porto-tabs-vertical .porto-tab-nav .porto-tab-btn.active {
  border-right-color: var(--porto-primary);
  border-bottom-color: transparent;
  background: rgba(107, 57, 244, 0.04);
}

/* ========================================
   FORMAT A: "Porto Clean"
   body.porto-format-a (default)
   ======================================== */
body.porto-format-a .page-content .page-header,
body.porto-format-a .page-content .service-page-header {
  background: var(--porto-bg-gradient) !important;
}

body.porto-format-a .page-content .industry-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

body.porto-format-a .page-content .faq-section {
  background: #fff !important;
}

body.porto-format-a .page-content .cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

/* ========================================
   FORMAT B: "Porto Split"
   body.porto-format-b
   ======================================== */
body.porto-format-b .page-content .page-header,
body.porto-format-b .page-content .service-page-header {
  background: linear-gradient(135deg, #f7f7ff 0%, #e8f4f0 100%) !important;
}

body.porto-format-b .page-content .split-section:nth-of-type(even) .split-image {
  order: -1;
}

body.porto-format-b .page-content .porto-tabs {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

body.porto-format-b .page-content .porto-tabs .porto-tab-nav {
  flex-direction: column;
  border-bottom: none;
  border-right: 2px solid #eee;
  margin-bottom: 0;
}

body.porto-format-b .page-content .porto-tabs .porto-tab-nav .porto-tab-btn {
  text-align: left;
  border-bottom: none;
  border-right: 3px solid transparent;
  margin-right: -2px;
  padding: 0.75rem 1.25rem;
}

body.porto-format-b .page-content .porto-tabs .porto-tab-nav .porto-tab-btn.active {
  border-right-color: var(--porto-primary);
  border-bottom-color: transparent;
  background: rgba(107, 57, 244, 0.04);
}

body.porto-format-b .page-content .industry-tags-wrap {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

body.porto-format-b .page-content .industry-tags-wrap::-webkit-scrollbar {
  height: 4px;
}

body.porto-format-b .page-content .industry-tags-wrap::-webkit-scrollbar-thumb {
  background: var(--porto-primary);
  border-radius: 4px;
}

body.porto-format-b .page-content .faq-section {
  background: var(--porto-bg-light) !important;
}

body.porto-format-b .page-content .cta-section {
  background: linear-gradient(135deg, var(--porto-primary) 0%, var(--porto-secondary) 100%) !important;
}

body.porto-format-b .page-content .cta-section h2 {
  color: #fff !important;
}

body.porto-format-b .page-content .cta-section p {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.porto-format-b .page-content .cta-section .btn-primary {
  background: #fff !important;
  color: var(--porto-primary) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

body.porto-format-b .page-content .cta-section .btn-primary:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
  color: var(--porto-primary) !important;
}

/* ========================================
   CORE PAGES — Porto WPBakery shortcode headings (inner pages only)
   ======================================== */
body:not(.home) .page-content .porto-sicon-box h3 {
  font-family: "Lexend", sans-serif !important;
  font-size: 1.3125rem !important;
  font-weight: 500 !important;
}

body:not(.home) .page-content .porto-u-heading .porto-u-main-heading {
  font-family: "Lexend", sans-serif !important;
}

body:not(.home) .page-content .custom-counter-color .counter-title {
  font-family: "Lexend", sans-serif !important;
}

body:not(.home) .page-content .porto-carousel .custom-member h3 {
  font-family: "Lexend", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
}

.page-content .section-box {
  border-radius: var(--porto-card-radius) !important;
}

/* ========================================
   RESPONSIVE — 767px, 991px, 1199px
   All scoped to .page-content
   ======================================== */

/* Tablet landscape */
@media (max-width: 1199px) {
  body:not(.home) .page-content h1,
  body:not(.home) .page-content h1.elementor-heading-title {
    font-size: 3.25rem !important;
  }

  .porto-tabs-vertical,
  body.porto-format-b .page-content .porto-tabs {
    grid-template-columns: 180px 1fr;
  }
}

/* Tablet portrait */
@media (max-width: 991px) {
  :root {
    --porto-section-pad: clamp(2.5rem, 5vw, 4rem);
    --porto-section-pad-lg: clamp(3rem, 6vw, 5rem);
  }

  body:not(.home) .page-content h1,
  body:not(.home) .page-content h1.elementor-heading-title {
    font-size: 2.75rem !important;
  }

  body:not(.home) .page-content h2,
  body:not(.home) .page-content h2.elementor-heading-title {
    font-size: 2rem !important;
  }

  .page-content .page-header,
  .page-content .service-page-header {
    padding: 4.5rem 5% 3rem !important;
  }

  /* Vertical tabs collapse to horizontal on tablet */
  .porto-tabs-vertical,
  body.porto-format-b .page-content .porto-tabs {
    grid-template-columns: 1fr;
  }

  .porto-tabs-vertical .porto-tab-nav,
  body.porto-format-b .page-content .porto-tabs .porto-tab-nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 2px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .porto-tabs-vertical .porto-tab-nav .porto-tab-btn,
  body.porto-format-b .page-content .porto-tabs .porto-tab-nav .porto-tab-btn {
    border-right: none;
    border-bottom: 3px solid transparent;
    margin-right: 0;
    margin-bottom: -2px;
    text-align: center;
  }

  .porto-tabs-vertical .porto-tab-nav .porto-tab-btn.active,
  body.porto-format-b .page-content .porto-tabs .porto-tab-nav .porto-tab-btn.active {
    border-right-color: transparent;
    border-bottom-color: var(--porto-primary);
  }

  .page-content .split-section {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body:not(.home) .page-content h1,
  body:not(.home) .page-content h1.elementor-heading-title {
    font-size: 2.2rem !important;
  }

  body:not(.home) .page-content h2,
  body:not(.home) .page-content h2.elementor-heading-title {
    font-size: 1.75rem !important;
  }

  body:not(.home) .page-content h3,
  body:not(.home) .page-content h3.elementor-heading-title {
    font-size: 1.125rem !important;
  }

  .page-content .page-header,
  .page-content .service-page-header {
    padding: 3.5rem 5% 2.5rem !important;
  }

  .porto-tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 0;
  }

  .porto-tab-nav .porto-tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .page-content .services-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .page-content .testimonials-grid,
  .page-content .case-studies-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  body:not(.home) .page-content h1,
  body:not(.home) .page-content h1.elementor-heading-title {
    font-size: 1.875rem !important;
  }

  body:not(.home) .page-content h2,
  body:not(.home) .page-content h2.elementor-heading-title {
    font-size: 1.5rem !important;
  }

  .page-content .btn-primary,
  .page-content a.btn-primary {
    padding: 12px 24px !important;
    font-size: 0.875rem !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .porto-tab-nav { display: none !important; }
  .porto-tab-panel { display: block !important; }
  .page-content .cta-section { display: none !important; }
}


/* ========================================
   HIDE DUPLICATE FAQ HEADINGS
   Only hide duplicate heading widgets in sections that contain
   .nexura-faq-content — NOT in general content sections.
   ======================================== */
.page-content .e-con.e-parent:has(.nexura-faq-content) > .e-con-inner > .nexura-section-label {
  display: none !important;
}

.page-content .e-con.e-parent:has(.nexura-faq-content) > .e-con-inner > .elementor-widget-heading:not(.nexura-section-label):not(.nexura-section-content):not(.nexura-faq-content) {
  display: none !important;
}

/* ========================================
   CTA SECTION — "Ready for Reliable" redesign
   New vibrant gradient background + styled button
   ======================================== */
.page-content .nexura-cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f2847 40%, #1b3a5c 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Decorative glow behind CTA */
.page-content .nexura-cta-section::before {
  content: '' !important;
  position: absolute !important;
  width: 500px !important;
  height: 500px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(107, 57, 244, 0.2) 0%, transparent 70%) !important;
  top: -150px !important;
  right: -100px !important;
  pointer-events: none !important;
}

.page-content .nexura-cta-section::after {
  content: '' !important;
  position: absolute !important;
  width: 400px !important;
  height: 400px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(158, 23, 241, 0.15) 0%, transparent 70%) !important;
  bottom: -100px !important;
  left: -80px !important;
  pointer-events: none !important;
}

.page-content .nexura-cta-section h2.elementor-heading-title {
  color: #fff !important;
}

.page-content .nexura-cta-section p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* CTA button — white with purple text */
.page-content .nexura-cta-section .elementor-button {
  background: #fff !important;
  color: var(--porto-primary) !important;
  border-radius: var(--porto-btn-radius) !important;
  padding: 14px 36px !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  border: none !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
  transition: var(--porto-transition) !important;
}

.page-content .nexura-cta-section .elementor-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
  background: #f0e8ff !important;
  color: var(--porto-primary) !important;
}

.page-content .nexura-cta-section .elementor-button-text {
  color: var(--porto-primary) !important;
}

.page-content .nexura-cta-section .elementor-button:hover .elementor-button-text {
  color: var(--porto-primary) !important;
}

/* ========================================
   FOOTER WHITESPACE FIX
   Remove extra space after footer caused by
   lang switcher and script containers
   ======================================== */
.nexura-footer-lang-switcher {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Ensure page-wrapper doesn't create bottom space */
.page-wrapper {
  overflow-x: hidden;
}

/* Porto footer — ensure no trailing margin */
footer.footer,
.footer-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Kill any empty space between footer and end of page */
.page-wrapper::after {
  display: none !important;
}

/* ========================================
   HERO CONNECTING DOTS — Canvas setup
   Animation handled by porto-tabs.js (canvas-based particle network)
   CSS just sets positioning context
   ======================================== */
.page-content .nexura-page-header {
  position: relative !important;
  overflow: hidden !important;
}

/* Canvas element created by JS */
.porto-dots-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Ensure hero content stays above canvas */
.page-content .nexura-page-header > .e-con-inner {
  position: relative !important;
  z-index: 1 !important;
}

/* ========================================
   DUPLICATE HEADING FIX
   Porto Builder title bar blocks inject duplicate
   page title headings above the page-top breadcrumb.
   Hide them — each page has its own heading in content.
   ======================================== */
body:not(.home) .porto-block {
  display: none !important;
}

/* Re-show header and footer Porto blocks — they are essential */
body:not(.home) .header-wrapper .porto-block,
body:not(.home) #header .porto-block,
body:not(.home) header .porto-block {
  display: block !important;
}

body:not(.home) footer .porto-block,
body:not(.home) #footer .porto-block,
body:not(.home) .footer-wrapper .porto-block {
  display: block !important;
}

/* ========================================
   TEXT VISIBILITY — Dark Section Overrides
   Ensure headings and text remain visible
   on dark-background sections where the
   global heading color would be invisible.
   ======================================== */

/* Contact form dark section */
body:not(.home) .page-content .contact-form-section h2,
body:not(.home) .page-content .contact-form-section h3 {
  color: #fff !important;
}

body:not(.home) .page-content .contact-form-section p,
body:not(.home) .page-content .contact-form-section label {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Custom CTA section (shortcode-based) */
body:not(.home) .page-content .cta-section h2 {
  color: #fff !important;
}

body:not(.home) .page-content .cta-section p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Elementor sections with dark backgrounds —
   let Elementor's inline white color work by not forcing dark */
body:not(.home) .page-content .e-con[style*="background"] h2.elementor-heading-title[style*="color"] {
  color: inherit;
}

/* ========================================
   PAGE-TOP BREADCRUMB BAR — Clean up
   Hide the visible H1 page-title in the
   breadcrumb bar to prevent heading duplication.
   The breadcrumb navigation itself remains visible.
   ======================================== */
body:not(.home) .page-top .page-title {
  display: none !important;
}

body:not(.home) .page-top .page-title-wrap {
  display: none !important;
}

/* Style the breadcrumb bar to be a subtle navigation strip */
body:not(.home) .page-top {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  background: transparent !important;
  border-bottom: none !important;
}

body:not(.home) .page-top .breadcrumb {
  font-family: "Poppins", sans-serif !important;
  font-size: 0.85rem !important;
  color: #777 !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.home) .page-top .breadcrumb a {
  color: var(--porto-primary) !important;
  text-decoration: none !important;
}

body:not(.home) .page-top .breadcrumb a:hover {
  color: var(--porto-secondary) !important;
}

/* ========================================
   BUTTON VISIBILITY ON DARK BACKGROUNDS
   Ensure buttons remain visible and clickable
   on all background types.
   ======================================== */
body:not(.home) .page-content .contact-form-section .wpcf7 input[type="submit"],
body:not(.home) .page-content .cta-section .btn-primary {
  color: #fff !important;
}

body:not(.home) .page-content .cta-section .btn-primary {
  background: linear-gradient(135deg, var(--porto-primary) 0%, var(--porto-secondary) 100%) !important;
  box-shadow: 0 8px 25px rgba(107, 57, 244, 0.4) !important;
}

/* ========================================
   HEADING FONT CONSISTENCY — Override inline styles
   Service/location pages use inline style="color:..."
   on H3/H4 tags. The !important on H3/H4 in the
   global rules already handles color. This section
   ensures links inside those headings also match.
   ======================================== */
body:not(.home) .page-content h3[style] a,
body:not(.home) .page-content h4[style] a {
  color: inherit !important;
  text-decoration: none !important;
}

body:not(.home) .page-content h3[style] a:hover,
body:not(.home) .page-content h4[style] a:hover {
  color: var(--porto-primary) !important;
  text-decoration: none !important;
}
