﻿
/* =================================
   Departments Page
================================= */
.department-page {
    background: #f7faff;
    min-height: 100vh;
}


/* =================================
   Department Hero
================================= */

.department-hero {
    padding: 80px 0 55px;
    background: linear-gradient(135deg, #eef7ff, #ffffff);
}

.department-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0d6efd;
    margin-bottom: 12px;
}

.department-hero h1 {
    font-size: 46px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 18px;
}

.department-hero p {
    max-width: 700px;
    margin: auto;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.7;
}


/* =================================
   Department Listing
================================= */

.department-listing {
    padding: 60px 0 90px;
}


/* =================================
   Department Card
================================= */

.department-card {
    position: relative;
    height: 100%;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(25, 50, 80, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

    .department-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: #0d6efd;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .department-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(25, 50, 80, 0.12);
    }

        .department-card:hover::before {
            transform: scaleX(1);
        }


/* =================================
   Department Icon
================================= */

.department-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    border-radius: 16px;
    font-size: 30px;
    margin-bottom: 22px;
}


/* Uploaded Dynamic Icon */

.department-icon-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}


/* Default Bootstrap Icon */

.department-icon i {
    font-size: 30px;
    line-height: 1;
    color: #0d6efd;
}


/* =================================
   Department Title
================================= */

.department-card h3 {
    font-size: 23px;
    font-weight: 650;
    color: #172033;
    margin-bottom: 14px;
}


/* =================================
   Department Description
================================= */

.department-card p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}


/* =================================
   Department Link
================================= */

.department-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .department-link span {
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .department-link:hover {
        color: #084298;
    }

        .department-link:hover span {
            transform: translateX(5px);
        }


/* =================================
   Department Details Page
================================= */

.department-details-page {
    background: #f7faff;
    min-height: 100vh;
}


/* =================================
   Department Details Hero
================================= */

.department-details-hero {
    padding: 75px 0 55px;
    background: linear-gradient(135deg, #eef7ff, #ffffff);
}

.department-details-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0d6efd;
    margin-bottom: 12px;
}

.department-details-hero h1 {
    font-size: 46px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 15px;
}

.department-details-hero p {
    max-width: 700px;
    margin: auto;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.7;
}


/* =================================
   Common Details Section
================================= */

.department-details-section {
    padding: 55px 0 0;
}

.department-details-title {
    font-size: 32px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 28px;
}


/* =================================
   About Department
================================= */

.department-about-card {
    height: 100%;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(25, 50, 80, 0.06);
}

    .department-about-card h3 {
        font-size: 25px;
        font-weight: 700;
        color: #172033;
        margin-bottom: 18px;
    }

    .department-about-card p {
        color: #6b7280;
        font-size: 15px;
        line-height: 1.8;
    }


/* =================================
   Department Services
================================= */

.department-services-card {
    height: 100%;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(25, 50, 80, 0.06);
}

    .department-services-card h4 {
        font-size: 22px;
        font-weight: 700;
        color: #172033;
        margin-bottom: 20px;
    }

.department-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .department-service-list li {
        padding: 13px 0;
        border-bottom: 1px solid #edf1f6;
        color: #5f6b7a;
        font-size: 15px;
    }

        .department-service-list li:last-child {
            border-bottom: none;
        }

        .department-service-list li::before {
            content: "✓";
            color: #0d6efd;
            font-weight: 700;
            margin-right: 10px;
        }


/* =================================
   Treatment Cards
================================= */

.department-treatment-card {
    height: 100%;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(25, 50, 80, 0.06);
    transition: all 0.3s ease;
}

    .department-treatment-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(25, 50, 80, 0.12);
    }

    .department-treatment-card h5 {
        font-size: 20px;
        font-weight: 700;
        color: #172033;
        margin-bottom: 12px;
    }

    .department-treatment-card p {
        color: #6b7280;
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 0;
    }


/* =================================
   Facilities
================================= */

.department-facility-card {
    height: 100%;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(25, 50, 80, 0.06);
    transition: all 0.3s ease;
}

    .department-facility-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(25, 50, 80, 0.12);
    }

    .department-facility-card h5 {
        font-size: 20px;
        font-weight: 700;
        color: #172033;
        margin-bottom: 12px;
    }

    .department-facility-card p {
        color: #6b7280;
        font-size: 15px;
        line-height: 1.7;
    }


/* =================================
   Responsive Design
================================= */

@media (max-width: 768px) {

    .department-hero {
        padding: 55px 0 40px;
    }

        .department-hero h1 {
            font-size: 34px;
        }

        .department-hero p {
            font-size: 15px;
        }

    .department-listing {
        padding: 40px 0 60px;
    }


    /* Details */

    .department-details-hero {
        padding: 55px 0 40px;
    }

        .department-details-hero h1 {
            font-size: 34px;
        }

        .department-details-hero p {
            font-size: 15px;
        }

    .department-details-section {
        padding-top: 40px;
    }

    .department-details-title {
        font-size: 27px;
    }

    .department-about-card,
    .department-services-card,
    .department-treatment-card,
    .department-facility-card {
        padding: 25px;
    }
}

