/* scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 20px; 
    right: 10px; 
    display: none; 
    /* z-index: 1000; */
}

.scroll-to-top button {
    font-size: 30px;
    /* padding: 10px; */
    border-radius: 50%;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

.scroll-to-top button:hover {
    background-color: #555;
}

/* scroll to top */



/* anti ragging css */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: #1E73BE;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-family: 'Arvo', serif;
    font-weight: 700;
}

.poster-link {
    text-align: center;
    margin-bottom: 30px;
}

.poster-link a {
    color: #1E73BE;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.poster-link a:hover {
    text-decoration: underline;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.member-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 280px;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border: 5px solid #eee;
    /* border-radius: 8px; */
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1E73BE;
}

.member-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.member-contact {
    font-size: 15px;
    margin-top: 15px;
}

.member-email {
    word-break: break-all;
    color: #1E73BE;
}

@media (max-width: 1200px) {
    .member-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .member-card {
        width: 100%;
    }
}

/* anti ragging css */


/* hospital */
.services {
    width: 98%;
    margin: 20px auto;
}

.services_sub h5 {
    margin-left: 6rem;
}

.services_sub {
    width: 80%;
}

.services_p {
    width: 90%;
    margin: 10px auto;
    margin-left: 6rem;
    text-align: justify;
}

.services_div {
    width: 90%;
    height: 35px;
    padding-left: 2px;
    margin: 0 auto;
    margin-left: 5.5rem;
    border-bottom: 1px solid #000;
}

.ser_hr {
    width: 90%;
    margin: 0rem auto;
}


.profile_main {
    padding: 20px;
}

.profile_card {
    height: 200px !important;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 15px;
    background-color: #457ac0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-evenly;
}


.profile_p {
    overflow: hidden;
    color: #fff;
}

.profile_p p {
    color: #fff;
}

.profile-img {
    width: 120px;
    height: 150px !important;
    border-radius: 10px;
    object-fit: contain;
}

.rightside_profile {
    margin-left: 20px;
}

.profile_bot {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

/* Notics */

.container_sms_main {
    width: 99.99%;
    max-width: 960px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Tab Buttons Container */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    background-color: #f8f9fa;
    color: initial;
    align-items: center;
    border-bottom: none;
}

/* Individual Tab Button */
.tab-buttons p {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-right: 1px solid #444;
    margin: 0;
    background-color: green;
    color: #fff;
}

/* Remove right border on the last tab */
.tab-buttons p:last-child {
    border-right: none;
}

/* Hover effect */
.tab-buttons p:hover {
    background-color: #e2e6ea;
}

/* Active tab-content styling */
.tab-buttons p.active {
    background-color: #dee2e6;
    font-weight: bold;
    color: #000;
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
    min-height: 370px;
}

.tab-content.active {
    display: block;
}

.notice-board_nmch {
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.notice-list {
    position: absolute;
    width: 100%;
    animation: scroll-up 10s linear infinite;
}

.notice-list:hover {
    animation-play-state: paused;
}

@keyframes scroll-up {
    0% {
        top: 100%;
    }

    100% {
        top: -100%;
    }
}

.notice-list li {
    list-style: none;
    padding-left: 10px;
    padding-right: 10px;
}

.sup_man_card {
    width: 100%;
}

.sup_mam {
    display: flex;
}

.psup_mam_main {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.sup_mam_notice {
    width: 50%;
}

@media only screen and (max-width: 768px) {
    .sup_mam {
        display: flex;
        flex-direction: column;
    }

    .psup_mam_main {
        width: 100%;
    }

    .sup_mam_notice {
        width: 100%;
    }

    .tab-buttons p {
        text-align: center;
        padding: 12px 20px;
        border-right: none;
        font-size: 0.6em;
    }

    .tab-buttons p:last-child {
        border-bottom: none;
    }

    .Days_tab {
        align-items: center;
        padding: 0 !important;
        margin: 0 !important;
    }

    .Days_tab ol {
        width: 95%;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .services {
        width: 98%;
        outline: auto;
        overflow: hidden;
    }

}

/* hospital */

/* anti-ragging */
.heading {
    text-align: center;
    margin-bottom: 30px;
}

.heading h2 {
    font-weight: bold;
}

.table th {
    background-color: #343a40;
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2;
}

.section-title {
    margin-top: 40px;
    font-size: 1.3rem;
    font-weight: 600;
}

.signature-section {
    margin-top: 50px;
}

.signature {
    float: right;
    text-align: center;
}
/* anti-ragging */


/* Contact us */

/* Contact us */



/* department */
.departments-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.department-header {
    text-align: center;
    margin-bottom: 3rem;
}

.department-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.header-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    margin: 0 auto;
    border-radius: 2px;
}

/* Grid Layout */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

/* Department Card Styles */
.department-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.department-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1.5rem 1rem;
}

.department-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8f9fa;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.department-card:hover .department-img-container {
    border-color: #3498db;
    transform: scale(1.05);
}

.department-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.department-card:hover .department-img {
    transform: scale(1.1);
}

.department-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.department-card:hover .department-title {
    color: #3498db;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .department-img-container {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }

    .department-header h2 {
        font-size: 2rem;
    }

    .department-img-container {
        width: 90px;
        height: 90px;
    }

    .department-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .department-header h2 {
        font-size: 1.8rem;
    }

    .department-img-container {
        width: 80px;
        height: 80px;
    }

    .department-link {
        padding: 1rem 0.5rem;
    }
}

/* department */


/* History */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-blue: #003366;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.heading-font {
    font-family: 'Playfair Display', serif;
}

.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 86, 179, 0.8)),
        url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.history-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 50px;
}

.section-header {
    background-color: var(--dark-blue);
    color: white;
    padding: 20px 30px;
    margin-bottom: 30px;
}

.section-header h2 {
    margin-bottom: 0;
    font-weight: 700;
}

.content-section {
    padding: 0 30px 30px;
}

.timeline {
    position: relative;
    padding-left: 50px;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.milestones-section {
    background-color: #f0f7ff;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.milestone-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.milestone-card:hover {
    transform: translateY(-5px);
}

.milestone-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.gallery-section {
    margin: 50px 0;
}

.gallery-img {
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.gallery-img img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.principals-section {
    margin: 50px 0;
}

.principal-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.principal-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin: 0 auto 15px;
}

.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 30px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 60px 0;
    }
}

/* History */


/* Image Gallery */
.img_gallery {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img_gallery img {
    width: 100%;
    height: 15em;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.img_gallery:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.modal-img {
    cursor: pointer;
}

.full-modal-img {
    width: 100%;
    max-height: 30em;
    object-fit: contain;
    margin: auto;
}

#prevBtn:hover,
#nextBtn:hover {
    opacity: 1;
}

.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nmch-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.nmch-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nmch-img {
    flex: 1 1 40%;
    min-width: 280px;
}

.nmch-about {
    flex: 1 1 55%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.nmch-about h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.nmch-about p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .nmch-container {
        flex-direction: column;
    }

    .nmch-img,
    .nmch-about {
        flex: 1 1 100%;
    }
}

/* Image Gallery */


/* Media gallery */
.img_gallery {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img_gallery img {
    width: 100%;
    height: 15em;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img_gallery:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.modal-img {
    cursor: pointer;
}

.full-modal-img {
    width: 100%;
    max-height: 30em;
    object-fit: contain;
    margin: auto;
}

#prevBtn:hover,
#nextBtn:hover {
    opacity: 1;
}

.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nmch-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.nmch-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nmch-img {
    flex: 1 1 40%;
    min-width: 280px;
}

.nmch-about {
    flex: 1 1 55%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.nmch-about h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.nmch-about p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .nmch-container {
        flex-direction: column;
    }

    .nmch-img,
    .nmch-about {
        flex: 1 1 100%;
    }
}

/* Media gallery */






/* sc/st complaint */
.form-section {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h3 span {
    font-weight: bold;
}

.form-label {
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

/* sc/st complaint */

/* succession list */
.succession-container {
    list-style-position: inside;
}


/* video-gallery */
.heading h2 {
    margin-bottom: 30px;
}

.video_container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.v_title h4 {
    font-weight: 600;
}

.v_title h6 {
    color: #6c757d;
}

video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* video-gallery */