.top-bar {
  background: #007d67; /* top background */
  font-size: 14px;
}
.main-header {
  background: #fff; /* below background */
}

/* .navbar {
  z-index: 9999 !important;
}
.navbar-nav .nav-link {
  color: #1a4b7a !important;
  font-weight: 500;
}
.nav-link:hover {
  text-decoration: underline;
} */
.logo {
  height: 80px;
}
a {
  text-decoration: none;
}

h3 {
  color: #007d67 !important;
}

.btn-primary {
  background-color: #007d67;
}

/* .appointment-section {
        position: relative;
        background-image: url("https://www.maxhealthcare.in/images/banner-n.jpg?338d6b09bdf4437abb5d8540254a861e");
        background-size: contain;
        background-position: center;
        padding: 80px 0;
      } */

.bg-blue {
  background-color: #003a70;
}
/* url("https://www.maxhealthcare.in/images/banner-n.jpg?338d6b09bdf4437abb5d8540254a861e"); */
.appointment-section {
  position: relative;
  /* background: #f3f8fd; */
  background-image: url("../images/bg.webp");
  /* background-image: url("https://www.maxhealthcare.in/images/banner-n.jpg?338d6b09bdf4437abb5d8540254a861e"); */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  background-size: 100% 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(243, 248, 253, 0.8); */
  /* Adjust opacity if needed */
}
.content {
  position: relative;
  z-index: 2;
}
.emergency-bar {
  position: fixed; /* <— use fixed so it stays while scrolling */
  top: 250px;
  left: 0;
  height: 35%; /* only 25% of screen height */
  width: 22px;
  background: #d32f2f;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  /* writing-mode: vertical-rl; */
  text-orientation: mixed;
  font-size: 10px;
  letter-spacing: 3px;
  z-index: 1050; /* above other content */
}

.search-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto;
  max-width: 950px;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  border: 1px solid #dbe5f0;
  transition: 0.3s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.feature-card i {
  font-size: 36px;
  color: #0d47a1;
  margin-bottom: 12px;
}
/* .call-btn {
        position: absolute;
        bottom: 20px;
        right: 20px;
        background: #0099cc;
        color: white;
        border-radius: 30px;
        padding: 10px 20px;
        font-weight: bold;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 3;
      } */

.call-btn {
  position: fixed; /* stays visible while scrolling */
  bottom: 20px; /* adjust distance from bottom */
  right: 20px; /* adjust distance from right */
  background: #007d67; /* green background */
  color: white;
  padding: 10px 15px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1050; /* make sure it appears above other content */
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid #fff;
}

.call-btn:hover {
  background: #218838; /* darker green on hover */
}

.call-btn span {
  background: #fff;
  color: #0099cc;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.specialities-section {
  padding: 60px 20px;
  font-family: Arial, sans-serif;
}

.specialities-section .container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.specialities-section .specialities-left {
  flex: 1;
}

.specialities-section .specialities-left h2 {
  font-size: 24px;
  font-weight: bold;
  color: #003366;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.specialities-section .tabs {
  margin: 20px 0;
  font-size: 18px;
}

.specialities-section .tabs span {
  margin-right: 30px;
  cursor: pointer;
  color: #666;
}

.specialities-section .tabs .active {
  color: #fff;
  font-weight: bold;
  border-bottom: 3px solid #00a6a6;
  padding-bottom: 5px;
}

.specialities-section .specialities-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.specialities-section .specialities-list .item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #003366;
  font-weight: 500;
}

.specialities-section .specialities-list img {
  width: 45px;
  height: 45px;
}

.specialities-section .view-all {
  display: inline-block;
  margin-top: 20px;
  color: #003366;
  font-weight: 600;
  text-decoration: none;
}

.specialities-section .view-all:hover {
  text-decoration: underline;
}

.specialities-section .specialities-right {
  flex: 0.8;
}

.specialities-section .card {
  background: #00a6a6;
  color: white;
  padding: 30px;
  border-radius: 20px;
  position: relative;
  height: 100%;
}

.specialities-section .card h3 {
  font-size: 22px;
  font-weight: bold;
}

.specialities-section .card p {
  margin: 15px 0;
  font-size: 16px;
}

.specialities-section .btn {
  background: #0055a5;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.specialities-section .btn:hover {
  background: #003366;
}

.specialities-section .doctor-img {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 120px;
}

.specialities-section .doctor-img img {
  width: 100%;
}

.patient-stories {
  /* margin: 40px 0; */
}
.patient-stories .stories-left img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}
.patient-stories .stories-list {
  max-height: 650px;
  overflow-y: auto;
}
.patient-stories .story-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.patient-stories .story-item img {
  width: 120px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}
.patient-stories .story-item h6 {
  font-weight: bold;
  margin-bottom: 5px;
  color: #0d3b66;
}
.patient-stories .story-item small {
  color: #555;
  font-size: 13px;
}
.patient-stories .section-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: #0d3b66;
}
.patient-stories .view-all {
  font-size: 0.9rem;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}
.patient-stories .view-all:hover {
  text-decoration: underline;
}

/* Health Blogs Section */
.health-blogs {
  /* background: #fff; */
}

.health-blogs .section-title {
  font-weight: 700;
  border-bottom: 3px solid #0056b3;
  display: inline-block;
  padding-bottom: 5px;
}

.health-blogs .view-all {
  font-weight: 600;
  text-decoration: none;
  color: #0056b3;
}

.health-blogs .blog-card {
  transition: all 0.3s ease;
      background: #fff;
    padding: 5px;
}

.health-blogs .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.health-blogs .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #002b5c;
  padding-top: 10px;
}

.health-blogs .card-text {
  font-size: 0.9rem;
}

/* Scoped only to rare-cases-section */
.rare-cases-section {
  margin: 40px 0;
}
.rare-cases-section h3 {
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #0d6efd;
  display: inline-block;
  padding-bottom: 5px;
}
.rare-cases-section .rare-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.rare-cases-section .rare-card:hover {
  transform: translateY(-5px);
}
.rare-cases-section .rare-card img {
  object-fit: contain;
  height: auto;
  /* height: 160px; */
  background: #f5f5f5;
}
.rare-cases-section .rare-card .card-body h6 {
  font-weight: 700;
  color: #0d3c84;
}
.rare-cases-section .view-all {
  margin-top: 15px;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  display: block;
  text-align: right; /* aligned right */
}
.rare-cases-section .view-all:hover {
  text-decoration: underline;
}

.custom-footer {
  background: #007d67 !important; /* Deep blue */
}

.custom-footer a {
  text-decoration: none;
}

.custom-footer a:hover {
  text-decoration: underline;
  color: #1abc9c;
}

.custom-footer input {
  border-radius: 30px;
}

.custom-footer button {
  border-radius: 30px;
  font-weight: bold;
}

/* tab section */
.tabs {
  display: flex;
  gap: 20px;
  cursor: pointer;
  margin-bottom: 15px;
}

.tabs span {
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: bold;
  /* color: #555; */
}

.tabs span.active {
  background: #007bff;
  color: white;
}

.tab-content {
  display: block;
}

.d-none {
  display: none !important;
}

.specialities-right div h3 {
  color: #fff !important;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 30px;
  display: none;
  z-index: 999;
  width: 50px;
  height: 50px;
  font-size: 24px;
  align-items: center;
  justify-content: center;
}

.footer {
  background-color: #0a3d62;
  color: #fff;
  padding: 50px 20px;
  font-size: 14px;
}
.footer h6 {
  font-weight: bold;
  margin-bottom: 15px;
}
.footer a {
  color: #dcdcdc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: 0.3s;
}
.footer a:hover {
  color: #fff;
}
.footer .download-app i {
  font-size: 28px;
  margin-right: 10px;
}
.emergency-bar {
  position: absolute;
  top: 0;
  left: 0;
  background: #c0392b;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: bold;
  padding: 10px 5px;
  font-size: 14px;
}
