/* styles.css */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    background-color: #fff;
    color: #2c3e50;
    text-align: center;
    padding: 10px;
    margin: 0;
}

h1 {
    font-weight: bold;
    font-size: 3em;
    margin-bottom: 5px; /* Set bottom margin for h1 to 0.0em */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(149, 122, 123);
}

.logo-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

#hospital-logo {
    width: 100%; /* Stretch the logo to cover the entire width */
    height: 100%; /* Maintain the original aspect ratio */
    object-fit: cover; /* Crop the image to maintain quality */
    display: block;    
}

.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    color: #2e2d2ddc; /* Set the text color to white */
    padding: 50px; /* Adjust the padding as needed */
    background-color: rgba(255, 255, 255, 0.7); /* Set the background color with transparency */
    border-radius: 20px; /* Add border-radius for rounded corners */
    text-align: center; /* Center the text */
    font-family: 'Palatino'; /* 'Didot'; */
}

.services {
    margin-top: 20px; /* Adjust the margin as needed */
    text-align: center; /* Center the services */
}

h2 {
    font-size: 2em;
    margin-bottom: 50px;
    color: rgb(149, 122, 123);
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    width: 60px; /* Set the width of the underline */
    height: 3px; /* Set the height/thickness of the underline */
    background-color: rgb(149, 122, 123); /* Set the color of the underline */
    bottom: -20px; /* Adjust the position of the underline */
    left: 50%;
    transform: translateX(-50%);
}

p {
    font-size: 1.2em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px; /* Add margin for space between p and ul */
}

ul {
    list-style-type: none;
    padding: 0;
    column-count: 3; /* Set the number of columns */
    column-gap: 20px; /* Set the gap between columns */
    margin-top: 40px; /* Add margin for space between p and ul */
}

li {
    font-size: 1.2em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 50px; /* Add margin for spacing between rows */
}

.gallery-header {
    margin-top: 20px;
    text-align: center; /* Center the gallery header */
}

.gallery-container {
    margin-top: 20px; /* Add margin for space between services and gallery */    
}

.photo-gallery {
    display: flex;
    overflow: hidden;
    margin-top: 40px; /* Add margin for space between header and photos */
    height: 300px; /* Set a specific height for the gallery container */
}

.photo-gallery img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    margin-right: 25px; /* Add margin between images */
}

.photo-gallery img:hover {
    transform: scale(1.1);
}

.contact-header {
    margin-top: 20px;
    text-align: center; /* Center the gallery header */
}

.contact-info {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-around;
}

.contact-left,
.contact-right {
    width: 45%; /* Adjust the width as needed */
}

.contact-info p {
    font-size: 1.2em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: space-around; /* Distribute items along the row */
}

.contact-info li {
    font-size: 1.2em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
    width: calc(80% - 10px); /* Adjust the width and margin as needed */
    box-sizing: border-box; /* Include padding and border in width calculation */
    text-align: center; /* Center-align content within each list item */
}

.contact-info li span {
    margin-top: 5px; /* Add margin to separate day and hours */
}

footer {
    background-color: rgb(246, 246, 246); /* Light gray background for contact info and footer */
    text-align: center;
    margin-top: 20px;
}

footer p {
    font-size: 1em;
    color: #555;
}