/* --- Footer Section --- */
.footer {
  font-family: "Roboto-Regular";
  margin: 0;
  padding: 0;
}

.footer-top-white {
  background-color: #ffffff;
  padding: 40px 0;
  position: relative;
}
.footer-top-white::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #4cebd1, #1678b4);
}
.footer-hospital-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.footer-logo-wrap {
  width: 25%;
}
.footer-logo-wrap .footer-logo {
  max-width: 100%;
}
.footer-address-image {
  width: 40%;
}
.footer-address-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer-address-image .hospital-img {
  max-width: 100%;
  border-radius: 12px;
}
.address-text {
  width: 35%;
}
.address-text h2,
.address-text h3,
.address-text h5 {
  color: #1a4f8d;
  margin: 0 0 5px 0;
  font-family: "Roboto-Regular";
  font-size: 20px;
  font-weight: 700;
}
.address-text p {
  margin: 0;
  font-family: "Roboto-Regular";
  color: #1a4f8d;
  line-height: 1.6;
}

.footer-emergency-banner {
  background: linear-gradient(90deg, #3ecfd2 0%, #1a4f8d 60%);
  border-radius: 70px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  margin: 0 auto;
}
.banner-book-btn {
  width: 25%;
}
.banner-book-btn .btn-book-appointment {
  background: #154d98;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: "Roboto-Regular";
  font-size: 18px;
  display: inline-block;
}
.banner-opd-info {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 25%;
}
.opd-text p {
  margin: 0;
  line-height: 1.4;
  font-family: "Roboto-Regular";
}
.banner-emergency-info {
  display: flex;
  flex-direction: column;
  width: 50%;
}
.emergency-title {
  font-family: "Roboto-Regular";
  font-size: 20px;
  margin-bottom: 5px;
}
.emergency-details {
  display: flex;
  align-items: center;
  gap: 10px;
}
.emergency-contact p {
  margin: 0;
  line-height: 1.4;
  font-family: "Roboto-Regular";
  font-size: 20px;
  color: #15b9c5;
}
.footer-middle-gray {
  background: #e3e8eb;
  padding: 30px 0;
}
.footer-links-grid {
  display: flex;
  justify-content: space-between;
}
.footer-links-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-grid ul li {
  margin-bottom: 6px;
}
.footer-links-grid ul li a {
  font-family: "Roboto-Regular";
  color: #333333;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}
.footer-links-grid ul li a:hover {
  color: #1a4f8d;
}
.barcode p { margin-bottom: 0; }
.footer-social-icons {
  margin-top: 15px;
}
.footer-social-icons a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 12px;
  transition: all 0.3s ease;
}
.footer-social-icons a:hover {
  background: #1a4f8d;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.footer-social-icons i {
  color: #6a6a6a;
  font-size: 18px;
  transition: color 0.3s ease;
}
.footer-social-icons a:hover i {
  color: #ffffff;
}

.footer-bottom-dark {
  background: #d7dfe2;
  padding: 6px 0;
}
.footer-bottom-dark .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom-dark p {
  margin: 0;
  font-family: "Roboto-Regular";
  font-size: 16px;
  color: #44484a;
}
.footer-bottom-dark a {
  color: #0f4990;
  text-decoration: underline;
}
.footer-bottom-dark a:hover {
  color: #082d5b;
}

/* --- Footer Responsive --- */
@media (max-width: 1440px) {
  .footer-top-white { padding: 30px 0;}
  .footer-logo-wrap { width: 25%; }
  .footer-address-image { width: 38%; }
  .address-text { width: 37%; padding-left: 30px; }
  .footer-logo-wrap .footer-logo { max-width: 80%; }
  .footer-address-image .hospital-img { max-width: 90%; }
  .footer-emergency-banner { width: 100%; padding: 15px 20px; }
  .banner-book-btn { width: 25%; }
  .banner-opd-info { width: 30%; }
  .banner-emergency-info { width: 45%; }
  .address-text h5 { font-size: 19px; }
  .address-text p { font-size: 18px; line-height: 1.5; }
  .banner-book-btn .btn-book-appointment { font-size: 16px; padding: 11px 20px; margin-left: 25px; }
  .opd-text p { font-size: 18px; }
  .emergency-title { font-size: 19px; margin-bottom: 3px; }
  .emergency-contact p { font-size: 18px; }
  .barcode img { max-width: 140px; height: auto; }
  .barcode { margin-left: 20px; }
  .barcode p { font-size: 16px; }
  .emergency-details { gap: 8px; }
  .emergency-icon { width: 140px; height: auto; }
  .footer-middle-gray { padding: 25px 0; }
}

@media (max-width: 1366px) {
  .footer-top-white { padding: 30px 0 20px 0;}
  .footer-hospital-info { margin-bottom: 20px;}
  .address-text { padding-left: 20px; }
  .footer-address-image .hospital-img { max-width: 88%; }
  .address-text h5 { font-size: 18px; }
  .address-text p { font-size: 17px; line-height: 1.4; }
  .banner-book-btn .btn-book-appointment { font-size: 15px; padding: 11px 20px; margin-left: 15px; }
  .opd-text p { font-size: 17px; }
  .emergency-title { font-size: 18px; margin-bottom: 3px; }
  .emergency-contact p { font-size: 17px; }
  .footer-middle-gray { padding: 20px 0; }
  .footer-links-grid ul li a { font-size: 17px; }
  .barcode img { max-width: 120px; height: auto; }
  .barcode { margin-left: 15px; }
  .barcode p { font-size: 14px; }
}

@media (max-width: 1200px) {
  .footer-logo-wrap { width: 23%; }
  .footer-address-image { width: 37%; }
  .address-text { width: 43%; padding-left: 10px; }
  .address-text h5 { font-size: 16px; }
  .address-text p { font-size: 15px; line-height: 1.3; }
  .banner-book-btn { width: 23%; }
  .banner-opd-info { width: 28%; }
  .banner-emergency-info { width: 49%; }
  .banner-book-btn .btn-book-appointment { font-size: 14px; padding: 8px 14px; margin-left: 0; }
  .opd-icon { width: 70px; height: auto; }
  .opd-text p { font-size: 16px; }
  .emergency-icon { width: 120px; height: auto; }
  .emergency-title { font-size: 17px; margin-bottom: 3px; }
  .emergency-contact p { font-size: 16px; }
  .footer-middle-gray { padding: 15px 0; }
  .footer-links-grid ul li a { font-size: 16px; }
  .barcode img { max-width: 110px; height: auto; }
  .barcode { margin-left: 10px; }
  .barcode p { font-size: 15px; margin-top: 5px; }
}

@media (max-width: 991px) {
  .footer-hospital-info {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 10px;
  text-align: left;
  align-items: flex-start;
}
  .footer-address-wrap {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }
  .footer-logo-wrap {
    width: 35%;
    justify-content: flex-start;
    order: 1;
  }
  .address-text {
    width: 60%;
    justify-content: flex-start;
    order: 2;
  }
  .address-text h5 { font-size: 17px; }
  .address-text p { font-size: 16px; line-height: 1.3; }
  .footer-address-image {
    width: 70%;
    margin: 10px auto 0 auto;
    order: 3;
  }
  .banner-book-btn,
  .banner-opd-info,
  .banner-emergency-info {
    justify-content: center;
  }
  .banner-book-btn,
  .banner-opd-info {
    width: 48%;
  }
  .banner-book-btn {
    display: flex;
    justify-content: center;
  }
  .opd-text p {
    font-size: 17px;
  }
  .banner-emergency-info {
    width: 100%;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 8px;
  }
  .banner-book-btn .btn-book-appointment {
    font-size: 16px;
    padding: 10px 20px;
  }
  .emergency-title { font-size: 20px;}
  .emergency-contact p {
    font-size: 18px;
    text-align: left;
  }
  .footer-links-grid ul li a {
    font-size: 16px;
  }
  .banner-opd-info {
    flex-direction: row;
    align-items: center;
    margin-left: -30px;
  }
  .footer-emergency-banner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
  .footer-bottom-dark .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .footer-top-white { padding: 20px 0;}
  .footer-emergency-banner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .address-text h5 { font-size: 16px; }
  .address-text p { font-size: 15px; line-height: 1.2; }
    .footer-social-icons {
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }
  .banner-book-btn,
  .banner-opd-info,
  .banner-emergency-info {
    width: 100%;
  }
  .banner-book-btn .btn-book-appointment {
    font-size: 14px;
    padding: 8px 16px;
  }
  .opd-text p {
    font-size: 15px;
  }
  .emergency-title {
    font-size: 16px;
  }
  .emergency-contact p {
    font-size: 14px;
  }
   .footer-middle-gray .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
  }
  .footer-middle-gray .footer-links-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .footer-middle-gray .footer-links-grid ul li {
    margin-bottom: 5px;
    text-align: center;
  }
  .footer-middle-gray .barcode {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
  }
    .footer-bottom-dark .container {
    gap: 4px;
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom-dark p {
    font-size: 15px;
  }
}

@media (max-width: 575px) {
  .footer-emergency-banner {
    border-radius: 50px;
  }
  .banner-book-btn .btn-book-appointment {
    font-size: 13px;
    padding: 6px 12px;
  }
  .opd-text p {
    font-size: 14px;
  }
  .address-text h5 {
    font-size: 15px;
  }
  .address-text p {
    font-size: 13px;
  }
  .emergency-icon { width: 100px;}
  .emergency-title {
    font-size: 15px;
  }
  .emergency-contact p {
    font-size: 13px;
  }
  .footer-logo-wrap .footer-logo { max-width: 45%; }
  .footer-hospital-info {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-hospital-info .footer-logo-wrap,
  .footer-hospital-info .address-text,
  .footer-hospital-info .footer-address-image {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .footer-address-image .hospital-img {
    max-width: 70%;
    height: auto;
  }
    .footer-bottom-dark p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .banner-book-btn .btn-book-appointment {
    font-size: 12px;
    padding: 5px 10px;
  }
  .opd-text p {
    font-size: 13px;
  }
  .emergency-title {
    font-size: 14px;
  }
      .footer-bottom-dark p {
    font-size: 13px;
  }
.barcode img {
    max-width: 120px;
    width: 100%;
    height: auto;
}
}

@media (max-width: 360px) {
  .banner-book-btn .btn-book-appointment {
    font-size: 11px;
    padding: 4px 8px;
  }
  .opd-text p {
    font-size: 12px;
  }
  .address-text h5 {
    font-size: 14px;
  }
  .address-text p {
    font-size: 12px;
  }
  .footer-middle-gray .footer-links-grid {
    grid-template-columns: 1fr;
  }
}