body {
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
margin: 0;
padding: 0;
color: #333;
line-height: 1.6;
}

nav {
background: linear-gradient(90deg, #1976d2, #42a5f5);
padding: 15px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
display: flex;
justify-content: center;
flex-wrap: wrap;
}

nav a {
color: white;
margin: 10px;
text-decoration: none;
padding: 10px 15px;
border-radius: 25px;
transition: all 0.3s ease;
font-weight: bold;
}

nav a:hover {
background: rgba(255,255,255,0.2);
transform: translateY(-2px);
}

h1, h2, h3 {
color: #1976d2;
margin-bottom: 20px;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin: 20px auto;
max-width: 1200px;
padding: 0 20px;
}

video {
width: 100%;
border: 3px solid #42a5f5;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button {
padding: 12px 25px;
margin: 10px;
cursor: pointer;
background: linear-gradient(45deg, #4caf50, #66bb6a);
color: white;
border: none;
border-radius: 25px;
font-size: 16px;
transition: all 0.3s ease;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button:hover {
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

input {
padding: 10px;
margin: 5px;
border: 1px solid #ccc;
border-radius: 5px;
width: 200px;
}

#alertList div {
background: #fff;
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px;
margin: 10px auto;
max-width: 600px;
text-align: left;
}

footer {
margin-top: 50px;
padding: 20px;
background: linear-gradient(90deg, #1976d2, #42a5f5);
color: white;
text-align: center;
}

#audioToggle {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}

.patient-card {
background: #fff;
border: 1px solid #ddd;
border-radius: 15px;
padding: 20px;
text-align: center;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}

.patient-card:hover {
transform: translateY(-5px);
}

.patient-details {
margin-top: 50px;
text-align: center;
}

/* New styles for hospital homepage */
.hero {
position: relative;
color: white;
text-align: center;
padding: 100px 20px;
overflow: hidden;
}

.carousel {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}

.carousel img {
width: 100%;
height: 100%;
object-fit: cover;
display: none;
}

.carousel img:first-child {
display: block;
}

.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.4);
z-index: 0;
}

.hero h1, .hero p, .hero button {
position: relative;
z-index: 1;
}

.hero h1 {
font-size: 3em;
margin-bottom: 20px;
}

.hero p {
font-size: 1.5em;
margin-bottom: 30px;
}

section {
padding: 50px 20px;
max-width: 1200px;
margin: 0 auto;
animation: fadeInUp 1s ease-out;
}

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

.about, .services, .doctors, .news, .contact {
text-align: center;
}

.about img {
width: 100%;
max-width: 600px;
border-radius: 10px;
margin-top: 20px;
}

.service-grid, .doctor-grid, .news-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 30px;
}

.service, .doctor, .news-item {
background: #fff;
border: 1px solid #ddd;
border-radius: 10px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.doctor img {
width: 100%;
border-radius: 50%;
margin-bottom: 15px;
}

.contact form {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
margin-top: 20px;
}

.contact input, .contact textarea {
width: 100%;
max-width: 400px;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}

.contact textarea {
height: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
nav {
flex-direction: column;
padding: 10px;
}

nav a {
margin: 5px;
padding: 8px 12px;
}

.hero {
padding: 50px 20px;
}

.hero h1 {
font-size: 2em;
}

.hero p {
font-size: 1.2em;
}

section {
padding: 30px 20px;
}

.service-grid, .doctor-grid, .news-grid {
grid-template-columns: 1fr;
gap: 15px;
}

.contact input, .contact textarea {
max-width: 100%;
}
}

@media (max-width: 480px) {
.hero h1 {
font-size: 1.5em;
}

.hero p {
font-size: 1em;
}

button {
padding: 10px 20px;
font-size: 14px;
}
}