/* =========================================
   Prudence Hospitals - Branch Pages Styles
   Used for: Hyderabad, Vijayawada, Visakhapatnam
   ========================================= */

/* --- 1. Branch Header --- */
.branch-header {
    background-color: #031b4e;
    /* Dark Blue */
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 75px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.back-home-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-home-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.back-home-link:hover {
    color: var(--accent-color);
}

.back-home-link:hover i {
    transform: translateX(-3px);
}

.header-btn {
    padding: 10px 25px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.header-btn:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Header Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-actions {
        gap: 15px;
    }

    .back-home-link span {
        display: none;
    }

    .back-home-link {
        font-size: 1.2rem;
    }

    .header-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .header-logo img {
        height: 40px;
    }
}

/* --- 2. Branch Hero Section --- */
.hero-gradient-bg {
    background: #031b4e;
    padding: 30px 0 100px;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white-color);
    overflow: hidden;
    height: 80vh;
}

.hero-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float-img 4s ease-in-out infinite;
}

@keyframes float-img {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-main-image {
    transform: scale(1.03);
}

.hero-content {
    color: var(--white-color);
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 15px;
    background: rgba(246, 139, 31, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(246, 139, 31, 0.3);
}

.hero-title {
    font-family: var(--accent-font);
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-location-info p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.text-accent {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.hero-action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--white-color) !important;
    color: var(--white-color) !important;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--white-color) !important;
    color: var(--primary-color) !important;
    border-color: var(--white-color) !important;
}

.btn-outline::after {
    display: none;
}

/* Hero Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-gradient-bg {
        padding: 120px 0 80px;
        min-height: auto;
        text-align: center;
    }

    .hero-content {
        padding-left: 0 !important;
        margin-top: 40px;
    }

    .hero-location-info .d-flex {
        justify-content: center;
    }

    .hero-action-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-action-buttons .btn-default {
        width: 100%;
        text-align: center;
    }
}

/* --- 3. Departments Grid --- */
.departments-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.dept-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.dept-card:hover {
    transform: translateY(-8px);
    background: var(--white-color);
    border-color: rgba(246, 139, 31, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.dept-icon-box {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.dept-card:hover .dept-icon-box {
    background: var(--accent-color);
}

.dept-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.dept-card:hover .dept-icon {
    filter: brightness(0) invert(1);
}

.dept-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    transition: color 0.3s ease;
}

.dept-card:hover .dept-title {
    color: var(--accent-color);
}

/* Departments Responsive */
@media (max-width: 1200px) {
    .departments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .departments-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 4. Expert Team & Filter Bar --- */
.team-section {
    padding: 80px 0;
    /* background-color: #f2f2f2; */
}

.doctor-filter-container {
    /* background: #fff; */
    padding: 10px;
    border-radius: 12px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group:first-child {
    flex: 1.5;
    min-width: 280px;
}

.filter-group:nth-child(2) {
    flex: 0.5;
    min-width: 150px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #f9f9f9;
    outline: none;
    transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(246, 139, 31, 0.1);
}

.filter-btn {
    padding: 12px 30px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--primary-color);
}

/* Filter Responsive */
@media screen and (max-width: 768px) {
    .doctor-filter-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .filter-group {
        width: 100%;
    }
}

/* --- 5. Compact Doctor Card --- */
.doctor-card {
    background: #f1f1f1;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.15);
    border-color: transparent;
}

.doctor-header {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    align-items: center;
}

.doctor-img-box {
    flex: 0 0 110px;
    width: 110px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.doctor-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img-box img {
    transform: scale(1.08);
}

.doctor-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.3;
}

.doctor-specialization {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 6px;
    font-weight: 400;
}

.doctor-meta-row i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
}

/* Doctor Card Responsive */
@media screen and (max-width: 991px) {
    .doctor-card {
        padding: 20px;
    }

    .doctor-img-box {
        width: 100px;
        height: 110px;
    }
}

@media screen and (max-width: 576px) {
    .doctor-header {
        flex-direction: row;
    }
}

/* --- 6. Minimal Footer --- */
.minimal-footer {
    background-color: #031b4e;
    /* Dark Blue */
    position: relative;
    padding: 0;
}

.footer-accent-strip {
    height: 5px;
    background-color: var(--accent-color);
    /* Orange */
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    flex: 1;
    margin-top: 0px;
    border-top: 0px;
    padding: 18px 0px;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    font-family: var(--primary-font);
    line-height: 1.2;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    margin-right: 5px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-btn.facebook:hover {
    background-color: #1877F2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.social-btn.youtube:hover {
    background-color: #FF0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-btn.whatsapp:hover {
    background-color: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Footer Responsive */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
    }

    .footer-socials {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}