/* Keyframes for the blinking cursor */
@keyframes blinkCaretAnimation {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #ffc107;
  }
}

/* Class for GSAP-controlled typing cursor */
.gsap-typing-active {
  display: inline-block;
  /* Ensures border-right is at the end of the text */
  border-right: 0.1em solid #ffc107;
  /* Cursor color, matches previous */
  animation: blinkCaretAnimation 0.75s step-end infinite;
  white-space: nowrap;
  /* Prevents text from wrapping during typing */
}

.hero-buttons button img {
  margin-left: 20px;
  /* Space between text and icon */
  width: 32px;
  /* Adjust size as needed */
  height: 32px;
  /* Adjust size as needed */
  vertical-align: middle;
  /* Aligns icon nicely with text */
}

/* Add consistent height and width for speciality cards */
.speciality-card {
  height: 300px;
  /* Adjust height as needed */
  /* width: 300px; */
  /* Set a consistent width for all cards */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  /* Center the cards */
}

.doctor-card {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.specialty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

html,
body {
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
}

/* Footer Styles */
.footer-links-inline {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-section-custom {
  background: #1986a1;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-section-custom a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section-custom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-section-custom .footer-logo img {
  max-width: 180px;
  margin-bottom: 1rem;
}

.footer-section-custom h5, 
.footer-section-custom h4, 
.footer-section-custom .accordion-button {
  color: #fff;
  font-weight: 700;
}

.footer-section-custom .accordion-button {
  background: #1986a1;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
}

.footer-section-custom .accordion-button:not(.collapsed) {
  background: #1986a1;
  color: #fff;
}

.footer-section-custom .accordion-item {
  background: #1986a1;
  border: none;
}

.footer-section-custom .accordion-body {
  background: #1986a1;
  color: #fff;
  padding-left: 1.5rem;
  position: relative;
}

.footer-section-custom .footer-links li {
  margin-bottom: 0.5rem;
}

.footer-section-custom .footer-links-inline a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 0.95rem;
}

.footer-section-custom .footer-links-inline a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-section-custom .footer-bottom-custom {
  border-color: #fff;
  margin-top: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-section-custom .container-fluid {
  padding-bottom: 0;
  margin-bottom: 0 !important;
}

.footer-section-custom .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.footer-section-custom .accordion-button::after {
  filter: none;
}

.footer-section-custom .close-accordion-btn {
  position: absolute;
  top: 10px;
  right: 18px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.footer-section-custom .close-accordion-btn:hover {
  color: #232323;
}

/* Custom Mobile Navbar Styles */
.custom-mobile-navbar {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  overflow: hidden;
}

.custom-mobile-navbar.active {
  display: block;
}

.custom-mobile-navbar-backdrop {
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.custom-mobile-navbar-content {
  position: absolute;
  top: 0; 
  right: 0; 
  bottom: 0;
  width: 90vw;
  max-width: 400px;
  background: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 16px rgba(0,0,0,0.15);
  animation: slideInRight 0.3s cubic-bezier(.4,0,.2,1);
  height: 100vh;
}

@keyframes slideInRight {
  from { right: -100vw; }
  to { right: 0; }
}

.custom-mobile-navbar-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #1986a1;
  align-self: flex-end;
  margin: 1rem 1.5rem 0 0;
  cursor: pointer;
  z-index: 3;
}

.custom-mobile-nav-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 1.5rem 2rem 1.5rem;
  margin-top: 0.5rem;
}

.custom-mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-mobile-nav-list > li {
  margin-bottom: 0.5rem;
}

.custom-mobile-nav-link {
  background: none;
  border: none;
  color: #1986a1;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-mobile-nav-link[aria-expanded="true"] {
  background: #e6f4f7;
}

.custom-mobile-nav-list a,
.custom-mobile-submenu a {
  color: #1986a1;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  padding: 0.7rem 0.5rem 0.7rem 1.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.custom-mobile-nav-list a:hover,
.custom-mobile-submenu a:hover {
  background: #e6f4f7;
}

.custom-mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  margin-left: 1rem;
  margin-top: 0.2rem;
  border-left: 2px solid #e6f4f7;
  padding-left: 0.5rem;
  background: #f8fafd;
  border-radius: 0 0 8px 8px;
}

.custom-mobile-nav-dropdown.open > .custom-mobile-submenu {
  display: flex;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dropdown-arrow {
  font-size: 1rem;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.custom-mobile-nav-dropdown.open > .custom-mobile-nav-link .dropdown-arrow {
  transform: rotate(90deg);
}

.nav-cta {
  background: #e89632;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  display: inline-block;
  text-align: center;
}

.nav-cta:hover {
  background: #1986a1;
  color: #fff !important;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .footer-section-custom .row.g-4 > div {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .footer-section-custom .row.g-4 {
    flex-direction: column;
  }
  
  .footer-section-custom .footer-logo img {
    max-width: 140px;
  }
  
  .footer-section-custom .footer-bottom-custom {
    font-size: 0.95rem;
  }
  
  .footer-section-custom .accordion-button {
    font-size: 1rem;
  }
  
  .footer-section-custom .footer-address, 
  .footer-section-custom .footer-logo {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .mobile-footer {
    display: block;
  }
  
  .custom-mobile-navbar {
    display: none;
  }
  
  .custom-mobile-navbar.active {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-footer {
    display: none;
  }
  
  .desktop-footer {
    display: block;
  }
  
  .custom-mobile-navbar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-footer {
    display: none;
  }
} 