 /* =========================================================
    DEPARTMENT DETAILS PAGE
    COMPLETELY ISOLATED CSS
========================================================= */


/* =========================================================
   PAGE BASE
========================================================= */

body.dept-page {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #222222;
    font-family: "Poppins", Arial, sans-serif;
}

body.dept-page *,
body.dept-page *::before,
body.dept-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   MAIN PAGE
========================================================= */

body.dept-page .dept-details-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

body.dept-page .dept-container {
    width: 90%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   1. DEPARTMENT HERO IMAGE
========================================================= */

body.dept-page .dept-hero-section {
    position: relative;

    width: 100%;
    height: 430px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #eeeeee;
}


/* Image wrapper */

body.dept-page .dept-hero-image-wrapper {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
}


/* Main department image */

body.dept-page .dept-hero-section img.dept-hero-image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;
    object-position: center;

    border: 0;
}


/* Dark gradient over image */

body.dept-page .dept-hero-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    width: 100%;

    padding: 100px 5% 40px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0)
    );
}


/* Department title */

body.dept-page .dept-hero-overlay h1 {
    margin: 0;

    color: #ffffff !important;

    font-size: 42px !important;
    line-height: 1.2;

    font-weight: 700 !important;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   2. DESCRIPTION
========================================================= */

body.dept-page .dept-description-section {
    width: 100%;

    margin: 0;
    padding: 65px 0;

    background: #ffffff;
}


body.dept-page .dept-description-section h2 {
    margin: 0 0 20px;

    color: #222222 !important;

    font-size: 30px !important;
    line-height: 1.3;

    font-weight: 700 !important;
}


body.dept-page .dept-description-section p {
    width: 100%;
    max-width: 1050px;

    margin: 0;

    color: #555555 !important;

    font-size: 16px !important;
    line-height: 1.85;

    font-weight: 400;
}


/* =========================================================
   3. DOCTOR + OP TIMING
========================================================= */

body.dept-page .dept-doctor-section {
    width: 100%;

    margin: 0;
    padding: 0 0 65px;

    background: #ffffff;
}


/* Main box */

body.dept-page .dept-doctor-op-box {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, 0.85fr) !important;

    width: 100%;
    min-height: 260px;

    margin: 0;
    padding: 0;

    border: 1px solid #d8d8d8;

    background: #ffffff;

    overflow: hidden;
}


/* =========================================================
   DOCTOR LEFT SIDE
========================================================= */

body.dept-page .dept-doctor-area {
    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 30px 35px;

    gap: 25px;

    background: #ffffff;
}


/* Doctor image container */

body.dept-page .dept-doctor-image-wrapper {
    flex: 0 0 145px !important;

    width: 145px !important;
    height: 175px !important;

    min-width: 145px !important;
    min-height: 175px !important;

    max-width: 145px !important;
    max-height: 175px !important;

    margin: 0;

    overflow: hidden;

    background: #f1f1f1;

    border: 1px solid #e1e1e1;
}


/* Doctor image */

body.dept-page .dept-doctor-image-wrapper img.dept-doctor-image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;

    border: 0;
}


/* Doctor details */

body.dept-page .dept-doctor-details {
    flex: 1 1 auto;

    min-width: 0;

    margin: 0;
    padding: 0;
}


/* Designation */

body.dept-page .dept-doctor-designation {
    display: block;

    margin: 0 0 7px;

    color: #666666 !important;

    font-size: 13px !important;

    line-height: 1.5;

    font-weight: 600 !important;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* Doctor name */

body.dept-page .dept-doctor-details h3 {
    margin: 0 0 10px;

    color: #222222 !important;

    font-size: 25px !important;

    line-height: 1.3;

    font-weight: 700 !important;
}


/* Qualification */

body.dept-page .dept-doctor-qualification {
    margin: 5px 0;

    color: #555555 !important;

    font-size: 15px !important;

    line-height: 1.6;
}


/* Specialization */

body.dept-page .dept-doctor-specialization {
    margin: 5px 0;

    color: #555555 !important;

    font-size: 15px !important;

    line-height: 1.6;
}


/* =========================================================
   OP TIMING RIGHT SIDE
========================================================= */

body.dept-page .dept-op-area {
    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;

    align-items: stretch !important;

    width: 100%;

    min-width: 0;

    margin: 0;
    padding: 30px 35px;

    border-left: 1px solid #d8d8d8;

    background: #ffffff;
}


/* OP heading */

body.dept-page .dept-op-area h3 {
    display: block;

    margin: 0 0 18px;

    color: #222222 !important;

    font-size: 23px !important;

    line-height: 1.3;

    font-weight: 700 !important;
}


/* Timing content */

body.dept-page .dept-op-timing {
    display: block;

    width: 100%;

    margin: 0;

    color: #555555 !important;

    font-size: 16px !important;

    line-height: 1.7;

    font-weight: 400;
}


/* If timing is rendered as rows */

body.dept-page .dept-op-day {
    display: flex !important;

    justify-content: space-between !important;

    align-items: flex-start;

    width: 100%;

    margin: 0;

    padding: 9px 0;

    border-bottom: 1px solid #eeeeee;
}


body.dept-page .dept-op-day:first-child {
    padding-top: 0;
}


body.dept-page .dept-op-day:last-child {
    border-bottom: 0;
}


body.dept-page .dept-op-day-name {
    color: #333333 !important;

    font-weight: 600;
}


body.dept-page .dept-op-day-time {
    color: #555555 !important;

    text-align: right;
}


/* =========================================================
   4. SERVICES
========================================================= */

body.dept-page .dept-services-section {
    width: 100%;

    margin: 0;
    padding: 0 0 70px;

    background: #ffffff;
}


body.dept-page .dept-services-section h2 {
    margin: 0 0 25px;

    color: #222222 !important;

    font-size: 30px !important;

    line-height: 1.3;

    font-weight: 700 !important;
}


body.dept-page .dept-services-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px 20px;

    width: 100%;
}


body.dept-page .dept-service-item {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 14px 18px 14px 35px;

    border: 1px solid #e1e1e1;

    background: #ffffff;

    color: #555555 !important;

    font-size: 15px;

    line-height: 1.6;
}


body.dept-page .dept-service-item::before {
    content: "";

    position: absolute;

    left: 17px;
    top: 21px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #555555;
}


/* =========================================================
   HIDDEN SERVICES
========================================================= */

body.dept-page .dept-services-section.dept-hidden {
    display: none !important;
}


/* =========================================================
   ERROR
========================================================= */

body.dept-page .dept-error {
    width: 90%;
    max-width: 900px;

    margin: 80px auto;
    padding: 30px;

    border: 1px solid #dddddd;

    background: #ffffff;

    color: #555555;

    text-align: center;

    font-size: 16px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    body.dept-page .dept-hero-section {
        height: 360px;
    }


    body.dept-page .dept-hero-overlay h1 {
        font-size: 36px !important;
    }


    body.dept-page .dept-doctor-op-box {
        grid-template-columns: 1fr !important;
    }


    body.dept-page .dept-op-area {
        border-left: 0 !important;

        border-top: 1px solid #d8d8d8;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body.dept-page .dept-container {
        width: 90%;
    }


    /* Hero */

    body.dept-page .dept-hero-section {
        height: 280px;
    }


    body.dept-page .dept-hero-overlay {
        padding: 70px 5% 25px;
    }


    body.dept-page .dept-hero-overlay h1 {
        font-size: 28px !important;
    }


    /* Description */

    body.dept-page .dept-description-section {
        padding: 40px 0;
    }


    body.dept-page .dept-description-section h2 {
        font-size: 25px !important;
    }


    body.dept-page .dept-description-section p {
        font-size: 15px !important;
        line-height: 1.75;
    }


    /* Doctor section */

    body.dept-page .dept-doctor-section {
        padding-bottom: 45px;
    }


    body.dept-page .dept-doctor-area {
        flex-direction: column !important;

        align-items: flex-start !important;

        padding: 25px;

        gap: 20px;
    }


    /* Smaller doctor image on mobile */

    body.dept-page .dept-doctor-image-wrapper {
        flex: 0 0 130px !important;

        width: 130px !important;
        height: 155px !important;

        min-width: 130px !important;
        min-height: 155px !important;

        max-width: 130px !important;
        max-height: 155px !important;
    }


    body.dept-page .dept-doctor-details h3 {
        font-size: 22px !important;
    }


    /* OP */

    body.dept-page .dept-op-area {
        padding: 25px;
    }


    body.dept-page .dept-op-area h3 {
        font-size: 21px !important;
    }


    body.dept-page .dept-op-day {
        flex-direction: column !important;

        gap: 2px;
    }


    body.dept-page .dept-op-day-time {
        text-align: left;
    }


    /* Services */

    body.dept-page .dept-services-section {
        padding-bottom: 45px;
    }


    body.dept-page .dept-services-section h2 {
        font-size: 25px !important;
    }


    body.dept-page .dept-services-list {
        grid-template-columns: 1fr;
    }

}