/* 
========================================================================
   MEDIPLUS PATHOLOGY & DIAGNOSTIC CENTER - STYLESHEET
   Location: Arjunganj, Lucknow
   Author: Antigravity AI
========================================================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@100..900&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --primary: hsl(201, 100%, 22%);      /* #004b6e - Mediplus Deep Blue */
  --primary-light: hsl(201, 80%, 30%);
  --secondary: hsl(180, 100%, 25%);    /* #008080 - Pathology Teal */
  --secondary-light: hsl(180, 80%, 32%);
  --accent: hsl(172, 66%, 45%);       /* #00a896 - Active Cyan */
  --accent-light: hsl(172, 66%, 55%);
  --light-bg: hsl(190, 30%, 98%);     /* Clean Clinical White-blue */
  --card-bg: hsla(0, 0%, 100%, 0.9);
  --dark-text: hsl(202, 35%, 16%);    /* Slate */
  --muted-text: hsl(202, 15%, 45%);
  --white: #ffffff;
  --border: hsl(190, 20%, 90%);
  --success: hsl(160, 84%, 39%);
  --gold: hsl(43, 96%, 56%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 75, 110, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 75, 110, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 75, 110, 0.12);
  --shadow-hover: 0 24px 48px rgba(0, 75, 110, 0.18);
  
  /* Layout */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1200px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  animation: pulse-cta 2.5s infinite;
}

.btn-accent:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  animation: none;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(0, 128, 128, 0.1);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-text);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(0, 128, 128, 0.05) 0%, rgba(0, 75, 110, 0.03) 90%);
  padding: 100px 0 80px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--muted-text);
  margin-bottom: 30px;
  min-height: 40px;
}

.cursor {
  display: inline-block;
  width: 2px;
  background-color: var(--secondary);
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-banner-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  transform: rotate(1deg);
  transition: var(--transition);
  animation: float-image 6s ease-in-out infinite;
}

.hero-banner-wrap:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Float banner indicator */
.banner-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse-cta 2s infinite;
}

/* Home Quick Stats */
.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Features grid */
.features-section {
  background-color: var(--white);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--muted-text);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--light-bg);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--white);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(0, 128, 128, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--secondary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted-text);
  font-size: 0.95rem;
}

/* Clinic Promotion / Details Section */
.promo-section {
  background: radial-gradient(circle at right bottom, rgba(0, 75, 110, 0.08), transparent);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.promo-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

.promo-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  transition: var(--transition);
}

.promo-img-box:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.promo-img-large {
  grid-column: span 2;
}

.promo-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background-color: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.promo-badge span {
  font-size: 1.5rem;
  color: var(--accent);
}

.promo-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.promo-desc {
  color: var(--muted-text);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.promo-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.promo-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.promo-list-item svg {
  color: var(--success);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Home visit floating CTA */
.promo-visit-box {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.visit-phone-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 75, 110, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: phone-shake 1.5s infinite;
}

.visit-phone-icon svg {
  width: 24px;
  height: 24px;
}

.promo-visit-box div p {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.promo-visit-box div h4 {
  font-size: 1.25rem;
  color: var(--primary);
}

/* Services / Test Packages Section */
.packages-section {
  background-color: var(--white);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.package-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.package-header {
  padding: 30px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 128, 128, 0.03), transparent);
}

.package-tag {
  background-color: var(--secondary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.package-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.package-card .package-duration {
  font-size: 0.85rem;
  color: var(--muted-text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.package-card .package-duration svg {
  width: 14px;
  height: 14px;
}

.package-body {
  padding: 30px;
  flex-grow: 1;
}

.package-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-body li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
}

.package-body li svg {
  color: var(--secondary);
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.package-footer {
  padding: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.package-price {
  display: flex;
  flex-direction: column;
}

.package-price span:first-child {
  font-size: 0.8rem;
  color: var(--muted-text);
  text-decoration: line-through;
}

.package-price span:last-child {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

/* Patient Testimonial Section */
.testimonial-section {
  background: radial-gradient(circle at 80% 10%, rgba(0, 128, 128, 0.04) 0%, transparent 80%);
}

.testimonial-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slider {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  padding: 20px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  text-align: center;
}

.quote-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 5rem;
  color: rgba(0, 128, 128, 0.05);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px auto;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.testimonial-rating {
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.testimonial-rating svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--dark-text);
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.testimonial-author p {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Blog Highlights Section */
.blog-section {
  background-color: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.blog-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-bottom: 12px;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-meta-item svg {
  width: 14px;
  height: 14px;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-content h3 a:hover {
  color: var(--secondary);
}

.blog-excerpt {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-read-more {
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.blog-read-more svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(4px);
}

/* FAQ Section */
.faq-section {
  background-color: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.faq-icon-svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
  color: var(--secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.faq-answer-inner {
  padding-bottom: 20px;
  color: var(--muted-text);
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-icon-svg {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

/* Booking Page / Calculator styles */
.booking-section {
  padding: 60px 0;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.booking-card-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  outline: none;
  background-color: var(--light-bg);
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

/* Calculator box */
.calculator-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 110px;
  overflow: hidden;
}

.calc-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 24px;
}

.calc-header h3 {
  color: var(--white);
  font-size: 1.25rem;
}

.calc-body {
  padding: 24px;
}

.selected-tests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
}

.selected-test-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.selected-test-item button {
  background: none;
  border: none;
  color: #ff3333;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 8px;
}

.calc-summary {
  border-top: 2px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.calc-row.total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.calc-footer {
  padding: 24px;
  background-color: var(--light-bg);
  border-top: 1px solid var(--border);
}

/* Service Search & Table */
.services-search-bar {
  max-width: 500px;
  margin: 0 auto 40px auto;
  position: relative;
}

.services-search-bar input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 50px;
  border: 1px solid var(--border);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.services-search-bar input:focus {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.search-icon-svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted-text);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

/* Table layout */
.test-table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.test-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.test-table th {
  background-color: var(--primary);
  color: var(--white);
  padding: 18px 24px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.test-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.test-table tr:last-child td {
  border-bottom: none;
}

.test-table tr:hover td {
  background-color: rgba(0, 128, 128, 0.02);
}

.test-name-cell {
  display: flex;
  flex-direction: column;
}

.test-name-title {
  font-weight: 700;
  color: var(--primary);
}

.test-name-desc {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.test-price-cell {
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--dark-text);
  font-size: 1.1rem;
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(0, 75, 110, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  color: var(--muted-text);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--secondary);
}

.map-container {
  height: 100%;
  min-height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Blog Detail Page layout */
.blog-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.blog-detail-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-detail-header h1 {
  font-size: 2.75rem;
  margin: 16px 0;
  line-height: 1.2;
}

.blog-detail-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.blog-detail-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  aspect-ratio: 16/9;
}

.blog-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-text);
}

.blog-detail-content p {
  margin-bottom: 24px;
}

.blog-detail-content h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px 0;
}

.blog-detail-content h3 {
  font-size: 1.35rem;
  margin: 30px 0 16px 0;
}

.blog-detail-content blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
  font-style: italic;
  color: var(--muted-text);
  margin: 30px 0;
  font-size: 1.2rem;
}

.blog-detail-content ul, .blog-detail-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-detail-content li {
  margin-bottom: 10px;
}

/* Footer styling */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 40px 0;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 20px 0;
  font-size: 0.95rem;
}

.footer-logo-img {
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-links h3, .footer-contact h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h3::after, .footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-contact-item svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item div p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item div a {
  color: var(--white);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-4px);
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-phone {
  background-color: var(--primary);
  display: none; /* Show only on mobile later */
}

/* ANIMATIONS DEFINITIONS */

/* 1. Pulse CTA and badge animation */
@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 168, 150, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 168, 150, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 168, 150, 0);
  }
}

/* 2. Floating Image effect */
@keyframes float-image {
  0% {
    transform: rotate(1deg) translateY(0px);
  }
  50% {
    transform: rotate(0.5deg) translateY(-12px);
  }
  100% {
    transform: rotate(1deg) translateY(0px);
  }
}

/* 3. Text Cursor Blinking */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 4. Phone Shake */
@keyframes phone-shake {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
  20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* Scroll reveal helper class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================================== */

@media (max-width: 992px) {
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 1.85rem !important; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-banner-wrap {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .promo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .promo-images {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .booking-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-box {
    position: static;
    margin-top: 20px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    min-height: 350px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    align-items: flex-start;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .btn-phone {
    display: flex;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .btn {
    width: 100%;
  }
  
  .promo-list {
    grid-template-columns: 1fr;
  }
}
