/* Base styles and imports */
@import url('./css/base.css');
@import url('./css/components.css');
@import url('./css/admin.css');
@import url('./css/doctor-cards.css');
@import url('./css/edit-modal.css');
@import url('./css/layout.css');
@import url('./css/forms.css');
@import url('./css/modal.css');
@import url('./css/responsive.css');
@import url('./css/theme.css');
@import url('./css/doctor-panel.css');

/* Professional site banner styles and animations */
.site-banner {
    margin: 0.75rem 0; /* vertical spacing between stacked banners */
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}
.site-banner .banner-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
    padding: 0.25rem;
}
.site-banner .banner-media {
    flex: 0 0 180px; /* fixed image column */
    width: 180px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11,33,86,0.15);
    border: 2px solid rgba(11,33,86,0.06);
    background: #f0f2f6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-banner .banner-media img.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Discount badge (percentage) */
.site-banner .discount-badge {
    position: absolute;
    top: 8px;
    left: 8px; /* LTR left because banner-media sits left in RTL layout container */
    background: linear-gradient(135deg, #ff7a59, #ff4757);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.4px;
}

/* Small decorative subtext for badge */
.site-banner .discount-badge small {
    font-weight: 600;
    font-size: 0.65rem;
    opacity: 0.95;
}

.site-banner .banner-content {
    flex: 1 1 auto;
    padding: 0 1rem;
    color: #1a202c;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.site-banner .banner-title {
    font-weight: 800;
    color: #0b2156;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
    line-height: 1.15;
}
.site-banner .banner-sub {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.site-banner .banner-cta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* tighten CTA spacing and keep it visually separated */
.site-banner .banner-cta .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* make marquee stacked vertically (unchanged) */
.banner-marquee {
    display: flex;
    flex-direction: column; /* stack banners vertically instead of horizontal marquee */
    gap: 1rem;
    animation: none !important; /* disable continuous marquee animation when stacking */
    transform: none !important;
    width: 100%;
}

/* Responsive adjustments: make layout stack on small screens for readability */
@media (max-width: 768px) {
    .site-banner .banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .site-banner .banner-media {
        width: 100%;
        height: 200px;
        flex: 0 0 auto;
    }
    .site-banner .banner-content {
        padding: 0;
        text-align: right;
    }
    .site-banner .banner-cta {
        margin-top: 0.5rem;
        justify-content: flex-start;
    }
}
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.doctors-slider-controls {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0; /* hide by default (touch-first) */
    transition: opacity 0.18s ease, transform 0.18s ease;
}
/* show controls on hover-capable devices (desktop / pointer) keeping pointer-events functional */
@media (hover: hover) and (pointer: fine) {
    .doctors-slider-controls {
        pointer-events: auto;
        opacity: 1;
    }
}
/* keep individual buttons accessible and visually consistent */
.doctors-slider-controls .slider-nav {
    pointer-events: auto;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
    opacity: 0.98;
}
.grid.dragging, .doctors-grid.dragging { cursor: grabbing; user-select: none; }