/* =========================================================
   HOMEPAGE SPECIFIC CSS (index.css)
   (Hero Section & Testimonial Slider Only)
   ========================================================= */

/* Global Link */
a { text-decoration: none !important; }

/* Main Layout & Section Headers */
.main-container { max-width: 1150px; margin: 0 auto; padding: 40px 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-top: -55px; margin-bottom: 3px;}
.section-title { font-size: 1.4rem; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 10px; transition: 0.5s; margin-top: 20px; margin-bottom: 20px;}
.view-all-btn { font-size: 14px; font-weight: 600; color: #8b5cf6; transition: 0.2s; }
.view-all-btn:hover { color: #f97316; }

/* =========================================================
   NEW HERO SECTION (1150px Width & 2-Column Layout)
   ========================================================= */
.new-hero-section {
    width: 96%;
    max-width: 1150px;
    box-sizing: border-box;
    margin: -10px auto 15px auto; 
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding-top: -15px;       
    padding-bottom: 10px;    
    padding-left: 30px;      
    padding-right: 30px;     
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: 0.5s;
}

.new-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Left Content */
.hero-content { flex: 1; max-width: 580px; text-align: left; }
.hero-title { font-size: 1.8rem; font-weight: 700; color: #1e293b; line-height: 1.3; margin-bottom: 10px; margin-top: 5px; letter-spacing: -1px; transition: 0.5s; }

/* Text Colors */
.text-blue { color: #3b82f6; }
.text-purple { color: #8b5cf6; }
.text-orange { color: #f97316; font-weight: 800; }

.hero-subtitle { font-size: 1rem; color: #475569; font-weight: 500; margin-bottom: 20px; transition: 0.5s; }

/* Search Box */
.hero-search-box { display: flex; align-items: center; background: #ffffff; border: 2px solid #e2e8f0; border-radius: 10px; border-color: #cbd5e1; padding: 5px 6px 5px 16px; max-width: 450px; box-shadow: 0 8px 20px rgba(0,0,0,0.04); margin-bottom: 25px; cursor: pointer; transition: 0.3s; }
.hero-search-box:hover { border-color: #3b82f6; box-shadow: 0 10px 25px rgba(59,130,246,0.15); transform: translateY(-2px); }
.hero-search-box input { flex: 1; border: none; outline: none; font-family: 'Poppins', sans-serif; font-size: 14px; color: #64748b; background: transparent; cursor: pointer; }
.hero-search-btn { background: #3b82f6; color: #ffffff; border: none; width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(59,130,246,0.3); }
.hero-search-btn:hover { background: #2563eb; transform: scale(1.05); }

/* Features Badges */
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 10px; font-size: 12.5px; font-weight: 600; background: #ffffff; border: 1px solid #e2e8f0; transition: 0.5s; }
.badge-orange i { color: #f97316; }
.badge-orange { background: #fff7ed; border-color: #ffedd5; color: #475569; }
.badge-green i { color: #10b981; }
.badge-green { background: #ecfdf5; border-color: #d1fae5; color: #475569; }
.badge-blue i { color: #3b82f6; }
.badge-blue { background: #eff6ff; border-color: #dbeafe; color: #475569; }
.badge-purple i { color: #8b5cf6; }
.badge-purple { background: #f5f3ff; border-color: #ede9fe; color: #475569; }

/* Right Content (Image) */
.hero-image { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.hero-image img { width: 100%; max-width: 480px; height: auto; object-fit: contain; margin-top: 0px; animation: floatImage 4s ease-in-out infinite; }

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Mobile Responsiveness For Hero */
@media (max-width: 900px) {
    .new-hero-container { flex-direction: column-reverse; text-align: center; gap: 0px; }
    .hero-content { text-align: center; max-width: 100%; margin: 0 auto; }
    .hero-title { justify-content: center; }
    .hero-search-box { margin: 0 auto 25px auto !important; }
    .hero-badges { justify-content: center; }
    .hero-image { justify-content: center; width: 100%; }
    .hero-image img { max-width: 280px; margin-top: 0; margin-bottom: 0; }
}

@media (max-width: 600px) {
    .new-hero-section { width: 92%; padding: 25px 15px; margin: -15px auto 20px auto; border-radius: 16px; }
    .hero-image img { max-width: 240px; margin-bottom: 15px; }
    .hero-title { font-size: 1.2rem; margin-bottom: 8px; line-height: 1.3; text-align: center; justify-content: center; }
    .hero-subtitle { font-size: 0.80rem; margin-bottom: 20px; line-height: 1.5; padding: 0 10px; text-align: center; }
    .hero-search-box { margin: 0 auto 20px auto !important; padding: 5px 6px 5px 15px; margin-bottom: 20px; border-radius: 10px; max-width: 100%; }
    .hero-search-box input { font-size: 13px; }
    .hero-search-btn { width: 36px; height: 36px; font-size: 14px; border-radius: 8px; }
    .hero-badges { gap: 8px; justify-content: center; }
    .badge { font-size: 10.5px; padding: 6px 12px; border-radius: 8px; }
    .hero-title { font-size: 1.8rem; } /* Override from old media query */
}

@media (max-height: 500px) and (orientation: landscape) {
    .new-hero-section {
        padding: 15px !important;
    }
    .hero-image img {
        max-width: 150px !important; /* फोटो छोटी कर दो */
    }
    .hero-title {
        font-size: 1.2rem !important;
    }
}

/* 🔥 टैबलेट और मोबाइल लैंडस्केप के लिए स्पेशल सुधार */
@media (max-width: 1100px) and (orientation: landscape) {
    .new-hero-container {
        gap: 15px !important;
    }
    .hero-content {
        flex: 1.2; /* टेक्स्ट को थोड़ी ज़्यादा जगह दी */
    }
    .hero-image {
        flex: 0.8; /* इमेज को सही अनुपात (Ratio) में रखा */
    }
    .hero-image img {
        max-width: 350px !important; /* आड़ी स्क्रीन पर इमेज को फिक्स किया */
    }
}
/* =========================================================
   Testimonials (Slider)
   ========================================================= */
.testimonial-wrapper { position: relative; display: flex; align-items: center; max-width: 1150px; margin: 0 auto; }
.slider-btn { background: #ffffff; border: 1px solid #e2e8f0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: #1e293b; position: absolute; z-index: 10; font-size: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s; }
.slider-btn:hover { background: #8b5cf6; color: white; border-color: #8b5cf6; }
.slider-btn.left { left: 0; }
.slider-btn.right { right: 0; }
.testimonial-track { display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 20px; padding: 10px 45px; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card { min-width: 300px; background: #ffffff; border: 1px solid #e2e8f0; padding: 25px; border-radius: 15px; transition: 0.5s; }
.stars { color: #f59e0b; font-size: 18px; margin-bottom: 10px; }
.testimonial-card p { font-size: 14px; font-style: italic; color: #475569; margin-bottom: 15px; line-height: 1.6; }
.testimonial-card h4 { font-size: 14px; color: #1e293b; font-weight: 700; margin: 0; }

@media (max-width: 600px) {
    .testimonial-card { min-width: 250px; padding: 15px; }
}

/* =========================================================
   DARK MODE FOR HOMEPAGE (Hero & Testimonials Only)
   ========================================================= */
body.dark-mode { background-color: #0f172a; }
body.dark-mode .new-hero-section { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important; border-color: #334155 !important; box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important; }
body.dark-mode .hero-title, body.dark-mode .section-title, body.dark-mode .testimonial-card h4 { color: #f8fafc !important; }
body.dark-mode .hero-subtitle, body.dark-mode .testimonial-card p { color: #cbd5e1 !important; }
body.dark-mode .hero-search-box { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .hero-search-box:hover { border-color: #3b82f6 !important; box-shadow: 0 10px 25px rgba(59,130,246,0.2) !important; }
body.dark-mode .hero-search-box input { color: #f8fafc !important; }

/* Dark Mode Badges */
body.dark-mode .badge { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .badge-orange { background: rgba(249, 115, 22, 0.1) !important; border-color: rgba(249, 115, 22, 0.3) !important; color: #f8fafc !important; }
body.dark-mode .badge-green { background: rgba(16, 185, 129, 0.1) !important; border-color: rgba(16, 185, 129, 0.3) !important; color: #f8fafc !important; }
body.dark-mode .badge-blue { background: rgba(59, 130, 246, 0.1) !important; border-color: rgba(59, 130, 246, 0.3) !important; color: #f8fafc !important; }
body.dark-mode .badge-purple { background: rgba(139, 92, 246, 0.1) !important; border-color: rgba(139, 92, 246, 0.3) !important; color: #f8fafc !important; }

/* Dark Mode Slider */
body.dark-mode .testimonial-card { background: #1e293b; border-color: #334155; }
body.dark-mode .slider-btn { background: #1e293b; color: #f8fafc; border-color: #334155; }
body.dark-mode .slider-btn:hover { background: #8b5cf6; border-color: #8b5cf6; }
