/* Font definition removed - using definition in style.css */

/* Global Font Application */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, input, textarea, button, select {
    font-family: 'vazirr', 'iransans-medium', sans-serif !important;
}

/* Header Overlap Fix */
body.inner-page {
    padding-top: 100px;
}

/* =========================================
   MOBILE MENU STYLES
   ========================================= */
@media (max-width: 991.98px) {
    body.inner-page {
        padding-top: 80px;
    }

    /* Mobile Menu Drawer (TARGET WRAPPER INSTEAD OF UL) */
    .main-menu-wrapper {
        position: fixed;
        top: 0;
        right: -280px; /* Hidden by default */
        width: 280px;
        height: 100vh;
        background: #ffffff;
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        overflow-y: auto;
        padding-bottom: 20px;
        display: block !important;
    }

    /* Reset UL styles */
    .main-nav {
        position: static;
        width: 100%;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding-bottom: 0;
    }

    .menu-opened .main-menu-wrapper {
        right: 0;
    }

    .menu-opened .main-nav {
        right: auto;
    }

    /* Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        display: none;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-opened .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    /* Menu Header (Optional, if needed) */
    .main-nav::before {
        content: "";
        display: block;
        height: 5px;
        background: linear-gradient(90deg, #0ea5e9, #2563eb);
        width: 100%;
    }

    /* Menu Items */
    .main-nav > li {
        border-bottom: 1px solid #f1f5f9;
        display: block;
        margin: 0;
    }

    .main-nav > li > a {
        padding: 15px 20px;
        font-size: 15px;
        font-weight: 500;
        color: #334155;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav > li > a i {
        font-size: 12px;
        color: #94a3b8;
        transition: transform 0.3s;
    }

    .main-nav > li.active > a {
        color: #2563eb;
        background: #eff6ff;
        font-weight: 700;
    }

    /* Submenu */
    .submenu ul {
        display: none;
        background: #f8fafc;
        padding: 10px 0;
    }

    .submenu.active ul {
        display: block;
    }

    .submenu ul li a {
        padding: 10px 35px 10px 20px;
        font-size: 14px;
        color: #64748b;
        display: block;
        border-bottom: none;
    }

    .submenu ul li a:hover {
        color: #2563eb;
        padding-right: 40px;
    }

    /* Login Link Special Style */
    .main-nav .login-link {
        padding: 20px;
        text-align: center;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
        border-bottom: none;
    }

    .main-nav .login-link a {
        display: inline-block;
        background: #2563eb;
        color: #ffffff;
        padding: 12px 30px;
        border-radius: 12px;
        width: 100%;
        text-align: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .main-nav .login-link a:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    }
}

/* =========================================
   MODERN DOCTOR CARD STYLES
   ========================================= */

.modern-doctor-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

.modern-doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-color: #e0f2fe;
}

/* Fix Doctor Image Style - Round and Smaller */
.modern-doctor-card .mdc-image-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px 0;
    height: 180px !important; /* Adjusted height */
    background: transparent;
}

.modern-doctor-card .mdc-image-wrapper a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

.modern-doctor-card .mdc-img {
    border-radius: 50% !important;
    width: 140px !important; /* Smaller size and fixed */
    height: 140px !important; /* Square for perfect circle */
    object-fit: cover !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 4px solid #fff;
    margin: 0 auto !important;
    display: block !important;
}

.modern-doctor-card:hover .mdc-img {
    transform: scale(1.05);
    border-color: #e0f2fe;
}

/* Floating Actions */
.mdc-fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.mdc-fav-btn:hover {
    background: #fff;
    color: #ef4444;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mdc-verified {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Content Section */
.mdc-content {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.mdc-name {
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 800;
}

.mdc-name a {
    color: #1e293b;
    transition: color 0.2s;
}

.mdc-name a:hover {
    color: #0ea5e9;
}

.mdc-specialty {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.mdc-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    color: #fbbf24;
    font-size: 0.9rem;
}

.mdc-rating-count {
    font-weight: 700;
    color: #1e293b;
}

.mdc-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.mdc-info-item i {
    color: #94a3b8;
    margin-left: 5px;
}

.mdc-actions {
    display: flex;
    gap: 10px;
}

.mdc-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdc-btn-outline {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
}

.mdc-btn-outline:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.mdc-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mdc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* =========================================
   RESPONSIVE OPTIMIZATIONS (Mobile First)
   ========================================= */

@media (max-width: 767.98px) {
    /* Global Container Adjustments */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Section Spacing */
    .section {
        padding: 40px 0;
    }

    /* 1. HERO & SEARCH SECTION */
    .section-search {
        min-height: auto;
        padding-bottom: 60px;
        background-position: center bottom;
    }

    .banner-wrapper {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .banner-header {
        margin-top: 2rem !important;
    }

    .banner-header h1 {
        font-size: 1.75rem !important; /* Scaled down from 2.2rem */
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .banner-header p {
        font-size: 1rem;
        padding: 0 10px;
        opacity: 0.9;
    }

    /* Modern Search Box Responsive */
    .search-box-container {
        margin-top: 2rem !important;
    }

    .modern-search-box {
        flex-direction: column;
        padding: 10px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 16px;
    }

    .search-input-wrapper {
        width: 100%;
        margin-bottom: 10px;
        border-left: none !important; /* Remove separator on mobile */
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 10px;
    }

    .search-input-wrapper input {
        text-align: center;
        font-size: 0.95rem;
    }

    .modern-search-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .modern-search-btn span {
        display: inline-block; /* Ensure text is visible */
    }

    .modern-search-btn i {
        display: none; /* Hide arrow on mobile to save space or keep if fits */
    }
    
    /* Stats Section Mobile */
    .stats-section {
        margin-top: 50px !important;
    }
    
    .stat-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    /* 2. SPECIALITIES SLIDER */
    .section-specialities {
        padding-bottom: 30px;
    }
    
    .speicality-item {
        margin: 0 5px;
        padding: 15px;
    }
    
    .speicality-img {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }
    
    /* 3. DOCTOR SLIDER & CARDS */
    .section-doctor {
        background: #f8fafc;
    }
    
    .modern-doctor-card {
        margin: 0 5px 20px; /* Adjust margins for slider items */
    }
    
    .mdc-image-wrapper {
        height: 200px; /* Slightly smaller on mobile */
    }
    
    .mdc-content {
        padding: 15px;
    }
    
    .mdc-actions {
        flex-direction: column;
    }
    
    .mdc-btn {
        width: 100%;
    }
    
    /* 4. BLOG SECTION */
    .blog-grid-row > div {
        margin-bottom: 20px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title-modern {
        font-size: 1.1rem;
    }
    
    /* 5. FOOTER */
    .footer-top {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .footer-title {
        margin-bottom: 20px;
    }
    
    .footer-menu ul li {
        justify-content: center;
    }
    
    .social-icon ul {
        justify-content: center;
    }
    
    .copyright-text {
        text-align: center;
    }
    
    .copyright-menu {
        justify-content: center;
        margin-top: 10px;
    }
}

/* =========================================
   HOME PAGE DOCTOR SLIDER FIXES (USER REQUEST)
   ========================================= */

/* Fix Slick Slider Navigation Icons */
.doctor-slider .slick-arrow {
    width: 45px !important;
    height: 45px !important;
    background: #09e5ab !important; /* Primary Theme Color */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(9, 229, 171, 0.3);
    opacity: 1 !important; /* Force visibility */
    top: 50% !important;
    transform: translateY(-50%) !important;
    
    /* Ensure text is hidden but clickable */
    font-size: 0 !important;
    color: transparent !important;
    overflow: visible !important;
}

.doctor-slider .slick-arrow:hover {
    background: #06b486 !important;
    box-shadow: 0 6px 15px rgba(9, 229, 171, 0.4);
}

.doctor-slider .slick-next {
    right: 10px !important; /* Position INSIDE to avoid clipping */
}

.doctor-slider .slick-prev {
    left: 10px !important; /* Position INSIDE to avoid clipping */
}

/* Hide default text content if any */
.doctor-slider .slick-arrow:before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    color: #fff !important;
    opacity: 1 !important;
    line-height: 1 !important;
    display: block !important;
    -webkit-font-smoothing: antialiased;
}

.doctor-slider .slick-next:before {
    content: "\f054" !important; /* fa-chevron-right */
}

.doctor-slider .slick-prev:before {
    content: "\f053" !important; /* fa-chevron-left */
}

/* Adjust floating buttons for round image */
.modern-doctor-card .mdc-fav-btn {
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.8);
}

.modern-doctor-card .mdc-verified {
    bottom: 20px;
    left: 20px;
}

/* =========================================
   STATS SECTION MODERN STYLES
   ========================================= */
.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1);
    border-color: #e0f2fe;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0ea5e9;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: #0ea5e9;
    color: #ffffff;
    transform: rotateY(180deg);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 5px;
    line-height: 1.2;
}

.stat-info p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    display: block;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px;
    }
    
    .stat-icon {
        margin-bottom: 15px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stat-info h3 {
        font-size: 1.75rem;
    }
}

/* =========================================
   MODERN BLOG CARD STYLES
   ========================================= */

/* Transition Utilities */
.transition-all {
    transition: all 0.3s ease-in-out !important;
}

.duration-300 {
    transition-duration: 300ms !important;
}

/* Hover Shadows */
.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

/* Object Fit */
.object-fit-cover {
    object-fit: cover !important;
}

/* Hover Colors */
.hover-text-primary:hover {
    color: #0ea5e9 !important;
}

/* Group Hover Logic (simulated with parent selector in usage or specific classes) */
.group:hover .group-hover-bg-primary {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

.group:hover .group-hover-text-white {
    color: #ffffff !important;
}

.group-hover-bg-primary {
    transition: all 0.3s ease;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Additional Blog Styles */
.fw-bold {
    font-weight: 700 !important;
}

.rounded-3 {
    border-radius: 12px !important;
}

.text-primary {
    color: #0ea5e9 !important;
}

.btn-outline-primary {
    color: #0ea5e9;
    border-color: #0ea5e9;
}

.btn-outline-primary:hover {
    background-color: #0ea5e9;
    color: #fff;
}

/* =========================================
   DESKTOP MENU SPACING
   ========================================= */
@media (min-width: 992px) {
    /* Increase spacing between menu items */
    .main-nav > li {
        margin-left: 45px !important;
    }
    
    /* Ensure last child has no margin-left */
    .main-nav > li:last-child {
        margin-left: 0 !important;
    }
}
