/* ===================================
   TECKKO - IT Company Website Styles
   =================================== */

@import url('premium-sections.css');

/* ===== CSS VARIABLES ===== */
:root {
  /* Primary Colors - Sophisticated Medical Theme */
  --primary-color: #19183b;
  --primary-dark: #0e0e24;
  --primary-light: #708993;
  --secondary-color: #708993;
  --secondary-dark: #5a6e76;
  --accent-color: #c0f1e6f2;
  --accent-light: #e7f2ef;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #19183b 0%, #2c596e 100%);
  --gradient-secondary: linear-gradient(135deg, #e7f2ef 0%, #ffffff 100%);
  --gradient-accent: linear-gradient(135deg, #19183b 0%, #c2e6ff 100%);
  --gradient-dark: linear-gradient(135deg, #19183b 0%, #0e0e24 100%);

  /* Neutral Colors */
  --dark-bg: #19183b;
  --dark-surface: #1f1f40;
  --dark-card: #262650;
  --light-bg: #ffffff;
  --light-surface: #c2e6ff;
  --light-card: #ffffff;
  --dark-text: #2c596e;

  /* Text Colors */
  --text-primary: #19183b;
  --text-secondary: #708993;
  --text-light: #c2e6ff;
  --text-dark-primary: #f1f5f9;
  --text-dark-secondary: #cbd5e1;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", "Inter", sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(161, 194, 189, 0.4);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-sm {
  padding: var(--spacing-lg) 0;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-highlight {
  background: rgb(138, 219, 239);
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgb(138, 219, 239);
  background-clip: text;
  font-weight: 900;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-base);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Ripple Effect for Buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #cee2f1;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.header.scrolled {
  background: #f8fafc;
  box-shadow: 0 5px 15px 4px rgb(35 50 55 / 20%);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 1250px) {
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-menu .nav-link.active {
  color: var(--primary-color);
  /* Highlight active text color */
  font-weight: 700;
  /* Make active text bold */
}

/* Specific styling for the active "Contact Us" button */
.nav-menu li:last-child .btn.btn-primary.active {
  background: var(--primary-dark);
  /* A slightly different gradient for active button */
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-2px);
  /* Maintain hover effect for active state */
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition-base);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #19183b 0%, #2a647b 100%);
  padding-top: 80px;
  color: white;
}

/* Glassmorphic floating elements */
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: rgb(161 189 194 / 50%);
  backdrop-filter: blur(20px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 0;
  animation: floatGlass 15s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 0;
  animation: floatGlass 20s ease-in-out infinite reverse;
}

@keyframes floatGlass {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.8;
  }

  25% {
    transform: translate(30px, -20px) scale(1.1) rotate(5deg);
    opacity: 1;
  }

  50% {
    transform: translate(-20px, 30px) scale(0.9) rotate(-3deg);
    opacity: 0.9;
  }

  75% {
    transform: translate(20px, 20px) scale(1.05) rotate(2deg);
    opacity: 0.85;
  }
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  color: white;
  max-width: 1400px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  z-index: 2;
}

/* 3D Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1000px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(4, 83, 122, 0.3);
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  backface-visibility: hidden;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
}

.slide.leaving {
  opacity: 0;
  transform: translateY(-100%);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  /* all-side overlay shadow */
  box-shadow:
    inset 0 60px 60px -30px rgba(6, 36, 62, 0.75),
    /* top */ inset 0 -60px 60px -30px rgba(6, 36, 62, 0.75),
    /* bottom */ inset 60px 0 60px -30px rgba(6, 36, 62, 0.6),
    /* left */ inset -60px 0 60px -30px rgba(6, 36, 62, 0.6);
  /* right */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  position: relative;
  z-index: 1;
}

/* 
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
} */


#contact-form{
  padding: 15px;
}
.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(5px);
}

/* Floating Medical Icons */
.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(161, 194, 189, 0.95);
  font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 0 20px rgba(161, 194, 189, 0.3),
    0 0 30px rgba(161, 194, 189, 0.5),
    0 0 60px rgba(161, 194, 189, 0.2);
  animation: floatIcon 2s ease-in-out infinite;
  z-index: 3;
  transition: all 0.3s ease;
}

.floating-icon:hover {
  transform: scale(1.1);
  box-shadow:
    inset 0 0 30px rgba(161, 194, 189, 0.4),
    0 0 40px rgba(161, 194, 189, 0.7),
    0 0 80px rgba(161, 194, 189, 0.3);
}

.floating-icon.bottom-1 {
  bottom: -50px;
  left: 10%;
  transform: translateY(50%);
  animation-delay: 0s;
}

.floating-icon.bottom-2 {
  bottom: -50px;
  left: 35%;
  transform: translateY(50%);
  animation-delay: 0.5s;
}

.floating-icon.bottom-3 {
  bottom: -50px;
  left: 55%;
  transform: translateY(50%);
  animation-delay: 1s;
}

.floating-icon.bottom-4 {
  bottom: -50px;
  left: 80%;
  transform: translateY(50%);
  animation-delay: 1.5s;
}

/* Floating Icon Animation */
@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero h1,
.hero-title {
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
  font-size: clamp(2.3rem, 2vw, 4.5rem);
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p,
.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
  max-width: 600px;
  line-height: 1.6;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(161, 194, 189, 0.9);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
  position: relative;
  z-index: 2;
}

/* Hero specific button styles */
.hero .btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #19183b;
  border: none;
  box-shadow:
    0 8px 32px rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero .btn-primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero .btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Additional glassmorphic elements */
.hero-content::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 0;
  animation: floatGlass 25s ease-in-out infinite;
}

.hero-content::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 0;
  animation: floatGlass 30s ease-in-out infinite reverse;
}

@media (max-width: 767px) {
  .hero p,
  .hero-description {
    text-align: justify;
  }

  .hero h1,
  .hero-title {
    text-align: justify;
  }

  .testimonial-close {
    display: none;
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--light-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  color: var(--secondary-color);
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  justify-content: center;
  position: relative;
  /* For loading overlay */
  min-height: 300px;
  /* For loading overlay */
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-dheader {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* ===== ADVANCED ANIMATIONS (Framer Motion Style) ===== */

/* Fade In Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale Animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

/* Slide Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Shimmer Effect */

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Stagger Animation Delays */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

.stagger-6 {
  animation-delay: 0.6s;
}

/* Scroll Animation States */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Effect */
.parallax {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Animations */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(75, 157, 169, 0.5);
}

/* Text Reveal Animation */
.text-reveal {
  overflow: hidden;
  display: inline-block;
}

.text-reveal span {
  display: inline-block;
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Gradient Animation */
.gradient-animate {
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Loading Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

/* ===== STATS SECTION ===== */
/* ===== STATS SECTION ===== */
.stats {
  background: var(--light-surface);
  color: var(--text-primary);
  padding: var(--spacing-lg) 0;
  position: relative;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle,
    rgba(75, 157, 169, 0.05) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 500;
}

/* ===== ENHANCED TESTIMONIALS SECTION ===== */
.testimonials {
  background: linear-gradient(135deg, #19183b 0%, #0e0e24 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(75, 157, 169, 0.25),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(161, 194, 189, 0.15),
      transparent 45%
    );
  pointer-events: none;
}

.testimonial-slider {
  position: relative;
  padding: 1rem 0 3rem;
  overflow: hidden;
}

.testimonial-slider.is-loading {
  display: none;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollTestimonials 40s linear infinite;
  will-change: transform;
  padding: 1rem 0;
}

.testimonial-slider:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonial-card {
  flex: 0 0 320px;
  height: 380px;
  display: flex;
  flex-direction: column;
  background: #1e1e30;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  cursor: pointer;
  color: white;
}

/* Enhanced hover effects with smooth animations */
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    var(--shadow-xl),
    0 20px 35px -20px rgba(25, 24, 59, 0.1),
    0 0 30px rgba(161, 194, 189, 0.2);
  z-index: 10;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

.testimonial-card::after {
  content: "â";
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 3rem;
  color: var(--accent-light);
  opacity: 0.2;
  font-family: serif;
  line-height: 1;
  transition: all 0.3s ease;
}

.testimonial-card:hover::after {
  transform: scale(1.2) rotate(5deg);
  opacity: 0.3;
}

/* Header styles for smaller cards */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #2d4a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #83c1c1;
  border: 2px solid rgba(131, 193, 193, 0.2);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.testimonials .section-wtitle,
.testimonials .section-subtitle {
  color: white;
}

@keyframes avatarPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.testimonial-avatar::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  /* animation: shimmer 3s infinite; */
}

.testimonial-author-info {
  flex-grow: 1;
  min-width: 0;
  /* Prevent overflow */
}

.testimonial-author {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--dark-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #f1f5f9;
  margin-bottom: 1rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  z-index: 1;
  border-left: 2px solid #83c1c1;
  text-align: justify;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.testimonial-card:hover .testimonial-text {
  border-left-color: #ffffff;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(131, 193, 193, 0.1);
}

.testimonial-date {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.testimonial-date i {
  color: var(--accent-color);
  font-size: 0.8rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.15rem;
}

.testimonial-rating i {
  color: #ffc107;
  font-size: 0.8rem;
}

/* Animation for scroll */
@keyframes scrollTestimonials {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-320px * 5 - 1.5rem * 5));
    /* Adjusted for 320px width and assuming 5 core items */
  }
}

/* Pause indicator */
.testimonial-slider::after {
  content: "Hover to Pause";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #07304e;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.testimonial-slider:hover::after {
  opacity: 1;
}

.testimonial-card {
  flex: 0 0 320px;
  min-height: 320px;
  background: #1e1e30;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  cursor: pointer;
  color: white;
}


.testimonial-role,
.testimonial-date {
  color: #2780c0;
}

/* Scroll animation classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Bounce-in animation for cards */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }

  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
  }

  70% {
    transform: scale(0.9) translateY(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Staggered load for cards if needed */
.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Mobile Interaction Styles */
.testimonial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 36, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.testimonial-overlay.active {
  opacity: 1;
  visibility: visible;
}

.testimonial-card.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  z-index: 1001;
  background: #1e1e30;
  cursor: default;
  overflow-y: auto;
  border: 1px solid rgba(131, 193, 193, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.testimonial-card.expanded .testimonial-text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  overflow: visible;
}

.testimonial-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.testimonial-close:hover {
  background: var(--primary-color);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 280px;
    padding: 1.5rem;
  }
}
.stagger-item {
  opacity: 0;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 280px;
    /* Even smaller on tablets */
    min-height: 260px;
    padding: 1.25rem;
  }

  .testimonial-track {
    gap: 1rem;
  }

  @keyframes scrollTestimonials {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-280px * 4 - 1rem * 4));
    }
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 250px;
    /* Smaller for mobile */
    min-height: 240px;
    padding: 1rem;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .testimonial-avatar {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }

  .testimonial-track {
    gap: 0.75rem;
    animation-duration: 35s;
    /* Slower on mobile */
  }

  @keyframes scrollTestimonials {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-250px * 4 - 0.75rem * 4));
    }
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 220px;
    /* Smallest for very small screens */
    min-height: 220px;
  }

  .testimonial-text {
    -webkit-line-clamp: 2;
  }

  .testimonial-meta {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  @keyframes scrollTestimonials {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-220px * 4 - 0.75rem * 4));
    }
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--light-surface);
  color: var(--text-secondary);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h6 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-primary);
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(75, 157, 169, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom a {
  color: var(--text-primary);
  transition: var(--transition-base);
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  /* justify-content: center; */
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgb(138, 219, 239);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  color: var(--primary-color);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--gradient-dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(75, 157, 169, 0.15) 0%,
    transparent 50%
  );
}

.page-hero h1 {
  color: white;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--text-dark-secondary);
}

.breadcrumb a:hover {
  color: white;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(75, 157, 169, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  /* Hero responsive */
  .hero {
    min-height: auto;
    padding: 100px 0 4rem;
    /* 100px top to clear header */
  }

  .hero-content {
    grid-template-columns: 1fr;
    /* Switch to single column for tablets */
    gap: 3rem;
    text-align: center;
    /* Center text for tablets */
    padding: 1rem;
  }

  .hero-image {
    order: -1;
    /* Move image to top */
    padding: 0 1rem;
  }

  .carousel-container {
    height: 350px;
    margin-bottom: 2rem;
  }

  .floating-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    bottom: 35px;
    transform: translateY(50%);
  }

  .slide-label {
    font-size: 1rem;
    padding: 1.5rem 1rem 0.75rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }

  .hero-description {
    font-size: 1.05rem;
    max-width: 500px;
    /* Keep a max-width for readability */
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer responsive for tablets */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    color: white;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
    color: var(--secondary-dark);
  }

  .nav-link {
    color: white;
    transition: var(--transition-fast);
  }

  .nav-link:hover {
    color: var(--primary-light);
  }

  .nav-menu .nav-link.active {
    color: var(--accent-color);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Hero responsive */
  .hero-text {
    max-width: 100%;
  }

  .rotating-badge {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  /* Footer responsive for mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section:first-child {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    /* Remove the 90vh height */
    padding-top: 80px;
    padding-bottom: 3rem;
  }

  .carousel-container {
    height: 280px;
    margin-bottom: 1.5rem;
  }

  .floating-icon {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 30px;
    transform: translateY(50%);
  }

  .slide-label {
    font-size: 0.9rem;
    padding: 1.25rem 0.75rem 0.5rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* ===== PORTFOLIO FILTER ===== */
.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color:skyblue;
  border-color: var(--primary-color);
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center; /* Prevents cutting from top for portrait images */
  transition: var(--transition-base);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 33, 95, 0.9); /* Slightly transparent blue */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  color: white;
  padding: 1.5rem;
  text-align: center;
  z-index: 2;
}

.portfolio-overlay h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  visibility: visible;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* ===== TEAM CARDS ===== */
.team-card {
  text-align: center;
  position: relative;
}

.team-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.team-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

/* ===== BLOG CARDS ===== */
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}



.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-title a {
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.blog-title a:hover {
  color: var(--primary-color);
}

/* ===== OLD DEPARTMENT CARDS STYLES - REPLACED BY AURORA GLASS CARD BELOW ===== */
/* 
.department-card {
  position: relative;
  background: var(--light-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  overflow: hidden;
}

.department-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.department-card:hover::before {
  transform: scaleX(1);
}

.department-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.department-icon,
.department-card .card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
}

.department-card:hover .department-icon,
.department-card:hover .card-icon {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 0 35px rgba(161, 194, 189, 0.6);
}

.department-card h3,
.department-card h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.department-card p,
.department-card .dept-desc {
  font-size: 0.95rem;
  color: var(--text-dark-primary);
}

.department-card .dept-desc {
  font-size: 1rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.department-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.department-card ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.department-card ul li::before {
  content: 'âœ”';
  color: var(--primary-color);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .department-card {
    padding: 2rem;
  }

  .department-card .card-icon {
    width: 65px;
    height: 65px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .department-card h3 {
    font-size: 1.4rem;
  }

  .department-card .dept-desc {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .department-card ul li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .department-card {
    padding: 1.5rem;
  }

  .department-card .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .department-card h3 {
    font-size: 1.2rem;
  }

  .department-card .dept-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .department-card ul li {
    font-size: 0.85rem;
    padding-left: 1.2rem;
  }

  .department-card ul li::before {
    font-size: 1rem;
  }
}
*/

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.testimonial-avatar::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
}

.testimonial-author-info {
  flex-grow: 1;
}

.testimonial-author {
  font-size: 1.25rem;
  font-weight: 700;

  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.9rem;
  /* color: var(--accent-color); */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  font-style: italic;
  /* background: linear-gradient(135deg, var(--light-bg) 0%, #f8fafc 100%); */
  padding: 1.5rem;
  padding-top: 0;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-color);
}

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(161, 194, 189, 0.2);
}

.testimonial-date {
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-date i {
  color: var(--accent-color);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1rem;
}

/* Pause indicator */
.testimonial-slider::before {
  content: "Hover to Pause";
  position: absolute;
  top: -2.5rem;
  right: 0;
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.testimonial-slider:hover::before {
  opacity: 1;
}

/* Enhanced slider animation */
@keyframes slideTestimonials {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-380px * 3 - 2.5rem * 3));
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-card {
    min-width: 320px;
    padding: 2rem;
    overflow: visible;
  }

  .testimonial-track {
    gap: 2rem;
  }

  @keyframes slideTestimonials {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-320px * 2 - 2rem * 2));
    }
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .testimonial-text {
    font-size: 1rem;
    padding: 1rem;
    -webkit-line-clamp: 2;
    max-height: auto;
  }

  .testimonial-card:hover .testimonial-text {
    -webkit-line-clamp: unset;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    min-width: 280px;
  }

  @keyframes slideTestimonials {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-280px * 2 - 2rem * 2));
    }
  }
}

/* Add gradient border animation */
.testimonial-card.scroll-animate {
  animation: fadeInUp 0.8s ease forwards;
}

.testimonial-card.scroll-animate.active {
  animation: cardGlow 3s ease-in-out infinite alternate;
}

@keyframes cardGlow {
  0% {
    box-shadow:
      var(--shadow-lg),
      0 20px 40px -20px rgba(57, 56, 109, 0.1);
  }

  100% {
    box-shadow:
      var(--shadow-xl),
      0 25px 50px -20px rgba(161, 194, 189, 0.2),
      var(--shadow-glow);
  }
}

.footer p {
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-contact p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--primary-color);
  margin-top: 4px;
}

/* ===== DEPARTMENT CARDS - AURORA GLASS STYLE ===== */
.department-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 22px;
  padding: 26px;
  overflow: hidden;
  background: #0f2854;
  background-size: 300% 300%;
  animation: gradientFlow 8s ease infinite;
  box-shadow: 0 2px 50px rgba(15, 40, 84, 0.5);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism overlay */
.department-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 124, 157, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1;
}

/* Simple Hover Effect */
.department-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(73, 136, 196, 0.5);
}

/* Spotlight Hover Effect */
.department-card .card-icon::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(189, 232, 245, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.department-card:hover .card-icon::before {
  opacity: 1;
}

/* Floating Orbs */
.department-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #bde8f5;
  filter: blur(34px);
  opacity: 0.75;
  top: -40px;
  left: -40px;
  animation: float 6s infinite ease-in-out;
  z-index: 0;
}

/* Second Orb - using a pseudo element on card-icon */
.department-card .card-icon::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #4988c4;
  filter: blur(34px);
  opacity: 0.75;
  bottom: -100px;
  right: -90px;
  animation: float 6s infinite ease-in-out;
  animation-delay: 2s;
  z-index: 0;
}

/* Card Content */
.department-card > * {
  position: relative;
  z-index: 2;
}

/* Icon Styling */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #19183b;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.35s ease;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.department-card .card-icon i {
  font-size: 30px;
  color: #fff;
  transition: transform 0.35s ease;
  position: relative;
  z-index: 3;
}

.department-card:hover .card-icon {
  background: #19183b;
  transform: scale(1.1) rotate(5deg);
}

.department-card:hover .card-icon i {
  transform: scale(1.1);
}

/* Text Styling */
.department-card h3 {
  margin: 16px 0 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dept-desc {
  font-size: 0.95rem;
  color: #e6f4fb;
  margin-bottom: 18px;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* ===== BULLET LIST ===== */
.department-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex-grow: 1;
}

.department-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #e6f4fb;
  line-height: 1.5;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Bullet icon */
.department-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #bde8f5;
  font-size: 14px;
  transform: scale(1);
  transition: all 0.3s ease;
}

/* ===== ANIMATION ON CARD HOVER ===== */
.department-card:hover ul li {
  transform: translateX(6px);
  color: #fff;
}

.department-card:hover ul li::before {
  transform: scale(1.2) rotate(-5deg);
  color: #fff;
}

/* stagger animation */
.department-card:hover ul li:nth-child(1) {
  transition-delay: 0.05s;
}

.department-card:hover ul li:nth-child(2) {
  transition-delay: 0.1s;
}

.department-card:hover ul li:nth-child(3) {
  transition-delay: 0.15s;
}

/* Department Read More Button */
.dept-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(189, 232, 245, 0.8);
  transition: all 0.3s ease;
}

.dept-card-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.department-card:hover .dept-card-btn {
  color: #fff;
}

.department-card:hover .dept-card-btn i {
  transform: translateX(4px);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-22px);
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .department-card {
    min-height: 260px;
    padding: 22px;
  }

  .department-card h3 {
    font-size: 1.2rem;
  }

  .card-icon {
    width: 56px;
    height: 56px;
  }

  .department-card .card-icon i {
    font-size: 26px;
  }

  /* Reduce 3D effect on mobile */
  .department-card:hover {
    transform: perspective(900px) rotateX(3deg) rotateY(-3deg) scale(1.03);
  }
}

@media (max-width: 480px) {
  .department-card {
    min-height: 240px;
    padding: 18px;
  }

  .department-card h3 {
    font-size: 1.1rem;
  }

  .dept-desc {
    font-size: 0.9rem;
  }

  .department-card ul li {
    font-size: 0.9rem;
  }

  .card-icon {
    width: 52px;
    height: 52px;
  }

  .department-card .card-icon i {
    font-size: 24px;
  }

  /* Simpler hover on small mobile */
  .department-card:hover {
    transform: translateY(-6px) scale(1.02);
  }
}

/* ===== DEPARTMENT DETAIL ===== */
.dept-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.dept-feature-list,
.service-card ul,
.why-card ul {
  list-style: none;
  padding-left: 0;
}

.dept-feature-list li,
.service-card ul li,
.why-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;

  font-size: 0.95rem;
}

.dept-feature-list li::before,
.service-card ul li::before,
.why-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: red;
}

/* ===== SERVICE CARD ===== */
.service-card {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

/* ===== CTA CARD ===== */
.cta-card {
  background: var(--primary-color);
  color: #fff;
  padding: 32px;
  border-radius: 16px;
}

.cta-card .btn {
  margin-top: 16px;
}

/* ===== WHY CARD ===== */
.why-card {
  padding: 20px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 24, 59, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: block;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--light-surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  transition: var(--transition-base);
  backdrop-filter: blur(5px);
}

.lightbox-close:hover {
  background: var(--primary-color);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
  transform: translate(-50%, -50%) scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Lightbox Controls */
.lightbox-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 1rem;
  z-index: 2001;
}

.lightbox-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  backdrop-filter: blur(5px);
}

.lightbox-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  backdrop-filter: blur(5px);
  z-index: 2010;
}

.lightbox-prev {
  left: 20px;
  cursor: pointer;
  background: var(--light-surface);
}

.lightbox-next {
  right: 20px;
  cursor: pointer;
  background: var(--light-surface);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--light-surface);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  color: var(--dark-text);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Zoom Animation */
.zoom-in {
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== PAGINATION ===== */
/* ===== PAGINATION STYLES ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(161, 194, 189, 0.2);
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-btn.disabled:hover {
  transform: none;
  background: white;
  color: inherit;
}

/* Special pagination buttons */
.pagination-prev,
.pagination-next,
.pagination-first,
.pagination-last {
  min-width: 40px;
}

.pagination-info,
.pagination-total {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-left: 0.5rem;
  font-weight: 500;
}

/* Loading State */
.portfolio-item.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
  }

  .pagination-info,
  .pagination-total {
    margin-left: 0.25rem;
    font-size: 0.85rem;
  }
}

/* Animation for page changes */
.fade-transition {
  animation: fadeIn 0.5s ease;
}

/* Loading State */
.portfolio-item.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Fade transition for page changes */
.fade-transition {
  animation: fadeIn 0.5s ease;
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .pagination-btn {
    min-width: 35px;
    height: 35px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== AJAX PAGINATION LOADING ===== */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: var(--radius-lg);
}

.loading-spinner {
  text-align: center;
  color: var(--primary-color);
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.loading-spinner p {
  color: var(--primary-color);
  font-weight: 600;
}

/* =========================
   FAQ SECTION ON GRADIENT BG
   ========================= */

.section {
  padding: 80px 0;
}

/* Section header text on gradient */
.section-header .section-subtitle {
  color: #ffffff;
  opacity: 0.9;
}

.section-dheader .section-dsubtitle {
  color: var(--primary-color);
  opacity: 0.9;
}

.section-header .section-title {
  color: #ffffff;
}

.section-dheader .section-title {
  color: var(--primary-color);
}

.section-header p {
  color: rgba(255, 255, 255, 0.85);
}

.section-dheader p {
  color: var(--text-primary);
}

.section-whiteheader p {
  color: var(--accent-light);
}

/* FAQ Wrapper */
.faq-wrapper {
  max-width: 900px;
  margin: 50px auto 0;
}

/* FAQ Card */
.faq-item {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Left Color Accent */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #ffffff, var(--primary-color));
  z-index: 2;
}

/* Diagonal Shine Effect */
.faq-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(161, 194, 189, 0.3),
    transparent 60%
  );
  animation: faqShine 3s infinite;
  pointer-events: none;
  z-index: 1;
}

/* Hover */
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

/* Question Button */
.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
  position: relative;
  z-index: 3;
}

.faq-question span {
  flex: 1;
  padding-right: 20px;
}

/* Icon */
.faq-question i {
  font-size: 16px;
  color: var(--primary-color);
  transition: transform 0.35s ease;
}

/* Answer Area */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  background: #f9fafb;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transition: max-height 0.4s ease;
  position: relative;
  z-index: 3;
}

/* Answer Text */
.faq-answer p {
  margin: 18px 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4b5563;
}

.faq-answer ul {
  margin: 12px 0 18px;
  padding-left: 20px;
}

.faq-answer ul li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #4b5563;
}

/* Active State */
.faq-item.active {
  background: #ffffff;
}

.faq-item.active .faq-answer {
  max-height: 800px;
}

.faq-item.active .faq-question span {
  color: var(--primary-color);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* FAQ Diagonal Shine Animation */
@keyframes faqShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== FAQ SECTION BACKGROUND EFFECT ===== */
.section-faq {
  position: relative;
  overflow: hidden;
}

.section-faq::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 70%
  );
  animation: faqSectionShine 8s infinite linear;
}

.section-faq .container {
  position: relative;
  z-index: 2;
}

@keyframes faqSectionShine {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  100% {
    transform: translateX(100%) skewX(-15deg);
  }
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */
@media (max-width: 768px) {
  .faq-question {
    font-size: 16px;
    padding: 18px 20px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .section-title {
    font-size: 28px;
  }
}

/* ===============================
   Text Justify (MD + LG only)
   =============================== */
.text-justify-md-lg {
  text-align: left;
  /* mobile default */
  text-align-last: auto;
}

/* Medium devices (tablets & up) */
@media (min-width: 768px) {
  .text-justify-md-lg {
    text-align: justify;
    text-justify: inter-word;
  }
}

.tab-btn {
  flex: 1;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom: 3px solid var(--primary-color);
}

@media (min-width: 768px) {
  .text-justify-md-lg {
    text-align: justify;
  }
}

/* ===============================
   Why Choose Us Section - Premium
   =============================== */
.why-choose-us-premium {
  background: linear-gradient(135deg, #f5fafe 0%, #f0f9fc 50%, #f8f5fd 100%);
  position: relative;
  overflow: hidden;
}

.why-choose-us-premium::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(161, 194, 189, 0.15), transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg 8s ease-in-out infinite;
}

.why-choose-us-premium::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(75, 189, 224, 0.12), transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-reverse 10s ease-in-out infinite;
}

@keyframes float-bg {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

@keyframes float-bg-reverse {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-30px, 30px);
  }
}

.section-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 1rem auto 3rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.why-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(161, 194, 189, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.why-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(25, 24, 59, 0.15);
  border-color: rgba(161, 194, 189, 0.5);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(161, 194, 189, 0.3);
}

.why-card:hover .why-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(161, 194, 189, 0.4);
}

.why-card h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.why-card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(161, 194, 189, 0.15);
}

.why-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
}

/* Tablet devices */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .why-card {
    padding: 2rem 1.5rem;
  }

  .why-card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .why-card h4 {
    font-size: 1.15rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-card {
    padding: 2rem 1.5rem;
  }

  .why-card:hover {
    transform: translateY(-8px);
  }

  .why-card-icon {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }

  .why-card h4 {
    font-size: 1.1rem;
  }

  .section-description {
    font-size: 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .why-choose-us-premium::before,
  .why-choose-us-premium::after {
    display: none;
  }

  .why-grid {
    gap: 1rem;
  }

  .why-card {
    padding: 1.5rem 1rem;
  }

  .why-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .why-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .why-card p {
    font-size: 0.9rem;
  }

  .why-number {
    font-size: 2rem;
  }
}

/* ===============================
   Achievement Style 4 â€“ FIXED
   =============================== */

.achievement-style-4 {
  position: relative;
  overflow: hidden;
  border-radius: 24px;

  background: #0f2854;

  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(73, 136, 196, 0.3);

  box-shadow:
    0 8px 32px rgba(15, 40, 84, 0.1),
    inset 0 1px 0 rgba(189, 232, 245, 0.5);

  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Continuous border pulse animation */
  animation: borderPulse 3s ease-in-out infinite;
}

/* Keep content ABOVE overlays */
.achievement-style-4 > * {
  position: relative;
  z-index: 3;
}

/* Hover lift */
.achievement-style-4:hover {
  transform: translateY(-6px);
  border-color: rgba(73, 136, 196, 0.5);
  box-shadow:
    0 14px 42px rgba(15, 40, 84, 0.2),
    inset 0 1px 0 rgba(189, 232, 245, 0.6);
}

/* ===== Animated Bubble Layer ===== */
.achievement-style-4::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;

  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(189, 232, 245, 0.18) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(73, 136, 196, 0.14) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(28, 77, 141, 0.1) 0%,
      transparent 60%
    );

  animation: bubbleFloat 8s ease-in-out infinite;
}

/* ===== Glow Aura ===== */
.card.achievement-style-4::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: 0;
  border-radius: inherit;

  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(189, 232, 245, 0.25),
      transparent 60%
    ),
    radial-gradient(circle at 70% 60%, rgba(73, 136, 196, 0.2), transparent 60%);

  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card.achievement-style-4:hover::after {
  opacity: 0.9;
}

/* ===== Icons ===== */
.achievement-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(73, 136, 196, 0.35));
}

/* ===== Diagonal Shine Effect ===== */
/* Shine effect integrated into ::before with bubble backgrounds */
@keyframes diagonalShine {
  0% {
    background-position:
      -200% 0,
      0 0,
      0 0,
      0 0;
  }
  100% {
    background-position:
      200% 0,
      0 0,
      0 0,
      0 0;
  }
}

/* ===== Motion safety ===== */
@media (prefers-reduced-motion: reduce) {
  .achievement-style-4,
  .achievement-style-4::before,
  .achievement-style-4::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Static Bubble Background Effects */
.achievement-style-4::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 100% !important;
  width: 100%;
  top: 0 !important;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(189, 232, 245, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(73, 136, 196, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(28, 77, 141, 0.08) 0%,
      transparent 60%
    );
}

@keyframes bubbleFloat {
  0%,
  100% {
    background:
      radial-gradient(
        circle at 20% 30%,
        rgba(189, 232, 245, 0.15) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 80% 70%,
        rgba(73, 136, 196, 0.12) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 50% 50%,
        rgba(28, 77, 141, 0.08) 0%,
        transparent 60%
      );
  }

  25% {
    background:
      radial-gradient(
        circle at 30% 70%,
        rgba(189, 232, 245, 0.18) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 70% 30%,
        rgba(73, 136, 196, 0.15) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 40% 60%,
        rgba(15, 40, 84, 0.1) 0%,
        transparent 60%
      );
  }

  50% {
    background:
      radial-gradient(
        circle at 80% 40%,
        rgba(189, 232, 245, 0.2) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 20% 60%,
        rgba(73, 136, 196, 0.18) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 60% 30%,
        rgba(28, 77, 141, 0.12) 0%,
        transparent 60%
      );
  }

  75% {
    background:
      radial-gradient(
        circle at 70% 80%,
        rgba(189, 232, 245, 0.16) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 30% 20%,
        rgba(73, 136, 196, 0.14) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 50% 70%,
        rgba(15, 40, 84, 0.09) 0%,
        transparent 60%
      );
  }
}

/* Diagonal Shine Effect - CONTINUOUS (Replaces Glow Aura) */
.card.achievement-style-4::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: rotate(25deg);
  animation: continuousShine 3s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes continuousShine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes glassGlow {
  0%,
  100% {
    filter: blur(15px) brightness(1);
    opacity: 0.7;
  }

  50% {
    filter: blur(25px) brightness(1.2);
    opacity: 0.95;
  }
}

@keyframes borderPulse {
  0%,
  100% {
    border-color: rgba(73, 136, 196, 0.3);
    box-shadow:
      0 8px 32px rgba(15, 40, 84, 0.1),
      inset 0 1px 0 rgba(189, 232, 245, 0.5);
  }

  50% {
    border-color: rgba(73, 136, 196, 0.5);
    box-shadow:
      0 10px 36px rgba(15, 40, 84, 0.15),
      inset 0 1px 0 rgba(189, 232, 245, 0.6);
  }
}

@keyframes rotateGradient {
  0% {
    background: linear-gradient(
      135deg,
      rgba(15, 40, 84, 0.4),
      /* #0F2854 - Deep Navy */ rgba(28, 77, 141, 0.3),
      /* #1C4D8D - Rich Blue */ rgba(73, 136, 196, 0.4),
      /* #4988C4 - Medium Blue */ rgba(189, 232, 245, 0.2)
        /* #BDE8F5 - Light Cyan */
    );
  }

  25% {
    background: linear-gradient(
      225deg,
      rgba(73, 136, 196, 0.4),
      /* #4988C4 - Medium Blue */ rgba(15, 40, 84, 0.4),
      /* #0F2854 - Deep Navy */ rgba(189, 232, 245, 0.2),
      /* #BDE8F5 - Light Cyan */ rgba(28, 77, 141, 0.3)
        /* #1C4D8D - Rich Blue */
    );
  }

  50% {
    background: linear-gradient(
      315deg,
      rgba(28, 77, 141, 0.3),
      /* #1C4D8D - Rich Blue */ rgba(189, 232, 245, 0.2),
      /* #BDE8F5 - Light Cyan */ rgba(15, 40, 84, 0.4),
      /* #0F2854 - Deep Navy */ rgba(73, 136, 196, 0.4)
        /* #4988C4 - Medium Blue */
    );
  }

  75% {
    background: linear-gradient(
      45deg,
      rgba(189, 232, 245, 0.2),
      /* #BDE8F5 - Light Cyan */ rgba(73, 136, 196, 0.4),
      /* #4988C4 - Medium Blue */ rgba(28, 77, 141, 0.3),
      /* #1C4D8D - Rich Blue */ rgba(15, 40, 84, 0.4) /* #0F2854 - Deep Navy */
    );
  }

  100% {
    background: linear-gradient(
      135deg,
      rgba(15, 40, 84, 0.4),
      /* #0F2854 - Deep Navy */ rgba(28, 77, 141, 0.3),
      /* #1C4D8D - Rich Blue */ rgba(73, 136, 196, 0.4),
      /* #4988C4 - Medium Blue */ rgba(189, 232, 245, 0.2)
        /* #BDE8F5 - Light Cyan */
    );
  }
}

/* ===== FOUNDATION CARD STYLES ===== */
.foundation-card {
  position: relative;
  background: #19183b;
  border: 2px solid rgba(161, 194, 189, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  overflow: hidden;
}

/* Top Border Animation */
.foundation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.foundation-card:hover::before {
  transform: scaleX(1);
}

/* Diagonal Shine Effect */
.foundation-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(189, 232, 245, 0.5),
    transparent 60%
  );
  animation: foundationShine 3s infinite;
  pointer-events: none;
  z-index: 1;
}

/* Expand Glow Effect */
.foundation-card:hover {
  transform: scale(1.08);
  box-shadow: 0 30px 70px rgba(4, 37, 69, 0.7);
}

/* Keep content above shine effect */
.foundation-card > * {
  position: relative;
  z-index: 3;
}

.foundation-card .card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
}

.foundation-card:hover .card-icon {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 0 35px rgba(161, 194, 189, 0.6);
}

.foundation-card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.foundation-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.foundation-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  text-align: left;
}

.foundation-card ul li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

/* Diagonal Shine Animation */
@keyframes foundationShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== FORM RESPONSE MESSAGES ===== */
#responseMessage .success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  animation: slideInDown 0.3s ease;
}

#responseMessage .error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 30px 24px;
  border-radius: 24px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #0f2854, #1c4d8d);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(15, 40, 84, 0.3);
  border: 1px solid rgba(189, 232, 245, 0.1);
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(189, 232, 245, 0.2),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.team-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(15, 40, 84, 0.5);
  border-color: rgba(189, 232, 245, 0.3);
}

.team-card:hover::before {
  opacity: 1;
}

.team-avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(189, 232, 245, 0.15);
  animation: floatAvatar 4s ease-in-out infinite;
  transition: all 0.5s ease;
  background-size: cover;
  background-position: top;
}

.team-avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(189, 232, 245, 0.4);
  opacity: 0;
  transform: rotate(0deg) scale(0.9);
  transition: all 0.5s ease;
}

.team-card:hover .team-avatar {
  box-shadow: 0 0 0 10px rgba(189, 232, 245, 0.2);
  transform: scale(1.05);
}

.team-card:hover .team-avatar::after {
  opacity: 1;
  transform: rotate(180deg) scale(1.1);
  animation: rotateRing 4s linear infinite;
}

.team-card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s ease;
}

.team-card p {
  font-size: 0.95rem;
  color: #bde8f5 !important;
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@keyframes floatAvatar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg) scale(1.1);
  }
  to {
    transform: rotate(360deg) scale(1.1);
  }
}

/* Adjust grid for better spacing */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  justify-items: center;
}

.highText {
  color: #0877ab;
}

/* ===============================
   DOCTOR LISTING PAGE â€“ Premium
   =============================== */
.doctor-listing {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

/* ===== Doctor Card ===== */
.doc-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  height: 450px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(25, 24, 59, 0.07);
  border: 1px solid rgba(161, 194, 189, 0.12);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(50px);
}

.doc-card.active {
  opacity: 1;
  transform: translateY(0);
}

.doc-card:hover {
  box-shadow: 0 16px 50px rgba(25, 24, 59, 0.13);
  transform: translateY(-5px);
  border-color: rgba(8, 119, 171, 0.2);
}

/* Reverse layout */
.doc-card--reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.doc-card--reverse .doc-card__img-wrap {
  order: 2;
}

.doc-card--reverse .doc-card__info {
  order: 1;
}

/* ===== Image Section ===== */
.doc-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.doc-card__img {
  width: 100%;
  height: 450px;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9; /* Professional neutral background */
}

.doc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Optimized for headshots/portraits */
  display: block;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card:hover .doc-card__img img {
  transform: scale(1.04);
}

/* Accent overlay on image */
.doc-card__img-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(25, 24, 59, 0.6), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Initials fallback */
.doc-card__initials {
  background: linear-gradient(135deg, #19183B 0%, #2a647b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-card__initials span {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 6px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Info Section ===== */
.doc-card__info {
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

/* Department badge */
.doc-card__dept {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #19183B 0%, #2a647b 100%);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  width: fit-content;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.doc-card__dept i {
  font-size: 0.7rem;
}

/* Doctor name */
.doc-card__name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0.25rem 0 0;
  line-height: 1.2;
}

/* Position */
.doc-card__position {
  font-size: 1rem;
  color: #0877ab;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

/* Degree */
.doc-card__degree {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--light-surface);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border-left: 3px solid #0877ab;
  width: fit-content;
}

.doc-card__degree i {
  color: #0877ab;
  font-size: 0.85rem;
}

/* Bio â€“ 2-3 lines with ellipsis */
.doc-card__bio {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Read More / View Profile button */
.doc-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  width: fit-content;
  transition: all 0.3s ease;
  background: transparent;
}

.doc-card__btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.doc-card__btn:hover {
  background: var(--primary-color);
  color: white;
}

.doc-card__btn:hover i {
  transform: translateX(4px);
}

/* ===== DOCTOR LISTING RESPONSIVE ===== */

@media (max-width: 1024px) {
  .doc-card {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .doc-card--reverse {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .doc-card__info {
    padding: 2rem 1.5rem;
  }

  .doc-card__name {
    font-size: 1.45rem;
  }

  .doc-card__img-wrap {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .doctor-listing {
    gap: 2rem;
  }

  .doc-card,
  .doc-card--reverse {
    grid-template-columns: 1fr;
    height: auto;
  }

  .doc-card--reverse .doc-card__img-wrap {
    order: -1;
  }

  .doc-card--reverse .doc-card__info {
    order: 0;
  }

  .doc-card__img-wrap {
    min-height: 320px;
    height: auto;
  }

  .doc-card__img,
  .doc-card__img img {
    height: 320px;
  }

  .doc-card__info {
    padding: 1.75rem 1.5rem;
    align-items: center;
    text-align: center;
  }

  .doc-card__bio {
    text-align: justify;
  }

  .doc-card__degree {
    border-left: none;
    border-bottom: 3px solid #0877ab;
  }

  .doc-card__name {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .doctor-listing {
    gap: 1.5rem;
  }

  .doc-card__img-wrap {
    min-height: 240px;
    max-height: 280px;
  }

  .doc-card__info {
    padding: 1.5rem 1.25rem;
  }

  .doc-card__name {
    font-size: 1.2rem;
  }

  .doc-card__initials span {
    font-size: 3.5rem;
  }

  .doc-card__bio {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
  }

  .doc-card__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================
   SERVICES LISTING PAGE
   ========================================================== */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.svc-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(25, 24, 59, 0.06);
  border: 1px solid rgba(161, 194, 189, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
}

.svc-card.active {
  opacity: 1;
  transform: translateY(0);
}

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(25, 24, 59, 0.12);
  border-color: rgba(8, 119, 171, 0.25);
}

/* Card Top / Image */
.svc-card__top {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #19183b, #2a647b);
}

.svc-card__top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.svc-card:hover .svc-card__top img {
  transform: scale(1.08);
}

.svc-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(25, 24, 59, 0.6));
  pointer-events: none;
}

.svc-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Card Body */
.svc-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.svc-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Key Points List */
.svc-card__points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.svc-card__points li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.svc-card__points li i {
  color: #0877ab;
  font-size: 0.75rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.svc-card__more {
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 0.82rem !important;
}

/* Card Button */
.svc-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(161, 194, 189, 0.15);
  transition: all 0.3s ease;
}

.svc-card__btn i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.svc-card__btn:hover {
  color: #0877ab;
}

.svc-card__btn:hover i {
  transform: translateX(4px);
}

/* Services Listing Responsive */
@media (max-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .svc-card__top {
    height: 180px;
  }
}

/* ==========================================================
   SERVICE DETAIL PAGE
   ========================================================== */

.svc-dtl-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

/* Main Content */
.svc-dtl-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.svc-dtl-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(25, 24, 59, 0.1);
  opacity: 0;
  transform: translateY(20px);
}

.svc-dtl-image.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.svc-dtl-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Content Sections */
.svc-dtl-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(25, 24, 59, 0.06);
  border: 1px solid rgba(161, 194, 189, 0.12);
  opacity: 0;
  transform: translateY(20px);
}

.svc-dtl-section.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.svc-dtl-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(8, 119, 171, 0.1);
}

.svc-dtl-heading i {
  color: #0877ab;
  font-size: 1.1rem;
}

.svc-dtl-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Key Points Grid */
.svc-dtl-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.svc-dtl-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-surface);
  border-radius: 12px;
  border-left: 3px solid #0877ab;
  transition: all 0.3s ease;
}

.svc-dtl-point:hover {
  background: rgba(8, 119, 171, 0.05);
  transform: translateX(4px);
}

.svc-dtl-point__num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0877ab;
  opacity: 0.4;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.svc-dtl-point p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Extra Points List */
.svc-dtl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.svc-dtl-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(161, 194, 189, 0.08);
}

.svc-dtl-list li i {
  color: #0877ab;
  font-size: 0.7rem;
  margin-top: 6px;
  flex-shrink: 0;
}

/* Why Choose Us Section */
.svc-dtl-chooseus {
  background: linear-gradient(135deg, #19183b 0%, #2a647b 100%);
  border: none;
}

.svc-dtl-chooseus .svc-dtl-heading {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.svc-dtl-chooseus .svc-dtl-heading i {
  color: #ffd700;
}

.svc-dtl-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.svc-dtl-choose-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.svc-dtl-choose-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.svc-dtl-choose-item i {
  color: #4ade80;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.svc-dtl-choose-item span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* FAQ Accordion */
.svc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.svc-faq-item {
  border: 1px solid rgba(161, 194, 189, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.svc-faq-item:hover {
  border-color: rgba(8, 119, 171, 0.2);
}

.svc-faq-item.active {
  border-color: #0877ab;
  box-shadow: 0 4px 15px rgba(8, 119, 171, 0.1);
}

.svc-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  background: white;
  transition: background 0.3s ease;
  gap: 1rem;
}

.svc-faq-question:hover {
  background: var(--light-surface);
}

.svc-faq-question span {
  font-size: 0.95rem;
  line-height: 1.4;
}

.svc-faq-question i {
  font-size: 0.8rem;
  color: #0877ab;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.svc-faq-item.active .svc-faq-question i {
  transform: rotate(180deg);
}

.svc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.svc-faq-answer p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Sidebar */
.svc-dtl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.svc-sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(25, 24, 59, 0.06);
  border: 1px solid rgba(161, 194, 189, 0.12);
  opacity: 0;
  transform: translateY(20px);
}

.svc-sidebar-card.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.svc-sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(8, 119, 171, 0.1);
}

.svc-sidebar-card h3 i {
  color: #0877ab;
  font-size: 0.95rem;
}

/* Sidebar List */
.svc-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svc-sidebar-list li {
  border-bottom: 1px solid rgba(161, 194, 189, 0.1);
}

.svc-sidebar-list li:last-child {
  border-bottom: none;
}

.svc-sidebar-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.svc-sidebar-list a:hover {
  color: #0877ab;
  background: rgba(8, 119, 171, 0.04);
  padding-left: 0.8rem;
}

.svc-sidebar-list a i {
  font-size: 0.65rem;
  color: #0877ab;
  transition: transform 0.3s ease;
}

.svc-sidebar-list a:hover i {
  transform: translateX(3px);
}

/* Sidebar CTA */
.svc-sidebar-cta {
  background: linear-gradient(135deg, #19183b 0%, #2a647b 100%);
  border: none;
  text-align: center;
}

.svc-sidebar-cta h3 {
  color: white;
  justify-content: center;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.svc-sidebar-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.svc-sidebar-cta__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.svc-sidebar-cta__icon i {
  font-size: 1.5rem;
  color: white;
}

.svc-sidebar-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.svc-sidebar-phone:hover {
  color: white;
}

/* Service Detail Responsive */
@media (max-width: 1024px) {
  .svc-dtl-layout {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }

  .svc-dtl-points-grid,
  .svc-dtl-choose-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .svc-dtl-layout {
    grid-template-columns: 1fr;
  }

  .svc-dtl-sidebar {
    position: static;
  }

  .svc-dtl-section {
    padding: 1.5rem;
  }

  .svc-dtl-heading {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .svc-dtl-section {
    padding: 1.25rem;
  }

  .svc-dtl-point {
    padding: 0.75rem;
  }
}

/* ==========================================================
   ERROR / NOT FOUND PAGES
   ========================================================== */

.error-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem 3rem;
}

/* Animated 404 Number */
.error-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.error-number span {
  font-size: 7rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  text-shadow: 0 4px 15px rgba(25, 24, 59, 0.15);
}

.error-pulse {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #19183b, #2a647b);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: errorPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(8, 119, 171, 0.4);
}

.error-pulse i {
  font-size: 2.5rem;
  color: white;
}

@keyframes errorPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(8, 119, 171, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 15px rgba(8, 119, 171, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(8, 119, 171, 0);
  }
}

/* Icon Wrap (for doctor not found etc.) */
.error-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(25, 24, 59, 0.08), rgba(8, 119, 171, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: errorPulse 2s ease-in-out infinite;
}

.error-icon-wrap i {
  font-size: 2.5rem;
  color: #0877ab;
}

.error-title {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.error-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Quick Links Grid */
.error-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.error-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(25, 24, 59, 0.06);
  border: 1px solid rgba(161, 194, 189, 0.12);
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(25, 24, 59, 0.1);
  border-color: rgba(8, 119, 171, 0.25);
  color: #0877ab;
}

.error-link-card i {
  font-size: 1.5rem;
  color: #0877ab;
}

.error-link-card span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Action Buttons */
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Error Page Responsive */
@media (max-width: 640px) {
  .error-number span {
    font-size: 4.5rem;
  }

  .error-pulse {
    width: 65px;
    height: 65px;
  }

  .error-pulse i {
    font-size: 1.8rem;
  }

  .error-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .error-title {
    font-size: 1.35rem;
  }
}

/* ==========================================================
   FACILITY CARDS (About Page)
   ========================================================== */

.facility-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(25, 24, 59, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-card:hover {
  box-shadow: 0 12px 35px rgba(25, 24, 59, 0.14);
}

.facility-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.5rem;
}

/* Icon */
.fac-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.fac-icon i {
  font-size: 1.3rem;
  color: white;
}

/* Badge */
.fac-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Features List */
.fac-features {
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(161, 194, 189, 0.12);
}

.fac-feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.fac-feat i {
  color: var(--primary-color);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Stats Row */
.fac-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(161, 194, 189, 0.12);
}

.fac-stat {
  display: flex;
  flex-direction: column;
}

.fac-stat__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.fac-stat__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tags */
.fac-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(161, 194, 189, 0.12);
}

.fac-tag {
  background: var(--light-surface);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 24/7 Availability */
.fac-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #059669;
}

.fac-availability i {
  font-size: 0.8rem;
}

.fac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-left: auto;
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Note */
.fac-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.75rem;
  background: var(--light-surface);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fac-note i {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Info Grid (Pharmacy) */
.fac-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(161, 194, 189, 0.12);
}

.fac-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--light-surface);
  border-radius: 10px;
}

.fac-info-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.fac-info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.fac-info-item span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* OPD Grid */
.fac-opd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(161, 194, 189, 0.12);
}

.fac-opd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  background: var(--light-surface);
  border-radius: 10px;
  text-align: center;
  transition: background 0.3s ease;
}

.fac-opd:hover {
  background: rgba(8, 119, 171, 0.06);
}

.fac-opd i {
  font-size: 1rem;
  color: var(--primary-color);
}

.fac-opd span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Facility Cards Responsive */
@media (max-width: 768px) {
  .facility-card {
    padding: 1.25rem;
  }

  .fac-stats {
    gap: 1rem;
  }

  .fac-stat__num {
    font-size: 1.2rem;
  }
}

/* --- Testimonials Page Styles --- */
.testimonials-section {
    padding: 100px 0;
}

.testimonial-grid {
    gap: 2.5rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-quote-icon {
    width: 60px;
    height: 60px;
    background: rgba(8, 119, 171, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.testimonial-quote-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-card:hover .testimonial-quote-icon {
    background: var(--primary-color);
}

.testimonial-card:hover .testimonial-quote-icon i {
    color: #ffffff;
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    font-size: 0.9rem;
    margin-right: 2px;
}

.testimonial-info h4 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

.testimonial-type {
    display: block;
    font-weight: 500;
    color: #6b7280;
}

.testimonial-doctor {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    background: rgba(8, 119, 171, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-top: 1rem;
}

.testimonial-doctor i {
    margin-right: 0.5rem;
}

.testimonial-doctor span {
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-section {
        padding: 60px 0;
    }
}

/* --- Pagination Styles --- */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.pagination {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(8, 119, 171, 0.15);
}

.page-link.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(8, 119, 171, 0.25);
}

.page-link.prev, .page-link.next {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.page-link.prev:hover, .page-link.next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- Slick Slider Customization --- */
.testimonial-slider {
    padding-bottom: 3rem;
}

.slick-prev, .slick-next {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slick-prev:before, .slick-next:before {
    display: none;
}

.slick-prev {
    left: -25px;
}

.slick-next {
    right: -25px;
}

.slick-prev:hover, .slick-next:hover,
.slick-prev:focus, .slick-next:focus {
    background: var(--primary-color);
    color: #ffffff;
}

.slick-prev i, .slick-next i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.slick-prev:hover i, .slick-next:hover i {
    color: #ffffff;
}

.slick-dots {
    bottom: -10px;
}

.slick-dots li button:before {
    font-size: 12px !important;
    color: var(--primary-color) !important;
    opacity: 0.25 !important;
    transition: var(--transition-base) !important;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color) !important;
    opacity: 1 !important;
}

@media (max-width: 1240px) {
    .slick-prev { left: 0; }
    .slick-next { right: 0; }
}

/* ===== TESTIMONIAL GALLERY & TABS ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.testimonial-filter {
    padding: 1.5rem 0;
}

.filter-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #676b6f;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {

    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: var(--primary-color);
 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-card.gallery-style {
    flex: none; /* Override carousel flex */
    height: auto;
    min-height: 380px;
}

.patient-type-pill {
    background: rgba(131, 193, 193, 0.15);
    color: #83c1c1;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor-care {
    font-weight: 500;
    color: #94a3b8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.4rem;
        max-width: 100%;
        scrollbar-width: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* ===== TESTIMONIAL MODAL STYLES ===== */
.t-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.t-modal-container {
    background: #1e1e30;
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    position: relative;
    border: 1px solid rgba(131, 193, 193, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.t-modal-overlay.active .t-modal-container {
    transform: translateY(0) scale(1);
}

.t-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.t-modal-close:hover {
    color: white;
}

.t-modal-content {
    padding: 3rem;
}

.t-modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.t-modal-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #4fd1d1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.t-modal-author-info h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.t-modal-author-info p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.t-modal-body {
    position: relative;
    padding: 1rem 0;
}

.t-modal-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
    font-style: italic;
    margin: 1rem 0;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.t-modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t-modal-rating {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.t-modal-date {
    color: #64748b;
    font-size: 0.9rem;
}

/* Card Refinements */
.testimonial-card.gallery-style:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.inline-pill {
    margin-right: 0.5rem;
    display: inline-block;
}

@media (max-width: 576px) {
    .t-modal-content {
        padding: 2rem 1.5rem;
    }
    .t-modal-header {
        flex-direction: column;
        text-align: center;
    }
    .t-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 600;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(131, 193, 193, 0.05);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(131, 193, 193, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info, .pagination-total {
    color: #64748b;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.blog-section {
    background: var(--primary-dark);
    position: relative;
    z-index: 1;
}

/* ===== TESTIMONIALS PAGE SPECIFIC STYLES ===== */
.testimonials {
    background: var(--primary-dark);
}

.testi-filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.testi-filter-btn {
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.9rem;
}

.testi-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(131, 193, 193, 0.5);
    transform: translateY(-2px);
}

.testi-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(131, 193, 193, 0.4);
}

/* ===== BLOG SECTION STYLES ===== */
.blog-section {
    background-color: var(--primary-dark);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.blog-section .section-wtitle {
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(131, 193, 193, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(131, 193, 193, 0.3);
}

.blog-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.blog-meta i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: lightskyblue;
}

.blog-excerpt {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.blog-btn {
    margin-top: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.blog-btn:hover {
    gap: 0.8rem;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.bg-white-03 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .blog-sidebar {
        margin-top: 3rem;
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Equal Height Contact Form and Map */
@media (min-width: 992px) {
    .equal-height-grid .scroll-animate {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .equal-height-grid h3 {
        flex-shrink: 0;
    }
    
    .contact-form-column form {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .contact-form-column textarea {
        flex-grow: 1;
    }
    
    .map-column .map-wrapper {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        height: 100% !important;
    }
    
    .map-column iframe {
        flex-grow: 1;
        height: 100% !important;
        min-height: 0; /* Allow shrinking if needed */
    }
}
