.root,
:root{
  --primary:#04606f;
  --accent:#0ea5a0;
  --muted:#6c757d;
  --bg:#fbfdfe;
  --card-bg:#ffffff;
  --hero-height:66vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}
body{font-family:inherit;background:var(--bg);color:#0b2130;-webkit-font-smoothing:antialiased}
.navbar-brand{color:var(--primary)}
.hero{position:relative;background-image:linear-gradient(120deg, rgba(4,96,111,0.65), rgba(14,165,160,0.18)),url('https://images.unsplash.com/photo-1588774069166-2e52d5e1b4a6?q=80&w=1600&auto=format&fit=crop&ixlib=rb-4.0.3&s=2d1a28a8b6f4b5b8f34c');background-size:cover;background-position:center;height:var(--hero-height);display:flex;align-items:center}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero .overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,0.25),rgba(0,0,0,0.05))}
.hero .overlay{z-index:1}
.hero-content{position:relative;z-index:2;padding:3rem 0}
.hero-card{max-width:360px;margin-left:auto}
.service-card{border:0;background:var(--card-bg);transition:transform .32s ease, box-shadow .32s ease}
.service-card:hover{transform:translateY(-8px);box-shadow:0 12px 30px rgba(2,32,40,0.08)}
.service-card .icon{width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:14px;font-size:28px;margin:0 auto}
.team-card img{object-fit:cover}
.card{border-radius:12px}
section{padding-top:3.5rem;padding-bottom:3.5rem}
footer{border-top:1px solid rgba(255,255,255,0.04)}

/* Buttons */
.btn-primary{background:linear-gradient(90deg,var(--primary),var(--accent));border:0}
.btn-primary:focus,.btn-primary:hover{opacity:0.95}

/* Form feedback */
#formFeedback,#appFeedback{transition:opacity .25s ease}

/* Team circles */
.team-card img{width:120px;height:120px;border-radius:50%;object-fit:cover}

/* Subtle entrance animation for cards */
@keyframes floatUp{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}
.card{animation:floatUp .5s ease both}

/* Responsive tweaks */
@media (max-width: 991px){:root{--hero-height:48vh}.hero .hero-card{display:none}}

/* Small screens - tighten spacing */
@media (max-width: 576px){
  .hero-content{padding:2rem 0}
  .display-5{font-size:1.6rem}
}

/* Footer styles */
.site-footer{background:#052426}
.site-footer h5,.site-footer h6{color:#fff}
.site-footer a{color:rgba(255,255,255,0.9)}
.site-footer .text-muted{color:rgba(255,255,255,0.7) !important;
margin-bottom: 2px;}
.site-footer .social a{margin-right:8px}
.illustrations img{max-height:110px}

/* Lottie player sizing */
lottie-player{display:block;max-width:110px;margin:auto}

/* Footer small screens */
@media (max-width:768px){
  .site-footer .row>div{flex:0 0 100%;max-width:100%}
  .illustrations img{max-height:90px}
}

/* Social icons size */
.social img{width:22px;height:22px}

/* Video hero small screens: hide for low bandwidth */
@media (max-width: 576px){
  .hero-video{display:none}
}

/* Ensure team cards are equal height and content is centered */
#team .row.g-4 > .col-lg-2,
#team .row.g-4 > .col-md-4 {
    display: flex;
}
#team .card.team-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 320px;
    height: 100%;
    
}
#team .card.team-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Team card hover effects */
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.team-card {
    transition: all 0.3s ease;
}

/* Responsive adjustments for 6-column layout */
@media (max-width: 991.98px) {
    #team .card.team-card .card-body {
        padding: 1rem 0.5rem;
    }
    #team .card.team-card img {
        width: 80px !important;
        height: 80px !important;
    }
    #team .card.team-card .card-title {
        font-size: 0.9rem;
    }
    #team .card.team-card small {
        font-size: 0.75rem;
    }
}

/* Carousel Styles */
.gallery-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-caption h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.gallery-caption small {
    color: #666;
    font-size: 0.8rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    border: 2px solid #0066cc;
}

.carousel-indicators .active {
    background-color: #0066cc;
}

/* Responsive carousel adjustments */
@media (max-width: 768px) {
    .gallery-item img {
        height: 150px !important;
    }
    
    .gallery-caption h6 {
        font-size: 0.8rem;
    }
    
    .gallery-caption small {
        font-size: 0.75rem;
    }
    
    .carousel-indicators {
        bottom: -30px;
    }
}

/* Feedback Widget Styles */
.feedback-floating-btn{
  position:fixed;
  bottom:30px;
  right:30px;
  padding:12px 18px;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  color:#fff;
  border:0;
  border-radius:50px;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(4,96,111,0.3);
  transition:all .3s ease;
  z-index:999;
}

.feedback-floating-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 16px rgba(4,96,111,0.4);
}

.feedback-floating-btn:active{
  transform:translateY(-1px);
}

/* Feedback Modal */
.feedback-modal{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%) scale(0.9);
  background:#fff;
  border-radius:12px;
  padding:24px;
  box-shadow:0 10px 40px rgba(0,0,0,0.15);
  z-index:1001;
  opacity:0;
  visibility:hidden;
  transition:all .3s ease;
  max-width:420px;
  width:90%;
  max-height:80vh;
  overflow-y:auto;
}

.feedback-modal.active{
  opacity:1;
  visibility:visible;
  transform:translate(-50%, -50%) scale(1);
}

.feedback-modal-content{
  position:relative;
}

.feedback-close-btn{
  position:absolute;
  top:-8px;
  right:-8px;
  background:none;
  border:0;
  font-size:28px;
  cursor:pointer;
  color:#999;
  padding:0;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:color .2s ease;
}

.feedback-close-btn:hover{
  color:#333;
}

/* Feedback Overlay */
.feedback-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0);
  z-index:1000;
  opacity:0;
  visibility:hidden;
  transition:all .3s ease;
}

.feedback-overlay.active{
  background:rgba(0,0,0,0.5);
  opacity:1;
  visibility:visible;
}

/* about doctor content */

.about-content{
  text-align: justify;
  line-height: 1.6;
}

/* Responsive feedback button */
@media (max-width:576px){
  .feedback-floating-btn{
    bottom:20px;
    right:20px;
    padding:10px 14px;
    font-size:13px;
  }

  .feedback-modal{
    max-width:calc(100% - 20px);
    width:90%;
  }
}


.footer-about p{
  line-height: 0.8 px !important;
}

/* Global responsive fixes */
img, svg, picture, video, .card-img-top{max-width:100%;height:auto;display:block}

/* Make hero scale better on medium and small screens */
@media (max-width: 992px){
  :root{--hero-height:46vh}
  .hero-content{padding:2rem 0}
  .display-5{font-size:1.9rem}
  .lead{font-size:1rem}
}

@media (max-width:768px){
  :root{--hero-height:38vh}
  .display-5{font-size:1.5rem}
  .lead{font-size:.98rem}
  .hero{background-position:top}
  .hero .overlay{background:linear-gradient(180deg,rgba(0,0,0,0.35),rgba(0,0,0,0.02))}
  .hero-card{display:none}
}

/* Team avatar scaling */
.team-card img{width:100%;max-width:120px;height:auto;margin:0 auto}

/* Ensure cards use flexible layout */
.service-card .icon{width:64px;height:64px}

/* Illustrations wrap better on small screens */
@media (max-width:576px){
  .illustrations .col-6{padding:6px}
  .illustrations img, lottie-player{max-width:90px}
}

/* Improve form/card spacing on narrow screens */
@media (max-width:420px){
  .container{padding-left:12px;padding-right:12px}
  .card.p-3{padding:12px}
}