/* Custom CSS for G-Hospital Website */

/* 1. Global & Typography */
:root {
    --gh-green: #00BFA6; /* Primary Green */
    --gh-blue: #007bff; /* Primary Blue (Bootstrap Blue for contrast) */
    --gh-dark: #1a237e; /* Deep Navy/Indigo for professional background */
    --gh-light: #f0f4f8; /* Very light subtle grey */
    --gh-gradient-start: #00bfa666; /* Green with opacity */
    --gh-gradient-end: #007bff66; /* Blue with opacity */
    --font-family-sans-serif: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.text-green-custom { color: var(--gh-green) !important; }
.text-blue-custom { color: var(--gh-blue) !important; }
.icon-green-custom { color: var(--gh-green); }
.icon-blue-custom { color: var(--gh-blue); }

/* Logo Styles */
.logo-custom {
    height: 40px; /* Standard size for header */
    width: auto;
}
.logo-custom-footer {
    height: 30px;
    width: auto;
    filter: brightness(2); /* Makes the logo pop on the dark footer */
}

/* 2. Backgrounds & Gradients */
.bg-dark-custom {
    background-color: var(--gh-dark) !important;
}

.bg-dark-custom-alt {
    background-color: #263238 !important; /* Slightly lighter dark for contrast */
}

.bg-light-custom {
    background-color: var(--gh-light) !important;
}

.bg-gradient-custom-light {
    background: linear-gradient(135deg, var(--gh-light) 0%, rgba(200, 220, 255, 0.5) 100%);
}

.bg-gradient-custom-dark {
    /* Futuristic hospital visuals with gradient tones of green and blue. */
    background: linear-gradient(135deg, var(--gh-dark), rgba(26, 35, 126, 0.8)), url('img/banner-hospital.jpg') center/cover;
    background-blend-mode: multiply;
}

/* 3. Navbar Styling (NEW ACTIVE/HOVER STATE) */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75); /* Default color on dark background */
    transition: color 0.2s ease-in-out;
}

/* Navigation Links - Green on Hover and Active */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gh-green) !important;
}

/* 4. Buttons */
.btn-primary-custom {
    background-color: var(--gh-blue);
    border-color: var(--gh-blue);
    color: white;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-green-custom {
    background-color: var(--gh-green);
    border-color: var(--gh-green);
    color: var(--gh-dark);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-green-custom:hover {
    background-color: #009983;
    border-color: #009983;
    color: white;
}

.btn-outline-light-custom {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    border-radius: 50px;
}
.btn-outline-light-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-hover-scale {
    transform: scale(1);
    transition: transform 0.3s ease;
}
.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* 5. Hero Section & Carousel Fix */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gh-dark), var(--gh-blue)); 
    position: relative;
    overflow: hidden;
}

.carousel-fixed-height {
    /* Set a fixed minimum height for the carousel inner content to prevent jump/glitch */
    min-height: 70vh; 
    display: flex;
    align-items: center;
}

.carousel-item {
    /* Ensure carousel item takes full height/width */
    height: 100%;
}

.content-v-align {
    /* Flexbox utility for vertical centering content inside the carousel item */
    display: flex;
    align-items: center;
    min-height: 70vh; /* Match carousel-fixed-height */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Placeholder image path */
    background: url('img/banner-hospital.jpg') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
}

.futuristic-img {
    /*
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--gh-green); /* Border for futuristic UI look */
    
}

/* 6. How It Works (Timeline) - Kept the same) */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    position: relative;
    margin-top: 50px;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: linear-gradient(to right, var(--gh-green), var(--gh-blue));
    z-index: 0;
}

.timeline-step {
    width: 20%;
    text-align: center;
    position: relative;
    padding: 0 10px;
    z-index: 1;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: white;
    color: var(--gh-dark);
    border: 5px solid var(--gh-green);
    margin: 0 auto 15px auto;
    font-size: 1.8rem;
    box-shadow: 0 0 0 8px var(--gh-light); 
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    border-color: var(--gh-blue);
    transform: scale(1.1);
}

/* 7. Feature Cards & UI Elements (Kept the same) */
.feature-card {
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--gh-green);
}

.feature-card-dark {
    background-color: #2d384c;
    border: 1px solid var(--gh-blue);
}

.form-control-custom {
    background-color: #2d384c !important;
    border-color: #4a5971 !important;
    color: white !important;
}
.form-control-custom:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25) !important;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-left: 5px solid var(--gh-green);
    border-radius: 8px;
    min-height: 220px;
}

.avatar {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    color: white;
    font-weight: 700;
}
.bg-blue-custom { background-color: var(--gh-blue); }
.bg-green-custom { background-color: var(--gh-green); }

/* Why Us List */
.why-us-list li {
    padding: 8px 0;
    font-size: 1.1rem;
}

/* 8. Floating WhatsApp Button (Kept the same) */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #25d366;
}

/* 9. Preloader (Updated for video) */
.preloader-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--gh-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.preloader-content {
    /* Container for the logo video/animation */
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    /* Optional: Add a subtle glow */
    box-shadow: 0 0 20px rgba(0, 191, 166, 0.5); 
}

#preloaderVideo {
    /* Ensure video scales within its container */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 10. Footer (Kept the same) */
.footer a.hover-green:hover {
    color: var(--gh-green) !important;
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .timeline-horizontal {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
    .timeline-horizontal::before {
        left: 50%;
        width: 4px;
        height: calc(100% - 40px);
        transform: translateX(-50%);
        background: linear-gradient(to bottom, var(--gh-green), var(--gh-blue));
    }
    .timeline-step {
        width: 100%;
        padding: 20px 0;
        text-align: center;
    }
    .timeline-icon {
        margin: 0 auto 15px auto;
    }
    
    /* Carousel Adjustments for Mobile */
    .hero-section {
        min-height: 70vh;
    }
    .carousel-fixed-height, .content-v-align {
        min-height: 70vh;
    }

    .carousel-item .btn {
        margin-top: 10px;
    }
}