/* ================================================================
   NUSAIL ENGINEERING CONSULTANCY — Premium 5-Star Polish
   Load AFTER nusail-clean-style.css and nusail-home.css
   Red & Blue Glassmorphism on Dark Navy — corporate engineering
   ================================================================ */

:root {
  --pp-red-grad: linear-gradient(135deg, #c8001e 0%, #ff3b52 100%);
  --pp-blue-grad: linear-gradient(135deg, #0a2d7a 0%, #1a56db 60%, #3b82f6 100%);
  --pp-brand-grad: linear-gradient(135deg, #c8001e 0%, #6b1a8d 50%, #1a56db 100%);
  --pp-glass-bg: rgba(255, 255, 255, 0.78);
  --pp-glass-bg-dark: rgba(10, 25, 70, 0.55);
  --pp-glass-border: rgba(255, 255, 255, 0.55);
  --pp-glass-border-dark: rgba(86, 182, 255, 0.18);
  --pp-shadow-sm: 0 4px 16px rgba(1, 27, 88, 0.10);
  --pp-shadow-md: 0 10px 28px rgba(1, 27, 88, 0.14);
  --pp-shadow-lg: 0 20px 48px rgba(1, 27, 88, 0.22);
  --pp-shadow-glow-red: 0 8px 28px rgba(200, 0, 30, 0.28);
  --pp-shadow-glow-blue: 0 8px 28px rgba(26, 86, 219, 0.30);
}

/* — Smooth font rendering everywhere — */
html { -webkit-text-size-adjust: 100%; }
body {
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

/* — Selection colour — */
::selection { background: rgba(200, 0, 30, 0.18); color: #011b58; }

/* — Premium scrollbar — */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f0f2f8; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a56db, #c8001e);
  border-radius: 10px;
  border: 2px solid #f0f2f8;
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.1); }

/* — Header glow — */
.site-header {
  background: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 4px 22px rgba(1, 27, 88, 0.10), inset 0 -1px 0 rgba(26, 86, 219, 0.08);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #c8001e 30%, #1a56db 70%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

/* — Topbar polish — */
.site-topbar {
  background: linear-gradient(90deg, #010e33 0%, #011b58 60%, #0a2d7a 100%) !important;
  border-bottom: 1px solid rgba(86, 182, 255, 0.12);
}
.site-topbar-social a { transition: transform .25s ease, background .25s ease; }
.site-topbar-social a:hover { transform: translateY(-1px); }

/* — Buttons: lift + glow — */
.btn {
  background: var(--pp-red-grad) !important;
  border: none !important;
  box-shadow: var(--pp-shadow-glow-red);
  letter-spacing: 0.02em;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 0, 30, 0.36);
  filter: brightness(1.06);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #fff !important;
  color: #fff !important;
  transform: translateY(-2px);
}
/* When btn-outline is on light content backgrounds (services/contact bodies) */
.page-home main .section:not(.hero--media):not(.page-hero) .btn-outline,
.section:not(.hero--media):not(.page-hero) .btn-outline {
  background: transparent !important;
  border-color: #011b58 !important;
  color: #011b58 !important;
}
.page-home main .section:not(.hero--media):not(.page-hero) .btn-outline:hover,
.section:not(.hero--media):not(.page-hero) .btn-outline:hover {
  background: #011b58 !important;
  color: #fff !important;
}

/* — Section underline on H2 — */
.section-head h2,
.section h2 {
  position: relative;
  margin-bottom: 10px;
}

/* — Hero: deeper navy gradient w/ red glow corner — */
.hero--media {
  background: radial-gradient(120% 80% at 90% 10%, rgba(200, 0, 30, 0.22) 0%, transparent 55%),
              radial-gradient(120% 80% at 10% 90%, rgba(26, 86, 219, 0.28) 0%, transparent 55%),
              linear-gradient(135deg, #010e33 0%, #011b58 50%, #0a2d7a 100%) !important;
}
.hero--media::before {
  background: linear-gradient(105deg, rgba(1, 14, 51, 0.82) 0%, rgba(1, 27, 88, 0.65) 45%, rgba(26, 86, 219, 0.30) 100%) !important;
}
.hero-bg-image { opacity: 0.19 !important; }
.hero-copy h1 {
  background: linear-gradient(135deg, #ffffff 0%, #e8efff 60%, #ffd9de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero-sub { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }

/* — Hero glass panel — */
.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.94) 100%) !important;
  border: 1px solid rgba(86, 182, 255, 0.28) !important;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  border-radius: 18px !important;
}
.hero-slide-cta { background: var(--pp-red-grad) !important; box-shadow: var(--pp-shadow-glow-red); }
.hero-slide-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200, 0, 30, 0.4); }

/* — Glass cards — */
.glass-card {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(26, 86, 219, 0.14) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--pp-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}
.glass-card:hover {
  box-shadow: var(--pp-shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(200, 0, 30, 0.24) !important;
}
.glass-card::before {
  background: linear-gradient(90deg, #c8001e 0%, #6b1a8d 50%, #1a56db 100%) !important;
  height: 3px !important;
  opacity: 1 !important;
}

/* — Service cards — */
.service-card,
.specialist-card {
  background: rgba(255, 255, 255, 0.93) !important;
  border-radius: 16px !important;
}
.service-card-body h3,
.specialist-card-body h3 {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
}
.service-card-body p,
.specialist-card-body p { color: #3a4256; }
.service-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700 !important;
}
.service-link::after {
  content: "→";
  display: inline-block;
  transition: transform .25s ease;
}
.service-link:hover::after { transform: translateX(3px); }

/* — Card images: gradient overlay accent — */
.service-card-media,
.specialist-card-media {
  position: relative;
}
.service-card-media::after,
.specialist-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(1, 27, 88, 0.30) 100%);
  pointer-events: none;
}

/* — Sections — */
.section--core-services {
  background: linear-gradient(180deg, #ffffff 0%, #eff3fb 100%) !important;
  position: relative;
}
.section--specialist {
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(200, 0, 30, 0.06) 0%, transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(26, 86, 219, 0.10) 0%, transparent 60%),
    #f4f7fc !important;
}
.portfolio-section {
  background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%) !important;
}

/* — Section eyebrow accent — */
.section-head h2 {
  background: linear-gradient(135deg, #011b58 0%, #1a56db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* — Filter buttons — */
.filter-btn {
  border: 1.5px solid rgba(26, 86, 219, 0.22) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  color: #011b58 !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--pp-brand-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: var(--pp-shadow-glow-blue);
}

/* — Clients carousel — */
.clients-carousel-track img {
  filter: grayscale(0.85) contrast(0.95);
  opacity: 0.7;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.clients-carousel-track img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

/* — Certificate cards — */
.cert-card {
  text-align: center;
  padding-bottom: 1.25rem !important;
}
.cert-card-img {
  height: 160px !important;
  background: linear-gradient(135deg, #f0f4fc 0%, #eaf0fb 100%);
}
.cert-card h3 {
  margin-top: 0.5rem;
  color: #011b58 !important;
}

/* — Why-grid cards — */
.why-grid .glass-card {
  border-top: none !important;
  position: relative;
}
.why-grid .glass-card::before {
  background: linear-gradient(90deg, #c8001e, #1a56db) !important;
  height: 4px !important;
}

/* — Office cards — */
.office {
  background: rgba(255, 255, 255, 0.85) !important;
  border-left: 4px solid transparent !important;
  border-image: linear-gradient(180deg, #c8001e, #1a56db) 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--pp-shadow-sm);
}

/* — Contact form — */
.contact-form {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(26, 86, 219, 0.14) !important;
  box-shadow: var(--pp-shadow-md) !important;
  border-radius: 18px !important;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #1a56db !important;
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12) !important;
}

/* — Footer premium gradient — */
.site-footer {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(26, 86, 219, 0.25) 0%, transparent 50%),
    radial-gradient(120% 80% at 100% 100%, rgba(200, 0, 30, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #010e33 0%, #021134 60%, #010818 100%) !important;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #c8001e 30%, #1a56db 70%, transparent 100%);
  opacity: 0.6;
}
.site-footer h3 {
  border-bottom: 2px solid transparent !important;
  border-image: linear-gradient(90deg, #c8001e, #1a56db) 1 !important;
}
.footer-social a {
  background: rgba(255, 255, 255, 0.10) !important;
  transition: background .25s ease, transform .25s ease;
}
.footer-social a:hover {
  background: linear-gradient(135deg, #c8001e, #1a56db) !important;
  transform: translateY(-2px);
}

/* — Page hero (inner) — */
.page-hero {
  background:
    radial-gradient(120% 80% at 90% 10%, rgba(200, 0, 30, 0.22) 0%, transparent 55%),
    radial-gradient(120% 80% at 10% 90%, rgba(26, 86, 219, 0.28) 0%, transparent 55%),
    linear-gradient(135deg, #010e33 0%, #011b58 55%, #0a2d7a 100%) !important;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(1, 14, 51, 0.55) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-copy h1 {
  background: linear-gradient(135deg, #ffffff 0%, #ffd9de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* — Equipment/HSE icon cards on dark — used in equipment-technology / hse-quality — */
.equip-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 86, 219, 0.12);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--pp-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.equip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pp-shadow-md);
}
.equip-card img {
  border-radius: 10px;
  margin-bottom: 0.75rem;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

/* — Anchors inside glass cards — */
.glass-card a:not(.btn):not(.service-link) {
  color: #1a56db;
  font-weight: 600;
}
.glass-card a:not(.btn):not(.service-link):hover {
  color: #c8001e;
}

/* — Mobile polish — */
@media (max-width: 768px) {
  .hero--media { min-height: 520px !important; }
  .hero-grid { gap: 1.5rem !important; }
  .hero-panel { border-radius: 14px !important; }
  .btn { padding: 0.7rem 1.35rem; }
  .footer-grid { text-align: left; }
}

/* — Tablet polish — */
@media (max-width: 1024px) and (min-width: 769px) {
  .services-grid-core { grid-template-columns: repeat(2, 1fr) !important; }
}

/* — Print-friendly contrast safety — */
@media print {
  .site-header, .site-footer, .hero-actions, .contact-form { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ============================================================
   READABILITY FIX — inner Bootstrap pages
   The legacy assets/css/main.css tail forces h1-h6, p, li to
   near-white via --text-main / --text-muted. The rules below
   restore navy headings and dark-gray body text on every page
   that is NOT the homepage (which has its own dark hero).
   Inserted: 2026-05-22.
   ============================================================ */

/* Hard-override the dark-theme CSS variables on inner pages */
body.page-inner,
body:not(.page-home) {
  --text-main: #011b58;
  --text-muted: #3d4a5c;
}

/* — Nav links inside the LIGHT site-header (white background) — */
body .site-header .nav-link {
  color: #011b58 !important;
}
body .site-header .nav-link:hover,
body .site-header .nav-link[aria-current="page"] {
  color: #c8001e !important;
  background: rgba(200, 0, 30, 0.06);
}
body .site-header .brand,
body .site-header .brand * {
  color: #011b58 !important;
}
/* But the CTA button keeps its gradient */
body .site-header .btn-nav-cta,
body .site-header .btn-nav-cta * {
  color: #ffffff !important;
}

/* Headings on inner pages: navy, never white — but ONLY in
   the light content body. Dark-background heroes
   (.team-hero, .contact-hero-band, .hero, .hero--media,
   .page-hero, .breadcrumbs) keep their original white text. */
body.page-inner #main > section:not(.team-hero):not(.contact-hero-band):not(.hero):not(.hero--media):not(.page-hero):not(.breadcrumbs) h1,
body.page-inner #main > section:not(.team-hero):not(.contact-hero-band):not(.hero):not(.hero--media):not(.page-hero):not(.breadcrumbs) h2,
body.page-inner #main > section:not(.team-hero):not(.contact-hero-band):not(.hero):not(.hero--media):not(.page-hero):not(.breadcrumbs) h3,
body.page-inner #main > section:not(.team-hero):not(.contact-hero-band):not(.hero):not(.hero--media):not(.page-hero):not(.breadcrumbs) h4,
body.page-inner #main > section:not(.team-hero):not(.contact-hero-band):not(.hero):not(.hero--media):not(.page-hero):not(.breadcrumbs) h5,
body.page-inner #main > section:not(.team-hero):not(.contact-hero-band):not(.hero):not(.hero--media):not(.page-hero):not(.breadcrumbs) h6 {
  color: #011b58 !important;
}
/* Light-background headings inside non-section regions */
body.page-inner main > .container h1,
body.page-inner main > .container h2,
body.page-inner main > .container h3,
body.page-inner main > .container h4,
body.page-inner main > .container h5,
body.page-inner main > .container h6 {
  color: #011b58 !important;
}
/* Explicit override: breadcrumbs / heroes / page-hero / team-hero
   keep WHITE text (these are dark-background) — even if main.css
   tail variables tried to set them */
body.page-inner .breadcrumbs h1,
body.page-inner .breadcrumbs h2,
body.page-inner .breadcrumbs h3,
body.page-inner .breadcrumbs h4,
body.page-inner .breadcrumbs a,
body.page-inner .breadcrumbs li,
body.page-inner .breadcrumbs ol,
body.page-inner .breadcrumbs p,
body.page-inner .site-footer h3,
body.page-inner .site-footer h4,
body.page-inner #footer h4,
body.page-inner .footer h4,
body.page-inner .page-hero h1,
body.page-inner .page-hero h2,
body.page-inner .page-hero p,
body.page-inner .page-hero a,
body.page-inner .team-hero h1,
body.page-inner .team-hero h2,
body.page-inner .team-hero p,
body.page-inner .team-hero .lead,
body.page-inner .team-hero a,
body.page-inner .team-hero .eyebrow,
body.page-inner .team-hero .team-cap-item,
body.page-inner .contact-hero-band h1,
body.page-inner .contact-hero-band h2,
body.page-inner .contact-hero-band h3,
body.page-inner .contact-hero-band p,
body.page-inner .contact-hero-band .contact-hero-lead,
body.page-inner .contact-hero-band a,
body.page-inner .contact-hero-band .contact-quick-card,
body.page-inner .contact-hero-band .contact-quick-card *,
body.page-inner .contact-hero-band .contact-enquiry-aside,
body.page-inner .contact-hero-band .contact-enquiry-aside *,
body.page-inner .hero--media h1,
body.page-inner .hero--media h2,
body.page-inner .hero--media p,
body.page-inner .hero--media a {
  color: #ffffff !important;
}
/* Inside the contact hero, keep the form card white-on-white
   (the form is a glass card with light bg on top of the dark
   hero) so its labels & headings stay navy */
body.page-inner .contact-hero-band .enquiry-form-card,
body.page-inner .contact-hero-band .enquiry-form-card * {
  color: initial;
}
body.page-inner .contact-hero-band .enquiry-form-card h1,
body.page-inner .contact-hero-band .enquiry-form-card h2,
body.page-inner .contact-hero-band .enquiry-form-card h3,
body.page-inner .contact-hero-band .enquiry-form-card h4,
body.page-inner .contact-hero-band .enquiry-form-card label,
body.page-inner .contact-hero-band .enquiry-form-card .req {
  color: #011b58 !important;
}
body.page-inner .contact-hero-band .enquiry-form-card p {
  color: #3d4a5c !important;
}
body.page-inner .contact-hero-band .enquiry-form-card .req {
  color: #c8001e !important;
}

/* Other dark-background CTA cards/widgets inside light sections */
body.page-inner .team-cta-card h1,
body.page-inner .team-cta-card h2,
body.page-inner .team-cta-card h3,
body.page-inner .team-cta-card h4,
body.page-inner .team-cta-card p,
body.page-inner .team-cta-card a,
body.page-inner .team-cta-card li,
body.page-inner .team-cta-card span {
  color: #ffffff !important;
}

/* Body text on inner pages — only inside light-bg sections */
body.page-inner main > section:not(.team-hero):not(.contact-hero-band):not(.hero):not(.hero--media):not(.page-hero):not(.breadcrumbs) p,
body.page-inner main > section:not(.team-hero):not(.contact-hero-band):not(.hero):not(.hero--media):not(.page-hero):not(.breadcrumbs) li {
  color: #3d4a5c !important;
}
/* Keep footer / topbar / dark-hero text light */
body.page-inner .site-footer p,
body.page-inner .site-footer li,
body.page-inner .site-footer a,
body.page-inner .site-footer span,
body.page-inner #footer p,
body.page-inner #footer li,
body.page-inner #footer a,
body.page-inner .footer p,
body.page-inner .footer li,
body.page-inner .footer a,
body.page-inner .site-topbar,
body.page-inner .site-topbar span,
body.page-inner .site-topbar a {
  color: rgba(255, 255, 255, 0.78) !important;
}
body.page-inner .site-footer a:hover,
body.page-inner #footer a:hover,
body.page-inner .footer a:hover {
  color: #ffffff !important;
}

/* Case study cards (.portfolio-content, .imgcontent) */
body.page-inner .portfolio-content,
body.page-inner .portfolio-content .imgcontent {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(26, 86, 219, 0.12);
  box-shadow: 0 6px 18px rgba(1, 27, 88, 0.08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
body.page-inner .portfolio-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(1, 27, 88, 0.14);
}
body.page-inner .portfolio-content h1,
body.page-inner .portfolio-content h2,
body.page-inner .portfolio-content h3,
body.page-inner .portfolio-content h4,
body.page-inner .portfolio-content h5,
body.page-inner .imgcontent h4 {
  color: #011b58 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0;
}
body.page-inner .portfolio-content p,
body.page-inner .imgcontent p {
  color: #3d4a5c !important;
}
body.page-inner .portfolio-content .details-link,
body.page-inner .imgcontent .details-link {
  color: #1a56db !important;
  font-weight: 700 !important;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  margin: 0.25rem 0 0.85rem;
}
body.page-inner .portfolio-content .details-link:hover,
body.page-inner .imgcontent .details-link:hover {
  color: #c8001e !important;
  text-decoration: underline;
}

/* Value-box (about page Core Values) */
body.page-inner .value-box {
  background: #ffffff;
  border: 1px solid rgba(26, 86, 219, 0.12);
  border-radius: 14px;
  padding: 1.5rem 1.25rem !important;
  box-shadow: 0 6px 18px rgba(1, 27, 88, 0.08);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
body.page-inner .value-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(1, 27, 88, 0.14);
}
body.page-inner .value-box h5 {
  color: #011b58 !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
}
body.page-inner .value-box p {
  color: #3d4a5c !important;
}
body.page-inner .value-box i,
body.page-inner .value-box .bi {
  color: #1a56db !important;
}
body.page-inner .value-box .color-blue { color: #1a56db !important; }
body.page-inner .value-box .color-green { color: #1f8a4c !important; }
body.page-inner .value-box .color-orange { color: #c8001e !important; }
body.page-inner .value-box .color-pink { color: #c8001e !important; }

/* Technology & Innovation section */
body.page-inner #technology p,
body.page-inner .technology p,
body.page-inner #presence p,
body.page-inner .presence p {
  color: #3d4a5c !important;
}
body.page-inner #technology strong,
body.page-inner .technology strong,
body.page-inner #presence strong,
body.page-inner .presence strong {
  color: #011b58 !important;
}
body.page-inner #technology h2,
body.page-inner #presence h2,
body.page-inner .technology h2,
body.page-inner .presence h2 {
  color: #011b58 !important;
}
body.page-inner #presence h4,
body.page-inner .presence h4 {
  color: #011b58 !important;
}

/* Stats counter section visibility */
body.page-inner .stats-counter .stats-item span,
body.page-inner #stats-counter .stats-item span {
  color: #011b58 !important;
  font-size: 1.75rem;
  font-weight: 800;
}
body.page-inner .stats-counter .stats-item p,
body.page-inner #stats-counter .stats-item p {
  color: #3d4a5c !important;
}

/* Section-header headings on inner pages */
body.page-inner .section-header h2 {
  color: #011b58 !important;
}
body.page-inner .section-header p {
  color: #3d4a5c !important;
}

/* Override main.css's blanket portfolio-content/glass-card colour
   forcing inside the about / casestudy / inner bootstrap pages */
body.page-inner .portfolio-content *,
body.page-inner .imgcontent * {
  color: inherit !important;
}
body.page-inner .portfolio-content .details-link,
body.page-inner .imgcontent .details-link {
  color: #1a56db !important;
}

/* Ensure regular content link readability */
body.page-inner main a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.details-link):not(.service-link):not(.nav-link) {
  color: #1a56db;
}
body.page-inner main a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.details-link):not(.service-link):not(.nav-link):hover {
  color: #c8001e;
}

/* Service-item h3/p on inner pages (overrides main.css color: #fff) */
body.page-inner .service-item h3,
body.page-inner .service-item h4,
body.page-inner .icon-box h3,
body.page-inner .icon-box h4 {
  color: #011b58 !important;
}
body.page-inner .service-item p,
body.page-inner .icon-box p {
  color: #3d4a5c !important;
}

/* Section background — ensure light bg on inner pages, not the
   dark rgba(9, 20, 42, 0.45) from main.css line 3786 */
body.page-inner .section-bg {
  background: #ffffff !important;
}

/* Member / team cards */
body.page-inner .member h4,
body.page-inner .member h3 {
  color: #011b58 !important;
}
body.page-inner .member p,
body.page-inner .member span {
  color: #3d4a5c !important;
}

/* Info-item (contact info on inner pages) */
body.page-inner .info-item h3,
body.page-inner .info-item h4 {
  color: #011b58 !important;
}
body.page-inner .info-item p,
body.page-inner .info-item a {
  color: #3d4a5c !important;
}
body.page-inner .info-item i { color: #c8001e !important; }

/* Testimonial readability */
body.page-inner .testimonial-item h3,
body.page-inner .testimonial-item h4 {
  color: #011b58 !important;
}
body.page-inner .testimonial-item p {
  color: #3d4a5c !important;
}
