﻿/* ============================================
   NDANAI HOSPITAL - MAIN STYLESHEET
   Government Hospital Style
   ============================================ */

:root {
    --primary: #1a4d8c;
    --primary-dark: #0b2b4a;
    --primary-light: #2e6ab0;
    --secondary: #006d77;
    --secondary-dark: #004d54;
    --accent: #d4a017;
    --accent-dark: #b8860b;
    --success: #2e7d32;
    --danger: #c62828;
    --warning: #f57c00;
    --info: #0288d1;
    --light: #f5f5f5;
    --light-gray: #e0e0e0;
    --dark: #212121;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

.btn {
    border-radius: 5px;
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    border: none;
    color: var(--white);
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,160,23,0.4);
    color: var(--white);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 50px;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-width: 2px;
    background-color: rgba(0,0,0,0.3);
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: #1a4d8c;
    border-color: #ffffff;
}

/* ========== EMERGENCY BAR ========== */
.emergency-bar {
    background-color: var(--accent);
    color: var(--white);
    padding: 10px 0;
    font-weight: 500;
    font-size: 14px;
}

.emergency-bar i {
    margin-right: 8px;
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: var(--primary) !important;
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white) !important;
}

.navbar-brand i {
    margin-right: 10px;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent) !important;
    transform: translateY(-2px);
}

/* ========== HERO SLIDER SECTION ========== */
.hero-slider-section {
    position: relative;
    margin-top: 0;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover !important;
    background-position: center !important;
}

.hero-content {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content-left .hero-text {
    max-width: 650px;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-text .lead {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 35px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-buttons .btn {
    margin-right: 15px;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
}

/* Hero Indicators */
.hero-indicators {
    bottom: 30px;
}

.hero-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.6);
    border: none;
}

.hero-indicators button.active {
    background-color: #d4a017;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* Animations */
.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* ========== WHY CHOOSE US ========== */
.why-card {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.why-card i {
    font-size: 3rem;
    color: #1a4d8c;
    margin-bottom: 20px;
}

/* ========== STATS SECTION ========== */
.bg-light {
    background-color: var(--light) !important;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary);
}

/* ========== SERVICE CARDS ========== */
.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-card .card-body {
    padding: 20px;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ========== NEWS CARDS ========== */
.news-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

/* ========== LEADERSHIP SECTION ========== */
.leadership-card {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.leadership-card i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ========== QUICK DEPARTMENT ACCESS ========== */
.quick-departments {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.dept-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1a4d8c;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.dept-quick-link:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #1a4d8c, #0b2b4a);
    color: white;
    box-shadow: 0 10px 25px rgba(26,77,140,0.3);
}

.dept-quick-link i {
    margin-bottom: 8px;
}

.dept-quick-link span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== PATIENT TESTIMONIALS ========== */
.testimonials-section {
    background-color: #f8f9fa;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.quote-icon {
    font-size: 2rem;
    color: #d4a017;
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 20px;
}

.testimonial-card p {
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.patient-info i {
    color: #1a4d8c;
}

.patient-info h6 {
    margin-bottom: 3px;
    color: #1a4d8c;
}

.stars i {
    font-size: 0.8rem;
    margin-right: 2px;
}

/* ========== DOCTORS SECTION ========== */
.doctor-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.doctor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #d4a017;
}

/* ========== UPCOMING EVENTS ========== */
.events-section {
    background-color: #f8f9fa;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.event-date {
    background: linear-gradient(135deg, #1a4d8c, #0b2b4a);
    color: white;
    padding: 20px 15px;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-details {
    padding: 15px;
    flex: 1;
}

.event-details h5 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.event-details p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.event-details p i {
    margin-right: 5px;
    color: #d4a017;
}

/* ========== BEAUTIFUL BANNER SLIDER ========== */
.banner-section {
    position: relative;
}

.banner-slide {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: bannerFadeInUp 0.8s ease;
}

.banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a4d8c;
    margin-bottom: 15px;
}

.banner-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.banner-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}

.btn-banner {
    background: linear-gradient(135deg, #1a4d8c, #0b2b4a);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.banner-icon {
    font-size: 3rem;
    color: #d4a017;
    margin-bottom: 20px;
}

/* Gradient Slides (when no image) */
.gradient-slide {
    height: 450px;
    position: relative;
}

.gradient-0 {
    background: linear-gradient(135deg, #1a4d8c, #0b2b4a);
}

.gradient-1 {
    background: linear-gradient(135deg, #006d77, #004d54);
}

.gradient-2 {
    background: linear-gradient(135deg, #d4a017, #b8860b);
}

.gradient-3 {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

/* Banner Indicators */
.banner-indicators {
    bottom: 20px;
}

.banner-indicators button {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.banner-indicators button.active {
    background-color: #d4a017;
}

/* Banner Controls */
.banner-control {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.banner-section:hover .banner-control {
    opacity: 1;
}

.banner-control:hover {
    background: #d4a017;
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

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

/* ========== PARTNERS SECTION ========== */
.partners-section {
    background-color: var(--light);
    padding: 40px 0;
}

.partner-logo {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 10px;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ========== DONATION SECTION ========== */
.donation-options p {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.donation-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.donation-card h3 {
    color: var(--white);
}

.progress {
    height: 30px;
    border-radius: 15px;
    background-color: rgba(255,255,255,0.3);
}

.progress-bar {
    background-color: var(--accent);
    border-radius: 15px;
    line-height: 30px;
    font-weight: bold;
}

/* ========== VISITING HOURS ========== */
.visiting-card {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.visiting-card h5 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* ========== FLOATING WHATSAPP BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background: #128C7E;
    color: white;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer a {
    color: #ccc;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent);
    padding-left: 5px;
}

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

.footer ul li {
    margin-bottom: 10px;
}

.footer hr {
    background-color: rgba(255,255,255,0.1);
    margin: 30px 0 20px;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* ========== FORMS ========== */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    padding: 10px 15px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26,77,140,0.25);
}

label {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

/* ========== TABLES ========== */
.table {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead {
    background-color: var(--primary);
    color: var(--white);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(26,77,140,0.05);
}

/* ========== PAGINATION ========== */
.pagination .page-link {
    color: var(--primary);
}

.pagination .active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ========== ALERTS ========== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    color: var(--success);
}

.alert-danger {
    background-color: #f8d7da;
    color: var(--danger);
}

.alert-warning {
    background-color: #fff3cd;
    color: var(--warning);
}

.alert-info {
    background-color: #d1ecf1;
    color: var(--info);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background-color: var(--light);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: #666;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text .lead {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text .lead {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
        margin-right: 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .carousel-item {
        height: 80vh;
    }
    
    .hero-content {
        height: 80vh;
    }
    
    .hero-content-left .hero-text {
        text-align: center;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .hero-indicators {
        bottom: 15px;
    }
    
    .dept-quick-link {
        padding: 10px;
    }
    
    .dept-quick-link i {
        font-size: 1.5rem;
    }
    
    .dept-quick-link span {
        font-size: 0.7rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    
    .event-date .day {
        font-size: 1.2rem;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .whatsapp-float {
        border-radius: 50%;
        padding: 12px;
    }
    
    .doctor-img {
        width: 80px;
        height: 80px;
    }
    
    .banner-slide, .gradient-slide {
        height: 400px;
    }
    
    .banner-content {
        padding: 25px;
        margin: 0 15px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-description {
        font-size: 0.85rem;
    }
    
    .btn-banner {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .banner-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text .lead {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .carousel-item {
        height: 70vh;
    }
    
    .hero-content {
        height: 70vh;
    }
    
    .hero-indicators button {
        width: 8px;
        height: 8px;
    }
    
    .banner-slide, .gradient-slide {
        height: 380px;
    }
    
    .banner-title {
        font-size: 1.2rem;
    }
    
    .banner-subtitle {
        font-size: 0.9rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .why-card, .news-card, .testimonial-card, .doctor-card {
    animation: fadeIn 0.5s ease-out;
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar, .footer, .emergency-bar, .btn, .back-to-top, .whatsapp-float {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}