body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}


/* Adding spinner loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* header styling */

/* Base styles */

/* Base styles */
.header {
    background-color: rgba(0, 82, 147, 0.9);
    color: white;
    padding: 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    width: 80px;
    height: auto;
    border-radius: 50%;
    flex-shrink: 0;
}

.title {
    font-size: 1.5rem;
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .logo {
        width: 60px;
    }

    .title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        width: 50px;
    }

    .title {
        font-size: 1rem;
    }
}


.hospital-image img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}


/* Card Styling */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    padding: 20px;
}

.card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}


.card:hover {
    background: #e0e0e0;
}

.icon {
    font-style: normal;
    font-size: 40px;
    display: block;
}

.contact {
    background-color: rgba(0, 82, 147, 0.9);
    color: white;
    padding: 20px;
}

/* .map iframe {
    width: 90%;
    height: 300px;
    border: 0;
    margin-top: 10px;
} */

/* Modal Styling */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

/* Make content inside the modal responsive too */
.modal-content * {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Optional: Smaller screen tweaks */
@media screen and (max-width: 480px) {
    .modal-content {
        padding: 15px;
        border-radius: 10px;
    }
}

.close {
    float: right;
    font-size: 20px;
    cursor: pointer;
}


/* Styling specifically for dynamic OPD content */
.opd-entry,
.emg-entry,
.latestUpdate-entry,
.management-entry,
.awardscertificate-entry {
    margin: 8px 0;
    padding: 6px;
    border-bottom: 1px solid #ccc;
}

.passport {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #ccc;
    margin-right: 10px;
}

.big-size {
    width: 500px;
    height: 500px;
    object-fit: contain;
    /* or 'cover' if you want it to fill completely */
    border: 1px solid #ccc;
    background: #f9f9f9;
}

.left_alignment {
    text-align: left;
}

.text-decoration {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 500;
    /* Normal weight for readability */
    color: #555;
    /* Soft gray for subtlety */

}


/* 
Test */


/* Live Events Section */
.live-events-section {
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 50px;
    margin: 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Heading style */
  .live-events-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
  }
  
  /* Event list container */
  .event-list {
    height: 500px; /* Set a fixed height for the event list */
    overflow-y: scroll; /* Enables vertical scrolling within the container */
    padding-right: 15px; /* Add space for the scrollbar */
    box-sizing: border-box; /* Ensures padding doesn't affect the width */
  }
  
  /* Event item styling */
  .event-item {
    padding: 1px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #555;
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .live-events-section {
      padding: 15px;
    }
  
    .event-item {
      font-size: 14px;
    }
  
    .event-list {
      height: 350px; /* Adjust height for smaller screens */
    }
  }
  
  @media (max-width: 480px) {
    .live-events-section {
      padding: 10px;
    }
  
    .event-item {
      font-size: 12px; /* Smaller text for smaller screens */
    }
  
    .event-list {
      height: 300px; /* Further adjust height for very small screens */
    }
  }
  