/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

h1,
h2,
h3 {
  color: #0056b3;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0056b3;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0056b3;
}

.btn-appoint {
  background-color: #0056b3;
  color: white !important;
  padding: 8px 15px;
  border-radius: 5px;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -------------------
   LANDING PAGE STYLES
   ------------------- */

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
}

.hero-overlay h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: 0.3s;
}

.cta-btn:hover {
  background-color: #218838;
}

/* Doctor Intro Section */
.doctor-intro {
  background-color: white;
  padding: 60px 0;
}

.doctor-intro .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  gap: 50px;
  flex-wrap: wrap;
}

.doc-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.doc-image img {
  width: 100%;
  max-width: 350px;
  border-bottom: 5px solid #0056b3;
}

.doc-content {
  flex: 1;
  min-width: 300px;
}

.doc-name {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.designation {
  font-size: 1.1rem;
  color: #666;
  display: block;
  margin-bottom: 20px;
  font-weight: bold;
}

.specialties {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  font-size: 0.9rem;
}

.spec-item i {
  font-size: 2rem;
  color: #0056b3;
}

/* Features Section */
.features-section {
  padding: 60px 10%;
  background-color: #e9ecef;
  text-align: center;
}

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

.feature-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-box i {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 15px;
}

/* Process Section */
.process-section {
  padding: 60px 10%;
  text-align: center;
  background: white;
}

.process-steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 20px;
}

.step {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.step-num {
  background: #0056b3;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 15px auto;
  font-weight: bold;
}

/* CTA Banner */
.cta-banner {
  background-color: #0056b3;
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.cta-banner h2 {
  color: white;
}

.btn-appoint-white {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: white;
  color: #0056b3;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* -------------------
   SERVICES PAGE STYLES (UPDATED)
   ------------------- */
.services-page {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.services-page h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

/* Flex container for 400x400 cards */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* The 400x400 Card */
.service-card {
  width: 400px;
  height: 400px;
  position: relative;
  overflow: hidden; /* Keeps zoom inside */
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background: #000;
}

/* The Image */
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.85;
}

/* The Dark Gradient Overlay */
.service-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
  z-index: 1;
}

/* The Text */
.service-card h3 {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 1.8rem;
  z-index: 3;
  transition: transform 0.4s ease;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* The Border Animation (Pseudo-element) */
.service-card::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  z-index: 2;

  /* Animation Start State */
  opacity: 0;
  transform: scale(1.1);
  transition: all 0.4s ease;
  border-radius: 10px;
}

/* --- Hover Effects --- */
.service-card:hover img {
  transform: scale(1.15); /* Zoom In */
  opacity: 0.6; /* Darken */
}

.service-card:hover h3 {
  transform: translateY(-10px); /* Lift Text */
}

.service-card:hover::after {
  opacity: 1; /* Show Border */
  transform: scale(1); /* Shrink Border to fit */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* -------------------
   CERTIFICATIONS & OTHERS
   ------------------- */
.cert-page,
.connect-page,
.contact-page,
.appointment-page {
  padding: 50px 10%;
  text-align: center;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.cert-box {
  width: 250px;
  height: 350px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #999;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
  margin: 40px auto;
}

.social-btn {
  padding: 12px;
  text-decoration: none;
  color: white;
  border-radius: 5px;
  display: block;
}

.youtube {
  background: #ff0000;
}
.insta {
  background: #c13584;
}
.linkedin {
  background: #0077b5;
}

/* Contact Page Layout */
.contact-page {
  display: flex;
  flex-wrap: wrap;
  text-align: left;
  gap: 40px;
}

.contact-info,
.map-container {
  flex: 1;
  min-width: 300px;
}

/* Appointment Box */
.appoint-box {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.calendar-btn,
.call-btn {
  display: block;
  background: #0056b3;
  color: white;
  padding: 15px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
}
.call-btn {
  background: #28a745;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* --- Dual Video Split Section --- */
.dual-video-container {
  display: flex;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: #000;
}

.video-split {
  position: relative;
  flex: 1;
  transition: flex 0.6s ease-in-out;
  cursor: pointer;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.video-split:hover {
  flex: 2.5;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.4s ease;
  z-index: 1;
}

.video-split:hover .video-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.video-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  color: white;
  opacity: 0.8;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(0);
}

.video-content h2 {
  font-size: 2rem;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-content p {
  font-size: 1rem;
  font-weight: 300;
}

.video-split:hover .video-content {
  opacity: 1;
  transform: translateY(-10px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    padding: 20px 0;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .doctor-intro .container {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* Extra rule: If screen is tiny (mobile), make cards smaller than 400px */
@media (max-width: 450px) {
  .service-card {
    width: 100%;
    height: 350px;
  }
}
/* ==============================
   New Chiropractor/Manual Therapy Spotlight Section
   ============================== */

.chiro-spotlight {
  padding: 80px 0;
  /* A slight off-white background to differentiate it from surrounding sections */
  background-color: #f8fbfd;
}

/* Reusing your existing .container class, but ensuring it uses flex for this section */
.chiro-spotlight .grid-layout {
  display: flex;
  align-items: center; /* Vertically center text with image */
  gap: 50px;
}

.spotlight-image-box {
  flex: 1;
  /* Ensures the image container doesn't get too wide on large screens */
  max-width: 500px;
}

.spotlight-image-box img {
  width: 100%;
  /* Enforcing the approximate 400x400 aspect ratio look, while remaining responsive */
  height: 400px;
  object-fit: cover; /* Ensures image fills the square without stretching */
  border-radius: 16px;
  /* A nice professional shadow to make the image pop */
  box-shadow: 0 15px 30px rgba(0, 86, 179, 0.15);
}

.spotlight-content {
  flex: 1;
}

.spotlight-content h2 {
  font-size: 2.2rem;
  color: #2c3e50; /* Dark blue/grey headline */
  margin-bottom: 25px;
  line-height: 1.3;
}

.spotlight-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Styling the list of benefits */
.spotlight-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.spotlight-list li {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

/* Styling the FontAwesome icons in the list */
.spotlight-list li i {
  color: #007bff; /* Professional medical blue */
  font-size: 1.3rem;
  margin-right: 15px;
}

/* ==============================
   Responsiveness for the new section
   ============================== */
@media (max-width: 900px) {
  .chiro-spotlight .grid-layout {
    flex-direction: column;
    text-align: center;
  }

  .spotlight-image-box {
    max-width: 100%;
  }

  /* On mobile, let the height adjust naturally if needed, or keep it fixed based on preference */
  .spotlight-image-box img {
    height: auto;
    max-height: 400px;
  }

  .spotlight-list li {
    justify-content: center; /* Center the list items on mobile */
  }
}
