/* =========================================
   🌟 Scroll Reveal & Lazy Section Animation 
   ========================================= */
.lazy-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.lazy-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Basic Element CSS 
   ========================================= */
.faq-item { overflow-anchor: none; transform-origin: top; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; opacity: 0; }
.faq-active .faq-content { opacity: 1; }
.faq-icon svg { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-active .faq-icon svg { transform: rotate(180deg); }
.faq-active { border-color: #3b82f6 !important; box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1), 0 8px 10px -6px rgba(59, 130, 246, 0.1); }

.dropdown-wrapper { overflow: hidden; border: 1px solid rgba(0,0,0,0.1); background-color: #ffffff; overflow-anchor: none; transform-origin: top; }
.text-rr-highlight { color: #ffffff !important; background-color: #ef4444 !important; padding: 2px 8px; border-radius: 6px; font-weight: 900 !important; display: inline-block; line-height: 1.2; }
.text-rr-mark { color: #ef4444 !important; font-weight: 900 !important; }
.dropdown-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; opacity: 0; }
.dropdown-active .dropdown-content { opacity: 1; }
.dropdown-icon { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.dropdown-active .dropdown-icon { transform: rotate(180deg); }

.review-slider-wrapper { position: relative; overflow: hidden; border-radius: 20px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); }
@media (max-width: 768px) { .review-slider-wrapper { height: 500px !important; } }
.carousel-track { display: flex; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); height: 100%; align-items: center; }
.carousel-slide { min-width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; padding: 10px; box-sizing: border-box; }
.carousel-slide img { width: 100%; height: 100%; max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 15px 35px -5px rgba(0,0,0,0.15); opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease, transform 0.6s ease; }
.carousel-slide img.loaded { opacity: 1; transform: scale(1); }
.slider-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: 1px solid #e2e8f0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; z-index: 10; color: #3b82f6; transition: all 0.3s; }
@media (min-width: 768px) { .slider-nav-btn { width: 45px; height: 45px; } }
.slider-nav-btn:hover { background: #3b82f6; color: white; transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 10px; } .slider-next { right: 10px; }

#top-spa-progress { position: fixed; top: 0; left: 0; height: 3px; background: #3b82f6; z-index: 99999; width: 0%; transition: width 0.2s ease, opacity 0.3s ease; opacity: 0; box-shadow: 0 0 10px rgba(59, 130, 246, 0.7); }
.skeleton-loader-bg { background: #e2e8f0; background-image: linear-gradient(90deg, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px); background-size: 200% 100%; animation: shimmer 1.5s infinite linear; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.2); }
@media (min-width: 768px) { .video-wrapper { border-radius: 16px; box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2); } }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.premium-border { padding: 8px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 16px; box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1); }
@media (min-width: 768px) { .premium-border { padding: 12px; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1); } }

/* =========================================================
   ✅ ডাইনামিক থিম CSS ওভাররাইড (Dark Mode Fixes Included)
   ========================================================= */
.theme-dark .dropdown-wrapper, .theme-system .dropdown-wrapper { background-color: #1e293b !important; border-color: #334155 !important; }
.theme-sunset .dropdown-wrapper { background-color: #ffedd5 !important; border-color: #fdba74 !important; }
.theme-nature .dropdown-wrapper { background-color: #d1fae5 !important; border-color: #6ee7b7 !important; }
.theme-neon .dropdown-wrapper { background-color: rgba(10, 10, 10, 0.95) !important; border-color: #00ff00 !important; }
.theme-ocean .dropdown-wrapper { background-color: #bae6fd !important; border-color: #7dd3fc !important; }
.theme-mocha .dropdown-wrapper { background-color: #ffedd5 !important; border-color: #fdba74 !important; }
.theme-lavender .dropdown-wrapper { background-color: #e9d5ff !important; border-color: #d8b4fe !important; }
.theme-midnight .dropdown-wrapper { background-color: #312e81 !important; border-color: #4338ca !important; }
.theme-rose .dropdown-wrapper { background-color: #ffe4e6 !important; border-color: #fecdd3 !important; }

/* ডার্ক মোডে লেখা যেন স্পস্ট সাদা থাকে তার জন্য Force CSS */
.theme-dark .dropdown-wrapper h3, .theme-dark .dropdown-wrapper h3 span:not(.text-rr-highlight):not(.text-rr-mark), .theme-dark .faq-item h3,
@media (prefers-color-scheme: dark) {
    .theme-system .dropdown-wrapper h3, .theme-system .dropdown-wrapper h3 span:not(.text-rr-highlight):not(.text-rr-mark), .theme-system .faq-item h3 { color: #f8fafc !important; }
    .theme-system .dropdown-wrapper button, .theme-system .faq-item button { border-color: #334155 !important; }
    .theme-system .dropdown-wrapper .bg-blue-50, .theme-system .dropdown-wrapper .bg-slate-50, .theme-system .faq-item .bg-blue-50, .theme-system .faq-item .bg-slate-50 { background-color: #0f172a !important; border-color: #334155 !important; color: #cbd5e1 !important; }
}
.theme-dark .dropdown-wrapper h3, .theme-dark .dropdown-wrapper h3 span:not(.text-rr-highlight):not(.text-rr-mark), .theme-dark .faq-item h3 { color: #f8fafc !important; }
.theme-dark .dropdown-wrapper .bg-blue-50, .theme-dark .dropdown-wrapper .bg-slate-50, .theme-dark .faq-item .bg-blue-50, .theme-dark .faq-item .bg-slate-50 { background-color: #0f172a !important; border-color: #334155 !important; color: #cbd5e1 !important; }
.theme-dark .dropdown-wrapper button, .theme-dark .faq-item button { border-color: #334155 !important; }