/* ============================================
   style.css - हॉस्पिटल वेबसाइट मेन स्टाइलशीट
   ============================================ */

/* ===== GOOGLE FONTS (Poppins + Noto Sans Devanagari) ===== */
/* Already loaded via CDN in header.php */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

::selection {
    background: #007bff;
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ===== EMERGENCY TOP BAR ===== */
.emergency-bar {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ===== MAIN HEADER / NAVBAR ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.main-header.sticky {
    box-shadow: 0 5px 30px rgba(0,0,0,0.1) !important;
    animation: stickySlide 0.4s ease;
}

@keyframes stickySlide {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-brand img {
    transition: 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #007bff !important;
    background: rgba(0,123,255,0.05);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 10px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0,123,255,0.08);
    color: #007bff;
    padding-left: 25px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
}

.hero-section .swiper-slide {
    position: relative;
}

.hero-section h1 {
    animation: heroTextIn 1s ease;
}

@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section .btn {
    animation: heroBtnIn 1s ease 0.3s both;
}

@keyframes heroBtnIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Swiper Custom Navigation */
.swiper-button-next,
.swiper-button-prev {
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255,255,255,0.4) !important;
    transform: scale(1.1);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #ffd700;
    width: 30px;
    border-radius: 6px;
}

/* ===== STATS COUNTER ===== */
.stat-card {
    cursor: default;
}

.stat-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
}

/* ===== DEPARTMENT CARDS ===== */
.dept-card .icon-circle {
    transition: all 0.4s ease;
}

.dept-card:hover .icon-circle {
    transform: rotate(10deg) scale(1.1);
}

/* ===== DOCTOR CARDS ===== */
.doctor-card {
    cursor: pointer;
}

.doctor-card img {
    transition: all 0.5s ease;
}

/* ===== BLOG CARDS ===== */
.blog-card {
    cursor: pointer;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    transition: all 0.3s ease;
}

/* ===== WHY CHOOSE US ===== */
.why-points > div {
    cursor: default;
}

/* ===== MISSON VISION VALUES ===== */
.mvv-card {
    cursor: default;
}

/* ===== TIMELINE ===== */
.timeline .row {
    position: relative;
}

/* ===== FACILITY CARDS ===== */
.facility-card {
    cursor: default;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    cursor: default;
}

/* ===== CONTACT CARDS ===== */
.contact-section .card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* ===== GALLERY ===== */
.gallery-item > a > div {
    cursor: pointer;
}

/* ===== APPOINTMENT FORM ===== */
.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

/* OTP Input Boxes */
.otp-box {
    transition: all 0.3s ease;
}

.otp-box:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2) !important;
    outline: none;
}

/* ===== BUTTONS ===== */
.btn {
    transition: all 0.3s ease;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

/* ===== PAGE BANNER ===== */
.page-banner {
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
    border: none;
    color: #007bff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: #007bff;
    color: white;
}

.pagination .page-link:hover {
    background: rgba(0,123,255,0.1);
    color: #007bff;
}

/* ===== SCROLL TO TOP ===== */
#scrollTopBtn {
    transition: all 0.3s ease;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#scrollTopBtn:hover {
    background: #0056b3;
    transform: translateY(-5px);
}

/* ===== WHATSAPP BUTTON ===== */
footer + a[href*="wa.me"] {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); transform: scale(1.1); }
}

/* ===== FOOTER ===== */
.footer-section a:hover {
    color: #007bff !important;
}

.footer-section .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-section .social-links a:hover {
    background: #007bff;
    transform: translateY(-5px);
}

/* ===== NPROGRESS CUSTOM ===== */
#nprogress .bar {
    background: #ff4757 !important;
    height: 3px !important;
}

#nprogress .peg {
    box-shadow: 0 0 15px #ff4757, 0 0 5px #ff4757 !important;
}

/* ===== PAGE LOADER ===== */
.page-loader {
    animation: fadeOut 0.5s ease 1.5s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* ===== SWEETALERT2 CUSTOM ===== */
.swal2-popup {
    border-radius: 20px !important;
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif !important;
}

/* ===== LAZY LOAD IMAGES ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar .nav-link {
        padding: 12px 20px !important;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-section {
        min-height: auto !important;
    }
    
    .hero-section .swiper-slide {
        min-height: 500px !important;
    }
    
    .stat-card h3 {
        font-size: 1.8rem !important;
    }
    
    .page-banner h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-section .swiper-slide {
        min-height: 400px !important;
    }
    
    .hero-section .btn {
        padding: 10px 25px !important;
        font-size: 14px !important;
    }
    
    .page-banner {
        padding: 60px 0 !important;
    }
    
    .page-banner h1 {
        font-size: 1.8rem !important;
    }
    
    .stat-card {
        margin-bottom: 10px;
    }
    
    .otp-box {
        width: 40px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    .testimonial-card {
        margin: 0 10px;
    }
}

@media (max-width: 575px) {
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-section .btn + .btn {
        margin-left: 0 !important;
    }
    
    .booking-steps small {
        font-size: 10px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .emergency-bar,
    .main-header,
    .footer-section,
    #scrollTopBtn,
    footer + a[href*="wa.me"],
    .appointment-cta,
    .emergency-cta {
        display: none !important;
    }
}