/* Global Styles */
body,html {
  width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #222;
  line-height: 1.5;
}



/* Top Bar */
.top-bar {
  background: #FFCE4A;
  color: #0c3c78;
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 14px;
}
.top-bar a {
  color:#0c3c78 ;
  margin-left: 15px;
  text-decoration: none;
}



/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 100px;
  margin-right: 15px;
}
.logo h1 {
  font-size: 20px;
  margin: 0;
  color: #0c3c78;
}
.logo p {
  font-size: 14px;
  margin: 0;
  color: #444;
}
.header-buttons .btn {
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  margin-left: 10px;
}
.btn.blue {
  background: #0c3c78;
  color: #fff;
}
.btn.outline {
  border: 1px solid #0c3c78;
  color: #0c3c78;
  background: #fff;
}



/* Navbar */
.navbar {
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  overflow-x: auto;
}
.navbar ul li {
  margin: 0;
}
.navbar ul li a {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: #0c3c78;
  font-weight: 500;
}
.navbar ul li a.active {
  background: #fff;
  border-bottom: 3px solid #FFCE4A;
  color: #0c3c78;
}

/* Desktop - hide hamburger */
.hamburger {
  display: none;
}



/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
filter: brightness(70%); 
}
.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}
.tagline {
  color: orange;
  font-weight: bold;
  margin-bottom: 25px;
 font-size: 25px;
}
.hero h2 {
  font-size: 27px;
  margin: 0 0 8px;
  font-weight: 700;
  
}
.hero h1 {
  font-size: 45px;
  margin: 0;
  font-weight: 900;
}
.hero .highlight {
  color: white ;
}



 /* Welcome Section #4db6ff */
.welcome-section {
  padding: 80px 0;
  background-color: #f8f9fa;
 }

.welcome-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.hospital-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #4a90e2, black);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color:white;
}      

.hospital-image img {
  width: 100%;
  max-width: 460px;
  height: 450px;      
  border-radius: 15px;
  object-fit: cover;
}

.welcome-content h3 {
  color: #666;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: normal;
 }

.welcome-content h2 {
  color: #0c3c78;
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.welcome-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

.welcome-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
      


/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: white;
}

.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  background-color: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.service-card h3 {
  color: #1e4a8c;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

.service-card p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.7;
}

.service-btn {
  background-color: #FFCE4A;
  color: #1e4a8c;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.service-btn:hover {
  background-color: #1e4a8c;
  color:white;
  transform: scale(1.05);
}



/* Slideshow Section */
.slideshow-section {
  width: 100%;
  max-width: 1000px;
  margin: 60px auto;
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
 height: 500px;   /*Adjust height */
  object-fit: cover;
  border-radius: 15px;
}

/* Fade Animation */
.fade {
  animation: fadeEffect 1s;
}

@keyframes fadeEffect {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}

/* Dots */
.dots-container {
  text-align: center;
  margin-top: 15px;
}
.dot {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}
.active, .dot:hover {
  background-color: #0c3c78;
}




 /* Footer */
.footer {
  background-color: #1e4a8c;
  color: #FFCE4A;
  padding: 50px 0 20px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr; 
  gap: 30px;
  margin-bottom: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-contact .contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
 color:white;
}


.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text h4 {
  font-size: 18px;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-links h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links ul li a:hover {
  color: #4a90e2;
}



 /* Responsive Css */

 /* Navbar */
@media (max-width: 768px) {
  .logo h1 {
    font-size: 30px;
  }
  /* Stack header items */
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }

  /* Show hamburger only on mobile */
  .hamburger {
    display: block;
    font-size: 24px;
    cursor: pointer;
    color: #0c3c78;
  }

  /* Hide nav by default */
  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0c3c78;
  }

  .navbar ul li a {
    color: white;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  /* Show menu when active */
  .navbar.active ul {
    display: flex;
  }
}

@media (max-width: 540px) {
  .logo h1 {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .logo h1 {
    font-size: 15px;
  }
}

/* Desktop (≥ 769px) keep original layout */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .navbar ul {
    display: flex; 
    flex-direction: row;
    background: #f9f9f9;
  }

  .navbar ul li a {
    color: #0c3c78;
    border: none;
  }
}



 /* Hero Section */
@media (max-width: 768px) {
  .hero {
    height: 50vh; /* reduce hero height */
  }
  .hero-content .tagline {
    font-size: 14px;
  }
  .hero-content h2 {
    font-size: 18px;
  }
  .hero-content h1 {
    font-size: 23px;
  }
}

@media (max-width: 540px) {
  .hero {
    height: 50vh;
  }
  .hero-content h2 {
    font-size: 15px;
  }
  .hero-content h1 {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .hero {
    height: 50vh;
  }
  .hero-content h2 {
    font-size: 12px;
  }
  .hero-content h1 {
    font-size: 15px;
  }
}



 /* Welcome Section */
@media (max-width: 768px) {
  .welcome-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .hospital-image {
    height: auto;
  }

  .hospital-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Mobile (≤540px) → Smaller text sizes */
@media (max-width: 540px) {
 .welcome-section .container {
    text-align: left;
  }
  .welcome-content h2 {
    font-size: 26px;
  }
  .welcome-content h3 {
    font-size: 14px;
  }
  .welcome-content p {
    font-size: 14px;
    line-height: 1.6;
  }
}



 /* Service Section */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile (≤540px) → 1 column */
@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 14px;
  }
}



 /* Slideshow section */
/* Tablet (≤768px) */
@media (max-width: 768px) {
  .slideshow-section {
    margin: 40px auto;
  }
  .slide img {
    height: 350px;
  }
}

/* Mobile (≤540px) */
@media (max-width: 540px) {
  .slideshow-section {
    margin: 25px auto;
  }
  .slide img {
    height: 250px;
  }
  .prev, .next {
    font-size: 18px;
    padding: 10px;
  }
  .dot {
    height: 10px;
    width: 10px;
  }
}

@media (max-width: 380px) {
  .slideshow-section {
    margin: 20px auto;
  }
  .slide img {
    height: 200px;
  }
  .prev, .next {
    font-size: 16px;
    padding: 8px;
  }
}



 /* Footer Section */
@media (max-width: 540px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;  
  }

  .footer-col {
    align-items: flex-start; 
  }

  .social-links {
    justify-content: flex-start; 
  }
}
