﻿:root {
    --primary-blue: #1a73e8;
    --primary-blue-dark: #0d62d9;
    --primary-blue-light: #e8f0fe;
    --accent-green: #34a853;
    --accent-orange: #ff9800;
    --text-dark: #202124;
    --text-medium: #5f6368;
    --text-light: #9aa0a6;
    --bg-light: #f8f9fa;
    --border-light: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Promoted Doctors Section */
.promoted-section {
    padding: 40px 0 30px;
    background-color: white;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.section-title {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 0;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-blue), #34a853);
        border-radius: 2px;
    }

.section-subtitle {
    color: var(--text-medium);
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 400;
}

/* Promoted Badge */
.promoted-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #856404;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Cards Container */
.promoted-cards-container {
    position: relative;
    padding: 0 15px;
}

.promoted-cards-wrapper {
    display: flex;
    overflow-x: visible;
    padding: 10px 0 25px;
    flex-wrap: wrap;
}

/* Doctor Card */
.promoted-doctor-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    height: auto;
    width: 100%;
    margin-bottom: 0;
}

    .promoted-doctor-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-medium);
        border-color: var(--primary-blue-light);
    }

/* Doctor Header */
.doctor-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.doctor-image-container {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    margin-right: 18px;
    position: relative;
}

.doctor-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0; /* Fallback if image doesn't load */
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--accent-green);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Doctor Details */
.doctor-details {
    flex: 1;
}

.doctor-name {
    margin: 0 0 5px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.doctor-speciality {
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.doctor-experience {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .doctor-experience i {
        color: var(--accent-orange);
    }

/* Rating */
.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: #ffc107;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.rating-value {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Doctor Footer */
.doctor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.consultation-fee {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
}

    .consultation-fee span {
        font-size: 0.9rem;
        color: var(--text-medium);
        font-weight: 500;
    }

.book-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

    .book-btn:hover {
        background: linear-gradient(135deg, var(--primary-blue-dark), #0a56c2);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(26, 115, 232, 0.3);
        color: white;
    }

/* Navigation Arrows */
.nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 5px;
    z-index: 5;
}

.arrow-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    transition: all 0.2s ease;
    color: var(--primary-blue);
    font-size: 1.2rem;
    z-index: 10;
}

    .arrow-btn:hover {
        background: var(--primary-blue);
        color: white;
        transform: scale(1.1);
    }

/* Mobile Slider Styles */
@media (max-width: 768px) {
    .promoted-section {
        padding: 30px 0;
    }

    .section-header {
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .promoted-cards-container {
        padding: 0;
        overflow: hidden;
    }

    .promoted-cards-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 10px 20px 30px;
        margin: 0 -20px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

        .promoted-cards-wrapper::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        .promoted-cards-wrapper .col-md-6 {
            flex: 0 0 auto;
            width: 280px;
            padding-right: 15px;
            padding-left: 5px;
        }

    .doctor-image-container {
        width: 80px;
        height: 80px;
    }

    .nav-arrows {
        display: none;
    }

    /* Scroll indicator for mobile */
    .scroll-indicator {
        text-align: center;
        margin-top: 10px;
        color: var(--text-light);
        font-size: 0.9rem;
    }

        .scroll-indicator i {
            margin-right: 5px;
        }
}

/* Desktop View - Show as grid */
@media (min-width: 769px) {
    .promoted-cards-wrapper {
        display: flex;
        flex-wrap: wrap;
        margin: -15px;
    }

        .promoted-cards-wrapper .col-md-6 {
            padding: 15px;
        }

    .nav-arrows {
        display: none;
    }

    /* For medium screens, show 2 cards side by side */
    @media (min-width: 769px) and (max-width: 991px) {
        .promoted-cards-wrapper .col-md-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }

    /* For large screens, show 2 cards side by side */
    @media (min-width: 992px) {
        .promoted-cards-wrapper .col-md-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }

    /* For extra large screens, you can show 3 cards */
    @media (min-width: 1200px) {
        .promoted-cards-wrapper .col-md-6 {
            flex: 0 0 33.333%;
            max-width: 33.333%;
        }
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .promoted-doctor-card {
        padding: 18px;
    }

    .doctor-image-container {
        width: 70px;
        height: 70px;
        margin-right: 15px;
    }

    .doctor-name {
        font-size: 1.15rem;
    }

    .book-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .consultation-fee {
        font-size: 1.25rem;
    }

    .promoted-cards-wrapper .col-md-6 {
        width: 260px;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promoted-doctor-card {
    animation: fadeInUp 0.5s ease forwards;
}

    /* Stagger animation for cards */
    .promoted-doctor-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .promoted-doctor-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .promoted-doctor-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .promoted-doctor-card:nth-child(4) {
        animation-delay: 0.4s;
    }
