
/* ================= HERO SECTION (GRID) ================= */
.hero-wrapper {
    width: 100%;
    max-width: 1330px;
    margin-top:10px;
    padding: 10px;
    display: grid;
    /* Desktop layout */
    grid-template-columns: 220px 820px 1fr;
    gap: 15px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 15px;
    align-items: start;
}

/* স্লাইডার বক্স সেটিংস (Desktop: 820px x 415px) */
.slider-box {
    position: relative;
    width: 820px;
    height: 415px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Side Boxes (Categories & Search) */
.categories, .search-box {
    background: #fdfaff;
    border-radius: 12px;
    padding: 15px;
    height: 415px; /* স্লাইডারের উচ্চতার সাথে মিল রেখে */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    overflow-y: auto;
}

/* ফ্যাট স্ক্রলবার */
.categories::-webkit-scrollbar, .search-box::-webkit-scrollbar { width: 10px; }
.categories::-webkit-scrollbar-track, .search-box::-webkit-scrollbar-track { background: #ececec; border-radius: 10px; }
.categories::-webkit-scrollbar-thumb, .search-box::-webkit-scrollbar-thumb { 
    background: var(--primary); 
    border-radius: 10px; 
    border: 2px solid #ececec;
}

.categories h3, .search-box h3 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    background: #fdfaff;
    z-index: 5;
}

.categories a, .search-box a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--dark);
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.categories a:hover, .search-box a:hover {
    background: var(--primary);
    color: #ff0000;
    transform: translateX(5px);
}

/* স্লাইডার এনিমেশন ও ইমেজ */
.slider-box::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent, var(--primary), transparent, #00d4ff, transparent);
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}

.slider-box::after {
    content: "";
    position: absolute;
    inset: 5px; 
    background: #fff;
    border-radius: 12px;
    z-index: -1;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slide {
    position: absolute;
    inset: 5px; 
    opacity: 0;
    animation: slider 25s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%; /* কন্টেইনারের পুরো জায়গা নেবে */
    object-fit: cover;
    border-radius: 8px;
}

@keyframes slider {
    0%, 10% { opacity: 1; }
    12%, 100% { opacity: 0; }
}



/* স্লাইড টাইমিং ক্যালকুলেশন (১০টি ইমেজের জন্য ৩ সেকেন্ড করে গ্যাপ) */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 3s; }
.slide:nth-child(3) { animation-delay: 6s; }
.slide:nth-child(4) { animation-delay: 9s; }
.slide:nth-child(5) { animation-delay: 12s; }
.slide:nth-child(6) { animation-delay: 15s; }
.slide:nth-child(7) { animation-delay: 18s; }
.slide:nth-child(8) { animation-delay: 21s; }
.slide:nth-child(9) { animation-delay: 24s; }
.slide:nth-child(10) { animation-delay: 27s; }

@keyframes smoothSlider {
    0% { opacity: 0; }
    5% { opacity: 1; }  /* ইমেজ আসবে */
    10% { opacity: 1; } /* ইমেজ থাকবে */
    15% { opacity: 0; } /* ইমেজ চলে যাবে */
    100% { opacity: 0; }
}




/* ================= RESPONSIVE SETTINGS ================= */

/* ল্যাপটপ বা মাঝারি স্ক্রিন */
@media (max-width: 1300px) {
    .hero-wrapper {
        grid-template-columns: 220px 1fr;
		
    }
    .slider-box {
        width: 100%;
        height: 48vw; /* প্রস্থের অর্ধেক উচ্চতা */
    }
    .search-box { display: none; } /* জায়গা বাঁচাতে একটি বক্স হাইড করা হয়েছে */
}

/* ট্যাবলেট বা বড় মোবাইল (Width এর অর্ধেক Height) */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
    }
	
	 .search-box {display: none;}
	
    .slider-box {
        width: 100%;
        height: 45vw; /* প্রস্থ যা হবে উচ্চতা তার অর্ধেক (Aspect Ratio 2:1) */
        order: -1; /* স্লাইডার উপরে দেখাবে */
    }

    .categories {
        height: auto;
        max-height: 300px;
		display: none;     
    }
}

/* ছোট মোবাইল */
@media (max-width: 480px) {
    .hero-wrapper {padding: 5px; }
    .slider-box { height: 45vw; }
    .categories a { font-size: 0.85rem; }
}