/* ========================================== */
/* LOCAL FONTS (AmsSamanya & SourceCodePro)   */
/* ========================================== */

@font-face {
    font-family: 'AmsSamanya';
    src: url('fonts/AmsSamanya.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceCodePro';
    src: url('fonts/SourceCodePro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ========================================== */
/* 1. UNIVERSAL & GLOBAL STYLES               */
/* ========================================== */

body { 
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
    padding-top: 60px !important; 
    /* SourceCodePro अंग्रेजी और अंकों के लिए, AmsSamanya हिंदी के लिए */
    font-family: 'SourceCodePro', 'AmsSamanya', sans-serif !important; 
    line-height: 1.5;
    overflow-x: hidden !important; /* यह लाइन लेफ्ट-राइट स्क्रोल को रोक देगी */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'SourceCodePro', 'AmsSamanya', sans-serif !important;
    font-weight: 700;
}

/* Standard Buttons & Badges */
.btn-primary, .bg-primary, .badge.bg-primary, .bg-danger, .btn-danger {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.text-primary, .text-danger { color: var(--primary-color) !important; }
.border-primary, .border-danger { border-color: var(--primary-color) !important; }


/* ========================================== */
/* 2. SMART HEADER & NAVBAR                   */
/* ========================================== */

.navbar-main-transparent { 
    background-color: transparent !important; 
    transition: all 0.3s ease-in-out; 
}
.navbar-main-transparent .nav-action-btn i { color: var(--primary-color) !important; }
.navbar-main-transparent .search-icon { color: rgba(255,255,255,0.7) !important; }

.navbar-main-transparent .header-custom-pages a { 
    font-size: 1.1rem; 
    font-weight: 400 !important; 
    color: var(--primary-color) !important; 
    padding: 5px 0; 
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-solid { 
    background-color: #ffffff !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease-in-out;
}
.navbar-solid.bg-transparent { background-color: #ffffff !important; }

.navbar-solid .header-custom-pages a { 
    font-size: 1.1rem; 
    font-weight: 400 !important; 
    color: #64748b !important; 
    padding: 5px 0; 
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-custom-pages a:hover { opacity: 0.85; }

.navbar-solid .nav-action-btn i { color: #64748b !important; }
.navbar-solid .nav-action-btn:hover i { color: var(--primary-color) !important; }
.navbar-solid .capsule-search-container { background: #f1f5f9; border: 1px solid #e2e8f0; }
.navbar-solid .capsule-search-input { color: #1e293b !important; }
.navbar-solid .capsule-search-input::placeholder { color: #94a3b8 !important; }
.navbar-solid .search-icon { color: var(--primary-color) !important; }


/* ========================================== */
/* 3. HOVER EFFECTS (ZOOM IN)                 */
/* ========================================== */

.hover-zoom-link {
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    display: inline-block;
    text-decoration: none;
}
.hover-zoom-link:hover {
    transform: scale(1.08) !important;
    opacity: 0.9 !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* ========================================== */
/* 4. SEARCH BAR (CAPSULE STYLE)              */
/* ========================================== */

.capsule-search-container {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px);
    border-radius: 50rem; padding: 4px 4px 4px 16px; border: 1px solid rgba(255, 255, 255, 0.3); transition: all 0.3s ease;
}
.capsule-search-input { 
    background: transparent !important; border: none !important; color: #fff !important; 
    box-shadow: none !important; outline: none !important; font-size: 1rem; width: 100%; 
}
.capsule-search-btn { 
    background-color: var(--primary-color) !important; border: none !important; color: #fff !important; 
    border-radius: 50rem !important; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; 
}
#leftExpandingSearch { width: 0; opacity: 0; overflow: hidden; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; white-space: nowrap; }
#leftExpandingSearch.active { width: 270px; opacity: 1; }


/* ========================================== */
/* 5. PREMIUM HERO SLIDER                     */
/* ========================================== */

.new-premium-slider { 
    position: relative; 
    width: 100%; 
    height: 500px !important; 
    background-color: #000; 
    overflow: hidden; 
}

.new-premium-slider .carousel,
.new-premium-slider .carousel-inner,
.new-premium-slider .carousel-item { 
    height: 100% !important; 
    width: 100% !important;
}

.new-premium-slider .carousel-item { 
    position: relative !important; 
    transition: transform 0.6s ease-in-out; 
}

.new-premium-slider .carousel-item img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
}

.new-premium-slider .carousel-item::after { 
    content: ""; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%); 
    pointer-events: none; 
    z-index: 2; 
}

.new-premium-slider .carousel-caption { 
    position: absolute !important; 
    bottom: 50px !important; 
    left: 8% !important; 
    right: 8% !important; 
    text-align: left !important; 
    z-index: 5 !important; 
    padding: 0 0 3px 10px !important; 
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.new-premium-slider .badge { 
    background-color: var(--primary-color) !important; 
    color: #fff !important; 
    font-size: 0.85rem !important; 
    font-weight: 600 !important; 
    padding: 6px 12px !important; 
    border-radius: 0 !important; 
    margin-bottom: 10px !important; 
    display: inline-block !important; 
    border: none !important; 
}

.new-premium-slider h2 { 
    color: #ffffff !important; 
    font-size: 2.2rem !important; 
    font-weight: 700 !important; 
    line-height: 1.35 !important; 
    margin-top: 8px !important;
    margin-bottom: 12px !important; 
    max-width: 900px !important; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9) !important; 
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

a.sw-read-link { 
    color: var(--primary-color) !important; 
    font-size: 1.15rem !important; 
    font-weight: 700 !important; 
    text-decoration: none !important; 
    display: inline-flex !important; 
    align-items: center !important; 
}
a.sw-read-link:hover { opacity: 0.8; }
a.sw-read-link i { margin-left: 6px; font-weight: bold; color: var(--primary-color) !important; }

@media (max-width: 991px) {
    .new-premium-slider { height: 400px !important; }
    .new-premium-slider h2 { font-size: 1.5rem !important; }
    .new-premium-slider .carousel-caption { bottom: 35px !important; left: 5% !important; right: 5% !important; }
}


/* ========================================== */
/* 6. POST CARD DESIGN (Reference Clean Style)*/
/* ========================================== */

.blog-card {
    background: #ffffff !important;
    border-radius: 0px !important; /* Sharp Corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important; /* Default Rich Elevation Shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease !important;
    border: none !important;
    height: 100%;
    position: relative !important;
    
}

.blog-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.blog-card-img-wrapper { 
    position: relative; 
    width: 100%;
    aspect-ratio: 16 / 9 !important; /* Standard Rectangular 16:9 Image */
    overflow: hidden; 
    background: #f1f5f9; 
    border-radius: 0px !important; 
}

.blog-card-img-wrapper a {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.blog-card-img-wrapper img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    border-radius: 0px !important;
    transition: transform 0.4s ease !important; 
}

.blog-card:hover .blog-card-img-wrapper img { 
    transform: scale(1.03) !important; 
}

.blog-card-body { 
    padding: 18px 20px !important; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    background: #ffffff !important;
}

.blog-card-body .mb-1 {
    margin-bottom: 12px !important;
}

.blog-card-category, .badge-category { 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 8px !important;
    font-size: 0.75rem !important; 
    font-weight: 700 !important; 
    color: #007aff !important;
    background-color: #ffeb3b !important;
    border: 1px solid #fbc02d !important;
    border-radius: 0px !important;
    text-decoration: none !important;
    pointer-events: auto !important; /* इसे none से auto कर दिया गया है */
    position: relative !important;
    z-index: 2 !important;
    width: fit-content;
    position: relative !important;
}

.blog-card-title { 
    font-size: 1.05rem !important; 
    font-weight: 700 !important;
    line-height: 1.4 !important; 
    margin-top: 2px !important;
    margin-bottom: 0px !important; 
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: block !important;
}

.blog-card .blog-card-title a,
.blog-card h4 a,
.blog-card h5 a,
.blog-card h6 a,
a.title-hover-effect {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.2s ease-in-out !important;
}

.blog-card:hover .blog-card-title a,
.blog-card:hover .title-hover-effect,
.blog-card-title a:hover,
.title-hover-effect:hover {
    color: #007aff !important;
}


/* ========================================== */
/* 7. FOOTER STYLING                          */
/* ========================================== */

footer, .site-footer { 
    background-color: #ffffff !important; color: #64748b !important; border-top: none !important; 
    padding: 45px 0 20px 0; margin-top: 50px; position: relative; 
}
footer p, footer li, footer a, .site-footer p, .site-footer li, .site-footer a { 
    color: #64748b !important; text-decoration: none; transition: color 0.2s ease; 
}
footer a:hover, .site-footer a:hover { color: var(--primary-color) !important; }
footer h5, footer h4, footer h6, .site-footer h5, .site-footer h4, .site-footer h6 { 
    color: #1e293b !important; font-weight: 700; 
}

footer::before, .site-footer::before { 
    content: ""; display: block; width: 90%; max-width: 700px; height: 3px; 
    background-color: var(--primary-color); 
    margin: 0 auto 35px auto; border-radius: 2px; 
}

/* वेबसाइट के सभी केटेगरी बैज और कार्ड्स की परफेक्ट वर्टिकल एलाइनमेंट के लिए */
.blog-card-category, 
.badge, 
.category-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    padding-top: 0.4em !important;
    padding-bottom: 0.4em !important;
}