/* General Styles */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html, main{
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
main {
  margin: 0;
  padding: 0;
  scroll-margin-top: 100px;
}
/* Container Styles */
.container-fluid {
  width: 100%;
  padding: 0;
  margin: 0 auto;
}
.container {
  padding: 0 15px;
  width: 90%;
  margin: 0 auto;
}

/* Navbar Styles */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #34495e;
  position: sticky; 
  top: 0;
  z-index: 1000; 
}
nav .logo{
  display: flex;
  align-items: center;
}

nav .logo img {
  width: 80px;
  height: 80px;
  margin-right: 15px; 
  margin-left: 10px;
  border-radius: 50%;
}

nav .logo h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
  margin: 0;
}
nav .logo a {
  text-decoration: none;
  color: inherit;
  display: flex; 
  align-items: center;
}

nav .nav-items ul {
  list-style: none;
  display: flex;
  gap: 5px;
}

nav .nav-items ul li{
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  width: 100px;
}

nav .nav-items ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 15px;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover{
  font-weight: 700;
  background: #fff;
  color:#34495e;
  padding: 10px;
  border-radius: 10px;
}

nav .nav-items ul li.contact-btn a {
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  color: #34495e;
}

/* Hamburger menu */
#show-menue-btn {
  display: none;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  nav .nav-items ul {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: #34495e ;
      padding: 10px 0;
      gap: 15px;
      position: absolute;
      top: 100px;
      left: 0;
  }
  nav .nav-items ul li{
    margin-left: 15px;
  }
  nav .nav-items.active ul {
      display: flex;
  }
  nav ul li a:hover{
    margin-left: 10px;
  }
  nav .nav-items ul li.contact-btn a {
    margin-left: 10px;
  }
  #show-menue-btn {
      display: block;
  }
}

/* Full-Screen Wrapper */
#img-top{
  border-radius: 20%;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.slider-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;            
  min-height: 65vh;     
  background: #f5f5f5;
  box-sizing: border-box;
  margin-top: 0;
}

/* Flex Layout for Content */
.slider-content-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;                
  max-width: 1200px;   
}

/* Middle Section: Text */
.part1 {
  flex: 2;                
  padding: 10px;
  max-width: 600px;
}

.slider-body1 p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
}

button {
  background-color: #34495e;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

button:hover {
  background-color: #fff;
  color: #2c3e50;
  transition: all 1s ease;
}

span {
  color: #34495e;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px;
}

/* Right Section: Statistics */
.slider-body3 {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 350px;
}
/* Styling for boxes */
.box {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  opacity: 0; 
  animation: fadeIn 1s ease-in-out;
  animation-fill-mode: forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effects */
.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Staggered fade-in animation */
.box:nth-child(1) {
  animation-delay: 0.2s;
}
.box:nth-child(2) {
  animation-delay: 0.4s;
}
.box:nth-child(3) {
  animation-delay: 0.6s;
}

.box p {
  font-size: 1rem;
  margin: 0;
  color: #333;
}

.box span {
  font-size: 0.9rem;
  color: #34495e;
}

/* Keyframe animation for fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .slider-content-body {
      flex-direction: column; 
      align-items: center;
      text-align: center;
  }

  .slider-image, .part1, .slider-body3 {
      max-width: 100%;       
  }

  .slider-body3 {
      flex-direction: row;  
      gap: 10px;
  }

  .box {
      max-width: 120px;      
  }

  button {
      padding: 8px 16px;
      font-size: 0.9rem;
  }
}

/* Health Services Section */
.services {
  text-align: center;
  padding: 5px 20px;
  animation: 1s forwards;
}

/* Header Styling */
.services .header h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  animation: slideIn 1s 0.5s forwards; 
}

.services .header p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  animation: slideIn 1s 0.7s forwards; 
}

/* Slide-in Animation */
@keyframes slideIn {
  from {
    transform: translateX(-50px);
  }
  to {
    transform: translateX(0);
  }
}

/* Categories Container: Flexbox */
.categories {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

/* Service Category Item */
.categories div {
  flex: 1 1 30%;
  max-width: 300px; 
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

/* Hover effect for service items */
.categories div:hover {
  transform: translateY(-10px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.categories div i {
  font-size: 3rem;
  color: #34495e;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

/* Hover effect on icons */
.categories div:hover i {
  transform: rotate(15deg);
}

.categories div h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

/* Change color on hover */
.categories div:hover h4 {
  color: #2c3e50;
}

.categories div p {
  font-size: 1rem;
  color: #555;
  transition: color 0.3s ease;
}

/* Change paragraph color on hover */
.categories div:hover p {
  color: #34495e; 
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .categories {
      justify-content: center;
  }

  .categories div {
      flex: 1 1 100%;
      max-width: 100%;
      margin-bottom: 20px; 
  }
}

@media screen and (max-width: 480px) {
  .services .header h3 {
      font-size: 1.5rem;
  }

  .services .header p {
      font-size: 1.5rem;
  }

  .categories div p {
    font-size: 1.2rem;}
}
/* Cards Section */
/* Title Styling */
#center {
  margin: 0 auto;
  text-align: center;
  font-size: 2rem; 
  font-weight: bold;
  color: #333;
  padding: 20px 0; 
}
/* Responsive Design for Title */
@media screen and (max-width: 768px) {
  #center {
      font-size: 1.8rem;
  }
}
@media screen and (max-width: 480px) {
  #center {
      font-size: 1.5rem; 
      padding: 15px 0;  
  }
}

.cards {
  padding: 5px 20px;
  text-align: center;
}

/* Category Header */
.card-category{
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Card Container (Flexbox Layout) */
.card-category {
  display: flex;
  margin-bottom: 40px;
  justify-content: space-evenly;
  flex-wrap: wrap; 
  gap: 20px; 
}

/* Card Styling */
.card {
  width: 100%;
  max-width: 300px; 
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Image */
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Card Text */
.card h4 {
  font-size: 1.2rem;
  margin: 15px 0;
  color: #333;
}

.card p {
  font-size: 1rem;
  color: #777;
}

/* Card Button */
.card button {
  background-color: #34495e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.card button:hover {
  background-color: #446280;
}

/* Card Hover Effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .card-category {
      justify-content: center;
      gap: 10px;
  }

  .card {
      flex: 1 1 45%;  
      max-width: 45%;
  }
}

@media screen and (max-width: 480px) {
  .card-category {
      justify-content: center;
  }

  .card {
      flex: 1 1 100%; 
      max-width: 100%;
  }

  .card h4 {
      font-size: 1rem;
  }

  .card p {
      font-size: 0.9rem;
  }

  .card button {
      padding: 8px 16px;
      font-size: 0.9rem;
  }
}

/* General Styles for Central Hospital Section */
.slider-wrapper2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
}

.slider-content-body2 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; 
}

.part2 {
  flex: 1 1 45%;  
  min-width: 250px;
  padding: 20px;
}

.slider-header2 h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.slider-body2 p {
  font-size: 16px;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 20px;
}

.slider-body2 button {
  padding: 12px 20px;
  background-color: #34495e;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.slider-body2 button:hover {
  background-color: #34495e;
}

/* Image Styling */
.responsive-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); 
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
  .slider-wrapper2 {
    flex-direction: column;
    align-items: center;
  }

  .slider-content-body2 {
    flex-direction: column;
    align-items: center;
  }

  .part2 {
    text-align: center;
    margin-bottom: 30px;
  }

  .slider-header2 h2 {
    font-size: 24px;
  }

  

  .slider-body2 button {
    width: 100%;
    font-size: 18px;
  }

  .responsive-image {
    max-width: 90%; 
  }
}

/* Frequently Asked Questions Section */
.question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 50px;
  gap: 20px;
}

/* FAQ Text */
.text {
  flex: 1;
  max-width: 60%;
}

/* FAQ Title and Paragraph */
.text a {
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
  text-decoration: none;
}

.text h2 {
  font-size: 2rem;
  color: #333;
  margin: 20px 0;
}

.text p {
  font-size: 1.1rem;
  color: #666;
}

/* FAQ Question Styling */
.text div {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #777;
}

/* FAQ Questions */
.text p span {
  cursor: pointer;
  color: #34495e;
  font-weight: bold;
  font-size: 25px;
}

/* FAQ Image */
.question img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
}
.answer{
  display: none;
}
/* Styling for hr */
hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #ccc;
}

/* Responsive Design for FAQ Section */
@media screen and (max-width: 768px) {
  .question {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .text {
      max-width: 100%;
  }

  .question img {
      max-width: 80%;
      margin-top: 20px;
  }

  .text h2 {
      font-size: 1.8rem;
  }

  .text p, .text div {
      font-size: 1rem;
  }
}
/* Contact Form Styles */
.contact-form {
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  width: calc(50% - 10px);
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form textarea {
  width: 100%;
  height: 120px;
  resize: none;
}

.contact-form button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #34495e;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #446280;
}
/* Subscribe Section */
.Subscrib {
  background-color: #f5f5f5;
  color: #34495e;
  padding: 50px 20px;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.Subscrib h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.Subscrib form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.Subscrib input[type="email"] {
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  width: 100%;
  max-width: 400px;
}

.Subscrib button {
  padding: 12px 24px;
  background-color: #34495e;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.Subscrib button:hover {
  background-color: #446280;
}

/* Responsive Design for Subscribe Section */
@media screen and (max-width: 768px) {
  .Subscrib form {
      flex-direction: column;
  }

  .Subscrib input[type="email"] {
      width: 80%;
  }

  .Subscrib button {
      width: 80%;
  }

  .Subscrib h2 {
      font-size: 1.6rem;
  }
}

@media screen and (max-width: 480px) {
  .Subscrib h2 {
      font-size: 1.4rem;
  }

  .Subscrib input[type="email"] {
      width: 100%;
  }

  .Subscrib button {
      width: 100%;
      padding: 10px 20px;
  }
}

/* General Footer Styles */
footer {
  background-color: #34495e;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

/* Footer Content Container */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; 
  gap: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  padding-top: 10px;
}

/* Logo Section */
.logo {
  flex: 1;
  min-width: 200px;
}

.logo a h3 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 10px;
}

.logo a{
  text-decoration: none; 
}

.logo p {
  font-size: 14px;
  color: #bdc3c7;
  line-height: 1.6;
}

/* Footer Navigation */
.footer-nav {
  flex: 1;
  min-width: 200px;
}

.footer-nav ul {
  list-style-type: none;
  padding: 0;
}

.footer-nav ul li {
  margin-bottom: 15px;
}

.footer-nav ul li a {
  text-decoration: none;
  color: #bdc3c7;
  font-size: 16px;
}

.footer-nav ul li a:hover {
  color: #ecf0f1; 
}

/* Social Media Section */
.social-media {
  flex: 1;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  min-width: 200px;
  justify-content: flex-end;
  gap: 15px;
  margin-right: 30px;
  margin-top: 20px;
}

.social-icon {
  color: #bdc3c7;
  font-size: 18px;
  text-decoration: none;
}

.social-icon:hover {
  color: #ecf0f1;
}

/* Footer Bottom Section */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 15px;
}

.footer-bottom p {
  font-size: 14px;
  color: #bdc3c7;
  margin: 0;
}
.social-media .social-icon {
  font-size: 15px;
}


/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav ul {
    padding: 0;
  }

  .social-media {
    justify-content: center;
  }
}

