/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  width: 100%;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden !important;
}

.container {
  max-width: 2560px;
  margin: 0 auto;
  padding: 0 80px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.top-bar {
  background: #e6f0fa;
  color: #333;
  padding: 8px 0;
  font-size: 14px;
  display: block;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 30px;
}

.appointment-btn {
  background: #0077cc;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.appointment-btn:hover {
  background: #005fa3;
  transform: translateY(-1px);
}

.navbar {
  padding: 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #0077cc;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0077cc;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #374151;
  transition: all 0.3s ease;
}

/* Hero Slider Styles */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 110px;
}

.slider-container {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: all 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 119, 204, 0.4) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.slide-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.slide-subtitle {
  /* color: #185a44; */
  color: #ffffff;
  background-color: #00559271;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.slide-title {
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.slide-description {
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
  background: #0077cc;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-button:hover {
  background: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 119, 204, 0.3);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 99;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 30px;
}

.slider-nav.next {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 99;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #0095ff;
  width: 30px;
  border-radius: 6px;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0077cc;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 119, 204, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0077cc;
  margin-bottom: 16px;
}

.service-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: #e6f0fa;
  color: #333;
}

.testimonials .section-header h2,
.testimonials .section-header p {
  color: #333;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.6s ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-content {
  text-align: center;
  padding: 0 40px;
}

.stars {
  font-size: 24px;
  margin-bottom: 20px;
}

.testimonial p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  font-style: italic;
}

.patient-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.patient-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0077cc;
}

.patient-info h4 {
  font-weight: 600;
  margin-bottom: 4px;
}

.patient-info span {
  color: #6b7280;
  font-size: 14px;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 119, 204, 0.2);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.testimonial-nav:hover {
  background: rgba(0, 119, 204, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
  left: -60px;
}

.testimonial-nav.next {
  right: -60px;
}

/* About Section */
.about {
  padding: 100px 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0077cc;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-text p {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: #f8fafc;
}

.stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0077cc;
  margin-bottom: 8px;
}

.stat p {
  color: #6b7280;
  font-weight: 500;
}

.about-image img {
  width: 100%;
  /* height: 400px; */
  max-height: 500px;
  object-fit: contain;
  border-radius: 16px;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: #f8fafc;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  /* flex-direction: column; */
  gap: 30px;
}

.contact-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0077cc;
  margin-bottom: 8px;
}

.contact-item p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.appointment-form {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.appointment-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0077cc;
  margin-bottom: 30px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

.appointment-form button {
  width: 100%;
  background: #0077cc;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.appointment-form button:hover {
  background: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 119, 204, 0.3);
}

/* Footer */
.footer {
  background: #e6f0fa;
  color: #333;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: #333;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #33cc99;
}

.footer-section p {
  color: #6b7280;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #d1d5db;
  padding-top: 20px;
  text-align: center;
  color: #6b7280;
}
.footer-bottom a {
  text-decoration: none;
  color: #6b7280;
}

i {
  color: #0077cc;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-nav.prev {
    left: 10px;
  }

  .testimonial-nav.next {
    right: 10px;
  }

  .slider-nav.prev {
    left: 15px;
  }

  .slider-nav.next {
    right: 15px;
  }
  .container {
    padding: 40px;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 2rem;
  }

  .slide-description {
    font-size: 16px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 20px;
  }
}

/* Social Media Container */
.social-media {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

/* General Social Icons */
.social-media i {
  font-size: 2rem;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

/* General Hover Effect */
.social-media i:hover {
  transform: scale(1.2);
  color: #0077cc;
  /* default hover for non-gradient icons */
}

/* Instagram Gradient Icon */
.fa-instagram {
  background: linear-gradient(
    45deg,
    #feda75,
    #fa7e1e,
    #d62976,
    #962fbf,
    #4f5bd5
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fa-instagram:hover {
  filter: brightness(1.2);
  transform: scale(1.3);
}

.services {
  padding: 80px 0;
  background: #f8fafc;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #0077cc;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.2rem;
  color: #6b7280;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.premium-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 5px solid #0077cc;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.service-icon {
  font-size: 2rem;
  color: #0077cc;
  margin-bottom: 15px;
  text-align: center;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.service-list li {
  font-size: 15px;
  color: #4a5568;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.service-list li:before {
  content: "•";
  color: #0077cc;
  font-weight: bold;
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .premium-card {
    padding: 20px;
  }
}

.video-testimonials {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.video-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-testimonial {
  display: flex;
  justify-content: center;
}

.video-testimonial video {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9/16;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .video-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .video-testimonial video {
    max-width: 100%;
  }
}

/* About Hospital Section */
.about-hospital {
  padding: 100px 0;
  background: #ffffff;
}

.about-hospital-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hospital-video {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-hospital-video video {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9/16;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.about-hospital-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0077cc;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-hospital-text p {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-hospital-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.about-hospital-text ul li {
  font-size: 16px;
  color: #4a5568;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.about-hospital-text ul li:before {
  content: "•";
  color: #0077cc;
  font-weight: bold;
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .about-hospital-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-hospital-video video {
    max-width: 100%;
  }
  .top-bar {
    background: #e6f0fa;
    color: #333;
    padding: 8px 0;
    font-size: 14px;
    display: none;
  }
}

/* patient gallery section  ----------------------------------------*/

.gallery {
  padding: 100px 0;
  background: #f8fafc;
}
.wrap {
  width: 100%;
  max-width: 1000px;
  overflow-x: auto;
  margin: 0 auto;
  /* enable horizontal scroll if needed */
}

/* Row layout */
.media-row {
  display: flex;
  gap: 16px;
}

.media-row img,
.media-row video {
  height: 320px;
  /* fixed portrait height */
  width: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  flex-shrink: 0;
  /* prevent shrinking */
  transition: transform 0.25s ease;
}

.media-row img:hover,
.media-row video:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* gallery section  ----------------------------------------*/

.gallery {
  margin: 10px 0px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* middle wider */
  grid-template-rows: repeat(
    2,
    minmax(220px, 32vh)
  ); /* equal rows, responsive height */
  gap: 16px;
}

.gallery-grid .item {
  overflow: hidden;
  border-radius: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Layout placement */
.gallery-grid .portrait:nth-of-type(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.gallery-grid .landscape:nth-of-type(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.gallery-grid .landscape:nth-of-type(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.gallery-grid .portrait:nth-of-type(4) {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

/* ==== Responsive Breakpoints ==== */

/* Tablets (<=1024px): reduce width ratio */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: repeat(2, minmax(200px, 28vh));
  }
}

/* Small tablets / large phones (<=768px): stack columns into 2 */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-grid .portrait,
  .gallery-grid .landscape {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid .item {
    height: auto;
  }

  .gallery-grid img {
    height: auto;
  }
}

/* Phones (<=480px): single column stack */
@media (max-width: 480px) {
  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .gallery-grid .item {
    border-radius: 8px;
  }

  .gallery-grid img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }
}

/* ==== Lightbox styles ==== */
.lightbox {
  position: fixed;
  inset: 0;
  display: none; /* toggled by JS */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Controls */
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
}

.lightbox .close {
  top: 16px;
  right: 20px;
}

.lightbox .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Control focus */
.lightbox .prev:focus,
.lightbox .next:focus,
.lightbox .close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Small screens: shrink arrows */
@media (max-width: 480px) {
  .lightbox .close,
  .lightbox .prev,
  .lightbox .next {
    font-size: 28px;
    padding: 6px 10px;
  }
}
