/* Premium Homeopathy Hospital Theme - Non-Destructive Layer */
/* Applies modern aesthetics to existing HTML structural classes */

:root {
  --hospital-primary: #21cdc0;
  --hospital-secondary: #213360;
  --hospital-dark: #0e204d;
  --hospital-light: #f4f9f9;
}

/* 1. Hero / Slider Features (The 4 Core Departments glass-cards) */
.slider-layout1 .feature-item {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(33, 51, 96, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  padding: 15px 10px;
  margin: 10px;
}
.slider-layout1 .feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(33, 51, 96, 0.25);
  background: #fff !important;
}
.slider-layout1 .feature__title {
  color: var(--hospital-secondary) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  margin-top: 10px;
}

/* 2. Contact Box Gradient Upgrade */
.contact-box {
  background: linear-gradient(135deg, var(--hospital-secondary) 0%, #304a8c 100%) !important;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(33,51,96,0.2) !important;
  transition: transform 0.3s ease;
  margin-top: 20px;
  border: none !important;
}
.contact-box:hover {
  transform: translateY(-5px);
}
.contact-box i {
  color: var(--hospital-primary) !important;
}
.contact-box h2, .contact-box p, .contact-box a {
  color: #fff !important;
}
.contact-box .btn {
  background: #fff !important;
  color: var(--hospital-secondary) !important;
  border-radius: 30px;
}

/* 3. About Section Modernization */
.about-layout2 .heading__title {
  color: var(--hospital-dark);
  font-weight: 800;
  line-height: 1.3;
}
.about-layout2 .about__Text p {
  font-size: 16px;
  line-height: 1.8;
}
.about-layout2 .about__Img img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* 4. Services Layout 1 (Applying modern cards to all 15 services) */
.services-layout1 {
  background-color: var(--hospital-light) !important;
  padding-top: 80px;
  padding-bottom: 80px;
}
.services-layout1 .service-item {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  padding: 30px 25px;
  transition: all 0.4s ease;
  border-top: 4px solid var(--hospital-primary);
  margin: 15px 10px;
  min-height: 400px; /* Aligns dynamic lists cleanly */
}
.services-layout1 .service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}
.services-layout1 .service__title {
  color: var(--hospital-secondary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
}
.services-layout1 .service__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}
.services-layout1 .list-items li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: #444;
}
.services-layout1 .list-items li::before {
  content: '✓';
  color: var(--hospital-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* 5. Team Section Modernization */
.doctorView {
  padding-top: 60px;
  background-color: #fff;
}
.member {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin: 15px 10px;
  transition: transform 0.3s ease;
}
.member:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.member__info {
  padding: 30px 25px;
}
.member__name a {
  color: var(--hospital-secondary);
  font-weight: 700;
}
.member__job {
  color: var(--hospital-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

/* 6. General Feature Items (Middle Content) */
.features-layout1 .feature-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  padding: 25px;
  margin: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 250px;
}
.features-layout1 .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.features-layout1 .feature__title {
  color: var(--hospital-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

/* 7. Gallery Section */
.gallery .popup-gallery-item img {
  border-radius: 12px;
  transition: transform 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gallery .popup-gallery-item:hover img {
  transform: scale(1.05);
}


/* ------------------------------------------- */
/* NEW SLIDER & CONTACT CARDS LATEST THEME CSS */
/* ------------------------------------------- */

/* Modern Hero Styles */
.modern-hero-section {
  position: relative;
}
.modern-hero-carousel .slick-track {
  display: flex !important;
}
.hero-slide-item {
  height: 70vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex !important;
  align-items: center;
}
.hero-headline {
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
  text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.hero-subheadline {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}
.btn-hero-primary {
  display: inline-block;
  background: var(--hospital-primary);
  color: var(--hospital-dark) !important;
  padding: 16px 35px;
  border-radius: 5px;
  font-weight: 700;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
  box-shadow: 0 10px 20px rgba(33,205,192,0.3);
}
.btn-hero-primary:hover {
  background: #fff;
  color: var(--hospital-secondary) !important;
  transform: translateY(-2px);
}
.btn-hero-outline {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 14px 35px;
  border-radius: 5px;
  border: 2px solid #fff;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-left: 15px;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}
.btn-hero-outline:hover {
  background: #fff;
  color: var(--hospital-secondary) !important;
}

/* Department Mini Cards */
.dept-premium-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  padding: 20px 15px;
  text-align: left;
  transition: transform 0.3s ease;
  border-bottom: 4px solid var(--hospital-primary);
  display: flex !important;
  align-items: center;
  gap: 15px;
  min-height: 100px;
}
.dept-premium-card:hover {
  transform: translateY(-5px);
  background: #fff;
}
.dept-premium-card img {
  height: 45px;
  width: auto;
}
.dept-premium-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hospital-secondary);
  margin: 0;
  line-height: 1.3;
}

/* Info Cards */
.contact-info-modern .info-card-wrapper {
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-radius: 12px;
  margin-top: 0px;
}
.info-card {
  padding: 40px 30px; word-break: break-word; min-height: 360px; display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  transition: all 0.3s ease;
}
.info-card-primary {
  background: var(--hospital-primary);
  color: var(--hospital-dark);
}
.info-card-secondary {
  background: var(--hospital-secondary);
  color: #fff;
}
.info-card-white {
  background: #fff;
  border: 1px solid #eee;
}
.info-icon {
  font-size: 2.5rem;
  margin-bottom: 25px;
  display: inline-block;
}
.info-card-primary .info-icon {
  color: var(--hospital-dark);
}
.info-card-secondary .info-icon {
  color: var(--hospital-primary);
}
.info-card-title {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.info-card-primary .info-card-title {
  color: var(--hospital-dark);
}
.info-card-secondary .info-card-title {
  color: #fff;
}
.info-card p {
  font-size: 1.05rem;
  line-height: 1.6;
}
.info-card-primary p { color: rgba(14,32,77,0.85); }
.info-card-secondary p { color: rgba(255,255,255,0.85); }

.info-link {
  font-weight: 700;
  text-decoration: underline;
  margin-top: 15px;
  display: inline-block;
  color: #fff !important;
}
.info-link:hover {
  color: var(--hospital-primary) !important;
}
.info-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  color: #555;
  font-weight: 500;
}
.info-list li:last-child {
  border-bottom: none;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 991px) {
  .hero-headline { font-size: 2.5rem; }
  .dept-premium-card { margin-bottom: 15px; }
  .info-card { border-radius: 0 !important; margin-bottom: 0px; }
  .info-card-wrapper { flex-direction: column; }
}



/* ------------------------------------------- */
/* NEW BOTTOM SECTIONS LATEST THEME CSS        */
/* ------------------------------------------- */

/* About Premium Section */
.about-premium { background: var(--hospital-light); }
.about-image-wrapper { position: relative; }
.about-main-img { border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); width: 100%; border: 5px solid #fff; }
.experience-badge { position: absolute; bottom: -10px; right: -20px; border-radius: 15px; padding: 25px; box-shadow: 0 15px 30px rgba(33,205,192,0.3); z-index: 10; text-align: center; }
.experience-badge .years { font-size: 2.5rem; font-weight: 800; display: block; line-height: 1; }
.experience-badge .text { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Values Premium Section */
.value-card { background: #fff; padding: 30px 20px; border-radius: 12px; height: 100%; box-shadow: 0 15px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease; border-top: 3px solid var(--hospital-primary); }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* Doctors Section */
.doctors-premium { background: #fff; }
.doctor-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.06); transition: all 0.3s ease; height: 100%; display: flex; flex-direction: column; border: 1px solid #f0f0f0; }
.doctor-card:hover { transform: translateY(-10px); box-shadow: 0 20px 45px rgba(0,0,0,0.1); }
.doc-img { position: relative; overflow: hidden; }
.doc-img img { transition: transform 0.5s ease; }
.doctor-card:hover .doc-img img { transform: scale(1.05); }
.doc-socials { position: absolute; bottom: -60px; left: 0; right: 0; background: rgba(14,32,77,0.9); display: flex; justify-content: center; padding: 15px 0; transition: all 0.3s ease; }
.doctor-card:hover .doc-socials { bottom: 0; }
.doc-socials a { color: #fff; margin: 0 10px; font-size: 1.2rem; transition: color 0.3s ease; }
.doc-socials a:hover { color: var(--hospital-primary); text-decoration: none; }
.doc-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.doc-info a { transition: color 0.3s ease; text-decoration: none !important;}
.doc-info a:hover { color: var(--hospital-primary) !important; }

/* Services Masonry Grid */
.services-masonry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.service-masonry-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 30px 25px; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.service-masonry-card:hover { background: #fff; color: var(--hospital-dark); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.service-masonry-card h4 { color: var(--hospital-primary); font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; line-height: 1.3; transition: color 0.3s ease;}
.service-masonry-card:hover h4 { color: var(--hospital-secondary); }
.service-masonry-card p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 15px; line-height: 1.5; color: inherit; transition: color 0.3s ease; }
.service-masonry-card:hover p { color: #555; }
.service-masonry-card ul { list-style: none; padding: 0; margin: 0; }
.service-masonry-card ul li { position: relative; padding-left: 20px; font-size: 0.9rem; margin-bottom: 8px; font-weight: 600; color: inherit; transition: color 0.3s ease;}
.service-masonry-card:hover ul li { color: #333; }
.service-masonry-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--hospital-primary); font-weight: bold; }

/* Modern Gallery Strip */
.gallery-premium .gallery-item { display: block; overflow: hidden; position: relative;}
.gallery-premium .gallery-item img { transition: transform 0.5s ease; filter: grayscale(20%); }
.gallery-premium .gallery-item:hover img { transform: scale(1.1); filter: grayscale(0%); }

@media(max-width: 991px) {
  .experience-badge { right: 10px; bottom: -20px; }
  .doctors-premium .section-title h2, .services-premium .section-title h2 { font-size: 2rem !important; }
}



/* Interactive About Section Additions */
.interactive-img { overflow: hidden; border-radius: 20px; cursor: pointer; position: relative; }
.interactive-img .about-main-img { transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; border: 5px solid #fff; box-sizing: border-box; }
.interactive-img:hover .about-main-img { transform: scale(1.08); border-color: transparent; }

.interactive-badge { transition: transform 0.5s ease, box-shadow 0.5s ease; }
.interactive-img:hover .interactive-badge { transform: translateY(-15px) scale(1.05); box-shadow: 0 25px 40px rgba(33,205,192,0.4); }

.interactive-feature { cursor: pointer; }
.interactive-feature:hover { transform: translateX(15px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); background: #fff !important; border-color: var(--hospital-primary) !important; }
.interactive-feature:hover .interactive-icon { transform: scale(1.2); color: var(--hospital-secondary) !important; }

.interactive-quote { cursor: pointer; }
.interactive-quote:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); background: #fff !important; }



/* History Card Interactive Grid */
.premium-history-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  height: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-top: 4px solid var(--hospital-primary);
}
.premium-history-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(33,51,96,0.15);
}
.history-year {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--hospital-primary);
  margin-bottom: 15px;
}
.history-desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* History Card Interactive Grid */
.premium-history-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  height: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-top: 4px solid var(--hospital-primary);
}
.premium-history-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(33,51,96,0.15);
}
.history-year {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--hospital-primary);
  margin-bottom: 15px;
}
.history-desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* History Card Interactive Grid */
.premium-history-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  height: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-top: 4px solid var(--hospital-primary);
  display: flex;
  flex-direction: column;
}
.premium-history-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(33,51,96,0.15);
}
.history-year {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--hospital-primary);
  margin-bottom: 15px;
}
.history-desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* Force eliminate any space underneath the footer */
html, body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.footer-secondary, .footer-premium {
  margin-bottom: 0 !important;
}


/* Fix Slick-Carousel pushing body height past the footer */
.slick-slider { margin-bottom: 0 !important; }
.slick-dots {
  bottom: 0px !important;
}
.team-layout2 { padding-bottom: 30px !important; }


/* Nuclear failsafe to paint any stray bottom viewport space with Footer Navy */
.footer-secondary {
  box-shadow: 0 1000px 0 0 #172445;
  margin-bottom: 0 !important;
}
.footer-premium {
  margin-bottom: 0 !important;
}

/* Force container containment */
.team-layout2 { overflow: hidden; margin-bottom: 0 !important; }

.slick-carousel { margin-bottom: 0 !important; }

/* 9. Premium Media Room (Filterable Gallery) */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
  list-style: none;
  padding: 0;
}
.gallery-filter-btn {
  padding: 10px 25px;
  border-radius: 30px;
  background: #fff;
  color: var(--hospital-secondary);
  font-weight: 700;
  border: 2px solid #eee;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}
.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--hospital-primary);
  border-color: var(--hospital-primary);
  color: var(--hospital-dark);
  box-shadow: 0 5px 15px rgba(33, 205, 192, 0.3);
}

.gallery-masonry-wrapper {
  column-count: 3;
  column-gap: 20px;
}
.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}
.gallery-masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.gallery-masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-masonry-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 32, 77, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-masonry-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay i {
  color: #fff;
  font-size: 1.5rem;
  background: var(--hospital-primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Filtering visibility classes */
.gallery-hide {
  display: none !important;
}

@media (max-width: 991px) {
  .gallery-masonry-wrapper { column-count: 2; }
}
@media (max-width: 575px) {
  .gallery-masonry-wrapper { column-count: 1; }
}


/* 8. Premium Feature Card (Service Highlights) */
.premium-feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.premium-feature-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--hospital-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.premium-feature-card:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 40px rgba(33, 205, 192, 0.15);
  border-color: var(--hospital-primary);
}
.premium-feature-card:hover:before {
  opacity: 1;
}
.premium-feature-card .icon-box {
  flex-shrink: 0;
  transition: transform 0.4s ease;
}
.premium-feature-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}
.premium-feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hospital-secondary);
  line-height: 1.4;
  margin: 0;
}
