html {
  scroll-behavior: smooth;
}


/* ===============================
   RESET & GLOBAL STYLES
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   NAVBAR / HEADER
   (styles used by header.html)
================================= */
.navbar {
  background-color: #fff;
  padding: 1.2rem 0;
  border-bottom: 1px solid #eee;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo a img {
  display: block;
  height: 40px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #13277e;
}

.btn-signup {
  background: linear-gradient(90deg, #fff9d9, #ffe78b);
  color: #13277e !important;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.btn-signup:hover {
  background: linear-gradient(90deg, #fff2b0, #ffd46b);
  color: #000 !important;
}

/* Header Styling */
.main-header {
  background-color: #ffffff;
  padding: 15px 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 94px;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo img {
  height: 46px;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 50px;
  margin-top: 14px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #6c6c6c;
  transition: color 0.3s ease;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
}

/* Generic button base (for header, if needed) */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  height: 52px;
  width: 150px;
}

.main-nav .btn {
  margin-left: 30px;
}

/* Dropdown Styling */
.nav-links li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  z-index: 999;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #6c6c6c;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #13277e;
  color: #fff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* ===============================
   HERO SECTION SLIDER
================================= */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #13277e 0%, #ffffff 100%);
  padding: 4rem 0; /* Adjust height naturally */
}

.hero-slide {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #13277e 0%, #ffffff 100%);
  color: #fff;
  transition: transform 1s ease-in-out;
}

/* Container inside slides */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Text Styling */
.hero-text {
  flex: 1;
  max-width: 540px;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.hero-text h1 span {
  color: #ffb400;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 2.2rem;
  color: #f0f0f0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Hero buttons (page-specific) */
.btn-primary {
  background-color: #ffffff;
  color: #13277e;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: #ffb400;
  color: #13277e;
}

.btn-secondary {
  border: 2px solid #ffb400;
  color: #ffffff;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background-color: #ffb400;
  color: #13277e;
}

/* Image + Stats */
.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image .main-img {
  width: 100%;
  max-width: 480px;
  z-index: 2;
}

.stat {
  position: absolute;
  z-index: 3;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: scale(1.08);
}

.stat1 {
  top: 5%;
  right: 35%;
  width: 110px;
}

.stat2 {
  bottom: 12%;
  left: 24%;
  width: 150px;
}

.stat3 {
  bottom: 0%;
  right: 38%;
  width: 120px;
}

/* HERO RESPONSIVE */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-top: 3rem;
  }

  .stat1 {
    top: 8%;
    right: 50%;
    transform: translateX(50%);
  }

  .stat2 {
    bottom: 5%;
    left: 30%;
  }

  .stat3 {
    bottom: 0%;
    right: 40%;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 1.9rem;
  }

  .stat {
    width: 90px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.7rem 1.2rem;
  }
}

/* ===============================
   MOBILE NAVIGATION
================================= */

/* Hamburger Icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #13277e;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hide mobile signup by default */
.mobile-signup {
  display: none;
}

/* RESPONSIVE NAVIGATION */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    display: none;
    text-align: center;
    z-index: 999;
  }

  nav.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    padding: 1rem 0;
    gap: 1.2rem;
  }

  .nav-links a {
    font-size: 1rem;
    color: #13277e;
  }

  .desktop-signup {
    display: none;
  }

  .mobile-signup {
    display: inline-block;
    background: linear-gradient(90deg, #13277e, #ffb400);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
  }

  /* Animate menu bars into "X" */
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* ===============================
   OUR CORE SERVICES
================================= */
.services-section {
  padding: 20px 0 20px;
  background: #fff;
  text-align: center;
}

.services-heading {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  margin: 0 auto 8px;
  color: #13277e;
  letter-spacing: -0.5px;
  max-width: 900px;
}

.services-gradient {
  background: linear-gradient(90deg, #13277e 0%, #7b6b74 45%, #ffb51e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-accent {
  color: #13277e;
}

.services-sub {
  color: #6f6f6f;
  font-size: 15px;
  margin-bottom: 40px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 18px 30px rgba(7, 10, 20, 0.06),
    0 2px 0 rgba(0, 0, 0, 0.02) inset;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border: 1px solid rgba(19, 39, 126, 0.03);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 40px rgba(7, 10, 20, 0.08),
    0 4px 0 rgba(0, 0, 0, 0.02) inset;
}

.card-img-wrap {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  margin: 18px 18px 6px 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.card-img-wrap img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.service-content {
  padding: 26px 28px 34px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-title {
  color: #13277e;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 14px;
}

.service-desc {
  color: #8a8a8a;
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Responsive Layout */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-heading {
    font-size: 30px;
  }

  .service-title {
    font-size: 24px;
  }
}

/* Make entire card clickable */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border-radius: 12px;
}

.card-link:hover .service-card {
  transform: translateY(-10px);
  box-shadow: 0 26px 40px rgba(7, 10, 20, 0.08),
    0 4px 0 rgba(0, 0, 0, 0.02) inset;
}

/* ===============================
   MEET THE HEROES
================================= */
.qei-heroes-section {
  background: #f7f7f8;
  padding: clamp(1rem, 3vw, 2.5rem) 1rem;
  color: #0f172a;
}

.qei-heroes-wrap {
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.qei-heroes-heading {
  font-weight: 800;
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  margin: 0 0 0.5rem;
}

.qei-heroes-sub {
  margin: 0 auto 2.5rem;
  max-width: 850px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #6b7280;
}

.qei-heroes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 680px) {
  .qei-heroes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .qei-heroes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.qei-hero-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06),
    0 8px 24px rgba(16, 24, 40, 0.07);
  padding: 2.25rem 1.5rem 1.25rem;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  text-align: center;
}

.qei-hero-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.qei-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qei-hero-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
}

.qei-hero-role {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.qei-hero-role a {
  color: #1d4ed8;
  text-decoration: none;
}

.qei-hero-role a:hover {
  text-decoration: underline;
}

.qei-hero-bio {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0.25rem 0 1rem;
}

.qei-hero-social {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  padding-left: 0.25rem;
}

.qei-ico {
  color: #9aa3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s, transform 0.08s;
}

.qei-ico:hover {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.08);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .qei-heroes-section {
    background: #0b1020;
    color: #e5e7eb;
  }

  .qei-hero-card {
    background: #0f1426;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4),
      0 10px 30px rgba(0, 0, 0, 0.45);
  }

  .qei-heroes-sub {
    color: #9ca3af;
  }

  .qei-hero-bio {
    color: #a0a8b6;
  }

  .qei-ico {
    color: #a6adbb;
  }
}
.qei-heroes-heading {
  font-weight: 800;
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  margin: 0 0 0.5rem;

  background: linear-gradient(90deg, #13277e 0%, #7b6b74 45%, #ffb51e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ===============================
   RTECH FLOATING CHATBOT
================================= */
.rtech-chatbot {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chatbot-toggle img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.chatbot-box {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  display: none;
  overflow: hidden;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--navy);
  color: #ffffff;
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bot-info img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.chatbot-header button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-content {
  padding: 0.75rem 1rem;
  max-height: 260px;
  overflow-y: auto;
  background-color: #f9fafb;
}

.bot-msg,
.user-msg {
  font-size: 0.87rem;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  max-width: 90%;
}

.bot-msg {
  background-color: #e5e7eb;
  color: #111827;
  align-self: flex-start;
}

.user-msg {
  background-color: var(--gold);
  color: #111827;
  margin-left: auto;
  text-align: right;
}

.chatbot-input {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem 0.75rem;
  background-color: #ffffff;
}

.chatbot-input input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
}

.chatbot-input button {
  border-radius: 999px;
  border: none;
  background-color: var(--navy);
  color: #ffffff;
  padding: 0 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}


/* ===============================
   WHAT PEOPLE SAY ABOUT US
================================= */
/* ===  Testimonials Section  === */
.testimonials-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(90deg, #13277E, #ffb51e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #ffb51e;
    display: flex;
    flex-direction: column;
}

.star-rating {
    color: #ffb51e;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.05rem;
    opacity: 0.9;
    flex-grow: 1;
    color: #333;
}

.testimonial-card cite {
    font-weight: 600;
    font-style: normal;
    margin-top: auto;
    color: #13277E;
}



/* ===============================
   NEWSLETTER FOOTER
================================= */
.qei-newsletter {
  position: relative;
  overflow: clip;
  padding: 56px 16px 64px;
  color: #eaf0ff;
  isolation: isolate;
}

/* Gradient background */
.qei-newsletter-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      1100px 600px at 85% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    radial-gradient(
      900px 500px at 15% 30%,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(180deg, #4b465a 0%, #0a1d78 60%, #061e64 100%);
  box-shadow: inset 0 40px 60px rgba(0, 0, 0, 0.25);
}

.qei-newsletter-wrap {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

/* Heading */
.qei-newsletter-heading {
  font-weight: 700;
  font-size: clamp(1.4rem, 1.4rem + 1.2vw, 2rem);
  margin: 8px 0 22px;
  letter-spacing: 0.2px;
}

/* Form row */
.qei-newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
}

.qei-newsletter-form input {
  width: min(600px, 88vw);
  flex: 1 1 420px;
  background: transparent;
  color: #eaf0ff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 16px 22px;
  border-radius: 999px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.qei-newsletter-form input::placeholder {
  color: rgba(234, 240, 255, 0.8);
}

.qei-newsletter-form input:focus {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.qei-newsletter-form button {
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: #ffbd66;
  color: #1a2a6b;
  box-shadow: 0 8px 20px rgba(255, 189, 102, 0.35);
  transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.qei-newsletter-form button:hover {
  box-shadow: 0 10px 28px rgba(255, 189, 102, 0.45);
  filter: brightness(1.05);
}

.qei-newsletter-form button:active {
  transform: translateY(1px);
}

/* Footer links */
.qei-newsletter-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 14px;
  flex-wrap: wrap;
  font-size: 1.02rem;
}

.qei-newsletter-links a {
  color: #eaf0ff;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.15s;
}

.qei-newsletter-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.qei-newsletter-sep {
  opacity: 0.55;
}

.qei-newsletter-copy {
  margin: 6px 0 0;
  font-size: 1.02rem;
  opacity: 0.9;
}

/* accessibility helper (screen-reader only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile tweaks */
@media (max-width: 560px) {
  .qei-newsletter-form {
    gap: 10px;
  }

  .qei-newsletter-form button {
    width: 100%;
  }
}
