/* Navbar Styles */
.navbar {
    background-color: rgb(255, 253, 253);
    height: 40%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-nav .nav-item .nav-link {
    color: #053f0f;
    font-family: 'Muli', sans-serif;
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect for nav links */
.navbar-nav .nav-item .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
    color: rgb(13, 163, 21);
}

.navbar-nav .nav-item .nav-link:hover::before {
    width: 100%;
    height: 100%;
    opacity: 1;
}

/* Active state for current page */
.navbar-nav .nav-item.active .nav-link {
    color: rgb(34, 155, 10);
}

.navbar-nav .nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 1;
    z-index: -1;
}

/* Dropdown menu styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-family: 'Muli', sans-serif;
    padding: 8px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #064e0c;
    color: #fff;
}

/* Hamburger menu styles */
.hamburger1 {
    cursor: pointer;
}

/* Hero and Slider Wrapper */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: -1;
}
.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    position:absolute;
    top:18%
}
.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-content p {
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


.hamburger1 div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.hamburger1:hover div {
    background-color: #00ff00;
}
        .hamburger1:hover div:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }
        
        .hamburger1:hover div:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger1:hover div:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

/* Doctors Slider Styles */
.doctors-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    top: -41rem;
    z-index: 1;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.director-section  {
    padding: 60px 0;
    text-align: center;
    position: absolute;
    top: 115%;
    left: 3%;
}
.director-info{
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-size:23px;
    font-weight: bold;
    margin-top: -30px;
    margin-left: 33px;
}

.mission-statement{
    position: absolute;
    top: 100%;
    left: 2%;
    overflow: hidden;
}

/* Compact Google Translate widget in navbar */
.navbar .goog-te-gadget {
    font-size: 0 !important; /* hide extra text */
}
.navbar .goog-te-gadget .goog-te-combo {
    font-size: 14px !important;
    padding: 4px 6px;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0 !important; /* prevent banner pushing content */
}

/* Mobile controls wrapper */
.navbar-mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-lang-wrapper,
.desktop-lang-wrapper {
    display: flex;
    align-items: center;
}

.mobile-lang-icon {
    padding: 8px 12px !important;
    color: #053f0f !important;
    font-size: 1.2em;
}

.mobile-hamburger {
    margin-left: 0 !important;
}

/* Hide mobile controls on desktop */
@media (min-width: 769px) {
    .navbar-mobile-controls {
        display: none;
    }
    .desktop-lang-wrapper {
        display: flex;
    }
}

/* Show mobile controls and hide desktop lang on mobile */
@media (max-width: 768px) {
    .navbar-mobile-controls {
        display: flex;
    }
    .desktop-lang-wrapper {
        display: none;
    }
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .navbar {
        height: auto;
    }
    .navbar-brand {
        margin-left: 0 !important;
    }
    .hero-content h1 {
        font-size: 2.4em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .doctors-slider {
        height: 380px;
        top: -39.7rem;
    }
    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-brand {
        margin-left: 0 !important;
        flex: 1;
        min-width: 0;
    }
    
    .navbar-brand img {
        height: 80px !important;
    }
    
    .navbar-brand h4 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
    
    .navbar-mobile-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }
    
    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }
    
    .mobile-lang-icon {
        padding: 6px 10px !important;
        font-size: 1.1em;
    }
    
    .mobile-hamburger {
        padding: 4px;
    }
    
    .hamburger1 {
        width: 24px;
        height: 20px;
    }
    
    .hamburger1 div {
        width: 20px;
        height: 2px;
        margin: 4px 0;
    }
    
    .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 10px;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        text-align: left;
    }
    
    .navbar-nav .nav-item .nav-link {
        padding: 12px 15px;
        width: 100%;
        display: block;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
    }
    
    /* Hero and Slider Wrapper for mobile */
    .hero-slider-wrapper {
        position: relative;
        height: 70vh;
        overflow: hidden;
    }
    
    /* Hero section positioned over slider background on mobile */
    .hero-section {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }
    
    .hero-content {
        padding: 15px;
        pointer-events: auto;
        max-width: 90%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.6);
    }
    
    .hero-content h1 {
        font-size: 1.9em;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1.1em;
    }
    
    /* Doctors slider as background */
    .doctors-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .slider-container {
        height: 100%;
    }
    
    .slider-btn {
        z-index: 10;
    }
    .director-section,
    .mission-statement {
        position: static;
        margin: 20px auto 0;
        text-align: center;
    }
    .director-info {
        margin-left: 0;
    }
    .director-badge {
        position: relative;
        top: auto;
        left: auto;
        margin: -8px auto 12px;
        text-align: center;
    }
    .director-badge h1 {
        margin-bottom: 4px;
    }
    .director-badge p {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        flex: 1;
        min-width: 0;
    }
    
    .navbar-brand img {
        height: 60px !important;
    }
    
    .navbar-brand h4 {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
    }
    
    .navbar-mobile-controls {
        gap: 6px;
    }
    
    .mobile-lang-icon {
        padding: 5px 8px !important;
        font-size: 1em;
    }
    
    .navbar-toggler {
        padding: 3px 6px;
    }
    
    .hamburger1 {
        width: 20px;
        height: 18px;
    }
    
    .hamburger1 div {
        width: 18px;
        height: 2px;
        margin: 3px 0;
    }
    
    .hero-slider-wrapper {
        height: 60vh;
    }
    
    .hero-content {
        padding: 12px;
        max-width: 95%;
    }
    
    .hero-content h1 {
        font-size: 1.4em;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95em;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}