/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s;
}

.header-scrolled {
  background: #e00d0d;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 60px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.header-scrolled .logo img {
  filter: brightness(0) invert(1); /* Remains white */
}

.page-header{
  width: 100%;
  text-align: center;
  margin-top: 20px;
  color: #e00d0d;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s;
}


.header-scrolled nav a {
  color: white;
}
nav a:hover {
  
  color: rgb(234, 238, 111);
  
}

.header-scrolled nav a:hover  {
  color: rgb(45, 41, 41);
}
/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 51, 51, 0.5); /* semi-transparent gray */
  z-index: 1;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: flex;
  animation: slideShow 20s infinite ease-in-out;
}

.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  animation: fadeInOut 20s infinite;
}

.slideshow img:nth-child(1) { animation-delay: 0s; }
.slideshow img:nth-child(2) { animation-delay: 5s; }
.slideshow img:nth-child(3) { animation-delay: 10s; }
.slideshow img:nth-child(4) { animation-delay: 15s; }

@keyframes fadeInOut {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-content {
   position: relative;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2; /* newly added */
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: red;
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: darkred;
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background: #f9f9f9;
}

.about-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: #555;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Specialties Section */
.section {
  padding: 4rem 0;
  background: #fff;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #f1f1f1;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 2rem;
  color: red;
  margin-bottom: 1rem;
}

/* Footer */
/* footer {
  background: #222;
  color: #ccc;
  padding: 3rem 0;
} */
 /* ========== Redesigned Fancy Footer ========== */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #aaa;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-contact p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
}

.footer-social a {
  color: #ccc;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #e00d0d;
}

footer .copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #777;
}


/* .footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
} */

.footer-column ul li a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  margin-top: 2rem;
  font-size: 0.9rem;
}


/*departments*/
.departments-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.department {
  margin-bottom: 50px;
}

.department h2 {
  border-left: 6px solid #c0392b;
  padding-left: 15px;
  margin-bottom: 20px;
  font-size: 24px;
  color: #2c3e50;
}

.doctor-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.doctor-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.doctor-card h3 {
  margin: 0;
  font-size: 20px;
  color: #c0392b;
}

.doctor-card p {
  margin: 5px 0;
  color: #333;
}

/* ========== Facilities Section ========== */
.facilities-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.facility {
  margin-bottom: 50px;
}

.facility h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 15px;
  border-left: 6px solid #2980b9;
  padding-left: 15px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.gallery img {
  width: calc(33.333% - 10px);
  min-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .doctor-card,
  .gallery {
    flex-direction: column;
  }

  .gallery img {
    width: 100%;
  }
}

/* ========== Force Red Header for Inner Pages ========== */
/* ========== Redesigned Static Inner Menu ========== */
.inner-static-header {
  position: relative;
  width: 100%;
  background: #e00d0d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.inner-static-header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

.inner-static-header .logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}

.inner-static-header nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.inner-static-header nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s;
}

.inner-static-header nav a:hover {
  color: rgb(234, 238, 111);
}
/* ========== Responsive Menu Toggle ========== */
/* ========== Off-Canvas Mobile Menu ========== */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}


@media (max-width: 768px) {
  
  .inner-static-header .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1101;
  }

  

  
.inner-static-header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background: white;
    padding: 2rem 1rem;
    transition: right 0.4s ease-in-out;
    z-index: 1100;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .inner-static-header nav.active {
    right: 0;
  }
  .inner-static-header nav ul {
    flex-direction: column;
    display: flex;
    gap: 1rem;
  }

  .inner-static-header nav a { 
    color: black;
    font-size: 1.1rem;
    font-weight: bold;
  }
  .footer-wrapper {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}.footer-links {
  text-align: center;
  width: 100%;
}

.footer-links ul {
  padding-left: 0;
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}


}
