/* --- General Body & Font Styles --- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-weight: 500;
    color: #005a8d; /* A professional blue */
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

p {
    font-size: 1rem;
    color: #d2d1d1;
}

/* --- Header & Navigation --- */
.top-bar {
    background: #004064;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    text-align: center;
}

.top-bar .contact-info span {
    margin: 0 15px;
}

.main-nav {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .logo {
    color: #d9534f; /* A contrasting red for the name */
    font-size: 1.8rem;
    margin: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #005a8d;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #d9534f;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    text-align: center;
    color: white;
}
.hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text visibility */
}
.hero .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
}
.hero h2 {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 15px;
}

/* --- Content Sections --- */
.content-section {
    padding: 60px 0;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* --- Director's Section --- */
.director-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}
.director-img {
    flex-basis: 30%;
}
.director-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.director-text {
    flex-basis: 70%;
}
.director-text .title {
    font-style: italic;
    color: #777;
    margin-top: -10px;
}

/* --- Departments Section --- */
.colored-bg {
    background-color: #eef7ff;
}
.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.department-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.department-card h4 {
    margin-top: 0;
    color: #d9534f;
}

/* --- Services Section --- */
.service-flex {
    display: flex;
    gap: 30px;
    justify-content: space-around;
    text-align: center;
}
.service-item {
    flex-basis: 30%;
}
.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background: #004064;
    color: #e0e0e0;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
footer p {
    margin: 5px 0;
    color: #e0e0e0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 15px;
    }
    .director-flex, .service-flex {
        flex-direction: column;
    }
}


/* ================================================================== */
/* ==  CHATBOT STYLES (Add this to the end of style.css)           == */
/* ================================================================== */

/* --- Chatbot Toggle Button --- */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #d9534f; /* Main accent color */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.chatbot-toggle:hover {
    transform: scale(1.1);
}
.chatbot-toggle svg {
    width: 32px;
    height: 32px;
}

/* --- Chat Window --- */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.chatbot-window.open {
    transform: scale(1);
}

/* --- Chat Window Header --- */
.chatbot-header {
    background: #005a8d; /* Primary blue color */
    color: white;
    padding: 20px;
    text-align: center;
}
.chatbot-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}
.chatbot-header p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
    color: #e0e0e0;
}

/* --- Chat Body --- */
.chatbot-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.4;
}

.user-message {
    background-color: #eef7ff; /* Light blue for user */
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: #f1f1f1; /* Light grey for bot */
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

/* --- Chat Footer/Input --- */
.chatbot-footer {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}
#chatbot-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 1rem;
}
#chatbot-send {
    background: #005a8d;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
#chatbot-send:hover {
    background: #004064;
}

/* ================================================================== */
/* ==  STYLES for Services Section Backdrop (Add to end of style.css) == */
/* ================================================================== */

/* --- Main Services Section with Backdrop --- */
#services {
    position: relative;
    background-image: url('./img/operation_theator.jpeg'); /* The operation theater image */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* This creates the parallax effect */
    padding: 80px 0;
    z-index: 1;
}

/* --- Dark Overlay for Text Readability --- */
#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 70, 107, 0.88); /* A dark, slightly transparent blue */
    z-index: -1;
}

/* --- Adjust Text & Icon Colors for the Dark Backdrop --- */
#services h2 {
    color: #ffffff; /* White heading */
    margin-bottom: 50px;
}
#services h4, #services p {
    color: #f0f0f0; /* Light grey text for readability */
}
#services h4 {
    color: #ffffff; /* Make the titles pure white */
    margin-bottom: 10px;
}
#services .service-icon {
    color: #ffffff; /* White icons */
}

/* --- Service Grid Layout --- */
.service-grid {
    display: grid;
    /* Create 3 columns on desktop, 2 on tablet, 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* --- Service Item Card Styling (Glass Effect) --- */
#services .service-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(5px); /* Adds a modern frosted glass effect */
    -webkit-backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.3s ease;
}

#services .service-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* --- Remove old flexbox styles to avoid conflict --- */
.service-flex {
    display: none;
}