/* Global Styles */
:root {
    --primary-color: #003a70;
    --secondary-color: #35b6b4;
    --accent-color: #35b6b4;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --border-radius: 10px;
    --primary-light: #004d94;
    --secondary-light: #40d5d3;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 76px; /* Height of the fixed navbar */
}

section {
    padding: 4rem 0;
}

/* First section of each page needs extra padding */
section:first-of-type {
    padding-top: 6rem;
}

/* Special handling for hero section */
.hero {
    padding-top: 8rem !important;
}

.specialist-hero {
    padding-top: 6rem !important;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto;
}

/* Header Styles */
.hero {
    background: linear-gradient(rgba(0, 58, 112, 0.9), rgba(53, 182, 180, 0.85)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: white;
    position: relative;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover:after {
    width: 100%;
}

.navbar .nav-link.contact-btn {
    background: var(--secondary-color);
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-left: 0.5rem;
}

.navbar .nav-link.contact-btn:hover {
    background: var(--primary-color);
}

.navbar .nav-link.contact-btn:after {
    display: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

/* Why Us Section */
.why-us {
    background-color: var(--light-bg);
}

.why-us-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.feature-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Response Time Section */
.response-time {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.time-highlight {
    font-size: 3.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin: 1.5rem 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 0 0;
    margin-top: 4rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section a:hover {
    color: white;
}

.footer-section a:hover:before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: slideRight 0.3s forwards;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.footer-bottom {
    background-color: #002d57;
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
}

.powered-by {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .service-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
} 

/* Hospital Page Styles */
.hospitals-section {
    padding: 8rem 0 5rem;
    background-color: var(--light-bg);
}

.hospital-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.hospital-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.hospital-details p {
    margin-bottom: 0.8rem;
}

.hospital-details a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hospital-details a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hospitals-section {
        padding: 6rem 0 3rem;
    }
} 

/* Dropdown Animation */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.animate.slideIn {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    0% {
        transform: translateY(1rem);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .navbar .nav-link.contact-btn {
        display: inline-block;
        margin: 0.5rem 0;
    }
} 

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0 0;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
} 

/* WhatsApp Button Styles */
.whatsapp-btn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

.whatsapp-btn span {
    font-weight: 600;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Show WhatsApp button only on mobile */
@media (max-width: 768px) {
    .whatsapp-btn {
        display: flex;
    }
    
    /* Add padding to prevent content from being hidden behind the button */
    .footer {
        padding-bottom: 80px;
    }
}

/* Animation for WhatsApp button */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Add animation when the page loads on mobile */
@media (max-width: 768px) {
    .whatsapp-btn {
        animation: bounce 2s ease infinite;
    }
} 

/* Button and interactive element updates */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Update dropdown hover states */
.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: white;
} 

/* Stats Section */
.stats {
    background: white;
    padding: 60px 0;
    margin-top: -50px;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero {
        padding: 150px 0 80px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .stat-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .stats {
        margin-top: -30px;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
} 

/* Hero Section Updates */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.hero-buttons {
    margin-top: 2rem;
}

.hero-image {
    max-width: 100%;
    height: 300px; /* Reduced height for desktop */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
} 

/* Dropdown hover styles */
@media (min-width: 992px) {  /* Only apply hover effect on desktop */
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeInUp 0.3s ease;
    }

    .dropdown-menu {
        margin-top: 0;
        border: none;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        border-radius: 10px;
    }

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

/* Update existing dropdown styles */
.dropdown-menu {
    padding: 0.5rem;
    background: white;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

/* Add a small arrow indicator */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
} 

/* Doctor Card Styles */
.doctor-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

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

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 15px;
}

.doctor-details {
    padding: 1.5rem;
}

.doctor-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.designation {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience, .qualifications, .specializations {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.appointment-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Responsive styles for doctor cards */
@media (max-width: 768px) {
    .doctor-card .row {
        flex-direction: column;
    }
    
    .doctor-image {
        height: 200px;
        border-radius: 15px 15px 0 0;
    }
    
    .doctor-details {
        padding: 1rem;
    }
} 

/* Enhanced Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--secondary-color);
}

/* Enhanced Dropdown Styles */
.dropdown-menu {
    padding: 0.8rem;
    border: none;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.dropdown-item:active {
    background-color: var(--primary-color);
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .navbar-nav {
        padding: 0.5rem;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 0.8rem 1.2rem !important;
        border-radius: 8px;
    }

    .nav-link:hover {
        background-color: var(--light-bg);
    }

    .dropdown-menu {
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: transparent;
    }

    .dropdown-item {
        padding: 0.8rem 2rem;
        color: var(--text-color);
    }

    .dropdown-item:hover {
        background-color: var(--light-bg);
        color: var(--primary-color);
        transform: none;
    }

    .nav-link.contact-btn {
        margin: 0.5rem 0;
        text-align: center;
    }

    /* Animate mobile menu */
    .navbar-collapse {
        transform-origin: top;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Improve dropdown toggle appearance */
    .dropdown-toggle::after {
        float: right;
        margin-top: 10px;
    }

    /* Active state for mobile menu items */
    .nav-link.active {
        background-color: var(--light-bg);
        color: var(--primary-color);
    }
}

/* Desktop Dropdown Animations */
@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        position: relative;
    }

    .nav-link:after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background: var(--secondary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover:after {
        width: 100%;
    }

    /* Prevent contact button underline */
    .nav-link.contact-btn:after {
        display: none;
    }
} 

/* Specialist Hero Section */
.specialist-hero {
    background: linear-gradient(rgba(0, 58, 112, 0.9), rgba(53, 182, 180, 0.85)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    color: white;
    position: relative;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        display: none; /* Hide on mobile */
    }

    .specialist-hero {
        padding: 80px 0 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .specialist-hero {
        padding: 60px 0 30px;
    }
} 