/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
}
.section-title {
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: #0d6efd;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.navbar-scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}
.nav-link.hover-effect {
    position: relative;
    padding-bottom: 5px;
}
.nav-link.hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d6efd;
    transition: width 0.3s;
}
.nav-link.hover-effect:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Stats Section */
.stats-item h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d6efd;
}

/* Department & Doctor Cards */
.department-card, .doctor-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.department-card:hover, .doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.department-card:hover .card-image-wrapper img, .doctor-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.department-card:hover .card-overlay {
    opacity: 1;
}

/* Services (Package Card) */
.package-card {
    border-left: 4px solid #0d6efd;
    transition: transform 0.3s, box-shadow 0.3s;
}
.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.package-icon {
    font-size: 2rem;
    color: #0d6efd;
}
.package-price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
}

/* Footer */
.footer-section {
    background-color: #343a40;
}
.footer-links a {
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #0d6efd !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
}
.back-to-top.show {
    display: block;
    opacity: 1;
}
.back-to-top:hover {
    background-color: #0b5ed7;
}

/* Section Header for list pages */
.section-header {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin-bottom: 3rem;
}


/* static/css/style.css */

/* --- Gallery Page Styles --- */
.gallery-filters .btn.active {
    background-color: #0d6efd;
    color: white;
}

.gallery-item .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}