/* ==========================================================================
   MAIN CSS HUB - Imports all architectural styles
   ========================================================================== */

/* 1. Base Styles & Tokens */
@import '../base/variables.css';
@import '../base/reset.css';
@import '../base/typography.css';

/* 2. Layout Sections */
@import '../layout/navbar.css';
@import '../layout/sidebar.css';
@import '../layout/footer.css';

/* 3. Reusable Components */
@import '../components/hero.css';
@import '../components/cards.css';
@import '../components/buttons.css';

/* 4. Page Specific Tweaks */
@import './home.css';
@import './blog.css';

/* 5. Global Utilities & Responsiveness */
@import '../responsive.css';





/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --accent-color: #2563eb; 
    --border-color: #e2e8f0;
}

[data-theme="dark"] {
    --bg-primary: #0f172a; 
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   2. LAYOUT HELPERS
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

/* ==========================================
   3. HEADER & NAVBAR STYLING
   ========================================== */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   🎮 PREMIUM 3D MECHANICAL DARK MODE TOGGLE SWITCH
   ========================================================================== */
.theme-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    outline: none;
    user-select: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Light Mode Status: Elevated 3D Block Cushion */
    background: #f1f5f9;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: none;
    color: #475569;
    
    /* Multi-layered Outer Shadow Stack */
    box-shadow: 
        0 1px 0px rgba(0, 0, 0, 0.1),
        0 4px 0px #cbd5e1, 
        0 8px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Hover State: Smooth Magnetic Lift */
.theme-btn:hover {
    color: #6366f1; /* Indigo Accent */
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 
        0 1px 0px rgba(0, 0, 0, 0.1),
        0 5px 0px #cbd5e1, 
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Active State: Hydraulic Compression (Buttton niche dabega) */
.theme-btn:active {
    transform: translateY(4px); /* Pushes down into the matrix shadow */
    box-shadow: 
        0 0px 0px rgba(0, 0, 0, 0),
        0 0px 0px transparent, 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* 🎯 Dark Mode Activated Config Matrix */
[data-theme="dark"] .theme-btn {
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.4);
    color: #f59e0b; /* Amber Gold Sun Glow */
    
    box-shadow: 
        0 1px 0px rgba(0, 0, 0, 0.4),
        0 4px 0px #0f172a, 
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .theme-btn:hover {
    background: #24334d;
    color: #fbbf24;
    box-shadow: 
        0 1px 0px rgba(0, 0, 0, 0.4),
        0 5px 0px #0f172a, 
        0 10px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-btn:active {
    transform: translateY(4px);
    box-shadow: 
        0 0px 0px rgba(0, 0, 0, 0),ab 
        0 0px 0px transparent, 
        0 2px 6px rgba(0, 0, 0, 0.5),
        inset 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* Inside Icon Mechanics Alignment */
.theme-btn i {
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* ==========================================
   4. HERO SECTION STYLING
   ========================================== */
.hero-section {
    text-align: center;
    /* Yahan padding ko kam karein */
    padding: 20px 20px 40px 20px; 
}

.hero-section h1 {
    margin-top: 0; /* Heading ka upar ka margin hata dein */
    margin-bottom: 10px;
}

.hero-section p {
    max-width: 600px;
    margin: 0 auto 20px auto; /* Yahan 20px margin se button thoda uper khisrega */
}
.cta-btn {
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    background-color: #1d4ed8;
}

/* ==========================================
   5. FOOTER STYLING
   ========================================== */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 100px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================
   6. BLOG GRID & CARDS STYLING
   ========================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}


/* .blog-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
} */

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: bold;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    align-self: flex-start;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-title a:hover {
    color: var(--accent-color);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
}

/* Responsive Setup */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
}


/* ==========================================
   7. BLOG DIRECTORY & SIDEBAR STYLING
   ========================================== */
.main-blog-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.blog-posts-list {
    flex: 2; /* Yeh side 200% space legi (badi hogi) */
}

.site-sidebar {
    flex: 1; /* Sidebar chota hoga */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-categories {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.sidebar-categories a:hover {
    color: var(--accent-color);
}

.sidebar-categories span {
    background: var(--border-color);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.newsletter-widget p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Responsive for Blog Page */
@media (max-width: 968px) {
    .main-blog-layout {
        flex-direction: column; /* Mobile me sidebar niche chala jayega */
    }
    .blog-grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid-2-col {
        grid-template-columns: 1fr; /* Mobile me cards ek ke niche ek aayenge */
    }
}

/* ==========================================
   8. SINGLE BLOG POST TYPOGRAPHY & LAYOUT
   ========================================== */
.single-post-content {
    flex: 2;
    background-color: var(--bg-primary);
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.post-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.post-meta-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.post-featured-image {
    width: 100%;
    height: 350px;
    background-color: #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: bold;
    margin-bottom: 35px;
}

/* Article Body Typography */
.post-body p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.post-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
}

.post-body blockquote {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    font-style: italic;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

/* Responsive adjustment for post page */
@media (max-width: 640px) {
    .post-main-title {
        font-size: 1.8rem;
    }
    .post-featured-image {
        height: 200px;
    }
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   📌 FOOTER SOCIAL SHARE BUTTONS STYLE
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-secondary, #1a1e29);
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-share-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.share-btn {
    font-size: 1.4rem;
    color: #a0aec0; /* Light grayish color */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Hover karne par icons ka unka asli brand color aayega */
.share-btn.whatsapp:hover { color: #25D366; transform: translateY(-3px); }
.share-btn.telegram:hover { color: #0088cc; transform: translateY(-3px); }
.share-btn.twitter:hover { color: #1DA1F2; transform: translateY(-3px); } /* X / Twitter */
.share-btn.linkedin:hover { color: #0077B5; transform: translateY(-3px); }
.share-btn.reddit:hover { color: #FF4500; transform: translateY(-3px); }
.share-btn.youtube:hover { color: #FF0000; transform: translateY(-3px); }

.footer-copyright {
    font-size: 0.9rem;
    color: #718096;
}

/* 📋 Footer Legal Links Style */
.footer-legal-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 5px 0;
    flex-wrap: wrap; /* Mobile par automatic adjust hone ke liye */
}

.footer-legal-links a {
    color: #a0aec0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent-color, #3b82f6); /* Hover karne par highlight hoga */
}


/* ==========================================================================
   📌 SIDEBAR STYLES
   ========================================================================== */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-secondary, #1a1e29);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.05));
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color, #3b82f6);
}

/* Search Form */
.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border-radius: 6px;
    border: 1px solid #4a5568;
    background: #2d3748;
    color: #fff;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
}

/* Category List */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
}

.sidebar-cat-list li {
    margin-bottom: 10px;
}

.sidebar-cat-list a {
    color: #cbd5e0;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.sidebar-cat-list a:hover {
    color: var(--accent-color, #3b82f6);
}

.sidebar-cat-list .count {
    background: #e53e3e;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 🖥️ Desktop layout for Articles + Sidebar side-by-side */
@media (min-content-width: 992px) or (min-width: 992px) {
    .main-blog-layout {
        grid-template-columns: 2fr 1fr !important; /* 2 hissa articles, 1 hissa sidebar */
    }
}
/* ==========================================================================
   🔍 MODERN & INTERACTIVE SEARCH BAR STYLING
   ========================================================================== */

/* 1. Poore Search Widget ka Outer Box */
.search-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mouse upar aane par halka sa lift aur shadow effect */
.search-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   🔍 UPDATED SEARCH BAR STYLING (No Left Blue Line)
   ========================================================================== */

/* 2. Search Title (Blue line completely removed from Screenshot 2026-06-09 184059.png) */
.search-widget .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    padding-left: 0px; /* Line hatne ke baad padding zero kar di */
    letter-spacing: 0.3px;
}

/* 🎯 Purana .widget-title::before block poora mita dena ya uski jagah yeh likhna: */
.search-widget .widget-title::before {
    display: none !important; /* Yeh line ko gayab kar dega */
}

/* 🚀 HERO SECTION SEARCH BAR (PC Aur Mobile dono ke liye optimize) */
.hero-search-container {
    margin: 30px auto 0 auto;
    max-width: 550px; /* Desktop par bada nahi hoga */
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.hero-search-container .sidebar-search-form {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* 📱 Mobile Ratio adjust karne ke liye adjustments */
@media (max-width: 768px) {
    .hero-search-container {
        max-width: 100%; /* Phone par poori screen cover karega safety margin ke saath */
        margin-top: 25px;
    }
}

/* 3. Search Form Container (Main Input + Button ka wrap) */
.sidebar-search-form {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03); /* Light background by default */
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 4px 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🌓 Dark mode ke liye background auto-adjust */
[data-theme="dark"] .sidebar-search-form {
    background: rgba(255, 255, 255, 0.05);
}

/* ✨ INTERACTION: Jab user text box par click karega */
.sidebar-search-form:focus-within {
    border-color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); /* Soft glowing aura */
}

/* 4. Input Text Box */
.sidebar-search-form input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Placeholder text ka style */
.sidebar-search-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    transition: transform 0.2s ease;
}

/* Focus hone par placeholder thoda right side khisakega */
.sidebar-search-form input:focus::placeholder {
    transform: translateX(4px);
}

/* 5. Search Button (Icon) */
.sidebar-search-form button {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Button hover aur click animations */
.sidebar-search-form button:hover {
    filter: brightness(1.1);
    transform: scale(1.04);
}

.sidebar-search-form button:active {
    transform: scale(0.96);
}


/* 📱 MOBILE RESPONSIVENESS (Choti screen ke liye optimize) */
@media (max-width: 768px) {
    .search-widget {
        padding: 18px;
        border-radius: 14px;
        margin-bottom: 20px;
    }
    
    .sidebar-search-form input {
        padding: 8px 10px;
        font-size: 0.92rem;
    }
    
    .sidebar-search-form button {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
}

/* ==========================================================================
   ⚡ MODERN & PREMIUM NEWSLETTER WIDGET STYLING
   ========================================================================== */

/* 1. Main Container Box */
.newsletter-sidebar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover karne par premium lift effect */
.newsletter-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* Title Styling (Screenshot 2026-06-09 185223.png ki harsh blue line ko clean kar rha hai) */
.newsletter-sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* Description Text */
.newsletter-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.85;
}

/* Form Layout (PC aur Mobile dono ke liye stack structure) */
.sidebar-news-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Input aur Button ke beech barabar jagah */
}

/* 2. Modern Input Wrapper (No more harsh white box) */
.newsletter-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03); /* Light Mode Background */
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 4px 14px;
    transition: all 0.3s ease;
}

/* 🌓 Dark Mode ke hisab se automatic background adjust */
[data-theme="dark"] .newsletter-input-group {
    background: rgba(255, 255, 255, 0.05);
}

/* ✨ INTERACTION: Click karne par glow effect */
.newsletter-input-group:focus-within {
    border-color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Mail Icon Style */
.newsletter-icon {
    color: var(--text-secondary);
    opacity: 0.6;
    margin-right: 10px;
    font-size: 0.95rem;
}

/* Input Field Text */
.newsletter-input-group input {
    width: 100%;
    padding: 10px 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.newsletter-input-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* 3. Premium Subscribe Button */
.btn-subscribe {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Text aur Icon ke beech space */
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    width: 100%;
}

/* Button Animations */
.btn-subscribe:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.btn-subscribe:active {
    transform: translateY(1px);
}

/* 📱 MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .newsletter-sidebar {
        padding: 20px;
        border-radius: 14px;
    }
    
    .btn-subscribe {
        padding: 11px 18px;
        font-size: 0.92rem;
    }
}
/* ==========================================================================
   🎯 About & Article Pages Grid Layout (PC par Sleek Sidebar, Mobile par Responsive)
   ========================================================================== */
.custom-blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* 👈 PC par sidebar ka size chota karke 300px kar diya */
    gap: 40px;
    max-width: 1140px !important; /* 👈 Total width badha di taaki dono sahi se fit ho sakein */
    margin: 0 auto;
    width: 100%;
}

/* 📱 Mobile aur Tablet ke liye (Screen choti hone par) */
@media (max-width: 991px) {
    .custom-blog-layout {
        grid-template-columns: 1fr; /* 👈 Mobile par sidebar automatic full width lekar niche chala jayega */
        gap: 30px;
    }
}

/* TOC Scroll Offset */
h2[id],
h3[id] {
    scroll-margin-top: 180px;
}

/* Highlight Effect */
.section-highlight {
    animation: highlightSection 3s ease;
}

@keyframes highlightSection {
    0% {
        background-color: rgba(255, 215, 0, 0.5);
        padding: 10px;
        border-radius: 8px;
    }

    100% {
        background-color: transparent;
    }
}


h2[id],
h3[id]{
    scroll-margin-top:180px;
}

.section-highlight{
    animation: highlightSection 3s ease;
}

@keyframes highlightSection{

    0%{
        background:#fff3a3;
        padding:10px;
        border-radius:8px;
    }

    100%{
        background:transparent;
    }
}


.table-of-contents {
    background: var(--card-bg, #f9f9f9);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.table-of-contents h2 {
    margin-bottom: 15px;
    font-size: 20px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents ul li {
    margin: 10px 0;
}

.table-of-contents ul li a {
    text-decoration: none;
    color: var(--text-color, #333);
    font-weight: 500;
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    transition: 0.3s;
}

.table-of-contents ul li a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateX(5px);
}

/* Content spacing adjustments */
.single-post-content p {
    margin-bottom: 20px; /* Paragraphs ke beech space */
    line-height: 1.8;    /* Line height badha di taaki text khula-khula lage */
}

.single-post-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.single-post-content li {
    margin-bottom: 10px; /* List items ke beech space */
    line-height: 1.6;
}

.single-post-content h2 {
    margin-top: 40px;    /* Heading ke upar space */
    margin-bottom: 20px; /* Heading ke neeche space */
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd; /* Light separator */
}

.single-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .single-post-content {
        padding: 0 15px; /* Mobile par side mein thodi jagah */
    }
    .post-main-title {
        font-size: 24px; /* Mobile ke hisab se heading size */
    }
}
    [data-theme="dark"] #faq h2 {
    color: #ffffff;
}

[data-theme="dark"] #faq h3 {
    background: #1e1e1e;
    border-left: 5px solid #4da3ff;
}

[data-theme="dark"] #faq h3:hover {
    background: #2a2a2a;
}

[data-theme="dark"] #faq p {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333;
}

/* PC (Desktop) ke liye comfortable font size */
@media (min-width: 992px) {
    body { font-size: 18px; } /* Main text 18px */
    .single-post-content p { font-size: 1.1rem; } /* Paragraphs 1.1rem */
}

/* Mobile ke liye readability fix */
@media (max-width: 768px) {
    body { font-size: 16px; } /* Mobile par 16px best hai */
    .post-main-title { font-size: 26px !important; } /* Title ko bada rakhein */
    .faq-item summary { font-size: 16px !important; }
}


/* Responsive 3 column layout */
@media (min-width: 992px) {
  #latest-posts-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}





.main-blog-layout {
    display: grid;
    /* Grid poori width lega */
    grid-template-columns: 1fr; 
    gap: 30px;
    align-items: start;
    width: 100%;
    max-width: 1200px; /* Ya aapki requirement ke hisaab se width */
    margin: 0 auto;    /* Center mein lane ke liye */
}

#latest-posts-container {
    display: grid;
    gap: 25px;
    /* Mobile ke liye 1 column */
    grid-template-columns: 1fr;
}
/* Container ko width dein taaki wo puri screen occupy kare */
#latest-posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Hamesha 3 columns */
    gap: 20px;
    width: 100%;
    max-width: 1200px; /* Isse zyada chauda nahi hoga */
    margin: 0 auto;    /* Screen ke beech mein rakhega */
    padding: 0 20px;
}

/* Card ki height fix aur width balance karna */
/* .blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;       /* Container ki 100% width le */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
} */

/* Image ko chota karke height control karein */
/* .blog-card img {
    width: 100%;
    height: 180px;      /* Height kam kar di */
    object-fit: cover;
} */

/* Text area ko padding dein taaki wo aur zyada stretched na lage */
.card-content {
    padding: 15px;
    flex-grow: 1;
}
/* --- 1. Hero Section Fix --- */
.hero-section {
    text-align: center;
    padding: 40px 20px;
}

.hero-search-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* --- 2. Articles Grid (Mobile First) --- */
#latest-posts-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr; /* Mobile par 1 column */
    padding: 0 20px;
}

/* Tablet/Desktop ke liye 3 columns */
@media (min-width: 768px) {
    #latest-posts-container {
        grid-template-columns: repeat(3, 1fr); /* Desktop par 3 columns */
    }
}

/* Card ki base styling */
/* .blog-card {
    display: flex;
    flex-direction: column;
    /* Isse card ki height limit ho jayegi */
    max-height: 350px; 
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    padding: 10px; /* Padding kam karke jagah bachayein */
} */


.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f0f0f0;
    display: block;
}

/* Mobile par layout */
@media (max-width: 767px) {
    #latest-posts-container {
        grid-template-columns: 1fr;
        padding: 0 15px; /* Mobile par side se thoda margin */
    }
    
    /* Mobile par card ki height thodi aur kam kar sakte hain */
    /* .blog-card {
        max-height: 150px;
    } */
}

/* 1. Explore Button ko bada aur attractive banane ke liye */
.cta-btn {
    display: inline-block;
    padding: 15px 40px;      /* Padding badha di (Top-Bottom, Left-Right) */
    font-size: 18px;         /* Font bada kar diya */
    border-radius: 50px;     /* Round corners */
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 2. Search Bar ko bada aur chauda banane ke liye */
.sidebar-search-form {
    display: flex;
    justify-content: center;
    max-width: 1000px;        /* Search bar ki max width */
    margin: 0 auto;
}

.sidebar-search-form input {
    width: 80%;             /* Poori width le lega */
    padding: 10px 0px;      /* Padding se search bar mota hoga */
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 30px 0 0 30px; /* Left round corner */
    outline: none;
}

.sidebar-search-form button {
    padding: 10px 80px;         /* Button ki width badha di */
    font-size: 18px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0; /* Right round corner */
    cursor: pointer;
}

/* Search Form Container */
.sidebar-search-form {
    display: flex;
    align-items: center;
    background: white; /* Search bar ka background white */
    border-radius: 50px; /* Poora round shape */
    padding: 5px;
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid #ddd;
}

/* Input Field */
.sidebar-search-form input {
    flex: 1;
    border: none;
    padding: 15px 150px;
    background: transparent;
    font-size: 17px;
    outline: none;
    color: white;
}

/* Search Button */
.sidebar-search-form button {
    background: #007bff; /* Aapka theme color */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.sidebar-search-form button:hover {
    background: #0056b3;
}

/* Mobile ke liye Search Bar Optimization */
@media (max-width: 600px) {
    .sidebar-search-form {
        width: 90%;          /* Screen ki poori width mat lo, thoda margin chodo */
        margin: 10px auto;   /* Center karo */
    }

    .sidebar-search-form input {
        font-size: 14px;     /* Text size chota karo taaki fit ho jaye */
        padding: 12px 10px;  /* Padding kam karo */
    }

    .sidebar-search-form button {
        padding: 12px 15px;  /* Button ka size thoda kam karo */
    }
}

/* TOC Container Design */
.toc-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.toc-header {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    padding: 6px 0;
}

.toc-list li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

/* Desktop view fix (992px se badi screens ke liye) */
/* Sidebar hatane ke baad, layout ko center aur 3-column mein set karein */
.main-blog-layout {
    display: block !important;
    max-width: 1200px !important; /* Screen ki width limit */
    margin: 40px auto 0 auto !important;
    padding: 0 20px;
}

#latest-posts-container {
    display: grid !important;
    /* Yahan '3' ka matlab hai 3 cards ek row mein */
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 30px !important;
}

/* Mobile ke liye responsive fix (zaroori hai) */
@media (max-width: 991px) {
    #latest-posts-container {
        grid-template-columns: repeat(2, 1fr) !important; /* Tablet par 2 cards */
    }
}

@media (max-width: 600px) {
    #latest-posts-container {
        grid-template-columns: 1fr !important; /* Mobile par 1 card */
    }
}


/* Desktop screen ke liye settings */
@media (min-width: 769px) {
    /* Mobile ke menu button ko hide karo */
    .menu-toggle, .menu-close-btn {
        display: none !important;
    }

    /* Navigation ko desktop pe horizontal dikhao */
    .nav-bar {
        display: block !important;
        position: static !important;
        background: none !important;
        width: auto !important;
    }
}

/* Mobile screen ke liye settings (768px se niche) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Sirf mobile pe dikhao */
    }
    
    .nav-bar {
        display: none; /* Mobile pe pehle hidden rakho */
    }
    
    .nav-bar.active {
        display: block; /* Jab menu active ho tabhi dikhao */
    }
}
/* FAQ Section Responsive Design */
.faq-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px; /* Mobile par side se jagah chhodne ke liye */
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 18px; /* Standard padding */
    transition: all 0.3s ease;
}

/* Hover effect for better UI on Desktop */
@media (min-width: 768px) {
    .faq-item:hover {
        border-color: var(--accent-color);
    }
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem; /* Mobile aur Desktop dono ke liye comfortable */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Icon Styling */
.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-left: 15px; /* Icon aur text ke beech space */
}

.faq-item[open] summary::after {
    content: "−";
}

/* Answer ka style */
.faq-item p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .nav-bar {
        display: none; 
        position: fixed;
        top: 0;
        right: -100%; /* Shuru mein screen ke bahar */
        width: 250px;
        height: 100vh;
        background: var(--bg-primary);
        transition: 0.4s ease;
        padding: 60px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 9999;
    }
}


    .nav-bar.active {
        right: 0; /* Click par slide hokar aayega */
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Links ka design */
@media (max-width: 768px) {
    /* 1. Menu Container (Overlay) */
    .nav-bar {
        display: none; 
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-primary);
        transition: 0.4s ease;
        z-index: 9999;
        flex-direction: column; /* Vertical alignment */
        align-items: center;    /* Center mein lane ke liye */
        padding-top: 80px;      /* Upar se gap */
    }

    .nav-bar.active {
        display: flex !important;
        right: 0;
    }

    /* 2. Menu Links (Yeh sabse zaroori fix hai) */
    .nav-links {
        display: flex !important;
        flex-direction: column !important; /* Force vertical */
        align-items: center;
        gap: 25px; /* Links ke beech jagah */
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links li a {
        font-size: 1.4rem;
        text-decoration: none;
        color: var(--text-primary);
    }
}

/* --- Fix for Large Images in Articles --- */

/* 1. Card ki height ko fix aur limit karein */
.blog-card {
    height: auto !important; /* height auto karein taaki content ke sath badhe */
    max-height: 450px;       /* Yahan se image ki maximum height control karein */
    display: flex !important;
    flex-direction: column !important;
}

/* 2. Image ko crop aur center karein taaki woh stretch na ho */
.blog-card img, .card-img {
    width: 100% !important;
    height: 200px !important;    /* Image ki height yahan se kam karein */
    object-fit: cover !important; /* Sabse zaroori: ye image ko stretch hone se bachayega */
    display: block;
}





/* Related Grid Layout */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Related Card Styling */
.related-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #1a1a1a; /* Dark theme ke hisab se background */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #333; /* Halka border */
}   transition: transform 0.3s ease;


.related-card:hover {
    transform: translateY(-5px);
}

/* Image Fix: Yeh part zaroori hai */
.related-card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Perfect balance ke liye */
    object-fit: cover;
    display: block;
}
/* Title inside card */
.related-card h3 {
    padding: 10px;
    font-size: 1.1rem;
    margin: 0;
}
.related-posts {
    max-width: 1200px; /* Aapki content ki max width */
    margin: 40px auto; /* Up-down space aur left-right auto se center ho jayega */
    padding: 0 20px;   /* Screen ke kinaron se thoda space dega */
}