/* ====== Global Reset and Base ====== */
/* ====== Reset & Base ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #020842;
  background-color: #fff;
}

body {
  background-color: #fff;
  color: #020842;
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}
a{
  text-decoration: none;
}

/* Headings use Roboto */
h1,
h2,
h3,
h4,
h5,
h6,
a {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

/* Paragraphs and text content use Open Sans */
p,
li,
span,
label,
input,
textarea,
button {
  font-family: 'Open Sans', sans-serif;
}

/* ====== Container ====== */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
  overflow: hidden;
}

/* ====== Sub Header ====== */
.sub-header {
  background-color: #0a2b47;
  padding: 10px 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid #d6e6ef;
}

.sub-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.sub-left,
.sub-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.sub-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.sub-left i,
.sub-right i {
  color: #fff;
}

.sub-right a {
  font-size: 16px;
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.sub-right a:hover {
  color: #fff;
  transform: scale(1.2);
}

/* ====== Main Header ====== */
.main-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 44, 155, 0.1);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  max-height: 50px;
  width: auto;
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu ul li a {
  color: #002C9B;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-menu ul li a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background-color: #0056b3;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-menu ul li a:hover,
.nav-menu ul li a:focus {
  color: #0056b3;
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

/* CTA Button */
.header-btn {
  flex: 0 0 auto;
}

.btn-appointment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: #3b82f6;
  color: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 25px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-appointment i {
  font-size: 1.1rem;
}

/* Pulse animation */
@keyframes zoomPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.btn-appointment {
  animation: zoomPulse 2s ease-in-out infinite;
}

.btn-appointment:hover,
.btn-appointment:focus {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.05);
  background-color: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
  color: #fff;
}

.btn-appointment .btn-text {
  font-weight: 700;
}

.btn-appointment .btn-number {
  font-weight: 600;
  opacity: 0.95;
}

/* Submit button (merged and consistent) */
.submit-btn {
  width: 100%;
  background: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.submit-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Hamburger (single definition) */
.hamburger {
  display: none;
  /* hidden by default, shown on small screens */
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background: #002C9B;
}

/* Drawer Menu */
.drawer-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 260px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.drawer-menu.show {
  left: 0;
}

.drawer-menu ul {
  list-style: none;
  padding: 0;
}

.drawer-menu ul li {
  margin: 15px 0;
}

.drawer-menu ul li a {
  color: #002C9B;
  font-size: 20px;
  text-decoration: none;
}

/* Close Button */
.close-btn {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #002C9B;
  align-self: flex-end;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ====== Hero Slider Section ====== */
#hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#carouselExampleControls {
  height: auto;
  min-height: 100%;
}

.carousel-item {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
filter: brightness(0.5);
}

/* Hero Content Container */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  z-index: 10;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* Title Section */
.title-section {
  flex: 1;
  max-width: 55%;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.title-section h1 {
  font-size: 35px;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-transform: capitalize;
}

.title-section h2 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* CTA in hero */
.btn-cta {
  background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #003d80 0%, #0056b3 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.9);
  transform: scale(1.08);
}

/* Consultation Form */
.consultation-form {
  flex: 0 0 380px;
  margin-left: 2rem;
}

.form-container {
  background: rgba(255, 255, 255, 0.98);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.form-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #002C9B;
  font-weight: 600;
  font-size: 1.1rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #fff;
  padding: 0 5px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

/* ====== Mobile Responsive ====== */

/* <= 1200px */
@media (max-width: 1200px) {
  .hero-content {
    padding: 1.5rem;
  }

  .consultation-form {
    flex: 0 0 340px;
    margin-left: 1rem;
  }

  .title-section {
    max-width: 60%;
  }

  .title-section h1 {
    font-size: 2.5rem;
  }

  .nav-menu ul {
    gap: 20px;
  }
}

/* <= 992px */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    height: 120%;
    padding: 1rem;
  }

  .title-section {
    max-width: 100%;
    text-align: center;
    margin-bottom: 2rem;
  }

  .title-section h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }

  .title-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .consultation-form {
    
    max-width: 100%;
  }

  .form-container {
    padding: 1.5rem;
  }

  .nav-menu ul {
    gap: 15px;
  }

  .header-btn .btn-appointment {
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
  }
}

/* <= 768px */
@media (max-width: 768px) {
  .sub-header {
    padding: 8px 0;
    font-size: 12px;
  }

  .sub-left,
  .sub-right {
    gap: 15px;
  }

  .sub-left span {
    font-size: 12px;
  }

  .main-header .container {
    flex-wrap: nowrap;
  }

  .nav-menu {
    display: none;
  }

  .header-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Mobile */
  #carouselExampleControls {
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem 1rem;
  }

  .title-section h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .title-section h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-cta {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .form-container {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .form-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }
}

/* <= 480px */
@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  .hero-content {
    padding: 1.5rem 0.8rem;
  }

  .title-section h1 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .title-section h2 {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .btn-cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .form-container {
    padding: 1.2rem;
    width: 100%;
  }

  .sub-left span {
    font-size: 11px;
  }

  .sub-right {
    gap: 10px;
  }

  .logo img {
    max-height: 40px;
  }
}

/* form */

/* ===== Banner / Hearing Aid Types Section ===== */
.hearing-aid-types-section {
  padding: 60px 15px 40px;
  background: #f8f9fa;
  font-family: 'Open Sans', sans-serif;
}

/* Container (section-scoped) */
.container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Title */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  color: #002c9b;
  margin-bottom: 50px;
}

/* Grid Layout */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Card (primary) */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Card image */
.card img {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* Card text */
.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #002c9b;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Read More Button */
.btn-read-more {
  display: inline-block;
  font-weight: 700;
  color: #007bff;
  text-decoration: none;
  padding: 0.4rem 1.2rem;
  border: 2px solid #007bff;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-read-more:hover {
  background-color: #007bff;
  color: #fff;
}

/* Fade-up animation for cards */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Grid-card variant (smaller card style + stagger animation) ===== */
.grid-card {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
  transform: scale(0.9);
  opacity: 0;
  animation: fadeZoom 0.6s ease forwards;
}

.grid-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-card:hover img {
  transform: scale(1.08);
}

@keyframes fadeZoom {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Stagger delays (safe up to 6 items) */
.grid-card:nth-child(1) {
  animation-delay: 0s;
}

.grid-card:nth-child(2) {
  animation-delay: 0.1s;
}

.grid-card:nth-child(3) {
  animation-delay: 0.2s;
}

.grid-card:nth-child(4) {
  animation-delay: 0.3s;
}

.grid-card:nth-child(5) {
  animation-delay: 0.4s;
}

.grid-card:nth-child(6) {
  animation-delay: 0.5s;
}

/* ===== Clients / Logos slider ===== */
:root {
  --logo-size: 14rem;
  /* logo box size */
  --slide-gap: 2rem;
  /* gap between slides */
  --visible-count: 4;
  /* logos visible at once */
  --scroll-duration: 22s;
  /* scroll duration */
}

.clients-section {
  background-color: #f8f9fa;
}

.slider-shell {
  width: calc((var(--logo-size) + var(--slide-gap)) * var(--visible-count) - var(--slide-gap));
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.slider-track {
  display: flex;
  gap: var(--slide-gap);
  width: calc((var(--logo-size) + var(--slide-gap)) * (var(--visible-count) * 2));
  animation: scrollLoop var(--scroll-duration) linear infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.slider-shell:hover .slider-track {
  animation-play-state: paused;
}

.slide {
  flex: 0 0 var(--logo-size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 1rem;
}

.client-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-drag: none;
  user-select: none;
  pointer-events: none;
  border-radius: 0.5rem;
}

@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-1 * (var(--logo-size) + var(--slide-gap)) * var(--visible-count)));
  }
}

/* ===== Why Choose Us ===== */
#why-choose-us {
  padding: 80px 0;
  background: linear-gradient(135deg, #e6ecff, #f4f7fa);
  position: relative;
  overflow: hidden;
}

#why-choose-us .heading-wrap {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out both;
}

#why-choose-us .title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, #002C9B, #E30613);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

#why-choose-us .subtitle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
  color: #444;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Decorative underline */
#why-choose-us .title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #E30613, #002C9B);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: underlineGrow 1.2s ease-out both;
}

@keyframes underlineGrow {
  0% {
    width: 0;
  }

  100% {
    width: 60%;
  }
}

/* ===== Contact CTA Hero ===== */
.contact-cta-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, #002C9B 80%, rgba(0, 44, 155, 0.9) 100%);
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  text-align: center;
  z-index: 1;
}

.contact-cta-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1470&q=80') no-repeat center center / cover;
  opacity: 0.2;
  animation: slowZoom 40s ease-in-out infinite alternate;
  z-index: 0;
  filter: brightness(0.5);
}

.contact-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-info p {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.btn-primary-xl {
  display: inline-block;
  padding: 14px 30px;
  background-color: #E30613;
  color: #fff;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.3);
}

.btn-primary-xl:hover {
  background-color: #fff;
  color: #E30613;
  transform: scale(1.05);
  border: 2px solid #E30613;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

/* ===== Services Steps Section ===== */
.services-steps-section {
  background: #f5f9ff;
  padding: 80px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #002C9B;
  width: 100%;
  box-sizing: border-box;
}

.services-intro {
  max-width: 600px;
  margin: 0 auto 50px;
  text-align: center;
}

.services-intro h2 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #002C9B;
}

.services-intro p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #204080;
}

.steps-wrapper h3 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #E30613;
}

.steps-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.step-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 44, 155, 0.15);
  padding: 35px 30px;
  width: 320px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 35px rgba(227, 6, 19, 0.25);
}

.step-icon {
  background: #E30613;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
  width: 70px;
  height: 70px;
  line-height: 70px;
  margin: 0 auto 25px;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

.step-card h4 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #002C9B;
}

.step-card p {
  font-size: 1.1rem;
  color: #3a4d82;
  line-height: 1.5;
}

/* section-subtitle helper */
p.section-subtitle.text-muted.mb-5 {
  text-align: center;
}

/* ===== Responsive Breakpoints (grouped) ===== */

/* Large tablets and smaller desktops */
@media (max-width: 1024px) {
  .steps-cards {
    justify-content: space-around;
  }
}

/* <= 992px */
@media (max-width: 992px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Clients slider adjustments */
  :root {
    --logo-size: 11rem;
    --slide-gap: 1.5rem;
    --scroll-duration: 18s;
  }
}

/* <= 768px */
@media (max-width: 768px) {

  /* small header / banner fallback */
  .ric-banner h1 {
    font-size: 2rem;
  }

  /* Contact hero scaling */
  .contact-info h2 {
    font-size: 1.8rem;
  }

  .contact-info p {
    font-size: 1rem;
  }

  .btn-primary-xl {
    padding: 12px 24px;
    font-size: 1rem;
  }

  /* Services adjustments */
  .services-steps-section {
    padding: 60px 15px;
  }

  .services-intro h2 {
    font-size: 2.5rem;
  }

  .services-intro p {
    font-size: 1.1rem;
  }

  .steps-wrapper h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .steps-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .step-card {
    width: 90%;
    max-width: 350px;
    padding: 30px 20px;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    line-height: 60px;
    margin-bottom: 20px;
  }

  .step-card h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .step-card p {
    font-size: 1rem;
  }
}

/* <= 576px */
@media (max-width: 576px) {
  .grid-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  :root {
    --logo-size: 8rem;
    --slide-gap: 1rem;
    --scroll-duration: 15s;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

/* <= 480px */
@media (max-width: 480px) {
  .services-steps-section {
    padding: 40px 10px;
  }

  .services-intro h2 {
    font-size: 2rem;
  }

  .services-intro p {
    font-size: 0.95rem;
  }

  .steps-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .steps-cards {
    gap: 15px;
  }

  .step-card {
    padding: 25px 15px;
  }

  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    line-height: 50px;
    margin-bottom: 15px;
  }

  .step-card h4 {
    font-size: 1.2rem;
  }

  .step-card p {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 10px;
  }

  /* lightweight container fallback on very small screens */
}

/* ===== Footer ===== */
footer {
  background: #002c9b;
}




/* ------------ about us  ------------ */


/* ------------ home testimonials (video) ------------ */
.testimonial-video-section {
  background-color: #f4f7fc;
  padding: 80px 20px;
  text-align: center;
}

.testimonial-video-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #002C9B;
  margin-bottom: 10px;
}

.testimonial-video-section .section-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.video-wrapper {
  width: 100%;
  max-width: 1200px;
  height: 550px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0, 44, 155, 0.2);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

/* ------------ Responsive: merged breakpoints ------------ */
@media (max-width: 768px) {

  /* about */
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-text,
  .about-image {
    max-width: 100%;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  /* cert slides */
  .cert-slide {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .cert-slider-track
}

/* -------------services-------------------- */
/* Services Section & Cards */
.serv {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
  overflow: hidden;
}

.serv::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 44, 155, 0.03) 0%, transparent 70%);
  animation: rotate-slow 30s linear infinite;
  z-index: 1;
}

@keyframes rotate-slow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #002C9B;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #E30613, #002C9B, #E30613);
  border-radius: 3px;
  animation: pulse-line 2.5s ease-in-out infinite;
}

@keyframes pulse-line {

  0%,
  100% {
    width: 80px;
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }

  50% {
    width: 120px;
    opacity: 0.8;
    transform: translateX(-50%) scaleX(1.2);
  }
}

.section-header p {
  font-size: 1.3rem;
  color: #555;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 3×2 Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-bottom: 70px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

    /* about-hero */
    .about-hero {
      background: url('img/about_banner.png') no-repeat center center/cover;
      color: #fff;
      position: relative;
      padding: 100px 20px;
      text-align: center;
    }

    .about-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0, 44, 155, 0.8);
      z-index: 0;
    }

    .about-hero h1,
    .about-hero p {
      position: relative;
      z-index: 1;
    }
/* Cards */
.service-card {
  background: #fff;
  padding: 45px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 44, 155, 0.08);
  transition: all .5s cubic-bezier(.25, .46, .45, .94);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 44, 155, 0.06), transparent);
  transition: left .7s ease;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #E30613, #002C9B);
  transform: scaleX(0);
  transition: transform .5s ease;
  z-index: 2;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 44, 155, 0.18);
  border-color: rgba(227, 6, 19, 0.3);
}

/* Icon */
.icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #E30613 0%, #ff1a2e 50%, #E30613 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .5s ease;
  overflow: hidden;
  z-index: 2;
}

.icon-wrapper::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(45deg);
  transition: transform .7s ease;
}

.icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #E30613, #002C9B, #E30613);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  animation: rotate-border 3s linear infinite;
  transition: opacity .5s ease;
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.service-card:hover .icon-wrapper {
  transform: scale(1.15) rotate(10deg);
  background: linear-gradient(135deg, #002C9B 0%, #1a4fd6 50%, #002C9B 100%);
  box-shadow: 0 10px 25px rgba(0, 44, 155, 0.3);
}

.service-card:hover .icon-wrapper::before {
  transform: rotate(45deg) translate(60%, 60%);
}

.service-card:hover .icon-wrapper::after {
  opacity: 1;
}

.icon-wrapper img {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  transition: transform .4s ease;
  position: relative;
  z-index: 3;
}

.service-card:hover .icon-wrapper img {
  transform: scale(1.15);
}

/* Text */
.service-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #002C9B;
  margin-bottom: 18px;
  transition: all .3s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover h4 {
  color: #E30613;
  transform: translateY(-2px);
}

.service-card p {
  color: #666;
  line-height: 1.7;
  font-size: 1.05rem;
  transition: all .3s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover p {
  color: #444;
}

/* CTA Section */
.services-cta {
  background: linear-gradient(135deg, #f5f9ff 0%, #eef4ff 100%);
  color: #002C9B;
  text-align: center;
  padding: 70px 20px;
  border-top: 4px solid #002C9B;
  border-bottom: 4px solid #E30613;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.services-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 44, 155, 0.1), transparent);
  animation: shimmer 5s ease-in-out infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.services-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: #002C9B;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Particles */
.services-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(227, 6, 19, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 85% 85%, rgba(0, 44, 155, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 50% 20%, rgba(227, 6, 19, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(0, 44, 155, 0.1) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 40px 40px, 70px 70px;
  animation: float-particles 10s ease-in-out infinite;
  z-index: 1;
}

@keyframes float-particles {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  25% {
    transform: translateY(-8px) rotate(2deg);
  }

  50% {
    transform: translateY(-15px) rotate(0);
  }

  75% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

/* gallery */
/* --- Slider Styles --- */
/* --- Carousel Slider Styles --- */
#clinicGalleryCarousel {
  width: 100%;
  margin-bottom: 50px;
}

#clinicGalleryCarousel .carousel-inner {
  height: 450px;
  border-radius: 15px;
}

.slider-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 12s ease-in-out;
}

.carousel-item.active .slider-img {
  animation: kenburns 12s ease-in-out;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.08) translateY(-3%);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

#clinicGalleryCarousel .carousel-item {
  transition: opacity 1s ease-in-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100%;
  width: 3rem;
  height: 3rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.2);
}

/* --- Gallery Grid Styles --- */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* reuse fadeInUp keyframes defined above for gallery */
.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(6) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(7) {
  animation-delay: 0.3s;
}

.gallery-item:nth-child(8) {
  animation-delay: 0.4s;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 44, 155, 0.2);
}

/* --- Remove GLightbox Overlay Icon/Glow --- */
.gallery-item::before {
  content: none !important;
  background: none !important;
  opacity: 0 !important;
  transform: none !important;
}

/* --- Responsive Design --- */
@media (max-width: 576px) {
  #clinicGalleryCarousel .carousel-inner {
    height: 250px;
  }

  .slider-img {
    height: 250px;
  }

  .gallery-img {
    height: 150px;
  }

  .gallery-img:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Section Styling */
    .achievement-cert-section {
      padding: 64px 0;
      background: #f8f9fa;
    }

    /* Utilities */
    .container {
      width: min(1140px, 92%);
      margin: 0 auto;
    }

    .text-center {
      text-align: center;
    }

    .mb-5 {
      margin-bottom: 3rem;
    }

    .fw-bold {
      font-weight: 700;
    }

    .text-muted {
      color: #6c757d;
    }

    /* Slider Container */
    .cert-slider-container {
      overflow: hidden;
      margin: 0 -15px;
    }

    .cert-slider-track {
      display: flex;
      gap: 20px;
      padding: 0 15px;
      /* continuous loop through 6 slides */
      animation: slideShow 24s linear infinite;
    }

    .cert-slider-container:hover .cert-slider-track {
      animation-play-state: paused;
    }

    /* Each slide fixed width */
    .cert-slide {
      flex: 0 0 300px;
      min-width: 300px;
    }

    /* Card styling */
    .cert-card {
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      transition: transform .3s ease, box-shadow .3s ease;
    }

    .cert-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 15px 35px rgba(0, 44, 155, 0.15);
    }

    .cert-card .card-img-top {
      width: 100%;
      height: 200px;
      object-fit: cover;
      transition: transform .3s ease;
    }

    .cert-card:hover .card-img-top {
      transform: scale(1.05);
    }

    .card-body {
      padding: 1rem;
      text-align: center;
    }

    .card-title {
      color: #002C9B;
      font-weight: 600;
      margin-bottom: .5rem;
    }

    .card-text {
      font-size: .9rem;
      color: #6c757d;
      line-height: 1.4;
    }

    /* Keyframes for seamless scroll */
    @keyframes slideShow {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(calc(-320px * 3));
      }
    }

/* footer  */
/* ------------ footer ------------ */
.site-footer {
  background: linear-gradient(135deg, #002C9B 0%, #E30613 100%);
  color: #fff;
  padding: 60px 20px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-social {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-about p {
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.footer-links h5,
.footer-contact h5,
.footer-social h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.footer-links ul li a:hover {
  color: #ffcdcd;
}

.footer-contact ul li i {
  margin-right: 8px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
}

.footer-social .social-icons a {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.footer-social .social-icons a:hover {
  background-color: #fff;
  color: #E30613;
  transform: scale(1.15);
  box-shadow: 0 0 15px #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #f5f5f5;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom a.nnk-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-bottom a.nnk-link:hover {
  color: #ffcdcd;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }

  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-social {
    min-width: 100%;
  }
}