/* Banner Slider Styles */
.hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    /* Remove padding and background to eliminate ghost card */
}

.hero-content-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Adjusted from 16/8 for slightly more vertical space */
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    /* Increased padding to keep content away from edges */
    border-radius: 25px;
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* لمسة زجاجية */
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.hero-title {
    font-weight: 800;
    /* Fluid font size: 1.5rem to 2.8rem */
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    color: white !important;
}

.hero-subtitle {
    /* Fluid font size: 0.95rem to 1.35rem */
    font-size: clamp(0.95rem, 2.5vw, 1.35rem);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95) !important;
}

@media (max-width: 768px) {
    .hero-title {
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .hero-subtitle {
        padding: 0 15px;
    }

    .hero-content-wrapper {
        padding: 40px 15px;
        aspect-ratio: auto;
        min-height: 200px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

.hero-content-wrapper .btn {
    padding: 8px 20px;
    /* Reduced from 12px 25px */
    font-weight: 600;
    font-size: 0.9rem;
    /* Smaller font size */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content-wrapper .btn:not(.btn-secondary) {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-content-wrapper .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.hero-content-wrapper .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#defaultHeroContent {
    position: relative;
    z-index: 1;
}

#homeBannerSection {
    width: 100%;
    margin-bottom: 20px;
}

.banner-slider {
    position: relative;
    width: 100%;
    min-height: 220px;
    z-index: 2;
    background: transparent;

    /* سكرول أفقي مع ظهور أجزاء من الصور المجاورة */
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* موازنة المسافات لرؤية "الصورة اللي وراها" */
    padding: 10px 0;
    scroll-padding: 0 40px;
    gap: 15px;
}

/* تنسيق الحاوية الرئيسية للاعلانات */
.hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    padding: 10px 0;
}

.banner-slider::-webkit-scrollbar {
    display: none;
}

.banner-item {
    flex: 0 0 85%;
    /* عرض أقل من 100% لرؤية الصورة التالية */
    aspect-ratio: 16 / 8;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    position: relative;
    transition: transform 0.4s ease;

    /* إزالة مظهر الكارد */
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
}

.banner-item:first-child {
    margin-right: 40px;
    /* موازنة البداية في RTL */
}

.banner-item:last-child {
    margin-left: 40px;
}

[dir="ltr"] .banner-item:first-child {
    margin-left: 40px;
    margin-right: 0;
}

.banner-item.active {
    transform: scale(1.02);
    z-index: 2;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    /* Perfect match with slider */
}

/* Dots Navigation */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

/* Admin Banner Table Styles */
.banner-thumbnail {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}