/**
 * VitaHeal Hospital - Main Stylesheet
 * Modern Hospital Design with Bootstrap 5
 */

/* ==============================
   CSS Variables
============================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #198754;
    --accent-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #495057;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ==============================
   Base Styles
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==============================
   Top Bar
============================== */
.top-bar {
    font-size: 0.9rem;
}

.top-bar .social-links a:hover {
    opacity: 0.8;
}

/* ==============================
   Navigation
============================== */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar .nav-link {
    font-family: var(--heading-font);
    font-weight: 500;
    color: var(--dark-color);
    padding: 1rem 1.2rem;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ==============================
   Buttons
============================== */
.btn {
    font-family: var(--heading-font);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #157347);
    border: none;
}

/* ==============================
   Hero Section
============================== */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(25, 135, 84, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* ==============================
   Section Styles
============================== */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 1rem auto 0;
}

.bg-light-gray {
    background-color: #f5f7fa;
}

/* ==============================
   Cards
============================== */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Department Cards */
.department-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background: #fff;
}

.department-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.department-card .icon i {
    font-size: 2rem;
    color: #fff;
}

.department-card h5 {
    margin-bottom: 1rem;
}

.department-card:hover .icon {
    transform: scale(1.1);
}

/* Doctor Cards */
.doctor-card {
    text-align: center;
}

.doctor-card .doctor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--primary-color);
}

.doctor-card .specialization {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.doctor-card .social-links a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-color);
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    margin: 0.25rem;
}

.doctor-card .social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Health Package Cards */
.package-card {
    text-align: center;
    position: relative;
}

.package-card .badge-featured {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
}

.package-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.package-card .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

/* ==============================
   Statistics Section
============================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-item .label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* ==============================
   Testimonials
============================== */
.testimonial-card {
    padding: 2rem;
    text-align: center;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-card .patient-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-card .rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

/* ==============================
   Gallery
============================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    font-size: 2rem;
    color: #fff;
}

/* ==============================
   Blog Cards
============================== */
.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.blog-card .meta span {
    margin-right: 1rem;
}

.blog-card h5 {
    line-height: 1.4;
}

.blog-card h5 a {
    color: var(--dark-color);
}

.blog-card h5 a:hover {
    color: var(--primary-color);
}

/* ==============================
   Page Banner
============================== */
.page-banner {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(25, 135, 84, 0.9)), url('../images/page-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    color: #fff;
    text-align: center;
}

.page-banner h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner .breadcrumb {
    background: none;
    justify-content: center;
    margin-bottom: 0;
}

.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner .breadcrumb-item.active {
    color: #fff;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ==============================
   Forms
============================== */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

/* Appointment Form */
.appointment-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.appointment-form h3 {
    margin-bottom: 2rem;
    text-align: center;
}

/* Contact Form */
.contact-info-box {
    background: var(--primary-color);
    color: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    height: 100%;
}

.contact-info-box h4 {
    color: #fff;
    margin-bottom: 2rem;
}

.contact-info-box .info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-info-box .info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.8;
}

.contact-info-box .info-item h6 {
    color: #fff;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-info-box .info-item p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* ==============================
   Notice Board
============================== */
.notice-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.notice-item.important {
    border-left-color: #dc3545;
}

.notice-item .date {
    font-size: 0.85rem;
    color: #999;
}

.notice-item h5 {
    margin-bottom: 0.5rem;
}

/* ==============================
   FAQ Accordion
============================== */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: #fff;
}

.faq-accordion .accordion-body {
    padding: 1.5rem;
    line-height: 1.8;
}

/* ==============================
   Footer
============================== */
.footer {
    font-size: 0.95rem;
}

.footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer .contact-info li {
    display: flex;
    align-items: flex-start;
}

/* ==============================
   WhatsApp Float Button
============================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    color: #fff;
    background: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==============================
   Back to Top
============================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-color);
    color: #fff;
    transform: translateY(-3px);
}

/* ==============================
   Utilities
============================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.rounded-lg {
    border-radius: 1rem;
}

/* ==============================
   Responsive Adjustments
============================== */
@media (max-width: 991px) {
    .navbar .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar .nav-link::after {
        display: none;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-item .number {
        font-size: 2.5rem;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        right: 20px;
    }
}

/* ==============================
   Animation Classes
============================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   Loading Spinner
============================== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ==============================
   Detail Pages
============================== */
.doctor-detail-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.sidebar-widget h5 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-color);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
}

/* Table Styles */
.table-custom {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-custom th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    border: none;
}

.table-custom td {
    vertical-align: middle;
}
