/* ============================================================
   Nine Tails — Custom CSS  v2
   ============================================================ */

/* ── CSS Variable fix ────────────────────────────────────── */
:root {
  --clr-primary: #02126a;
}

/* ── Global overflow fix ─────────────────────────────────── */
body {
  overflow-x: hidden;
}

/* ── AOS: kill horizontal shift on mobile ────────────────── */
@media (max-width: 991px) {

  [data-aos="fade-right"],
  [data-aos="fade-left"] {
    transform: translateY(20px) !important;
    opacity: 0;
  }

  [data-aos="fade-right"].aos-animate,
  [data-aos="fade-left"].aos-animate {
    transform: translateY(0) !important;
    opacity: 1;
  }
}

/* ── Section title: label ABOVE h2 ───────────────────────── */
.section-title {
  display: block !important;
  /* NOT flex — flex breaks col-12 children */
}

.nt-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--clr-primary, #02126a);
  margin-bottom: 10px;
  line-height: 1;
}

.nt-section-label::before,
.nt-section-label::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #02126a, #f13f01);
  flex-shrink: 0;
}

/* Process section label — white */
.section-title.process .nt-section-label {
  color: rgba(255, 255, 255, .85);
}

.section-title.process .nt-section-label::before,
.section-title.process .nt-section-label::after {
  background: rgba(255, 255, 255, .5);
}

/* ── Section padding reduction ───────────────────────────── */
.section-pb-150 {
  padding-bottom: 80px !important;
}

.section-pt-150 {
  padding-top: 80px !important;
}

.section-pt-100 {
  padding-top: 60px !important;
}

.section-pb-100 {
  padding-bottom: 60px !important;
}

.pb-100 {
  padding-bottom: 60px !important;
}

.pb-90 {
  padding-bottom: 50px !important;
}

.bread-crumb-section {
  padding: 50px 0 !important;
}

.hero-section {
  padding-bottom: 30px;
}

.about-section,
.about-section2 {
  padding-top: 60px;
  padding-bottom: 60px;
}

.working-process-section {
  padding-top: 50px;
  padding-bottom: 60px;
}

.case-studies-section {
  padding-top: 60px;
}

.faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.testimonial-section {
  padding-top: 60px;
}

.brand-section.section-pb-150 {
  padding-bottom: 50px !important;
}

/* ── Section title h2 — always dark on light bg ──────────── */
.section-title .title,
.section-title h2.title,
.section-title h3.title {
  color: #02126a !important;
  margin-top: 4px;
  margin-bottom: 10px;
}

.section-title.process .title,
.section-title.process h2.title {
  color: #fff !important;
}

/* ── hr-secodary / hr-primary vivid ─────────────────────── */
.hr-secodary {
  display: block !important;
  width: 60px !important;
  height: 3px !important;
  border-radius: 3px !important;
  background: linear-gradient(90deg, #02126a, #f13f01) !important;
  margin: 12px auto 0 !important;
  border: none !important;
}

.hr-primary {
  display: block !important;
  width: 60px !important;
  height: 3px !important;
  border-radius: 3px !important;
  background: linear-gradient(90deg, #02126a, #2637c8) !important;
  margin-top: 12px !important;
  border: none !important;
}

/* ── Service card ─────────────────────────────────────────── */
.service-card {
  border-radius: 14px;
  transition: transform .3s ease, box-shadow .3s ease;
  background: #fff;
  border: 1px solid rgba(2, 18, 106, .08);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(2, 18, 106, .14);
}

.service-card .service-content h4.title,
.service-card .service-content h3.title {
  color: #02126a !important;
  font-weight: 700;
}

.service-card .service-content p {
  color: #555 !important;
}

.service-card .service-content li {
  color: #555 !important;
}

/* ── Service icon — vivid ─────────────────────────────────── */
.service-icon>span[class*="icofont"],
.service-icon>i[class*="icofont"] {
  color: #02126a !important;
}

.roted-around.dagnger span {
  background: rgba(241, 63, 1, .12);
  border-color: #f13f01 !important;
}

.roted-around.warning span {
  background: rgba(241, 63, 1, .10);
  border-color: #f13f01 !important;
}

.roted-around.primary span {
  background: rgba(2, 18, 106, .12);
  border-color: #02126a !important;
}

.roted-around.secondary span {
  background: rgba(38, 55, 200, .12);
  border-color: #2637c8 !important;
}

.roted-around.success span {
  background: rgba(50, 182, 24, .12);
  border-color: #32b618 !important;
}

.roted-around.info span {
  background: rgba(13, 202, 240, .12);
  border-color: #0dcaf0 !important;
}

/* ── Working process numbers ─────────────────────────────── */
.nt-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #02126a 0%, #2637c8 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(2, 18, 106, .25);
}

.working-process-list h4.title,
.working-process-list .title {
  color: #fff !important;
}

/* ── Hero stat bar ───────────────────────────────────────── */
.hero-stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero-stat-bar .stat-item h3 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 2px;
  background: linear-gradient(135deg, #f13f01, #ff7c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-bar .stat-item p {
  margin: 0;
  font-size: 12px;
  opacity: .75;
}

@media (max-width: 575px) {
  .hero-stat-bar {
    gap: 18px;
  }

  .hero-stat-bar .stat-item h3 {
    font-size: 1.5rem;
  }
}

/* ── Blog cards — text always visible ────────────────────── */
.blog-card,
div[style*="border-radius:12px"][style*="background:#fff"] {
  background: #fff !important;
}

.blog-card h5,
.blog-card h5 a,
.blog-card h4,
.blog-card h4 a {
  color: #02126a !important;
  font-weight: 700;
}

.blog-card p,
.blog-card .small,
.blog-card small {
  color: #555 !important;
}

/* ── Case / portfolio content ────────────────────────────── */
.case-content .title,
.case-content h3.title,
.case-content h4.title {
  color: #02126a !important;
}

.case-content p {
  color: #767988 !important;
}

/* ── Contact info cards — vivid icons & text ─────────────── */
.contact-info-card {
  background: #fff !important;
  border: 1px solid rgba(2, 18, 106, .08) !important;
}

.contact-info-card span[class*="icofont"],
.contact-info-card i[class*="icofont"] {
  color: #f13f01 !important;
  font-size: 36px !important;
}

.contact-info-card h5.title {
  color: #02126a !important;
  font-weight: 700;
}

.contact-info-card a,
.contact-info-card p,
.contact-info-card small {
  color: #555 !important;
}

/* ── Contact media list icons ────────────────────────────── */
.contact-media .icon span[class*="icofont"],
.contact-media .icon span[class*="icofont-"] {
  color: #f13f01 !important;
  font-size: 28px !important;
}

.contact-media .content .text {
  color: #f13f01 !important;
  font-weight: 600;
  font-size: 12px;
}

.contact-media .content .number,
.contact-media .content p {
  color: #02126a !important;
  font-weight: 700;
}

.contact-media .content a {
  color: #02126a !important;
}

/* ── Accordion vivid ─────────────────────────────────────── */
.accordion2 .accordion-button {
  color: #02126a !important;
  font-weight: 600;
}

.accordion2 .accordion-button:not(.collapsed) {
  color: #02126a !important;
  background: rgba(2, 18, 106, .05) !important;
}

/* ── Header top bar ──────────────────────────────────────── */
.header-top {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

.header-top .social-link {
  color: rgba(255, 255, 255, .82) !important;
  font-size: 15px;
}

.header-top .social-link:hover {
  color: #f13f01 !important;
}

.header-top .select-item a {
  color: rgba(255, 255, 255, .85) !important;
  font-size: 13px;
}

.header-top .select-item a:hover {
  color: #f13f01 !important;
}

.header-bottom {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* ── Testimonial section bg ──────────────────────────────── */
.testimonial-section {
  padding-top: 60px;
}

/* ── Footer links ────────────────────────────────────────── */
.footer-link {
  color: rgba(255, 255, 255, .72) !important;
}

.footer-link:hover {
  color: #f13f01 !important;
}

/* ── Wave title animation ────────────────────────────────── */
.wave-anim .wl {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
}

.wave-anim.wave-in .wl {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA sections — text always white ───────────────────────*/
section[style*="linear-gradient(135deg,var(--clr-primary)"] h2,
section[style*="linear-gradient(135deg,var(--clr-primary)"] p,
section[style*="background:linear-gradient"] h2,
section[style*="background:linear-gradient"] p {
  color: #fff !important;
}

/* ── Industries cards on clients page ───────────────────── */
.nt-industry-card {
  background: #fff;
  border: 1px solid rgba(2, 18, 106, .08);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}

.nt-industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(2, 18, 106, .12);
}

.nt-industry-card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(2, 18, 106, .1), rgba(241, 63, 1, .1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.nt-industry-card .icon-wrap span {
  font-size: 32px;
  color: #f13f01;
}

.nt-industry-card h5 {
  color: #02126a !important;
  font-weight: 700;
  margin-bottom: 8px;
}

.nt-industry-card p {
  color: #767988 !important;
  font-size: 14px;
  margin: 0;
}

/* ── text-muted override — always visible ────────────────── */
/* Bootstrap .text-muted is #6c757d — fine, but inside white cards
   some themes override --bs-secondary-color to near-white. Fix: */
.text-muted {
  color: #767988 !important;
}

small.text-muted,
p.text-muted,
.small.text-muted {
  color: #767988 !important;
}

/* Force blog card text visible */
.blog-card .card-body p,
.blog-card .card-body small,
[style*="border-radius:12px"] p,
[style*="border-radius:12px"] small {
  color: #555 !important;
}

[style*="border-radius:12px"] h5,
[style*="border-radius:12px"] h4 {
  color: #02126a !important;
}

/* ── Bootstrap gray-600/gray-700 fix ─────────────────────── */
.bs-body-color {
  color: #333 !important;
}

/* ── Contact info card icon large ───────────────────────── */
.contact-info-card .mb-3 span[class*="icofont"] {
  font-size: 40px !important;
  color: #f13f01 !important;
}

/* ── Case card content always visible ───────────────────── */
.case-content {
  padding: 14px 0 6px;
}

.case-content h3.title,
.case-content h4.title,
.case-content .title {
  color: #02126a !important;
  font-weight: 700;
  font-size: 16px;
}

.case-content p,
.case-content .small,
.case-content small {
  color: #767988 !important;
}

.case-content .sub-title {
  color: #f13f01 !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Section title wrapper — kill flex completely ────────── */
.section-title,
.section-title.primary,
.section-title.process,
.section-title.primary.text-center,
.about-content.section-title,
.about-content.section-title.primary {
  display: block !important;
  text-align: center;
}

.section-title .title,
.section-title h2.title,
.section-title h3.title {
  color: #02126a !important;
  display: block;
}

/* ── About content section-title left-align ─────────────── */
.offset-about .about-content.section-title,
.offset-about .about-content.section-title.primary {
  text-align: left;
}

/* ── All h5/h6 in white card backgrounds ─────────────────── */
.card-body h5,
.card-body h6,
[style*="background:#fff"] h5,
[style*="background:#fff"] h6,
[style*="background: #fff"] h5 {
  color: #02126a !important;
}

/* ── All paragraphs in white areas ──────────────────────── */
[style*="background:#fff"] p,
[style*="background:#f8f9ff"] p {
  color: #555 !important;
}

/* ── Contact section info text ───────────────────────────── */
.contact-section-page .contact-media .number {
  color: #02126a !important;
  font-weight: 700;
}

.contact-section-page .contact-media .text {
  color: #f13f01 !important;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

/* ── Sidebar about-banner text ───────────────────────────── */
.about-banner.sidebar h4.title {
  color: #02126a !important;
}

.about-banner.sidebar p {
  color: #555 !important;
}

/* ── FAQ section bg fix — content always visible ────────── */
.faq-section {
  background: #fff;
  position: relative;
}

.faq-section .faq-bg {
  opacity: .08;
}

/* Accordion text in faq-section */
.faq-section .accordion2 .accordion-button span,
.faq-section .accordion-body p {
  color: #333 !important;
}

/* ── Working process section — override inline white ─────── */
.working-process-section {
  background: linear-gradient(135deg, #02126a 0%, #1a237e 100%);
}

.working-process-section .section-title.process {
  background: transparent;
}

/* ── CTA gradient sections — always white text ───────────── */
[style*="background:linear-gradient(135deg,#02126a"] h2,
[style*="background:linear-gradient(135deg,#02126a"] h3,
[style*="background:linear-gradient(135deg,#02126a"] p {
  color: #fff !important;
}

[style*="background:linear-gradient(135deg,var(--clr-primary)"] h2,
[style*="background:linear-gradient(135deg,var(--clr-primary)"] p {
  color: #fff !important;
}

/* ── About-us specific fixes ─────────────────────────────── */
.about-content.section-title.primary,
.about-content.section-title {
  display: block !important;
  text-align: left !important;
}

.about-content.section-title h5.sub-title {
  color: #f13f01 !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.about-content.section-title h2.title {
  color: #02126a !important;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 16px;
}

.about-content.section-title p {
  color: #555 !important;
}

/* About object list */
.about-object-list {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.about-object-list .about-object-content h4.title {
  color: #02126a !important;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-object-list .about-object-content p {
  color: #555 !important;
  font-size: 14px;
  margin: 0;
}

/* About section2 bg */
.about-section2 {
  background: #fff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.about-section2 .about-bg2 {
  opacity: .06;
}

/* Stats row bg */
.aboutus-section .py-5[style*="background:#f8f9ff"] {
  padding: 32px !important;
}

/* About-us stat icons */
.aboutus-section .col-6 .icofont-users-alt-5,
.aboutus-section .col-6 .icofont-briefcase,
.aboutus-section .col-6 .icofont-trophy,
.aboutus-section .col-6 .icofont-heart {
  color: #f13f01 !important;
}

/* About-us check list items */
.about-cards ul li {
  color: #333 !important;
}

.about-cards ul li i.icofont-check-circled {
  color: #f13f01 !important;
}

/* About-us welcome heading */
.about-cards .about-card-list h2 {
  color: #02126a !important;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.about-cards .about-card-list p {
  color: #555 !important;
}

/* Team section */
.team-section .content h3.title {
  color: #fff !important;
  font-weight: 700;
}

.team-section .content p {
  color: #fff !important;
}

/* Values grid on about page */
.about-section .col-6 p.mb-0.small {
  color: #444 !important;
}

.about-section .col-6 span[class*="icofont"] {
  color: #f13f01 !important;
}

/* ── Wave title — globally ensure it fires ───────────────── */
.wave-title {
  display: inline-block;
}

.wave-anim {
  display: inline-block;
}

/* ── CRITICAL: Label + Wave Title stacking fix ───────────── */
/* Label (Since 2020 / nt-section-label) must be BLOCK above h2 */
.nt-section-label,
span[style*="letter-spacing:3px"],
span[style*="text-transform:uppercase"][style*="color:#f13f01"],
span[style*="text-transform: uppercase"][style*="color: #f13f01"] {
  display: block !important;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* wave-title h2 must be block so label goes above it */
h1.wave-title,
h2.wave-title,
h3.wave-title,
h4.wave-title {
  display: block !important;
  margin-top: 0;
}

/* wave-anim spans — keep inline but ensure parent is block */
.wave-anim {
  display: block !important;
}

.wave-anim .wl {
  display: inline-block !important;
}