/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header Styles */
header {
    background-color: #008000;
    color: white;
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add padding for better spacing */
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* Allow logo and title to take available space */
}

.logo-title img {
    height: 50px;
}

.hospital-name {
    font-size: 24px;
    font-weight: bold;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1; /* Allow contact info to take available space */
    justify-content: center; /* Center contact info */
	 
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* Prevent text from wrapping */
	 
}

.contact-item img {
    width: 20px;
    height: 20px;
	 
}

.social-icons {
    display: flex;
    gap: 10px;
    flex: 1; /* Allow social icons to take available space */
    justify-content: flex-end; /* Align social icons to the right */
}

.social-icons img {
    width: 24px;
    height: 24px;
}

/* Responsive Design for Header */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo-title {
        justify-content: center;
        margin-bottom: 10px;
    }

    .contact-info {
        flex-direction: row; /* Ensure contact items stay horizontal */
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .social-icons {
        justify-content: center;
        margin-top: 10px;
    }
}
/* Navigation Menu */
nav {
    background-color: #FFFFFF;
	padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background-color: #008000;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #003399;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

nav ul li:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 10px;
    background-color: #FFFFFF;
}

.dropdown-menu li a:hover {
    background-color: #008000;
}
/* Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%; /* Display submenu to the right */
    margin-left: 1px; /* Reduced gap between parent and submenu */
    margin-top: -1px; /* Reduced gap for better alignment */
}
/* Ensure submenus are visible on hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Add an arrow to indicate submenus */
.dropdown-submenu > a::after {
    content: "▸"; /* Right arrow */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}


/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Stack menu items vertically */
    }

    nav ul li {
        width: 100%; /* Full width for menu items */
    }

    .dropdown-menu {
        position: static; /* Display submenus inline */
        display: none; /* Hide submenus by default */
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dropdown-menu li a {
        padding-left: 30px; /* Indent submenu items */
    }

    .dropdown-submenu > .dropdown-menu {
        left: 0; /* Reset position for sub-submenus */
        margin-left: 0;
    }

    /* Show/hide submenus on click */
    .dropdown > a::after,
    .dropdown-submenu > a::after {
        content: "▾"; /* Down arrow */
        float: right;
    }

    .dropdown.active > .dropdown-menu,
    .dropdown-submenu.active > .dropdown-menu {
        display: block;
    }
}

/* Department Page Styles */
.department-section {
    padding: 40px 0;
}

.department-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.department-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.department-main {
    flex: 2;
}

.department-sidebar {
    flex: 1;
}

.hod-profile {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.hod-profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #003399;
    margin-bottom: 15px;
}

.hod-profile h3 {
    color: #003399;
    margin-bottom: 5px;
}

.hod-profile .designation {
    font-weight: bold;
    color: #555;
}

.hod-profile .qualifications {
    font-style: italic;
    color: #666;
}

.department-services ul {
    list-style-type: disc;
    padding-left: 20px;
}

.department-services li {
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .department-content {
        flex-direction: column;
    }
    
    .department-sidebar {
        order: -1;
        margin-bottom: 30px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

/* Slider Styles */
.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 10%; /* Move text higher up */
    left: 10%;
    color: white;
    background-color: rgba(0, 0, 0, 0.3); /* Make background less opaque */
    padding: 15px;
    border-radius: 10px;
    max-width: 600px;
    box-sizing: border-box;
}

.slide-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.slide-text p {
    font-size: 16px;
    line-height: 1.5;
}
/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

/* Quick Links Section */
.quick-links {
    background-color: #f9f9f9;
    padding: 40px 0;
    text-align: center;
}

.quick-links .btn-primary {
    display: inline-block;
    background-color: #0044cc;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.quick-links .btn-primary:hover {
    background-color: #003399;
}

/* Marquee Text */
.marquee {
    background: linear-gradient(to right, #0044cc, #003399); /* Gradient background */
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee p {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee 45s linear infinite;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    position: relative; /* Change to relative */
    color: white; /* Default text color */
}

/* Add a duplicate marquee text for seamless looping */
.marquee p::after {
    content: attr(data-text); /* Duplicate the text */
    display: inline-block;
    padding-left: 100%; /* Add spacing between the original and duplicate text */
    position: absolute;
    top: 0;
    left: 100%; /* Position the duplicate text to the right of the original */
    white-space: nowrap;
    color: white; /* Default text color */
}

/* Pause animation on hover */
.marquee:hover p {
    animation-play-state: paused;
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); } /* Start from the original position */
    100% { transform: translateX(-100%); } /* Move to the left */
}
/* About Us Section */
.about-us {
    padding: 60px 0;
    background: linear-gradient(to right, #f9f9f9, #e6f2ff); /* Subtle gradient background */
}

.about-us h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0044cc; /* Brand color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.about-text .btn-primary {
    display: inline-block;
    background-color: #0044cc;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.about-text .btn-primary:hover {
    background-color: #003399;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
    }
}
/* Services Section */
.services {
    padding: 60px 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0044cc; /* Brand color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.services-slider {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.service-card {
    flex: 0 0 33.33%; /* Display 3 services at a time */
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0 10px; /* Add spacing between cards */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0044cc; /* Brand color */
}

.service-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.service-content .btn-primary {
    display: inline-block;
    background-color: #0044cc;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.services-slides {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}

.service-content .btn-primary:hover {
    background-color: #003399;
}
/* Services Section - Responsive Design */
.service-card {
    flex: 0 0 calc(33.33% - 20px); /* 3 services per slide on desktop */
    margin: 0 10px;
}

@media screen and (max-width: 1024px) {
    .service-card {
        flex: 0 0 calc(50% - 20px); /* 2 services per slide on tablets */
    }
}

@media screen and (max-width: 768px) {
    .service-card {
        flex: 0 0 calc(100% - 20px); /* 1 service per slide on mobile */
    }
}

/* Navigation Arrows */
.services-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.services-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .service-card {
        flex: 0 0 50%; /* Display 2 services at a time on tablets */
    }
}

@media screen and (max-width: 768px) {
    .service-card {
        flex: 0 0 100%; /* Display 1 service at a time on mobile */
    }
}

/* Slider Dots */
.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.slider-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #0044cc; /* Brand color */
}
/* Footer Section */
footer {
    background-color: #0044cc; /* Brand color */
    color: white;
    padding: 40px 0 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add padding to prevent content from touching the edges */
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f0f0f0; /* Light gray on hover */
}
 /* Back-to-Top Button */
.back-to-top {
    text-align: center;
    margin-top: 20px;
}

.back-to-top a {
    display: inline-block;
    background-color: #003399; /* Brand color */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top a:hover {
    background-color: #002266; /* Darker shade on hover */
    transform: translateY(-3px); /* Slight lift on hover */
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1); /* Slightly enlarge icons on hover */
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Light border */
}

.footer-bottom p {
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Chief Medical Director Section */
.medical-director {
    padding: 60px 0;
  /*  background: linear-gradient(to right, #f9f9f9, #e6f2ff) *//* Light gradient */
}

.medical-director h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0044cc; /* Brand color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.director-profile {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.director-image {
    flex: 1;
    text-align: center;
}

.director-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #0044cc; /* Brand color border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.director-info {
    flex: 2;
}

.director-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #0044cc; /* Brand color */
}

.director-info .designation {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.director-info .bio {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.director-info .btn-primary {
    display: inline-block;
    background-color: #0044cc;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.director-info .btn-primary:hover {
    background-color: #003399;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .director-profile {
        flex-direction: column;
        text-align: center;
    }

    .director-image img {
        width: 200px;
        height: 200px;
    }
}
/* Latest News and Events Section */
.news-events {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.news-events h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0044cc; /* Brand color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0044cc; /* Brand color */
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.news-content .btn-primary {
    display: inline-block;
    background-color: #0044cc;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.news-content .btn-primary:hover {
    background-color: #003399;
}

/* Responsive Design for News Section */
@media screen and (max-width: 768px) {
    .news-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* News Detail Page */
.news-article {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-article h1 {
    color: #0044cc;
    margin-bottom: 15px;
}

.news-content {
    line-height: 1.8;
    font-size: 16px;
}

/* Admin News Tables */
.table-responsive {
    overflow-x: auto;
}

.table img {
    max-height: 50px;
}

/* News Link in Navigation */
nav ul li a[href*="#news-events"] {
    color: #0044cc;
    font-weight: bold;
}

nav ul li a[href*="#news-events"]:hover {
    text-decoration: underline;
}

/* Principal Officers Section */
.principal-officers {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
}

.principal-officers h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #0044cc;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.principal-officers h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0044cc, #00aaff);
    border-radius: 3px;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.officer-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.officer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.officer-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.officer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.officer-card:hover .officer-image img {
    transform: scale(1.05);
}

.officer-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.officer-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0044cc;
    line-height: 1.3;
}

.officer-info .designation {
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.3;
}

.officer-info .rank {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.officer-info .qualification {
    font-size: 13px;
    color: #0044cc;
    font-style: italic;
    margin-top: 8px;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .officers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 992px) {
    .officers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .officers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .officer-image {
        height: 180px;
    }
}

@media screen and (max-width: 480px) {
    .officers-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .principal-officers h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .officer-card {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Gallery Section */
.gallery {
    padding: 60px 0;
    background-color: white;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0044cc; /* Brand color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablets */
    }
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
}
/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Location Section */
.location {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background */
}

.location h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0044cc; /* Brand color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}
/* Curved Divider */
.section-divider-curved {
    position: relative;
    height: 100px;
    background: linear-gradient(to right, #0044cc, #003399); /* Gradient background */
    border-radius: 0 0 50% 50% / 0 0 100% 100%; /* Curved shape */
    margin-top: -50px; /* Adjust overlap with the previous section */
    z-index: 1;
}
/* Custom Styles for the Appointment Form */
.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0;
}

.card-body {
    padding: 2rem;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Add spacing between form groups */
.form-group {
    margin-bottom: 1.0rem;
}

/* Background for the form container */
.container-fluid.my-5 {
    background: linear-gradient(135deg, #f9f9f9, #e6f2ff);
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.card-header {
    border-radius: 5px 5px 0 0;
}

.card-body {
    padding: 2rem;
}

/* Ensure the form is centered and responsive */
.container.my-5 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.card {
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto;
}

/* Add spacing between columns */
.row > .col-md-6 {
    padding: 0 15px; /* Add padding to separate columns */
}

/* News Bulletin Styles 
.news-bulletin {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.bulletin-container {
    max-width: 800px;
    margin: 0 auto;
}

.bulletin-card {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bulletin-cover {
    flex: 1;
    min-width: 300px;
    max-height: 400px;
    object-fit: cover;
}

.bulletin-placeholder {
    flex: 1;
    min-width: 300px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
}

.bulletin-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .bulletin-card {
        flex-direction: column;
    }
    
    .bulletin-cover, .bulletin-placeholder {
        min-width: 100%;
        max-height: 300px;
    }
}
*/
/* PDF Preview Styles 
#pdf-viewer-container {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    overflow-x: auto;
}

#pdf-canvas {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    max-width: 100%;
}

.pdf-controls {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.bulletin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 576px) {
    .bulletin-actions {
        flex-direction: column;
    }
    
    .bulletin-actions .btn {
        width: 100%;
    }
}
*/
/* ==================== */
/* NEWS BULLETIN STYLES */
/* ==================== */

.news-bulletin {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.news-bulletin h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0044cc;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.bulletin-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bulletin-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bulletin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bulletin-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #0044cc;
}

.bulletin-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-bottom: 3px solid #0044cc;
}

.bulletin-placeholder i {
    font-size: 60px;
    opacity: 0.8;
}

.bulletin-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bulletin-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.bulletin-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.bulletin-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.bulletin-actions .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bulletin-actions .btn-primary {
    background: #0044cc;
    border: none;
}

.bulletin-actions .btn-primary:hover {
    background: #003399;
    transform: translateY(-2px);
}

.bulletin-actions .btn-success {
    background: #28a745;
    border: none;
}

.bulletin-actions .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ====================== */
/* PDF PREVIEW MODAL STYLES */
/* ====================== */

/* Fix for Bootstrap modal conflicts */
#pdfPreviewModal .modal-dialog {
    max-width: 90%;
    height: 90vh;
    margin: 1rem auto;
}

#pdfPreviewModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

#pdfPreviewModal .modal-header {
    background: #0044cc;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 1.5rem;
}

#pdfPreviewModal .modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: #f5f5f5;
}

#pdfPreviewModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

/* PDF Viewer Container */
#pdf-viewer-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#pdf-canvas {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    background: white;
}

/* PDF Navigation Controls */
.pdf-controls {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.pdf-controls .btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    min-width: 100px;
}

.pdf-controls .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

#page-num, #page-count {
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
    min-width: 120px;
    text-align: center;
}

/* Download Button */
#download-pdf {
    background: #28a745;
    border: none;
    padding: 8px 20px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#download-pdf:hover {
    background: #218838;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Modal Backdrop Fix */
.modal-backdrop {
    z-index: 1040;
    opacity: 0.5 !important;
}

.modal {
    z-index: 1050;
}

/* Ensure modal closes properly */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Make sure buttons are clickable */
.btn:not(:disabled) {
    cursor: pointer;
}

/* ====================== */
/* RESPONSIVE DESIGN */
/* ====================== */

@media (max-width: 992px) {
    .bulletin-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .bulletin-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .bulletin-cover, .bulletin-placeholder {
        height: 200px;
    }
    
    .bulletin-info {
        padding: 20px;
    }
    
    .bulletin-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Modal responsive */
    #pdfPreviewModal .modal-dialog {
        max-width: 95%;
        height: 95vh;
        margin: 0.5rem auto;
    }
    
    .pdf-controls {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .pdf-controls .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
    
    #page-num, #page-count {
        order: -1;
        width: 100%;
        text-align: center;
    }
    
    #pdfPreviewModal .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    #download-pdf, 
    #pdfPreviewModal .modal-footer .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-bulletin h2 {
        font-size: 28px;
    }
    
    .bulletin-card {
        margin: 0 10px;
    }
    
    .bulletin-info h3 {
        font-size: 1.1rem;
    }
    
    #pdfPreviewModal .modal-dialog {
        max-width: 100%;
        height: 100vh;
        margin: 0;
    }
    
    #pdfPreviewModal .modal-content {
        border-radius: 0;
        height: 100vh;
    }
}


/* ... all your existing CSS ... */

/* =========================== */
/* FIXES ADDED ON [17/12/2925] */
/* =========================== */

/* Fix for PDF canvas */
#pdf-canvas {
    will-read-frequently: true; /* Fix for canvas warning */
}

/* Make download link work properly */
#download-pdf {
    text-decoration: none;
    color: white;
}

#download-pdf:hover {
    text-decoration: none;
    color: white;
    opacity: 0.9;
}

/* Fix for modal z-index issues */
.modal-backdrop.show {
    z-index: 1040;
}

.modal.show {
    z-index: 1050;
}



/* =========================== */
/* MODAL FIXES */
/* =========================== */

/* Force modal backdrop cleanup */
.modal-backdrop {
    opacity: 0.5 !important;
}

.modal-backdrop.fade.show {
    opacity: 0.5 !important;
}

/* Fix for frozen interface after modal close */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Ensure modal closes completely */
.modal {
    z-index: 1050 !important;
    overflow: hidden !important;
}

.modal.fade.show {
    display: block !important;
}

/* Fix for modal transitions */
.modal.fade {
    transition: opacity 0.15s linear;
}

.modal.fade:not(.show) {
    opacity: 0;
}

/* Remove any leftover backdrop */
body:not(.modal-open) .modal-backdrop {
    display: none !important;
}



/* Fix for PDF canvas warnings */
#pdf-canvas {
    will-read-frequently: true;
}

/* Ensure download link works */
#download-pdf {
    cursor: pointer;
    text-decoration: none !important;
}

#download-pdf:hover {
    opacity: 0.9;
}

/* Fix for modal backdrop */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Make sure modal closes completely */
body:not(.modal-open) .modal-backdrop {
    display: none !important;
}