/* Simple site-wide dark mode (invert filter). Toggle UI is re-inverted so it looks normal. */
html.sriram-dark-theme {
  /* Slightly lower brightness/saturation so inverted greens are less mint/neon */
  filter: invert(1) hue-rotate(180deg) brightness(0.9) saturate(0.72);
}

/*
 * Cancel parent invert on selected green blocks, then set explicit dark colors.
 * (Child filter: invert + hue-rotate = back to normal rendering for that subtree.)
 */
html.sriram-dark-theme .latest-news,
html.sriram-dark-theme .header__top1,
html.sriram-dark-theme .footer1,
html.sriram-dark-theme .why_choose_us1,
html.sriram-dark-theme .header__whatsapp-btn,
html.sriram-dark-theme .hospital-news-card__badge,
html.sriram-dark-theme .hospital-news-detail__badge {
  filter: invert(1) hue-rotate(180deg);
}

/* Home news ticker bar */
html.sriram-dark-theme .latest-news {
  background: #121f1b !important;
}

html.sriram-dark-theme .latest-news .ticker-wrapper-h .heading {
  background-color: #1a3229 !important;
  color: #e8f0ec !important;
}

html.sriram-dark-theme .latest-news .ticker-wrapper-h .heading:after {
  border-left-color: #1a3229 !important;
}

html.sriram-dark-theme .latest-news .news-ticker-h li a {
  color: #e8f0ec !important;
}

html.sriram-dark-theme .latest-news .news-ticker-h li a.text-danger {
  color: #e8d97a !important;
}

/* Header top bar */
html.sriram-dark-theme .header__top1 {
  background-color: #152a23 !important;
}

html.sriram-dark-theme .header__top1--left span {
  color: #e8f0ec !important;
}

html.sriram-dark-theme .header__top1 .top-bar-badge {
  background-color: #1e342c !important;
  color: #d8ebe2 !important;
}

html.sriram-dark-theme .header__top1 .top-bar-badge-sep {
  color: rgba(232, 240, 236, 0.75) !important;
}

html.sriram-dark-theme .header__top1--email a {
  background: transparent !important;
  color: #e8f0ec !important;
}

html.sriram-dark-theme .header__top1--email a i,
html.sriram-dark-theme .header__top1--email a span {
  color: #e8f0ec !important;
}

html.sriram-dark-theme .header__top1--email a:hover,
html.sriram-dark-theme .header__top1--email a:hover i,
html.sriram-dark-theme .header__top1--email a:hover span {
  color: #ffffff !important;
}

/* Footer */
html.sriram-dark-theme .footer1 {
  background: #121f1b !important;
}

html.sriram-dark-theme .footer1__top {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html.sriram-dark-theme .footer1__bottom {
  background: #1a3229 !important;
}

html.sriram-dark-theme .footer1__visiting-full,
html.sriram-dark-theme .footer1__seo {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html.sriram-dark-theme .footer1__item--logo a {
  background-color: transparent !important;
  border: none;
}

/*
 * Header logo: white matte in PNG — multiply blends into the menu bar (dark theme).
 */
html.sriram-dark-theme .header__logo img {
  mix-blend-mode: multiply;
}

html.sriram-dark-theme .header__logo {
  background-color: transparent;
}

/* Footer is already re-inverted via .footer1; drop global img filter/blend on logo only */
html.sriram-dark-theme .footer1__item--logo img {
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Why Us? / feature carousel cards */
html.sriram-dark-theme .why_choose_us1 {
  background: #121f1b !important;
}

html.sriram-dark-theme .why_choose_us1 .title2 h2,
html.sriram-dark-theme .why_choose_us1 .title2 h4,
html.sriram-dark-theme .why_choose_us1 .title2 p,
html.sriram-dark-theme .why_choose_us1 > h3 {
  color: #e8f0ec !important;
}

html.sriram-dark-theme .why_choose_us1 .feature1 {
  background: #121f1b !important;
}

html.sriram-dark-theme .why_choose_us1 .feature1__item.feature1__bg-01 {
  background: #1e342c !important;
}

html.sriram-dark-theme .why_choose_us1 .feature1__item.feature1__bg-02 {
  background: #243a32 !important;
}

html.sriram-dark-theme .why_choose_us1 .feature1__item h4 {
  color: #e8f0ec !important;
}

html.sriram-dark-theme .why_choose_us1 .feature1__thumb i:before {
  color: #f06b8a !important;
}

html.sriram-dark-theme .header__whatsapp-btn {
  background-color: #1a4d38 !important;
}

html.sriram-dark-theme .header__whatsapp-btn i {
  background: #163d2d !important;
  color: #b8e0c8 !important;
}

html.sriram-dark-theme .header__whatsapp-btn::before {
  border-color: #2a6b52 !important;
}

html.sriram-dark-theme .hospital-news-card__badge,
html.sriram-dark-theme .hospital-news-detail__badge {
  background: #152a23 !important;
  color: #d0e4da !important;
}

html.sriram-dark-theme .header.home3 .main-menu > nav > ul > li.active a,
html.sriram-dark-theme .header.home3 .main-menu > nav > ul > li:hover > a,
html.sriram-dark-theme .header.home3 .main-menu > nav > ul > li > a:focus {
  filter: invert(1) hue-rotate(180deg);
  color: #8fb9a6 !important;
}

html.sriram-dark-theme img,
html.sriram-dark-theme video,
html.sriram-dark-theme picture,
html.sriram-dark-theme iframe,
html.sriram-dark-theme .sriram-theme-toggle,
html.sriram-dark-theme .sriram-theme-toggle * {
  filter: invert(1) hue-rotate(180deg);
}

html.sriram-dark-theme .sriram-theme-toggle {
  background: #152a23 !important;
}

html.sriram-dark-theme .sriram-theme-toggle:hover {
  background: #0e3340 !important;
}

.sriram-theme-toggle {
  position: fixed;
  bottom: 50px;
  left: 35px;
  z-index: 100001;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: #226643;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.25s ease, transform 0.2s ease;
}

.sriram-theme-toggle:hover {
  background: #0e3340;
  transform: translateY(-2px);
}

.sriram-theme-toggle:focus {
  outline: 2px solid #e12454;
  outline-offset: 2px;
}

.sriram-theme-icon--light {
  display: none;
}

html.sriram-dark-theme .sriram-theme-icon--dark {
  display: none;
}

html.sriram-dark-theme .sriram-theme-icon--light {
  display: inline-block;
}

@media only screen and (max-width: 1199px) {
  .sriram-theme-toggle {
    bottom: 30px;
    left: 30px;
  }
}

@media only screen and (max-width: 767px) {
  .sriram-theme-toggle {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
