/* =====================================
   About Page Variables
===================================== */

:root {
  --about-blue: #004ec4;
  --about-blue-dark: #003e9d;
  --about-light-blue: #4d93e9;
  --about-text: #232323;
  --about-paragraph: #4a6f8a;
  --about-background: #f7faff;
  --about-white: #ffffff;
  --about-shadow: 0 12px 35px rgba(30, 75, 120, 0.12);
}

/* =====================================
   About Page Base
===================================== */

body {
  background-color: var(--about-white);
  color: var(--about-text);
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.active-page {
  color: var(--about-blue) !important;
}

.mobile-active-page {
  color: var(--about-blue) !important;
  font-weight: 700 !important;
}

/* =====================================
   Shared Section Heading
===================================== */

.section-heading {
  margin-bottom: 38px;
}

.section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--about-blue);
  font-size: 16px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  color: var(--about-text);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 700;
}

/* =====================================
   About Banner
===================================== */

.about-banner {
  min-height: 510px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-image: url("../images/Services.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.about-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 64, 190, 0.3),
    rgba(0, 91, 205, 0.2)
  );
  transition: background 0.35s ease;
}

.about-banner-content {
  position: relative;
  z-index: 1;
  padding: 35px 20px;
  color: #ffffff;
  text-align: center;
}

.about-banner-content h1 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.1;
  font-weight: 800;
}

.breadcrumb {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background-color: transparent;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
}

.breadcrumb a,
.breadcrumb span,
.breadcrumb i {
  color: #ffffff;
}

.breadcrumb a {
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.85;
}

/* =====================================
   About Our Hospital
===================================== */

.hospital-about {
  padding: 110px 0;
  overflow: hidden;
  background-color: var(--about-white);
  transition: background-color 0.35s ease;
}

.hospital-image-wrapper {
  position: relative;
  z-index: 1;
  overflow: visible;
  border-radius: 14px;
}

/* Top-left animated corner */

.hospital-image-wrapper::before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 0;
  border-top: 6px solid var(--about-blue);
  border-left: 6px solid var(--about-blue);
  border-radius: 14px 0 0 0;
  opacity: 0;
  pointer-events: none;
  transition:
    width 0.55s ease,
    height 0.55s ease,
    opacity 0.25s ease;
}

/* Bottom-right animated corner */

.hospital-image-wrapper::after {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  right: -12px;
  bottom: -12px;
  z-index: 0;
  border-right: 6px solid var(--about-blue);
  border-bottom: 6px solid var(--about-blue);
  border-radius: 0 0 14px 0;
  opacity: 0;
  pointer-events: none;
  transition:
    width 0.55s ease,
    height 0.55s ease,
    opacity 0.25s ease;
}

.hospital-main-image {
  width: 100%;
  min-height: 570px;
  position: relative;
  z-index: 1;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--about-shadow);
  transition:
    transform 0.55s ease,
    filter 0.55s ease,
    box-shadow 0.55s ease;
}

.hospital-image-wrapper:hover::before,
.hospital-image-wrapper:hover::after {
  width: 68%;
  height: 58%;
  opacity: 1;
}

.hospital-image-wrapper:hover .hospital-main-image {
  transform: translate(8px, 8px);
  filter: brightness(1.04);
  box-shadow: 0 22px 45px rgba(0, 78, 196, 0.2);
}

.hospital-about-content {
  min-height: 520px;
  position: relative;
  padding: 45px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

.hospital-about-content p {
  max-width: 670px;
  margin-bottom: 28px;
  color: var(--about-paragraph);
  font-size: 17px;
  line-height: 1.8;
}

.about-steps {
  margin: 0 0 36px;
  padding: 0;
}

.about-steps li {
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--about-text);
  font-size: 19px;
  font-weight: 500;
}

.about-steps i {
  color: var(--about-blue);
  font-size: 23px;
}

.primary-button {
  min-width: 195px;
  padding: 18px 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--about-blue);
  border-radius: 6px;
  background-color: var(--about-blue);
  color: #ffffff;
  font-weight: 600;
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.primary-button:hover {
  background-color: #ffffff;
  color: var(--about-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 78, 196, 0.22);
}

/* =====================================
   Statistics
===================================== */

.hospital-statistics {
  position: relative;
  padding: 65px 0;
  overflow: hidden;
  background-image: url("../../images/DNA.png");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
}

.statistics-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.88);
  transition: background-color 0.35s ease;
}

.statistics-container {
  position: relative;
  z-index: 1;
}

.statistic-item {
  min-height: 195px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 12px;
  text-align: center;
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.statistic-item:hover {
  background-color: #ffffff;
  transform: translateY(-8px);
  box-shadow: var(--about-shadow);
}

.statistic-item > i {
  margin-bottom: 17px;
  color: var(--about-blue);
  font-size: 47px;
}

.statistic-item strong {
  margin-bottom: 8px;
  color: var(--about-blue);
  font-size: 46px;
  line-height: 1;
  font-weight: 700;
}

.statistic-item > span {
  color: var(--about-paragraph);
  font-size: 18px;
  font-weight: 600;
}

/* =====================================
   Our Expertise
===================================== */

.about-expertise {
  padding: 110px 0;
  background-color: var(--about-white);
  transition: background-color 0.35s ease;
}

.expertise-content {
  max-width: 920px;
  margin-left: auto;
  padding: 0 35px 0 70px;
}

.expertise-card {
  min-height: 230px;
  padding: 40px;
  position: relative;
  border: 1px solid transparent;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: var(--about-shadow);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background-color 0.35s ease;
}

.expertise-card:hover {
  border-color: rgba(0, 78, 196, 0.25);
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(30, 75, 120, 0.18);
}

.expertise-check {
  width: 45px;
  height: 45px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #edf4ff;
  color: var(--about-light-blue);
  box-shadow: 0 0 0 8px #f4f8ff;
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.expertise-card:hover .expertise-check {
  background-color: var(--about-blue);
  color: #ffffff;
  box-shadow: 0 0 0 8px rgba(0, 78, 196, 0.13);
  transform: rotate(360deg);
}

.expertise-card h3 {
  margin-bottom: 14px;
  color: var(--about-text);
  font-size: 23px;
  font-weight: 700;
}

.expertise-card p {
  margin: 0;
  color: var(--about-paragraph);
  font-size: 16px;
  line-height: 1.75;
}

.expertise-image-wrapper {
  min-height: 735px;
  position: relative;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
}

.expertise-image-wrapper > img {
  width: 100%;
  height: 735px;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition:
    transform 0.65s ease,
    filter 0.65s ease;
}

.expertise-image-wrapper:hover > img {
  transform: scale(1.045);
  filter: brightness(1.04);
}

.emergency-call-box {
  min-width: 430px;
  position: absolute;
  left: -80px;
  bottom: 22px;
  padding: 23px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-radius: 10px;
  background-color: var(--about-blue);
  color: #ffffff;
  box-shadow: 0 18px 35px rgba(0, 54, 150, 0.3);
}

.emergency-icon {
  width: 58px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background-color: #ffffff;
  color: var(--about-blue);
  transform: rotate(45deg);
}

.emergency-icon i {
  transform: rotate(-45deg);
}

.emergency-call-box h3 {
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 600;
}

.emergency-call-box a {
  color: #ffffff;
  font-size: 16px;
}

/* =====================================
   Hospital Services
===================================== */

.about-services {
  padding: 110px 0;
  background-color: var(--about-background);
  transition: background-color 0.35s ease;
}

.service-card {
  min-height: 315px;
  position: relative;
  padding: 40px 25px;
  overflow: hidden;
  border: 1px solid transparent;
  border-bottom: 4px solid transparent;
  background-color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(35, 60, 95, 0.08);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background-color 0.35s ease;
}

.service-card::before {
  content: "";
  width: 100%;
  height: 0;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background-color: var(--about-blue);
  transition: height 0.42s ease;
}

.service-card:hover {
  border-color: var(--about-blue-dark);
  transform: translateY(-10px);
  box-shadow: 0 22px 42px rgba(30, 75, 120, 0.18);
}

.service-card:hover::before {
  height: 100%;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card > i {
  margin-bottom: 25px;
  display: inline-block;
  color: var(--about-light-blue);
  font-size: 72px;
  transition:
    color 0.4s ease,
    transform 0.4s ease,
    filter 0.4s ease;
}

.service-card h3 {
  margin-bottom: 17px;
  color: var(--about-text);
  font-size: 23px;
  font-weight: 700;
  transition: color 0.4s ease;
}

.service-card p {
  margin-bottom: 20px;
  color: var(--about-paragraph);
  font-size: 16px;
  line-height: 1.75;
  transition: color 0.4s ease;
}

.service-card > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--about-blue);
  font-weight: 600;
  opacity: 0;
  transform: translateY(15px);
  transition:
    color 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

.service-card:hover > i {
  color: #ffffff;
  transform: scale(1.08) rotateY(360deg);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover > a {
  color: #ffffff;
}

.service-card:hover > a {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   Testimonials
===================================== */

.patient-testimonials {
  min-height: 780px;
  position: relative;
  padding: 100px 0;
  display: flex;
  align-items: center;
  background-image: url("../images/testimonial-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.testimonial-background-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(19, 100, 211, 0.62);
  transition: background-color 0.35s ease;
}

.patient-testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonial-box {
  max-width: 980px;
  min-height: 600px;
  margin: auto;
  padding: 65px 80px;
  border-radius: 15px;
  background-color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 35, 100, 0.2);
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.testimonial-box h2 {
  margin-bottom: 50px;
  color: var(--about-text);
  font-size: clamp(34px, 4vw, 47px);
  font-weight: 700;
}

.testimonial-content {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.testimonial-content.changing {
  opacity: 0;
  transform: translateY(10px);
}

.testimonial-content img {
  width: 110px;
  height: 110px;
  margin-bottom: 25px;
  border: 5px solid #eef4ff;
  border-radius: 50%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease,
    box-shadow 0.4s ease;
}

.testimonial-content img:hover {
  transform: scale(1.09);
  box-shadow: 0 12px 25px rgba(0, 78, 196, 0.24);
}

.testimonial-content h3 {
  margin-bottom: 17px;
  color: var(--about-text);
  font-size: 27px;
  font-weight: 700;
}

.testimonial-content p {
  max-width: 720px;
  margin: auto;
  color: var(--about-paragraph);
  font-size: 17px;
  line-height: 1.8;
}

.testimonial-controls {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.testimonial-controls button {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #1f1f1f;
  color: #ffffff;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.testimonial-controls button:hover {
  background-color: var(--about-blue);
  transform: translateY(-4px);
}

/* =====================================
   Latest Blogs
===================================== */

.latest-blogs {
  padding: 110px 0 160px;
  background-color: #f6f9fd;
  transition: background-color 0.35s ease;
}

.blog-card {
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 12px 35px rgba(35, 60, 95, 0.1);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.35s ease,
    border-color 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(35, 60, 95, 0.18);
}

.blog-image {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.blog-image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.65s ease,
    filter 0.65s ease;
}

.blog-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 78, 196, 0.64);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-image-overlay a {
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--about-blue);
  font-size: 20px;
  transform: scale(0.5) rotate(-25deg);
  transition:
    transform 0.4s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.blog-image-overlay a:hover {
  background-color: #111111;
  color: #ffffff;
}

.blog-card:hover .blog-image > img {
  transform: scale(1.1);
  filter: brightness(0.88);
}

.blog-card:hover .blog-image-overlay {
  opacity: 1;
}

.blog-card:hover .blog-image-overlay a {
  transform: scale(1) rotate(0);
}

.blog-content {
  padding: 30px;
}

.blog-content h3 {
  min-height: 88px;
  margin-bottom: 18px;
  color: var(--about-text);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
}

.blog-content p {
  min-height: 115px;
  margin-bottom: 25px;
  color: var(--about-paragraph);
  line-height: 1.75;
}

.blog-footer {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #d9e5f6;
}

.blog-footer a,
.blog-footer span {
  color: var(--about-blue);
  font-size: 14px;
  font-weight: 600;
}

.blog-footer a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.blog-footer a:hover {
  color: #111111;
}

/* =====================================
   Footer
===================================== */

.about-footer {
  position: relative;
  padding-top: 1px;
  background-color: var(--about-blue);
  background-image: url("../../images/14.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.newsletter-box {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: -85px;
  margin-bottom: 80px;
  padding: 45px 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  border: 1px solid transparent;
  border-radius: 14px;
  background-color: #ffffff;
  color: var(--about-text);
  box-shadow: 0 16px 45px rgba(0, 45, 120, 0.18);
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.newsletter-text {
  max-width: 560px;
}

.newsletter-text h2 {
  margin-bottom: 12px;
  color: var(--about-text);
  font-size: 36px;
  font-weight: 700;
}

.newsletter-text p {
  margin: 0;
  color: var(--about-paragraph);
  line-height: 1.7;
}

.newsletter-form {
  width: min(520px, 100%);
  padding: 7px;
  display: flex;
  align-items: center;
  border: 1px solid var(--about-blue);
  border-radius: 10px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  padding: 16px 20px;
  border: 0;
  outline: none;
  background-color: transparent;
  color: var(--about-text);
  font-size: 16px;
}

.newsletter-form button {
  padding: 16px 30px;
  border-radius: 8px;
  background-color: var(--about-blue);
  color: #ffffff;
  font-weight: 600;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #111111;
  transform: translateY(-2px);
}

.footer-main {
  padding-bottom: 80px;
}

.footer-column h3 {
  margin-bottom: 30px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

.contact-item {
  margin-bottom: 27px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-item > i {
  width: 48px;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 36px;
  text-align: center;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-item a,
.contact-item p {
  margin: 0;
  color: #ffffff;
  line-height: 1.65;
}

.footer-column ul {
  margin: 0;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 18px;
}

.footer-column ul a {
  color: #ffffff;
  font-weight: 500;
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
}

.footer-column ul a:hover {
  padding-left: 8px;
  color: #c8ddff;
}

.feedback-form {
  display: flex;
  flex-direction: column;
}

.feedback-form label {
  margin-bottom: 8px;
  color: #ffffff;
}

.feedback-form input,
.feedback-form textarea {
  margin-bottom: 18px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  outline: none;
  background-color: transparent;
  color: #ffffff;
}

.feedback-form textarea {
  min-height: 100px;
  resize: vertical;
}

.feedback-form button {
  width: 145px;
  margin-top: 5px;
  padding: 14px 20px;
  border-radius: 30px;
  background-color: #ffffff;
  color: var(--about-blue);
  font-weight: 700;
  text-align: center;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.feedback-form button:hover {
  background-color: #111111;
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-copyright {
  padding: 25px 15px;
  background-color: #001535;
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  color: #ffffff;
}

/* =====================================
   Floating Controls
===================================== */

.theme-toggle {
  width: 54px;
  height: 30px;
  position: fixed;
  right: 95px;
  bottom: 22px;
  z-index: 9000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--about-blue);
  border-radius: 30px;
  background-color: #ffffff;
  color: #f6a700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.35s ease,
    justify-content 0.35s ease;
}

.theme-toggle i {
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #fff3c8;
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease;
}

.back-to-top {
  width: 58px;
  height: 58px;
  position: fixed;
  right: 28px;
  bottom: 20px;
  z-index: 9000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--about-blue);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 60, 165, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #111111;
}

/* =====================================
   Dark Mode
===================================== */

body.dark-mode {
  --about-text: #f7f9fc;
  --about-paragraph: #bdc9d8;
  --about-background: #1f1f1f;
  --about-white: #1b1b1b;

  background-color: #1b1b1b;
  color: #f7f9fc;
}

/*
  Header and Top Bar dark mode are located
  in home.css to keep all pages identical.
*/

/* Dark Sections */

body.dark-mode .hospital-about,
body.dark-mode .about-expertise {
  background-color: #1b1b1b;
}

body.dark-mode .about-services {
  background-color: #1e1e1e;
}

body.dark-mode .latest-blogs {
  background-color: #232323;
}

/* Dark Text */

body.dark-mode .section-heading h2,
body.dark-mode .hospital-about-content h2,
body.dark-mode .expertise-card h3,
body.dark-mode .service-card h3,
body.dark-mode .blog-content h3,
body.dark-mode .testimonial-box h2,
body.dark-mode .testimonial-content h3,
body.dark-mode .newsletter-text h2 {
  color: #ffffff;
}

body.dark-mode .hospital-about-content p,
body.dark-mode .expertise-card p,
body.dark-mode .service-card p,
body.dark-mode .blog-content p,
body.dark-mode .testimonial-content p,
body.dark-mode .statistic-item > span,
body.dark-mode .newsletter-text p {
  color: #d2d7df;
}

body.dark-mode .about-steps li {
  color: #ffffff;
}

/* Dark Images */

body.dark-mode .hospital-main-image,
body.dark-mode .expertise-image-wrapper > img,
body.dark-mode .blog-image > img,
body.dark-mode .testimonial-content img {
  filter: brightness(0.68) saturate(0.88);
}

body.dark-mode .hospital-image-wrapper:hover .hospital-main-image {
  filter: brightness(0.8) saturate(0.98);
}

body.dark-mode .expertise-image-wrapper:hover > img {
  filter: brightness(0.8) saturate(0.98);
}

body.dark-mode .blog-card:hover .blog-image > img {
  filter: brightness(0.65) saturate(0.9);
}

body.dark-mode .testimonial-content img:hover {
  filter: brightness(0.82) saturate(0.95);
}

/* Dark Banner */

body.dark-mode .about-banner-overlay {
  background: rgba(2, 10, 24, 0.68);
}

/* Dark Testimonial Background */

body.dark-mode .testimonial-background-overlay {
  background-color: rgba(3, 12, 28, 0.78);
}

/* =====================================
   Dark Mode Cards Glow
===================================== */

body.dark-mode .expertise-card,
body.dark-mode .service-card,
body.dark-mode .blog-card {
  border-color: rgba(255, 255, 255, 0.07);
  background-color: #1d1d1d;
  box-shadow:
    0 0 13px rgba(255, 255, 255, 0.22),
    0 0 27px rgba(255, 255, 255, 0.1),
    0 13px 35px rgba(0, 0, 0, 0.5);
}

body.dark-mode .expertise-card:hover,
body.dark-mode .service-card:hover,
body.dark-mode .blog-card:hover {
  border-color: rgba(77, 147, 233, 0.5);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.24),
    0 0 38px rgba(77, 147, 233, 0.3),
    0 20px 45px rgba(0, 0, 0, 0.58);
}

/* Expertise Icon Glow */

body.dark-mode .expertise-check {
  position: relative;
  z-index: 1;
  background-color: #f1f5fb;
  color: var(--about-light-blue);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(255, 255, 255, 0.62),
    0 0 32px rgba(77, 147, 233, 0.38);
}

body.dark-mode .expertise-check::after {
  content: "";
  width: 82px;
  height: 82px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(77, 147, 233, 0.2) 42%,
    rgba(77, 147, 233, 0) 74%
  );
  filter: blur(7px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.dark-mode .expertise-card:hover .expertise-check {
  background-color: var(--about-blue);
  color: #ffffff;
  box-shadow:
    0 0 0 8px rgba(0, 78, 196, 0.16),
    0 0 22px rgba(255, 255, 255, 0.68),
    0 0 40px rgba(77, 147, 233, 0.62);
}

/* Services Icon Glow */

body.dark-mode .service-card > i {
  color: var(--about-light-blue);
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 17px rgba(77, 147, 233, 0.45));
}

body.dark-mode .service-card:hover > i {
  color: #ffffff;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 22px rgba(77, 147, 233, 0.75));
}

body.dark-mode .service-card:hover h3,
body.dark-mode .service-card:hover p,
body.dark-mode .service-card:hover > a {
  color: #ffffff;
}

/* Dark Statistics */

body.dark-mode .statistics-overlay {
  background-color: rgba(26, 26, 26, 0.92);
}

body.dark-mode .statistic-item:hover {
  background-color: #1d1d1d;
  box-shadow:
    0 0 13px rgba(255, 255, 255, 0.18),
    0 0 28px rgba(77, 147, 233, 0.16);
}

/* Dark Primary Button */

body.dark-mode .primary-button {
  border-color: #0b65e5;
  background-color: #0b65e5;
  color: #ffffff;
}

body.dark-mode .primary-button:hover {
  background-color: #ffffff;
  color: #004ec4;
}

/* Dark Testimonial Box */

body.dark-mode .testimonial-box {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background-color: #1d1d1d;
  box-shadow:
    0 0 17px rgba(255, 255, 255, 0.12),
    0 22px 48px rgba(0, 0, 0, 0.52);
}

/* Dark Blogs */

body.dark-mode .blog-footer {
  border-top-color: #545c68;
}

body.dark-mode .blog-footer a,
body.dark-mode .blog-footer span {
  color: #438cf2;
}

body.dark-mode .blog-footer a:hover {
  color: #ffffff;
}

/* Dark Newsletter */

body.dark-mode .newsletter-box {
  border-color: rgba(255, 255, 255, 0.09);
  background-color: #101010;
  color: #ffffff;
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.24),
    0 0 38px rgba(255, 255, 255, 0.09),
    0 20px 48px rgba(0, 0, 0, 0.56);
}

body.dark-mode .newsletter-form {
  border-color: #1875ef;
  background-color: #242424;
}

body.dark-mode .newsletter-form input {
  color: #ffffff;
}

body.dark-mode .newsletter-form input::placeholder {
  color: #838a94;
}

/* Dark Footer */

body.dark-mode .about-footer {
  background-color: #0c0c0c;
  background-image:
    linear-gradient(rgba(5, 10, 20, 0.7), rgba(5, 10, 20, 0.7)),
    url("../../images/14.png");
}

body.dark-mode .footer-copyright {
  background-color: #050b14;
}

/* Dark Theme Toggle */

body.dark-mode .theme-toggle {
  justify-content: flex-start;
  background-color: #182334;
}

body.dark-mode .theme-toggle i {
  background-color: #26364c;
  color: #cae2ff;
  transform: rotate(180deg);
}

/* =====================================
   Responsive
===================================== */

@media (max-width: 1199px) {
  .expertise-content {
    max-width: 100%;
    padding: 0 30px;
  }

  .expertise-image-wrapper {
    margin-left: 30px;
    border-radius: 12px;
  }

  .emergency-call-box {
    left: 20px;
  }

  .newsletter-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .about-banner {
    min-height: 390px;
  }

  .hospital-about {
    padding: 80px 0;
  }

  .hospital-main-image {
    min-height: auto;
  }

  .hospital-about-content {
    min-height: auto;
    padding: 20px 0;
  }

  .about-expertise,
  .about-services,
  .latest-blogs {
    padding: 80px 0;
  }

  .expertise-image-wrapper {
    height: 650px;
    min-height: 650px;
    margin: 0 25px;
  }

  .expertise-image-wrapper > img {
    height: 650px;
  }

  .emergency-call-box {
    min-width: auto;
    right: 20px;
    left: 20px;
  }

  .blog-content h3,
  .blog-content p {
    min-height: auto;
  }

  .newsletter-box {
    margin-top: -65px;
    padding: 40px;
  }
}

@media (max-width: 767px) {
  .about-banner {
    min-height: 320px;
  }

  .about-banner-content h1 {
    margin-bottom: 14px;
  }

  .breadcrumb {
    font-size: 16px;
  }

  .hospital-about {
    padding: 60px 0;
  }

  .hospital-image-wrapper::before {
    top: -7px;
    left: -7px;
    border-top-width: 4px;
    border-left-width: 4px;
  }

  .hospital-image-wrapper::after {
    right: -7px;
    bottom: -7px;
    border-right-width: 4px;
    border-bottom-width: 4px;
  }

  .hospital-image-wrapper:hover::before,
  .hospital-image-wrapper:hover::after {
    width: 60%;
    height: 50%;
  }

  .hospital-image-wrapper:hover .hospital-main-image {
    transform: translate(5px, 5px);
  }

  .hospital-about-content {
    padding: 20px 5px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .about-expertise,
  .about-services,
  .latest-blogs {
    padding: 65px 0;
  }

  .expertise-content {
    padding: 0 15px;
  }

  .expertise-card {
    min-height: auto;
    padding: 30px;
  }

  .expertise-image-wrapper {
    height: 520px;
    min-height: 520px;
    margin: 0 15px;
  }

  .expertise-image-wrapper > img {
    height: 520px;
  }

  .emergency-call-box {
    padding: 18px 20px;
    gap: 18px;
  }

  .emergency-call-box h3 {
    font-size: 20px;
  }

  .emergency-icon {
    width: 48px;
    height: 48px;
  }

  .patient-testimonials {
    min-height: auto;
    padding: 65px 0;
  }

  .testimonial-box {
    min-height: auto;
    padding: 45px 25px;
  }

  .testimonial-box h2 {
    margin-bottom: 35px;
  }

  .blog-image {
    height: 260px;
  }

  .newsletter-box {
    margin-top: -40px;
    margin-bottom: 60px;
    padding: 30px 22px;
  }

  .newsletter-text h2 {
    font-size: 29px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
    border: 0;
    padding: 0;
  }

  .newsletter-form input {
    margin-bottom: 12px;
    border: 1px solid var(--about-blue);
    border-radius: 8px;
  }

  .newsletter-form button {
    text-align: center;
  }

  .theme-toggle {
    right: 82px;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    right: 20px;
  }
}

@media (max-width: 420px) {
  .about-banner {
    min-height: 280px;
  }

  .about-steps li {
    font-size: 16px;
  }

  .statistic-item strong {
    font-size: 38px;
  }

  .expertise-image-wrapper {
    height: 450px;
    min-height: 450px;
  }

  .expertise-image-wrapper > img {
    height: 450px;
  }

  .emergency-call-box {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .testimonial-box {
    padding: 40px 18px;
  }

  .blog-content {
    padding: 24px 20px;
  }

  .blog-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
