/* ============================================================
   PATHOCARD – CORE THEME & LAYOUT
============================================================ */

/* ========================= Root Variables ========================= */
:root {
  --brand-red: #E30613;
  --brand-blue: #0066CC;
  --brand-green: #00A859;
  --brand-bg-light: #F9F9F9;
  --brand-text-dark: #1A1A1A;
  --brand-white: #FFFFFF;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --border-radius: 30px;
  --navbar-height: 70px;
}

/* ========================= Global Reset ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--brand-text-dark);
  background: var(--brand-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================= Layout ========================= */
main {
  flex: 1;
  padding: 20px;
}

.dashboard-footer {
  flex-shrink: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-red);
}

/* Remove Bootstrap focus ring */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}


/* =========================
   Global Buttons
========================= */
button,
.btn {
   font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 6px 12px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.btn-primary,
button.btn-primary {
  background-color: var(--brand-blue);
  color: var(--brand-white);
}

.btn-primary:hover {
  background-color: #0052a3;
}

.btn-secondary,
button.btn-secondary {
  background-color: var(--brand-white);
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
}

.btn-secondary:hover {
  background-color: var(--brand-blue);
  color: var(--brand-white);
}

.btn-danger,
button.btn-danger {
  background-color: var(--brand-red);
  color: var(--brand-white);
}

.btn-danger:hover {
  background-color: #b2050f;
}

.btn-success,
button.btn-success {
  background-color: var(--brand-green);
  color: var(--brand-white);
}

.btn-success:hover {
  background-color: #008e4d;
}

/* =========================
   Forms & Inputs
========================= */
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--brand-text-dark);
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  background-color: var(--brand-white);
  width: 100%;
  transition: all var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 6px rgba(0, 102, 204, 0.3);
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: var(--brand-blue);
}

/* Labels */
label {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  display: block;
  color: var(--brand-text-dark);
}

/* ============================================================
   NAVBAR (Desktop + Offcanvas)
============================================================ */
.navbar {
  background: var(--brand-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 0.7rem 0;
  z-index: 1050;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

/* Logo */
.navbar-brand img {
  transition: transform 0.3s ease;
  width: 170px;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar .tagline {
  font-size: 0.70rem;           /* Slightly larger for readability */
  font-weight: 500;             /* Medium weight for elegance */
  color: #1A1A1A;               /* Darker color for better contrast */
  margin-top: 0.25rem;          
  letter-spacing: 0.5px;        /* Subtle spacing for premium feel */
  font-style: italic;            /* Gives a subtle brand vibe */
  opacity: 0.85;                /* Slightly muted */
  transition: color 0.3s ease;  /* Smooth hover effect if needed */
}

.navbar .tagline:hover {
  color: var(--brand-red);      /* Optional hover effect matching brand */
}


/* Navbar Links */
.navbar-nav .nav-link {
  color: var(--brand-text-dark) !important;
  font-weight: 600;
  padding: 0.6rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-nav .nav-link:hover {
  color: var(--brand-red) !important;
}

/* ============================================================
   Navbar Dropdown (Smooth Hover Open)
============================================================ */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.35s ease;
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  background-color: var(--brand-white);
  padding: 0.5rem 0;
  min-width: 220px;
}


.btn-login {
  background-color: var(--brand-red);
  color: white !important;
  font-weight: 700;
  border-radius: 50px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn-login:hover,
.btn-login:focus {
  background-color: #b0030f; /* Slightly darker red */
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.6);
  outline: none;
  color: white !important;
}

/* ========================= Navbar Toggle ========================= */
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23E30613' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(227,6,19, 0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ============================================================
   OFFCANVAS MENU (Mobile)
============================================================ */
.offcanvas {
  width: 250px;
  max-width: 80%;
  height: 100vh !important;
  background-color: var(--brand-red);
  color: #fff;
  z-index: 1070 !important;
  transition: transform 0.4s ease;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.offcanvas-title {
  font-weight: 700;
}

.offcanvas .btn-close-white {
  filter: invert(1);
}

.offcanvas .nav-link {
  color: var(--brand-white) !important;
  font-weight: 600;
  padding: 0.7rem 0;
  transition: var(--transition);
}

.offcanvas .nav-link:hover {
  color: #ffdcdc !important;
  transform: translateX(5px);
}

/* Offcanvas Login Button */
.offcanvas .btn-light {
  font-weight: 600;
  border-radius: 50px;
  color: var(--brand-red);
  transition: var(--transition);
}

.offcanvas .btn-light:hover {
  background: #fff;
  color: var(--brand-blue);
}

/* Dropdown visible on hover (desktop only) */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Smooth dropdown link style */
  .dropdown-menu .dropdown-item {
    font-weight: 500;
    color: var(--brand-text-dark);
    padding: 0.6rem 1rem;
    transition: var(--transition);
  }

  .dropdown-menu .dropdown-item:hover {
    background-color: rgba(227, 6, 19, 0.08);
    color: var(--brand-red);
    padding-left: 1.25rem;
  }
}

/* Mobile fallback — still click-based (Bootstrap default) */
@media (max-width: 991px) {
  .nav-item.dropdown .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: static;
    box-shadow: none;
  }
}

/* ============================================================
   TOP BAR
============================================================ */
.top-bar {
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.35rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar a {
  color: #fff;
  transition: var(--transition);
}

.top-bar a:hover {
  color: #ffe6e6;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icons .social-link {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons .social-link:hover {
  background: #fff;
  color: var(--brand-blue);
  transform: translateY(-2px);
}

/* =========================
   Top Bar Buttons
========================= */

.top-bar .btn-topbar {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
}

.top-bar .btn-topbar i {
  font-size: 0.95rem;
  vertical-align: middle;
}

.top-bar .btn-topbar.btn-light {
  background-color: #fff;
  color: var(--brand-text-dark);
  border: 1px solid #ddd;
}

.top-bar .btn-topbar.btn-light:hover {
  background-color: var(--brand-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.top-bar .btn-topbar.btn-success {
  background-color: var(--brand-green);
  color: #fff;
}

.top-bar .btn-topbar.btn-success:hover {
  background-color: #008e4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.25);
}

.top-bar .btn-topbar.btn-danger {
  background-color: var(--brand-red);
  color: #fff;
}

.top-bar .btn-topbar.btn-danger:hover {
  background-color: #b2050f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

/* Gap and spacing between buttons/icons */
.topbar-buttons .btn-topbar {
  margin-left: 8px;
}

.topbar-buttons .nav-item a.btn-topbar {
  margin-left: 4px;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .topbar-buttons {
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
  }
}


/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    display: none !important;
  }

  .navbar-toggler {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }

  .navbar-brand img {
    width: 160px;
  }
}

/* ============================================================
   MOBILE FIX – Prevent horizontal shift + top-bar
============================================================ */
@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1040 !important;
  }

  .navbar {
    position: fixed !important;
    top: 35px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
  }

  body {
    padding-top: calc(32px + 70px) !important;
  }


}


/* ============================================================
   HERO SECTION – PATHOCARD THEME
============================================================ */

/* Hero Container */
#hero {
  position: relative;
  color: white;
  padding: calc(var(--navbar-height, 20px) + 40px) 20px 80px;
  overflow: hidden;
  z-index: 1;
  min-height: 700px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  transition: padding 0.35s ease;
}

/* Background Image */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/hero_bg.png') center center/cover no-repeat;
  filter: brightness(0.6) saturate(1.1);
  z-index: -3;
  transition: filter 0.35s ease;
}

/* Gradient Overlay */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(227, 6, 19, 0.7) 0%,
    rgba(0, 68, 153, 0.7) 100%
  );
  z-index: -2;
  pointer-events: none;
  transition: background 0.35s ease;
}

/* Hover Effects on Hero */
#hero:hover::before,
#hero:focus-within::before {
  filter: brightness(0.75) saturate(1.2);
}

#hero:hover::after {
  background: linear-gradient(
    135deg,
    rgba(227, 6, 19, 0.8) 0%,
    rgba(0, 68, 153, 0.8) 100%
  );
}

/* Adjust Hero Padding on Navbar Scroll */
.navbar.scrolled + #hero {
  padding-top: calc(60px + 40px);
}

/* Hero Inner Container */
#hero .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Left Text Content */
#hero .hero-text {
  flex: 1 1 450px;
  min-width: 280px;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s ease forwards;
}

/* Hero Text Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compact Hero Form */
#hero form#appointmentForm {
  flex: 1 1 320px;
  min-width: 260px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  color: var(--brand-text-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* Hero Form Styling */
#hero form#appointmentForm h2 {
  color: var(--brand-red);
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
}

#hero form#appointmentForm label {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

#hero form#appointmentForm input,
#hero form#appointmentForm select {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1.2px solid var(--brand-blue);
  border-radius: 5px;
  font-size: 0.95rem;
  transition: border-color 0.35s ease;
}

#hero form#appointmentForm input:focus,
#hero form#appointmentForm select:focus {
  border-color: var(--brand-green);
  outline: none;
  box-shadow: 0 0 4px var(--brand-green);
}

#hero form#appointmentForm button[type="submit"] {
  background-color: var(--brand-green);
  border: none;
  font-weight: 600;
  padding: 12px 0;
  font-size: 1rem;
  border-radius: 50px;
  width: 100%;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.35);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

#hero form#appointmentForm button[type="submit"]:hover,
#hero form#appointmentForm button[type="submit"]:focus {
  background-color: #008c59;
  box-shadow: 0 6px 18px rgba(0, 140, 89, 0.55);
  outline: none;
}

/* Hero Text Elements */
.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text .brand-highlight {
  color: var(--brand-green);
  font-style: italic;
}

.hero-text p {
  font-size: 1.3rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: #f0f0f0dd;
}

/* Hero Contact Info */
.hero-contact {
  margin-top: 1.8rem;
  font-size: 1.15rem;
  color: #d9d9d9cc;
  font-weight: 600;
}

.hero-contact span {
  margin-right: 8px;
}

.hero-phone {
  color: var(--brand-green);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.35s ease;
}

.custom-phone-icon {
  vertical-align: middle;
  margin-right: 10px;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.hero-phone:hover .custom-phone-icon,
.hero-phone:focus .custom-phone-icon {
  transform: scale(1.3) rotate(15deg);
}

/* Brand Highlight Class */
.brand-highlight {
  color: #E30613;
  font-weight: 900;
}

/* Responsive fixes */
@media (max-width: 767px) {
  #hero h1 {
    font-size: 2.2rem;
  }
  #hero p {
    font-size: 1rem;
  }
  #services .card {
    margin-bottom: 25px;
  }
  #how-it-works .step-number {
    font-size: 2rem;
  }
}

.services-overlay {
  position: absolute;
  left: 50%;
  bottom: -480px;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: #ffffff;
  border-radius: 15px;
  padding: 1rem 1rem 1rem;
  box-shadow: 0 8px 30px rgba(227, 6, 19, 0.15);
  z-index: 10;
}

.services-overlay .section-title {
  text-align: center;
  color: #E30613;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* Enhanced Card Styling */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(227, 6, 19, 0.15);
}

.service-card i {
  font-size: 3.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.1);
}

/* Icon Colors */
.icon-red {
  color: #E30613;
}

.icon-blue {
  color: #007BFF;
}

.icon-green {
  color: #28A745;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 767.98px) {
  .services-overlay {
    position: static;
    transform: none;
    margin-top: -10px; /* pulls it up toward hero section */
    padding: 1.5rem 1rem 2rem;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(227, 6, 19, 0.12);
  }

  .services-overlay .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .services-overlay .card i {
    font-size: 2.5rem;
  }

  .services-overlay .card {
    padding: 1.2rem;
  }
}


#about {
  margin-top: 350px;
}


#about .about-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--brand-text-dark);
  font-weight: 500;
  text-align: justify;
}

/* Image with overlay text */
.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  height: 400px;
}

.about-image-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(227, 6, 19, 0.8), transparent);
  color: white;
}

.overlay-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

/* Stats Section */
.stats-list .stat-item {
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--brand-red);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.1);
  transition: transform 0.3s ease;
  text-align: left;
}

.stats-list .stat-item:hover {
  transform: translateY(-5px);
}

.stats-list .stat-item i {
  font-size: 2rem;
  color: var(--brand-red);
  margin-bottom: 0.5rem;
}

.stats-list .stat-item h6 {
  font-weight: 700;
  color: var(--brand-text-dark);
  margin-bottom: 0.25rem;
}

.stats-list .stat-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 991px) {
  #about {
    margin-top: 150px;
  }

  #about .about-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }

  .about-image-wrapper {
    height: 300px;
  }

  .image-overlay {
    padding: 0.75rem;
  }

  .overlay-title {
    font-size: 1.1rem;
  }

  .stats-list .stat-item {
    padding: 0.75rem;
    border-left-width: 3px;
  }

  .stats-list .stat-item i {
    font-size: 1.75rem;
  }

  .stats-list .stat-item h6 {
    font-size: 1rem;
  }

  .stats-list .stat-item p {
    font-size: 0.9rem;
  }
}

@media (max-width: 575px) {
  #about {
    margin-top: 10px;
  }

  #about .about-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .about-image-wrapper {
    height: 220px;
  }

  .overlay-title {
    font-size: 1rem;
  }

  .stats-list .stat-item {
    padding: 0.5rem;
    border-left-width: 2px;
    text-align: center;
  }

  .stats-list .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .stats-list .stat-item h6 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
  }

  .stats-list .stat-item p {
    font-size: 0.85rem;
  }
}



#test-categories {
  position: relative;
  color: #fff;
  /* fallback background color */
  background-color: var(--brand-green);
  overflow: hidden;
  z-index: 0;
}

/* Background image with full cover */
#test-categories::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top:0; bottom:0; left:0; right:0; */
  background: url('../img/test_categories_bg.png') center center/cover no-repeat;
  opacity: 0.5; /* adjust overlay transparency */
  z-index: -2;
}

/* Overlay color layer above the image */
#test-categories::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-green);
  opacity: 0.6; /* overlay opacity */
  z-index: -1;
}

/* Content inside stays relative and above overlays */
#test-categories > .container {
  position: relative;
  z-index: 1;
}

.category-slider {
  position: relative;
  overflow: hidden;
}

.category-group {
  display: none;
  justify-content: space-between;
  gap: 10px;
  transition: opacity 0.8s ease-in-out;
  flex-wrap: wrap;
}

.category-group.active {
  display: flex;
  animation: fadeIn 1s ease-in-out;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex: 1 1 calc(20% - 12px); /* 5 per row with gap */
}

.category-card i {
  font-size: 2rem;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.category-card p {
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .category-card {
    flex: 1 1 45%;
    margin-bottom: 15px;
  }
}


#how-it-works {
  background-color: #fff;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#how-it-works .section-title {
  font-weight: 700;
  color: #E30613;
  font-size: 2.5rem;
}

#how-it-works p.text-secondary {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  color: #666;
}

.step {
  border: 1px solid #eee;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background: #fafafa;
}

.step:hover {
  box-shadow: 0 12px 30px rgba(227, 6, 19, 0.25);
  transform: translateY(-8px);
  background: #fff;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: #E30613;
  width: 70px;
  height: 70px;
  line-height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: #fdecea;
  user-select: none;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
}

.step-desc {
  font-size: 1rem;
  color: #555;
} 


/* General Wrapper */
.section-wrapper {
  background: #ffffff;
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-red);
}

/* Trusted Lab Card */
.trusted-lab-card {
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.trusted-lab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.trusted-lab-card img {
  height: 50px;
  width: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}

.lab-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.lab-location {
  font-size: 0.9rem;
  color: #777;
}

/* Counter Section */
.counter-card {
  border-radius: 14px;
  padding: 30px 15px;
  transition: all 0.3s ease;
}

.counter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.counter-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.counter-number {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.counter-label {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
}

/* Utility Brand Colors */
.text-brand-red { color: var(--brand-red); }
.text-brand-blue { color: var(--brand-blue); }
.text-brand-green { color: var(--brand-green); }

/* Responsive */
@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.8rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .counter-icon {
    font-size: 1.8rem;
  }
}

#testimonials {
  position: relative;
  padding: 80px 20px 80px;
  background-color: #e30613;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  z-index: 2;
  overflow: hidden;
}

#testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/hero_bg.png') center center/cover no-repeat;
  filter: brightness(0.7);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

#testimonials::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(227, 6, 19, 0.5);
  pointer-events: none;
  z-index: 1;
}

#testimonials > .container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 3;
}

/* Slider wrapper */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 280px; /* Reserve space to prevent layout shift */
}

.testimonial-group {
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  transition: opacity 0.8s ease-in-out;
}

.testimonial-group.active {
  display: flex;
}

/* Individual cards */
.testimonial-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px 50px 35px 50px;
  color: #333;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  max-height: 300px;
  flex: 1 1 calc(33.33% - 15px);
  position: relative;
  box-sizing: border-box;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  color: rgba(227, 6, 19, 0.15);
  font-family: serif;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.testimonial-card p {
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.testimonial-author {
  font-weight: 700;
  color: #e30613;
  font-size: 1.1rem;
  text-align: right;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 991px) {
  .testimonial-card {
    flex: 1 1 48%;
    min-height: auto;
    padding: 30px 35px;
    font-size: 1.1rem;
  }
  .testimonial-card::before {
    font-size: 4.5rem;
    top: 5px;
    left: 10px;
  }
}

@media (max-width: 575px) {
  #testimonials {
    padding: 60px 15px;
  }
  .testimonial-card {
    flex: 1 1 100%;
    padding: 25px 20px;
    font-size: 1rem;
  }
  .testimonial-card::before {
    font-size: 3.5rem;
    top: 2px;
    left: 8px;
  }
}


.associate-section .section-title {
  font-size: 2.5rem;
  letter-spacing: 1px;
}


/* Brand Color Customization */
.text-brand {
  color: #E30613 !important;
}

.border-brand {
  border-color: #E30613 !important;
}

.btn-brand {
  background-color: #E30613;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-brand:hover {
  background-color: #c40511;
  color: #fff;
}

.btn-brand:focus {
  outline: none;
  box-shadow: none;
}

/* Associate Form Styling */
#associateForm {
  flex: 1 1 320px;
  min-width: 260px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  color: var(--brand-text-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#associateForm h2 {
  color: var(--brand-red);
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
}

#associateForm label {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

#associateForm input,
#associateForm select,
#associateForm textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1.2px solid var(--brand-blue);
  border-radius: 5px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#associateForm input:focus,
#associateForm select:focus,
#associateForm textarea:focus {
  border-color: var(--brand-green);
  outline: none;
  box-shadow: 0 0 4px var(--brand-green);
}

#associateForm button[type="submit"] {
  background-color: var(--brand-green);
  border: none;
  font-weight: 600;
  padding: 12px 0;
  font-size: 1rem;
  border-radius: 50px;
  width: 100%;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.35);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#associateForm button[type="submit"]:hover,
#associateForm button[type="submit"]:focus {
  background-color: #008c59;
  box-shadow: 0 6px 18px rgba(0, 140, 89, 0.55);
  outline: none;
}

/* Responsive Typography Adjustment */
@media (max-width: 576px) {
  #associateForm {
    padding: 16px;
    flex: 1 1 100%;
  }

  #associate ul.fs-5 {
    font-size: 1rem;
  }
}


/* Footer Section with background image and overlay */
.footer-section {
  position: relative;
  background: var(--brand-blue) url('../img/footer_bg.png') no-repeat center center/cover;
  color: #eee; /* improved contrast for text */
  font-family: 'Poppins', sans-serif;
  padding: 60px 20px 30px;
  user-select: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
  transition: background-color 0.5s ease;
  overflow: hidden;
  z-index: 0;
}

/* Overlay layer with brand blue tint */
.footer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 85, 255, 0.85);
  z-index: -1;
  pointer-events: none;
}

/* Hover effect */
.footer-section:hover {
  background-color: #001f4d;
}

/* Main content flex container */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1; /* above overlay */
}

/* Branding block */
.footer-branding {
  flex: 1 1 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: 900;
  color: #ff3b3b; /* stronger red */
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 2.5rem;
  user-select: text;
  gap: 10px;
}

.footer-logo img {
  transition: filter 0.3s ease;
}

/* Branding paragraph */
.footer-branding p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ddd; /* lighter text */
}

/* Footer section titles */
.footer-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffff;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 2px solid #ff3b3b;
  padding-bottom: 6px;
}

/* Footer links */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus {
  color: #ff3b3b;
  outline: none;
}

/* Contact info */
.footer-contact p,
.footer-contact a {
  color: #eee;
  font-size: 1rem;
  line-height: 1.6;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: #ff3b3b;
  outline: none;
}

/* Payment logos */
.payment-logos {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-logos img {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
  transition: filter 0.3s ease;
}

.payment-logos img:hover,
.payment-logos img:focus {
  filter: drop-shadow(0 2px 2px rgba(255,59,59,0.6));
  outline: none;
}

/* Footer bottom copyright */
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #ffff;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 18px;
  position: relative;
  z-index: 1;
}

/* Logo filter for white version */
img.white-logo {
  filter: brightness(0) invert(1);
}

/* Social icons container */
.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-icon {
  font-size: 1.8rem;
  color: #eee;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  user-select: none;
}

.social-icon:hover,
.social-icon:focus {
  color: #ff3b3b;
  background-color: rgba(255, 59, 59, 0.15);
  outline: none;
  transform: scale(1.1);
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .footer-top {
    flex-direction: column;
    gap: 25px;
    padding-bottom: 20px;
  }

  .footer-branding,
  .footer-links,
  .footer-contact,
  .footer-payments {
    max-width: 100%;
  }

  .payment-logos {
    justify-content: flex-start;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    font-size: 2rem;
  }

  .footer-social {
    gap: 15px;
  }

  .social-icon {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }

  .payment-logos img {
    width: 40px;
  }
}

/* =========================
   WhatsApp Floating Button
========================= */
#help-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: all 0.3s ease, transform 0.2s ease;
  animation: pulse-glow 2s infinite;
}

#help-chat i {
  font-size: 1.3rem;
}

#help-chat:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.05);
}

/* Mobile: always show circular WhatsApp icon */
@media (max-width: 767px) {
  #help-chat {
    width: 55px;
    height: 55px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  #help-chat .help-text {
    display: none;
  }
}


/* =========================
   Back to Top Button
========================= */
#backToTop {
  position: fixed;
  bottom: 40px;
  left: 40px;
  background-color: var(--brand-red, #E30613);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 9999;
}

#backToTop i {
  font-size: 1.3rem;
}

#backToTop:hover {
  background-color: var(--brand-green, #00A859);
  color: #fff;
  transform: scale(1.1);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  #backToTop {
    left: auto;
    right: 20px;
    bottom: 90px;
  }
}

/* =============================
   Toast Container Animation
============================= */
#toastContainer .toast {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}
#toastContainer .toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   Tailwind-Inspired Toast Colors
============================= */

/* Success — Tailwind Emerald Green (#10B981) */
.bg-success {
  background-color: #10B981 !important; /* Tailwind emerald-500 */
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Danger — Tailwind Rose Red (#EF4444) */
.bg-danger {
  background-color: #EF4444 !important; /* Tailwind red-500 */
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Info — Tailwind Sky Blue (#3B82F6) */
.bg-info {
  background-color: #3B82F6 !important; /* Tailwind blue-500 */
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Warning — Tailwind Amber (#F59E0B) */
.bg-warning {
  background-color: #F59E0B !important; /* Tailwind amber-500 */
  color: #212529 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Toast inner style for better visual balance */
#toastContainer .toast .toast-body {
  font-weight: 500;
  letter-spacing: 0.2px;
}


/* =========================
   Dashboard Section
========================= */
.dashboard-section {
    padding: 2rem 0;
    min-height: calc(100vh - 120px);
    background-color: var(--brand-bg-light);
}

.dashboard-section .card {
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-section .card:hover,
.dashboard-section .card.hover-up:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.dashboard-section .card h6 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: #555;
}

.dashboard-section .card h3 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 0.3rem;
}

.dashboard-section .gradient-card {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    color: #fff;
}

.dashboard-section .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Section Title */
.dashboard-section-title {
    font-weight: 600;
    font-size: 1.75rem;
    position: relative;
    padding-left: 1rem;
    border-left: 6px solid;
    border-image: linear-gradient(180deg, var(--brand-red), var(--brand-gree), var(--brand-blue)) 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #222;
}

.dashboard-section-title i {
    font-size: 1.5rem;
    color: var(--brand-blue);
}

/* Stat Cards - Sparkline Chart */
.sparkline-canvas {
    width: 100% !important;
    height: 50px !important;
}



/* Tables */
.table th,
.table td {
    vertical-align: middle;
}

.table thead {
    background-color: #f5f5f5;
}

.table tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fdfdfd;
}

/* Badges */
.badge {
    font-size: .75rem;
    padding: .35em .5em;
    border-radius: .25rem;
    text-transform: uppercase;
}

.badge.bg-success-light { background-color:#d4edda; color:#155724; }
.badge.bg-info-light { background-color:#d1ecf1; color:#0c5460; }
.badge.bg-danger-light { background-color:#f8d7da; color:#721c24; }
.badge.bg-warning-light { background-color:#fff3cd; color:#856404; }
.badge.bg-secondary-light { background-color:#e2e3e5; color:#6c757d; }

/* Charts Cards */
.card canvas {
    max-width: 100%;
    display: block;
    height: 180px;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .dashboard-section .row {
        gap: 1rem;
    }

    .dashboard-section .card h3 {
        font-size: 1.5rem;
    }
}

