* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.container {
    padding: 5px;
    margin-bottom: 40px;
}

.heading-text {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

/* header */

#header {
    width: 100%;
    height: 10vh;
    background-color: #ffffff;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    /* Ensure all items are on the same line */
}

.logo {
    width: 10vh;
}

nav ul {
    display: flex;
    flex-wrap: nowrap;
    /* Ensure the list items stay on one line */
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
    margin: 0 20px;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    position: relative;
}

.nav-buttons {
    display: flex;
    align-items: center;
}

#donate-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    margin-right: 10px;
    cursor: pointer;
}

#donate-btn:hover {
    background-color: #218838;
}

nav .fas {
    display: none;
}

/* Popup overlay - semi-transparent background */
.popup-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for better focus */
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* Ensure it's on top */
}

/* Popup content box */
.popup-content {
    background: #fff;
    padding: 30px 40px;
    width: 90%;
    max-width: 400px;
    /* Set a max width */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    z-index: 11;
    animation: fadeIn 0.3s ease-in-out;
    /* Smooth fade-in effect */
}

/* Title of the pop-up */
.popup-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000;
    /* Match the color with the Donate button */
}

/* Donation details */
.popup-content p {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    border: 1px dashed #28a745;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Close button style */
.popup-content button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-content button:hover {
    background-color: #218838;
    /* Darker green on hover */
}

/* Copy icon style */
#copy-icon {
    float: right;
    cursor: pointer;
    color: #000000;
    /* Green color for the icon */
    margin-top: 5px;
    /* Add some space above the icon */
}


#copy-icon:hover {
    color: #218838;
    /* Darker green on hover */
}


/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#donate-btn:hover {
    background-color: #218838;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #849187a7;
    /* Green background */
    color: rgba(255, 255, 255, 0.619);
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    /* Hidden by default */
    z-index: 100;
    /* Ensure it's above other elements */
}


/* For small screens */
@media only screen and (max-width: 760px) {
    nav {
        position: relative;
        height: 10vh;
    }

    /* Show the bars icon */
    nav .fas {
        display: block;
        font-size: 25px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 3;
        /* Ensure it's above other elements */
    }

    /* Position the donate button to the left of the bars icon */
    #donate-btn {
        position: absolute;
        right: 50px;
        /* Add space between donate button and bars icon */
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 3;
        /* Ensure it's on top of other elements */
        transition: right 0.5s ease, left 0.3s ease;
        /* Transition to center when menu opens */
    }

    /* Hide the default nav items */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        /* Initially hide the menu off-screen */
        width: 200px;
        height: 100vh;
        background-color: #cdf2dc;
        padding-top: 80px;
        transition: right 0.5s ease;
        /* Slide-in effect */
        flex-direction: column;
        /* Stack items vertically */
        align-items: flex-start;
        /* Align items to the left */
        justify-content: flex-start;
        padding-left: 20px;
        /* Padding for better alignment */
        z-index: 2;
    }


    nav ul.open {
        right: 0;
        /* Bring the menu into view */
    }

    /* Hide the bars icon when the side menu is open */
    nav .fas.hide {
        display: none;
    }

    /* Close button inside the side menu */
    nav ul .fas {
        position: absolute;
        top: 35px;
        right: 10px;
        cursor: pointer;
    }

    nav ul li {
        margin: 10px 0;
        /* Add vertical space between menu items */
    }

    nav ul li a {
        font-size: 18px;
        color: #000;
        text-decoration: none;
    }

    /* Move donate button to center when menu opens */
    nav ul.open~.nav-buttons #donate-btn {
        /* right: 50%;
        transform: translateX(-50%) translateY(-50%); */
        display: none;
    }
}

@media only screen and (max-width: 450px) {

    /* Move donate button to 25% from the left when the menu opens */
    nav ul.open~.nav-buttons #donate-btn {
        /* left: 25%; 
        transform: translateY(-50%);  */
        display: none;
    }
}




/* Between 670px and 860px for reduced font size */
@media only screen and (min-width: 740px) and (max-width: 890px) {
    nav ul li a {
        font-size: 16px;
    }

    nav ul li {
        margin: 10px 15px;
    }
}


/* ------home--------- */

.image-container {
    width: 100%;
    height: 66.67vh;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

.row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 80%;
    margin: 0 auto;
}

.box {
    flex: 1;
    margin: 10px;
    background-color: #79a3d1;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.large-text {
    font-size: 2.5rem;
    /* Adjust this value as needed */
    font-weight: bold;
}

.small-text {
    font-size: 1rem;
    /* Adjust this value as needed */
}


/* about us */

#about-us {
    padding: 20px;
}

.about-row {
    display: flex;
    gap: 60px;
    /* Space between columns */
    justify-content: center;
}

.about-col-1 {
    flex-basis: 40%;
    /* padding: 20px; */
    box-sizing: border-box;
    line-height: 1.5;
    text-align: justify;
    height: auto;
}

.about-col-2 {
    flex-basis: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.about-col-2 video {
    max-width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

/* For larger screens, reduce video height by 20% */
@media (min-width: 820px) {
    .about-col-2 video {
        height: 90%;
        /* Reduce height by 20% */
    }
}

/* For smaller screens: switch to vertical layout and decrease font size */
@media (max-width: 820px) {
    .about-row {
        flex-direction: column;
        /* Stack columns vertically */
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        font-size: 14px;
        /* Decrease text size */
    }

    .about-col-2 video {
        width: 100%;
        /* Ensure video takes full width */
        height: auto;
    }
}

.donation-details {
    text-align: center;
    background-color: #28a7462d;
    padding: 30px;
    margin: 40px auto;
    border-radius: 15px;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.donation-details h3 {
    margin-bottom: 10px;
    color: #2d6a4f;
    font-size: 24px;
}

.donation-details h4 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 25px
}

.donation-details p {
    margin: 5px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    border: 1px dashed #28a745;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
}



/* facilities */


.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0;
    width: 80%;
    height: auto;
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background-color: #6fa6ac;
    color: white;
    /* White text and icons */
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.grid-item i {
    font-size: 1.5rem;
    /* Increase icon size */
    color: white;
    /* White icon color */
    margin-bottom: 10px;
}


p {
    margin: 0;
    font-size: 1.25rem;
    /* Adjust text size */
}

/* Responsive Layout */
@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on smaller screens */
    }
}

@media (max-width: 500px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        /* 1 column on very small screens */
    }
}

/* doctors */

.doctor-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.doctor-card {
    padding: 15px;
    border-radius: 10px;
    border: 10px solid;
    /* Default border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.doctor-card p {
    margin: 10px 0;
}


/* Add icons using ::before */
.doctor-name::before {
    content: "\f0f0";
    /* FontAwesome user-md icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #007bff;
}

.department::before {
    content: "\f21e";
    /* FontAwesome heartbeat icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #007bff;
}

.qualification::before {
    content: "\f19d";
    /* FontAwesome graduation-cap icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #007bff;
}

.timing::before {
    content: "\f017";
    /* FontAwesome clock icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #007bff;
}


/* Department-specific background colors */
.department-bp {
    border-color: rgba(0, 123, 255, 0.3);
}

.department-neuro {
    border-color: rgba(40, 167, 69, 0.3);
}

.department-skin {
    border-color: rgba(255, 193, 7, 0.3);
}

.department-gastro {
    border-color: rgba(220, 53, 69, 0.3);
}

.department-psychiatry {
    border-color: rgba(102, 16, 242, 0.3);
}

.department-drug {
    border-color: rgba(104, 238, 206, 0.3);
}

.department-nephrology {
    border-color: rgba(255, 87, 34, 0.3);
}


* Font and layout adjustments for smaller screens */ .doctor-box h3 {
    font-size: 1.2rem;
}

.doctor-box p {
    font-size: 1rem;
}

/* Responsive layout for medium screens */
@media (max-width: 856px) {
    .doctor-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .doctor-box h3 {
        font-size: 1rem;
    }

    .doctor-box p {
        font-size: 0.8rem;
    }
}

/* Adjustments for small screens between 500px and 600px */
@media (max-width: 660px) {
    .doctor-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .doctor-box h3 {
        font-size: 0.7rem;
    }

    .doctor-box p {
        font-size: 0.6rem;
    }
}

/* For screens below 500px, two boxes per row */
@media (max-width: 659px) {
    .doctor-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .doctor-box h3 {
        font-size: 0.5rem;
    }

    .doctor-box p {
        font-size: 0.4rem;
    }
}

/* For screens below 450px, one boxes per row */
@media (max-width: 450px) {
    .doctor-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 8px;
    }

    .doctor-box h3 {
        font-size: 0.4rem;
    }

    .doctor-box p {
        font-size: 0.3rem;
    }
}

/* Managing committee container styles */
.committee-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

.committee-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.committee-member {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.committee-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.committee-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #313132;
}

.committee-member p {
    font-size: 1rem;
    color: #555;
}

/* Smaller font size for last row with members */
.member-row .committee-member h3 {
    font-size: 1.2rem;
    /* Smaller font for the last row */
}

/* Specific styles for different roles */
.chief-row .committee-member {
    background-color: rgba(40, 167, 69, 0.6);
    /* #28a745 at 0.7 opacity */
}

.president-row .committee-member,
.vice-president-row .committee-member {
    background-color: rgba(40, 167, 69, 0.5);
    /* Lighter shade */
}

.secretary-row .committee-member {
    background-color: rgba(40, 167, 69, 0.3);
    /* Even lighter shade */
}

.member-row .committee-member {
    background-color: rgba(40, 167, 69, 0.2);
    /* Lightest shade */
}


/* Responsive Layout for tablets and up */
@media (min-width: 768px) and (max-width: 1006px) {
    .committee-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Medium screens (width 720px - 570px) */
@media (min-width: 720px) and (max-width: 768px) {
    .committee-row.member-row {
        grid-template-columns: repeat(4, 1fr);
        /* 3 boxes in one row */
    }

    .committee-member h3 {
        font-size: 1.2rem;
        /* Reduced font size */
    }

    .committee-member p {
        font-size: 0.9rem;
        /* Reduced paragraph size */
    }
}

/* Small screens (width 570px and below) */
@media (max-width: 570px) {
    .committee-row.member-row {
        grid-template-columns: repeat(2, 1fr);
        /* Two columns, one box in second row */
    }

    .committee-member {
        font-size: 0.9rem;
        padding: 10px;
    }

    .committee-member h3 {
        font-size: 1rem;
        /* Smaller font size for headings */
    }

    .member-row .committee-member h3 {
        font-size: 0.8rem;
        /* Smaller font for the last row */
    }

    .committee-member p {
        font-size: 0.8rem;
        /* Smaller font size for paragraphs */
    }
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px;
    width: 80%;
    margin: 0 auto;
}

.contact-info {
    font-size: 1rem;
    color: #333;
}

.contact-info p {
    margin: 0;
    /* Reset margin for all paragraphs */
}

.contact-info p+p {
    margin-top: 15px;
    /* Adds a gap only between consecutive paragraphs */
}

.contact-icons {
    display: flex;
    align-items: center;
    /* Center the icons vertically */
    gap: 15px;
    /* Add space between icons */
}

.contact-icons i {
    font-size: 1.5rem;
    /* Adjust size as needed */
    margin-right: 5px;
    /* Optional: add spacing between icon and link */
}


.details i {
    margin-right: 10px;
    color: #000000;
}

.facebook-icon {
    color: #3b5998;
    /* Blue color for Facebook */
    font-size: 2rem;
    /* Adjust size as needed */
}

.whatsapp-icon {
    color: #25D366;
    /* Green color for WhatsApp */
    font-size: 2rem;
    /* Adjust size as needed */
}

/* Optional: Add hover effect */
.contact-icons a:hover {
    opacity: 0.8;
    /* Slightly reduce opacity on hover */
}


.contact-map {
    height: 35vh;
    width: 90%;
}

.contact-map iframe {
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

#footer {
    background-color:#e5e5eab0; 
    color: rgb(0, 0, 0); 
    padding: 10px 0;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between logo and info */
    text-align: center;
    flex-wrap: wrap; /* Ensures responsive behavior on smaller screens */
}

.footer-logo img {
    width: 80px; /* Adjust size of the logo */
    height: auto;
}

.footer-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

@media (max-width: 450px) {
    .footer-container {
        flex-direction: column; /* Stack items vertically on small screens */
    }
}
