/* Modernized Page Specific Styles referencing modern-ui.css variables */

/* Facilities Page */
.facility-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden; /* For border-top or image containment */
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border-top: 4px solid var(--primary-color);
    padding: 30px 25px;
    text-align: center;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0, 132, 194, 0.3);
}

.facility-card h5 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
}

.facility-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.facility-card ul li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px dashed #e5e7eb;
    display: flex;
    align-items: flex-start;
}

.facility-card ul li:last-child {
    border-bottom: none;
}

/* Add checkmark icon before each list item via pseudo-element */
.facility-card ul li::before {
    content: "\f00c"; /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--success-color);
    margin-right: 10px;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Doctors Page */
.doctor-hero {
    background: linear-gradient(rgba(0, 34, 97, 0.8), rgba(0, 34, 97, 0.8)), url('../../images/ambus.avif');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    margin-bottom: 50px;
    color: var(--white);
    text-align: center;
}

.doctor-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: var(--white);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.doctor-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.doctor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img-wrapper img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-name {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.doctor-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

/* Gallery Page */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    height: 250px; /* Base height, overridden by media queries in modern-ui.css if needed */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fix: removed hardcoded 250px */
    background: rgba(0, 82, 204, 0.85); /* brand blue overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Mobile responsive resets are handled in modern-ui.css via !important overrides */
