/* About Section */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    padding-top: 80px; /* Increased top padding to create space below the navbar */
    min-height: 60vh;
    box-sizing: border-box;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Container */
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* About Content and Image */
.about-content, .about-image {
    flex: 1;
    min-width: 300px;
    margin: 10px;
    box-sizing: border-box;
}

.about-content {
    animation: slideInLeft 1s ease-in-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.about-image {
    animation: slideInRight 1s ease-in-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Image Styling */
.about-image img, .hospital-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover, .hospital-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Hospital Section */
.hospital-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px; /* Increased padding */
    box-sizing: border-box;
    background-color: #FFFFFF;
}

.hospital-content {
    text-align: justify;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 2s ease-in-out;
    color: #6c757d;
}

.hospital-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hospital-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Video Gallery */
.video-gallery {
    padding: 80px 20px;
    box-sizing: border-box;
}

.video-gallery h2 {
    margin-bottom: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.video-item:hover img {
    transform: scale(1.1);
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

/* Full-Screen Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    margin: auto;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 95px; /* Adjust this value to create space between the navbar and modal */
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.modal-close-button:hover {
    color: #f1f1f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
    }
    .navbar-nav .nav-item {
        margin: 10px 0;
    }
    .about-section, .hospital-section, .video-gallery {
        padding: 80px 20px;
        margin-top: 20px; /* Additional margin for small screens */
    }
    .about-content, .about-image, .hospital-content, .hospital-image, .video-item {
        margin: 10px 0;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
