/*------------------------------YoutubePopup start---------------------------------*/
#popup {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 20px;
  width: 400px;
  max-width: 95vw;
  background: #fff;
  border: 0 solid #333;
  border-radius: 5px;
  padding: 10px;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#popup iframe {
  width: 100%;
  height: 220px;
  border-radius: 8px;
}

.popup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  flex-wrap: wrap; /* ensures buttons stack on very small screens */
}

.popup-footer button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 6px;
}

.close-btn {
  background: #f44336;
  color: #fff;
}

.dontshow-btn {
  background: #555;
  color: #fff;
}

/* Responsive for tablets */
@media (max-width: 768px) {
  #popup {
    width: 90vw;
    right: 2vw;
    left: 2vw;
    bottom: 8vw;
    padding: 8px;
  }
  #popup iframe {
    height: 180px;
  }
}

/* Responsive for mobiles */
@media (max-width: 480px) {
  #popup {
    width: 96vw;
    left: 2vw;
    right: 2vw;
    bottom: 2vw;
    padding: 6px;
  }
  #popup iframe {
    height: 120px;
  }
  .popup-footer {
    flex-direction: column;
  }
  .popup-footer button {
    width: 100%;
  }
}
/*------------------------------YoutubePopup end---------------------------------*/

/* Container */
.social-left {
  position: fixed;
  left: 16px;                 /* distance from left edge */
  top: 35%;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* List reset */
.social-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each item */
.social-left li {
  margin: 8px 0;
}

/* Link style */
.social-left a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
  min-width: 46px; /* keeps round icon shape when collapsed */
  overflow: hidden;
}

/* Icon */
.social-left a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Label (hidden by default, reveal on hover) */
.social-left .label {
  display: inline-block;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  font-size: 14px;
}

/* Hover / focus: expand and show label */
.social-left a:hover,
.social-left a:focus {
  transform: translateX(6px) scale(1.02);
  background: linear-gradient(90deg,#111,#222);
  color:#FFFFFF;
  outline: none;
}

.social-left a:hover .label,
.social-left a:focus .label {
  transform: translateX(0);
  opacity: 1;
}

/* Per-service brand colors (optional) */
.social-left a[href*="facebook"] {  background: linear-gradient(to right, #fe8c00, #f83600); }
.social-left a[href*="twitter"]  { background: #1da1f2; }
.social-left a[href*="instagram"]{ background: radial-gradient(circle at 30% 30%, #feda75 0,#d62976 30%,#962fbf 60%,#4f5bd5 100%); }
.social-left a[href*="linkedin"] { background: #0a66c2; }
.social-left a[href^="appointment"]   { background: linear-gradient(to right, #360033, #0b8793); }
.social-left a[href*="youtube"] { background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045); }


/* Make icons accessible when using keyboard */
.social-left a:focus {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15), 0 8px 18px rgba(0,0,0,0.25);
}

/* Responsive: hide on small screens (change breakpoint as needed) */
@media (max-width: 800px) {
  .social-left { display: none; }
}
/* ========== MOBILE FIX: uniform icon size & tidy look ========== */
@media (max-width: 600px) {
  /* --- bottom-bar container --- */
  .social-left {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 6px 0 10px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(0,0,0,.08);
  }

  /* --- icon row --- */
  .social-left ul {
    display: flex;
    gap: 10px;
    padding: 0 8px;
  }

  /* --- each button --- */
  .social-left a {
    width: 34px;          /* same width for all */
    height: 34px;         /* same height */
    min-width: auto;
    padding: 0;
    border-radius: 50%;   /* perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  /* --- icon inside --- */
  .social-left a i {
    font-size: 15px;      /* single size for every icon */
    width: auto;
    line-height: 1;
  }

  /* --- hide label completely on mobile --- */
  .social-left .label {
    display: none !important;
  }
}
/* ========== MOBILE FIX END ========== */
/*Gallery Modal */
.gallery img { width: 100%; border-radius: 8px; cursor: pointer; transition: .3s; }
.gallery img:hover { transform: scale(1.05); }
.gallery { display: none; }
.category-btn.active { background-color: #198754 !important; } /* Active = Green */

/*Gallery Modal end */

/* Login */
.close-btn-login {
 position: absolute;
  z-index: 10; /* This will appear in front of element1 */
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f1f1;
  border-radius: 0 0 0 20px; /* round only bottom left */
  font-size: 34px;
  color: #ef4747;
  cursor: pointer;
  text-align: center;
  border-top: 3px solid #ef4747; /* border above the button */
  /* Optional shadow for effect */
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  font-family:cambria;
}

/* Hover effect */
.close-btn-login:hover {
font-family:cambria;
  background: #ffd4d4;
  color: #c9302c;
  border-top: 3px solid #c9302c;
    z-index: 10; /* This will appear in front of element1 */
}
    /* Tabs */
    .nav-tabs .nav-link {
	font-family:cambria;
    border-top-left-radius: 0px;
border-top-right-radius: 80px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px; 
      transition: 0.3s;
	  
    }
    .nav-tabs .nav-link.active {
	font-family:cambria;
      background-color: #0d6efd; /* Bootstrap blue */
      color: #fff !important;
      border-color: #0d6efd;
	    z-index: 10; /* This will appear in front of element1 */
    }
    .tab-content {
      padding: 25px;
  
      min-height: 200px;
    }
    .form-control {
      border-radius: 6px;
    }
    .btn-custom {
	font-family:cambria;
      background: #000;
      color: #fff;
      border-radius: 6px;
      padding: 10px;
      width: 100%;
	    z-index: 10; /* This will appear in front of element1 */
    }
    .btn-custom:hover {
      background: #444;
	    z-index: 10; /* This will appear in front of element1 */
    }

/* Login */

 .rating-stars .bi-star-fill {
    color: #FFD700;
  }
.floating-card.rating-card {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.background-elements .element-1,
.background-elements .element-2,
.background-elements .element-3 {
  /* Example styling or animation for background shapes */
  width: 100%;
  height: 50px;
  background: rgba(0,123,255,0.1);
  border-radius: 50%;
  display: inline-block;
  margin: 5px;
  animation: floatVertical 4s ease-in-out infinite;
}
.element-2 {
  animation-delay: 1.5s;
  background: rgba(0,123,255,0.15);
  width: 40px;
  height: 40px;
}
.element-3 {
  animation-delay: 3s;
  background: rgba(0,123,255,0.2);
  width: 30px;
  height: 30px;
}

@keyframes floatVertical {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
 /* conference banner */
  .banner {
    width: 100%;
    overflow: hidden;
    position: relative;
  /*  background: #f0f0f0;
    border: 1px solid #ccc;*/
    height: 250px;
    display: flex;
    align-items: center;
  }
  .arrow {
    font-size: 24px;
    margin-right: 8px;
    color: #666;
    z-index: 2;
  }
  .banner-text {
    display: flex;
    gap: 10px;
    position: relative;
    animation: movebanner 15s linear infinite;
    cursor: pointer;
  }
  .banner:hover .banner-text {
    animation-play-state: paused;
  }
  @keyframes movebanner {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }
  .img-hover-zoom {
    width: 300px;
    height: 200px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  .img-hover-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  .img-hover-zoom:hover img,
  .img-hover-zoom:active img {
    transform: scale(1.3);
  }
  /* Modal Styles */
  .modal2 {
    display: none; 
    position: fixed; 
    z-index: 100; 
    padding-top: 120px; /* space for menu */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    box-sizing: border-box;
    text-align: center;
  }
  .modal-content2 {
    margin: auto;
    max-width: 700px;
    width: 80%;
    animation: zoomIn 0.3s;
    border-radius: 8px;
    background: #000; 
    display: inline-block;
    object-fit: contain;
  }
  @keyframes zoomIn {
    from {transform:scale(0.5);} 
    to {transform:scale(1);}
  }
  #caption2 {
    margin: 10px auto 30px auto;
    max-width: 700px;
    width: 80%;
    text-align: center;
    color: #ccc;
  }
  /* Close button placed below image */
  .close2 {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 40px;
    border: 2px solid white;
    user-select: none;
    transition: background-color 0.3s, color 0.3s;
  }
  .close2:hover {
    background-color: white;
    color: black;
  }
  /* Next and Prev Buttons */
  .modal-btn2 {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    transform: translateY(-50%);
  }
  .modal-btn2:hover {
    background: rgba(0,0,0,0.7);
  }
  .prev-btn2 {
    left: 10px;
  }
  .next-btn2 {
    right: 10px;
  }
  
 /* our service box design home page */
.service-box.asthma-allergy {
  max-width: 350px;
  background: linear-gradient(135deg, #a3d8f4 0%, #c1e8ff 100%);
  color: #004d7a;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,77,122,0.3);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.service-box.asthma-allergy:hover {
  box-shadow: 0 10px 30px rgba(0,77,122,0.5);
}

.service-box.asthma-allergy .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid #007bbd;
}

.service-box.asthma-allergy p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.service-box.asthma-allergy button {
  padding: 12px 28px;
  background-color: #007bbd;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.service-box.asthma-allergy button:hover {
  background-color: #005f8a;
}

 /* patient review */
  .doctors-wrapper-review {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .doctors-grid-review {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    animation-play-state: running;
  }
  .doctors-grid-review:hover {
    animation-play-state: paused;
  }
  .doctor-profile-review {
    display: inline-block;
    vertical-align: top;
    width: 280px;
    margin-right: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.1);
    padding: 15px;
  }

  @keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
  }
  

.appointment-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to right, #000428, #004e92);
  color: #fff;
 font-family: "Trirong", serif;
 font-size:18px;
  font-weight: bold;
  writing-mode: vertical-rl; /* Vertical text */
  text-orientation: mixed;
  text-align: center;
  padding: 55px 10px;
  border-radius: 20px 0 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
}

/* Hover effect */
.appointment-btn:hover {
  background-color: #0056b3;
  transform: translateY(-50%) scale(1.05);
}

/* Entrance animation */
@keyframes slideInRight {
  0% {
    transform: translate(100%, -50%);
    opacity: 0;
  }
  100% {
    transform: translate(0, -50%);
    opacity: 1;
  }
}

.appointment-btn.animate-in {
  animation: slideInRight 1s ease forwards;
}

/* Click animation */
@keyframes clickPulse {
  0% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

.appointment-btn.clicked {
  animation: clickPulse 0.4s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .appointment-btn {
   padding: 20px 20px;
    font-size: 12px;
  }
}


.login-btn {
  background: linear-gradient(135deg, #1e1e2f, #2d2d44);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 32px;
  font-size: 16px;
  font-family: "Trirong", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #3a3a5c, #4a4a72);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.login-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}



/* ================= Banner Slider ================= */
.main-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 520px; /* Desktop height */
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;       /* Full width */
    height: 100%;      /* Fixed container height */
    object-fit: contain; /* No crop, no distort */
    display: block;
    background: #000;  /* Black background if image smaller than container */
}

/* ================= Text Overlay ================= */
.banner-content {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    color: #fff;
    max-width: 520px;
}

.banner-content h2 {
    font-size: 42px;
    line-height: 1.2;
}

.banner-content span {
    color: #ffcc00; /* Highlight color */
}

.banner-content p {
    margin: 15px 0;
    font-size: 16px;
}

.banner-content .btn {
    display: inline-block;
    padding: 12px 25px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
}

/* ================= Arrow Buttons ================= */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    user-select: none;
}

.slider-arrow.left {
    left: 20px;
}

.slider-arrow.right {
    right: 20px;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}

/* ================= Mobile Responsive ================= */
@media (max-width: 1024px) {
    .banner-slider {
        height: 400px;
    }

    .banner-content h2 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .banner-slider {
        height: 320px;
    }

    .banner-content {
        left: 20px;
        right: 20px;
        max-width: 100%;
        background: rgba(0,0,0,0.6);
        padding: 15px;
        border-radius: 8px;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 13px;
    }

    .slider-arrow {
        font-size: 28px;
        width: 38px;
        height: 38px;
        line-height: 38px;
    }
}

/* ================= Optional Smooth Text Animation ================= */
.banner-content {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}










