/* 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 420px; /* increased image column for stronger presence */
    width: 420px;
    height: 240px; /* taller for more prominence */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(11,33,86,0.22);
    border: 2px solid rgba(11,33,86,0.10);
    background: #f0f2f6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
/* subtle inner glow edge for distinction */
.site-banner .banner-media::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    opacity: 0.75;
}
/* animated sheen sweep on hover */
.site-banner .banner-media::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -40%;
    width: 60%;
    height: 140%;
    transform: rotate(20deg);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
}
.site-banner .banner-media:hover::after {
    animation: bannerSheen 900ms ease-in forwards;
}
@keyframes bannerSheen {
    0% { opacity: 0; transform: translateX(0) rotate(20deg); }
    20% { opacity: 0.9; }
    100% { opacity: 0; transform: translateX(420px) rotate(20deg); }
}

/* tasteful zoom effect on image/video */
.site-banner .banner-media img.banner-image,
.site-banner .banner-media video.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 280ms ease, filter 280ms ease;
}
.site-banner .banner-media:hover img.banner-image,
.site-banner .banner-media:hover video.banner-image {
    transform: scale(1.06);
    filter: saturate(1.05);
}
/* lift the media slightly on hover */
.site-banner .banner-media:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(11,33,86,0.22);
}

/* Mobile adjustments: keep prominence but responsive */
@media (max-width: 768px) {
    .site-banner .banner-media {
        width: 100%;
        height: 240px; /* slightly taller for mobile impact */
        flex: 0 0 auto;
    }
}

.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; }

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0; 
}
.banner-track {
    display: flex;
    gap: 1rem;
    will-change: transform;
    transition: transform 350ms ease;
}
.banner-card {
    flex: 0 0 600px; /* increased width for greater impact */
    width: 600px;
    height: 360px; /* increased height for better media/layout balance */
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.banner-card .banner-media {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #edf2f7;
}
.banner-card .banner-media img,
.banner-card .banner-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-card .banner-content {
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.banner-card .banner-texts {
    min-width: 0;
}
.banner-card .banner-title {
    font-weight: 800;
    color: #0b2156;
    font-size: 0.95rem;
    margin: 0 0 2px 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.banner-card .banner-sub {
    color: #4a5568;
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.banner-card .banner-cta a {
    white-space: nowrap;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.9);
    color: #1a202c;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, background 0.18s ease;
    z-index: 2;
}
.banner-nav:hover { transform: translateY(-50%) scale(1.05); background:#fff; }
.banner-nav.left { right: 8px; }  /* RTL page: controls on right side */
.banner-nav.right { right: 52px; }

.banner-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
}
.banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e0;
}
.banner-dot.active {
    background: #2b6cb0;
}
/* Responsive tweak */
@media (max-width: 420px) {
  .banner-card { flex: 0 0 340px; width: 340px; height: 250px; }
  .banner-card .banner-media { height: 170px; }
  .banner-nav.left { right: 8px; }
  .banner-nav.right { right: 48px; }
}
/* Hide old stacked marquee when carousel is present */
#site-banner-container .banner-marquee { display: none !important; }

/* site-banner media enlarged for stronger presence */
.site-banner .banner-media {
    flex: 0 0 360px; /* slightly wider */
    width: 360px;
    height: 210px; /* slightly taller for prominence */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(11,33,86,0.20);
    border: 2px solid rgba(11,33,86,0.10);
    background: #f0f2f6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Banner Carousel cards slightly larger to match the updated media size */
.banner-card {
    flex: 0 0 520px; /* increased width for better impact */
    width: 520px;
    height: 320px; /* increased height */
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 36px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* adjust inner media height to match the larger card */
.banner-card .banner-media {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #edf2f7;
}

/* Responsive adjustments keep prominence but remain mobile-friendly */
@media (max-width: 768px) {
    .site-banner .banner-media {
        width: 100%;
        height: 260px; /* slightly taller on mobile for impact */
        flex: 0 0 auto;
    }
}

/* tiny responsive fallback for smallest screens */
@media (max-width: 420px) {
  .banner-card { flex: 0 0 360px; width: 360px; height: 270px; }
  .banner-card .banner-media { height: 190px; }
  .banner-nav.left { right: 8px; }
  .banner-nav.right { right: 48px; }
}