/* Root Variables */
:root {
    --primary-color: #181818;
    --secondary-color: #232946;

    --accent-blue: #3a86ff;
    --accent-pink: #ff006e;
    --accent-yellow: #ffd700;
    --light-bg: #232946;
    --white: #f5f5f5;
    --text-dark: #f5f5f5;
    --text-light: #b8c1ec;
    --gradient-primary: linear-gradient(135deg, #232946 0%, #3a86ff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff006e 0%, #ffd700 100%);
   
    --gradient-min: linear-gradient(135deg, #0296785b 0%, #3274df4d 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.5);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.7);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.9);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop view (≥992px, Bootstrap lg breakpoint) */
@media (min-width: 992px) {
  .custom-logo {
    margin-left: 10rem; /* Push logo in */
  }
  .custom-nav {
    margin-right: 7rem; /* Push nav links further right */
  }
}




/* ✅ Mobile view */
@media (max-width: 576px) {
  .navbar-brand .brand-text {
    font-size: 14px;   /* smaller hospital name */
  }

  .navbar-brand div {
    height: 55px !important;  /* shrink circle */
    width: 55px !important;
  }

  .navbar-brand img {
    
     /* shrink logo inside circle */
    width: auto !important;
  }
}



/* Mobile view (<992px) */
@media (max-width: 991px) {
  .navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .custom-logo {
    margin-left: 0; /* Reset */
  }
  .custom-nav {
    margin-left: 0; /* Reset */
  }
}



.btn-gradient {
    background:#1B3A57;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-gradient:hover {
    background: linear-gradient(to right, #f448bc, #814bee); /* reverse on hover */
    color: #fff;
    transform: scale(1.05);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #ffffffd4;
    overflow-x: hidden;
    
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    color: #1B3A57;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(52, 152, 219, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.3s both;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Navigation */
.navbar {
    background: #2ca7a3d4;
    backdrop-filter: blur(10px);
    /* padding: 1rem 0; */
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    font-family: 'Fredoka', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: 'Fredoka', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff !important; /* Force white text */
    background: none !important; /* remove gradient bg */
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

.navbar-brand .brand-text {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 18px;
}


@media (max-width: 768px) {
    .navbar-brand .brand-text {
       color: #fff !important;
  font-weight: 500;
  font-size: 15px;
    }
}

.text-pink {
    color: white !important;
}


.nav-it {
   background-color: #1B3A57;
   border-radius: 18px;
   
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1B3A57;
    transition: var(--transition);
    transform: translateX(-50%);
}

#app{
    background-color: #1B3A57;
     border-radius: 15px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}



.nav-link:hover {
    color: #f8eaf4;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .nav-link {
        position: relative;
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 6px;
        background: transparent;
        transition: 0.3s ease;
    }

    /* Remove underline animation on mobile */
    .nav-link::before {
        display: none;
    }

    /* Mobile hover (simple background highlight instead) */
    .nav-link:hover,
    .nav-link.active {
        background: #ffffff28;
        border: 1px solid #f8eaf4;
        transform: none; /* no shift up */
    }
}
/* Hero Section */
.hero-section {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(67 56 56 / 80%) 0%, rgba(52, 73, 94, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    /* max-width: 800px; */
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn-3d {
    position: relative;
    padding: 1rem 2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
}

.btn-primary.btn-3d {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-secondary.btn-3d {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn-3d:hover::before {
    left: 100%;
}

.btn-3d:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-3d:active {
    transform: translateY(-1px);
}

/* Section Padding */
.section-padding {
    padding: 5rem 0;
    
}

.section-header {
    margin-bottom: 3rem;
}

/* About Section */


.accordion-button {
        font-size: 1.1rem;
        transition: all 0.3s ease;
        color: #ffffff;
    }
    .accordion-button:focus {
        box-shadow: none;
    }
    .accordion-button:not(.collapsed) {
        color: #fff;
        background: #007bff;
        border-radius: 0.5rem;
    }
    .accordion-body {
        font-size: 1rem;
        line-height: 1.6;
    }
    .accordion-item:hover {
        transform: translateY(-3px);
        transition: transform 0.3s ease;
    }


    /* Change arrow color */
    .accordion-button::after {
        /* Collapsed state arrow color → blue */
        filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    }

    .accordion-button:not(.collapsed)::after {
        /* Expanded state arrow color → white */
        filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    }







#about{
   background-color: #f8eaf4; 
}
.about-modal-content {
    background:#2ca7a3d4;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
}

.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.05);
}

.about-content {
    padding-left: 2rem;
}

.about-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: white;
    text-align: justify;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1B3A57;
    font-family: 'Fredoka', cursive;
}

.stat-label {
    font-size: 0.9rem;
    color: white;
}

/* Mission & Vision Cards */
.mission-vision-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.mission-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--transition);
}

.mission-card::before {
    background: var(--gradient-primary);
}

.vision-card::before {
    background: var(--gradient-secondary);
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.mission-vision-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.card-icon {
    font-size: 2.5rem;       /* slightly smaller so it doesn't push too much */
    margin: 0;               /* reset margin */
    padding: 0 !important;   /* no extra padding */
    line-height: 1;          /* removes vertical spacing from font */
    display: block;          /* ensures no inline spacing weirdness */
}


.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1B3A57;
    /* margin-top: -80px; */
} 

.card-text {
    color:black;
    line-height: 1.7;
    justify-content: center !important;
    text-align: justify;
}

/* Services Section */
.bg-light {
    background-color: #2ca7a3d4 !important;
}

.service-card {
    background:#f8eaf4;;
    padding: 2rem;
    border-radius: var(--border-radius);
     border: 1px solid #ffffff;;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:linear-gradient(to right, #814bee, #f448bc); ;
    opacity: 0;
    transition: var(--transition);
    transform: rotate(45deg);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: #f548bb;
}

.service-icon {
    font-size: 3rem;
     color: #1B3A57;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotateY(360deg);
    animation: float 2s ease-in-out infinite;
    
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1B3A57;
    position: relative;
    z-index: 2;
}

.service-description {
    color: #000000; 
    position: relative;
    z-index: 2;
}






/* Why Choose Us */
.why-choose-us {
    background: #f8eaf4;;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
     border: #ffffff solid 1px;

}

.why-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
      background:#2ca7a3d4;
       opacity: 1;
}

.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-mint);
    opacity: 0.1;
    transition: var(--transition);
}

.why-item:hover::before {
    left: 0;
}

.why-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-light);
}

.why-icon {
    font-size: 2rem;
    color: var(--accent-mint);
    margin-right: 1.5rem;
    transition: var(--transition);
}

.why-item:hover .why-icon {
    transform: scale(1.2);
    animation: glow 2s infinite;
}

.why-content h5 {
    color: #1B3A57 ;
    margin-bottom: 0.5rem;
}

.why-content p {
    color: black;
    margin: 0;
    
}

/* Departments Section */

#departments{
    background-color: #f8eaf4;
    border: #00b894 solid 1px;
}
.department-card {
    background: #2ca7a3d4;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    transform: scale(0);
    border-radius: 50%;
}

.department-card:hover::before {
    opacity: 0.1;
    transform: scale(2);
}

.department-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: var(--shadow-heavy);
}

.department-icon {
    font-size: 3rem;
    color: #f8eaf4;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.department-card:hover .department-icon {
    transform: scale(1.3) rotateZ(360deg);
    color: white;
}

.department-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 2;
}

.department-description {
    color: #000000;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.department-arrow {
    font-size: 1.2rem;
    color: var(--accent-mint);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.department-card:hover .department-arrow {
    transform: translateX(10px);
}

/* Doctors Section */

#doctors {
    background-color: #2ca7a3d4;
}
.section-tit {
    font-size: 2rem;
    font-weight: 700;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-ti{
     font-size: 2.5rem;
     color: #1B3A57 !important;
    font-weight: 700;
    background-clip: text;
    margin-bottom: 1rem;
}

/* .doctor-card {
    background-color: #660475d4;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
   
     border: 1px solid #00b894;
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
} */


.doctor-card {
    display: block; /* important for <a> */
    background-color: #f8eaf4;;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    height: auto; /* changed from 100% to auto */
    border: 1px solid #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
    text-decoration: none; /* remove underline */
    color: inherit; /* keep text color */
}

.doctor-image {
    position: relative;
    overflow: hidden;
    height: 220px; /* reduced from 250px */
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 1.2rem; /* reduced from 1.5rem */
    text-align: center;
}

.doctor-name {
    font-size: 1.3rem;
    color: #1B3A57;
    margin-bottom: 0.5rem;
}

.doctor-specialty {
    color: black;
    margin-bottom: 1rem;
}

.doctor-rating {
    color: var(--accent-yellow);
}

.doctor-rating i {
    margin: 0 2px;
    transition: var(--transition);
}

.doctor-card:hover .doctor-rating i {
    transform: scale(1.2);
    animation: bounce 0.5s ease-in-out;
}


@media (min-width: 992px) {
    .doctor-card {
        max-width: 320px; /* set a maximum width */
        margin: 0 auto;   /* center the card within the column */
    }
}

/* Forms */
#contact{
   border: #ffffff solid 1px;
}

#contact.bg-light {
    background:#2ca7a3d4  !important;
}

#appointment {
    background-color: #f8eaf4;
    border: #ffffff solid 1px;
}

.section-sub {
    font-size: 1.1rem;
    font-weight: bold;
    max-width: 600px;
    margin: 0 auto;
     color: #000000 !important;
}

.section-ti {
    font-size: 2.5rem;
    font-weight: 700;
    color:#2ca7a3d4;
    margin-bottom: 1rem;
}


.appointment-form-container {
    height: 95%;
    background:#1B3A57;
    padding: 3rem;
    border-radius: var(--border-radius);
     box-shadow: var(--shadow-light);
}

.appointment-form-container {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: var(--shadow-heavy);
}


.contact-form-container {
    height: 95%;
    background: #1B3A57;
    padding: 3rem;
    border-radius: var(--border-radius);
     border: 1px solid #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
    
}

.form-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-mint);
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-inf {
    padding: 2rem;
    border-radius: var(--border-radius);

    border: 1px solid #ffffff; 
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.contact-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: #1B3A57;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: linear-gradient(to right, #814beeb6, #f448bbaf);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-mint);
    margin-right: 1rem;
    margin-top: 0.25rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
    animation: bounce 0.5s ease-in-out;
}

.contact-details h6 {
    color: rgb(255, 255, 255);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: white;
    margin: 0;
    font-size: 15px;
}

@media (max-width: 768px) {
    .contact-details p {
        font-size: 12px; /* smaller on mobile */
    }
}


/* Footer */
.footer {
    background: #1B3A57;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-brand {
    font-family: 'Fredoka', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: justify;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background:#2ca7a3d4;
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: #f8eaf4; ;
    color: #2ca7a3d4;
    transform: translateY(-3px) scale(1.1);
}

.footer-title {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-mint);
    transform: translateX(5px);
    display: inline-block;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
  
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    background-color: #1B3A57;
}

.modal-header {
    background: #2ca7a3d4;
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
    font-family: 'Fredoka', cursive;
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .about-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .brand-text {
        color: white !important;
    }
    
    .appointment-form-container,
    .contact-form-container {
        padding: 2rem;
    }
    
    .about-modal-content {
        padding: 2rem;
    }
    
    .why-choose-us {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .btn-3d {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card,
    .department-card {
        padding: 1.5rem;
    }
    
    .mission-vision-card {
        padding: 2rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #b8dacc;
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    border: 1px solid #f1aeb5;
    color: #721c24;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-mint);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
        --shadow-medium: 0 5px 20px rgba(0,0,0,0.4);
        --shadow-heavy: 0 10px 30px rgba(0,0,0,0.5);
    }
}


/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

#map {
 
 color: rgb(255, 255, 255);
   padding: 20px;
}


.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 30%; /* smaller height, was 56.25% */
    position: relative;
    height: 0;
}
/* Mobile view - make map taller */
@media (max-width: 768px) {
    .map-responsive {
        padding-bottom: 60%; /* bigger height on mobile */
    }
}




.top-header {
    background: #1B3A57; /* same as navbar color */
    color: #fff;
    font-size: 0.85rem; /* smaller text */
    height: 35px; /* thin height */
    line-height: 35px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030; /* above main navbar */
}

.top-header .contact-info div {
    display: flex;
    align-items: center;
}

.top-header .social-icons a {
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
    
}

.top-header .social-icons a:hover {
    color: #ff4081; /* pink hover */
}

/* Push main navbar below top header */
.navbar {
    margin-top: 35px; /* same as top-header height */
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .top-header {
        flex-direction: row; /* keep single row */
        justify-content: space-between; /* phone left, icons right */
        align-items: center;
        height: 40px;
        padding: 0 10px;
    }

    /* Hide email on mobile */
    .top-header .contact-info div:nth-child(2) {
        display: none;
    }

    /* Contact info */
    .top-header .contact-info {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.85rem;
    }

    .top-header .contact-info i {
        font-size: 1rem;
    }

    /* Social icons */
    .top-header .social-icons {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .top-header .social-icons a {
        font-size: 1.2rem;
    }
}
