/* ==========================================================
   1. RESET & BASE STYLES
   ================================================---------- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background-color: #ffffff; 
    color: #111111; 
    overflow-x: hidden; 
}

:root { 
    --lnf-bg-color: #f9fafb; 
    --lnf-text-main: #111827; 
    --lnf-text-muted: #4b5563; 
    --lnf-accent-blue: #dc9109b6; 
    --lnf-badge-bg: #449090; 
}

/* ==========================================================
   2. HEADER & NAVIGATION
   ================================================---------- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.menu-window {
    display: none; 
    position: absolute;
    top: 65px;
    right: 10px;
    background-color: #ffffff;
    min-width: 180px;
    z-index: 9999;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-window a {
    color: #333333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 15px;
}

.menu-window a:hover {
    background-color: #f5f5f5;
}

.nav-divider {
    margin: 5px 0;
    border: 0;
    border-top: 1px solid #eeeeee;
}

.auth-links { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.menu-toggle-btn {
    font-size: 24px;
    cursor: pointer;
    color: #333333;
    display: block;
}

.login-text { 
    text-decoration: none; 
    color: #111; 
    font-weight: 500; 
    font-size: 14px; 
}

.signup-btn { 
    background-color: #449090; 
    color: white; 
    text-decoration: none; 
    padding: 10px 17px; 
    border-radius: 24px; 
    font-weight: 600; 
    font-size: 14px; 
}

/* ==========================================================
   3. LAYOUT COMPONENTS & HERO
   ================================================---------- */
.main-container {
    padding: 0;
    margin: 0;
    position: relative;
}

.hero-banner-image { 
    width: 100%; 
    max-width: 100%; 
    height: auto; 
    min-height: 200px;
    margin: 0;
    padding: 0; 
}

.hero-banner-image img { 
    width: 100%; 
    height: 100%; 
    max-height: 500px; 
    object-fit: cover; 
    border-radius: 0; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.06); 
    display: block;
}

.content-box { 
    text-align: center; 
    max-width: 480px; 
    width: 100%; 
    padding: 0 24px; 
    margin: 20px auto; 
}

.content-box h1 { 
    font-size: 32px; 
    font-weight: 700; 
    margin-bottom: 30px; 
    letter-spacing: -0.5px; 
}

.button-stack { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.btn { 
    padding: 16px; 
    border-radius: 30px; 
    font-weight: 600; 
    text-decoration: none; 
}

.btn-primary { background-color: #449090; color: white; }
.btn-outline { background-color: #ffffff; color: #111; border: 1px solid #dadce0; }
.btn-secondary { background-color: #e9e9e9; color: #111; }

.hero-slider-section { 
    margin-top: 50px; 
    padding: 0 24px; 
    text-align: center; 
}

.slider-container { 
    width: 90%; 
    max-width: 1200px; 
    height: 50vw; 
    max-height: 400px;
    margin: 20px auto; 
    border-radius: 24px; 
    overflow: hidden; 
}

#heroSlider { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* ==========================================================
   4. POSTS & TRENDS SECTIONS
   ================================================---------- */
.side-scroll-posts {
    margin-top: 40px;
    padding: 0 20px;
    width: 100%;
    max-width: 100%; 
    overflow: hidden; 
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 { font-size: 20px; font-weight: 700; }

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    background-color: #e9e9e9;
    font-size: 20px;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.post-scroll-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; 
    gap: 12px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch; 
    width: 100%; 
    padding-bottom: 15px;
    scrollbar-width: none;
}

.post-scroll-container::-webkit-scrollbar { display: none; }

.post-card {
    flex: 0 0 45% !important; 
    min-width: 130px !important; 
    max-width: 200px !important;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    width: 100% !important; 
}

.post-card img {
    width: 100% !important; 
    height: 180px !important; 
    object-fit: cover !important;
    border-radius: 12px 12px 0 0;
}

.post-card h3 {
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    margin: 0;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
}

.trends-wrapper { 
    background-color: #44909053; 
    padding: 20px; 
    margin: 1.5% auto; 
    border-radius: 16px; 
    width: 94%; 
    max-width: 1200px; 
}

.trends-wrapper2 { 
    background-color: #27b9abb6; 
    padding: 20px; 
    margin: 1.5% auto; 
    border-radius: 16px; 
    width: 94%; 
    max-width: 1200px; 
}

.trends-title { 
    font-size: 20px; 
    font-weight: 700; 
    color: #000000; 
    margin-bottom: 20px; 
    margin-top: 0; 
}

.trends-container { 
    background-color: #ffffff; 
    border-radius: 12px; 
    padding: 12px; 
}

.trends-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}

.trends-grid .trend-card:nth-child(n+5) {
    display: none;
}

.trend-card { 
    display: flex; 
    flex-direction: column; 
    border-radius: 8px; 
    overflow: hidden; 
}

.trend-card img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    display: block; 
}

.trend-label, .trend-label2 { 
    text-align: center; 
    padding: 10px 8px; 
    font-weight: 600; 
    font-size: 14px; 
    color: #000000; 
}

.trend-label { background-color: #44909053; }
.trend-label2 { background-color: #27b9abb6; }

/* ==========================================================
   5. SIDEBAR & WORKFLOW & STATS
   ================================================---------- */
.sidebar-container { 
    width: 100%;
    box-sizing: border-box;
    padding: 30px;
    margin: 20px 0;
    background: #ffffff; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-container .index-search-section,
.sidebar-container .menu-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-container .index-search-section h2,
.sidebar-container .menu-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.sidebar-container .search-bar-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.sidebar-container .search-box {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
}

.sidebar-container .search-btn {
    padding: 12px 25px;
    background-color: #008080;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.sidebar-container .search-btn:hover {
    background-color: #006666;
}

.menu-list { 
    list-style-type: none; 
    padding-left: 0; 
    margin: 0;
}

.menu-list li { 
    margin-bottom: 10px; 
}

.sidebar-container .menu-list li a { 
    text-decoration: none; 
    color: #555; 
    font-size: 1rem; 
    display: block;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.sidebar-container .menu-list li a:hover { 
    color: #008080;
    padding-left: 5px;
}

.lnf-workflow-container {
    width: 100%;
    box-sizing: border-box;
    padding: 30px 15px;
    margin: 20px 0;
    background-color: var(--lnf-bg-color); 
    color: var(--lnf-text-main); 
    text-align: center; 
}

.lnf-main-heading { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.lnf-sub-heading { font-size: 1.1rem; color: var(--lnf-text-muted); line-height: 1.6; margin-bottom: 60px; }
.lnf-action-card { display: flex; flex-direction: column; align-items: center; margin-bottom: 50px; }

.lnf-svg-box { 
    position: relative; 
    width: 100px; 
    height: 100px; 
    background-color: white; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); 
    margin-bottom: 24px; 
}

.lnf-svg-box svg { 
    width: 40px; 
    height: 40px; 
    stroke: var(--lnf-accent-blue); 
    stroke-width: 2; 
    fill: none; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}

.lnf-number-badge { 
    position: absolute; 
    top: -5px; 
    right: 0; 
    background-color: var(--lnf-badge-bg); 
    color: white; 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-weight: bold; 
    font-size: 0.9rem; 
    border: 3px solid var(--lnf-bg-color); 
}

.lnf-card-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 12px 0; }
.lnf-card-text { font-size: 1rem; color: var(--lnf-text-muted); line-height: 1.5; margin: 0; max-width: 450px; }

.stats-section { background-color: #f9f9f9; padding: 40px 20px; margin: 30px 0; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.stat-card { background: white; padding: 20px; border-radius: 12px; border: 1px solid #e0e0e0; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.stat-card i { font-size: 30px; color: #008080; margin-bottom: 10px; display: block; }
.stat-card h3 { margin: 5px 0; font-size: 24px; color: #333; }
.stat-card p { margin: 0; font-size: 14px; color: #777; text-transform: uppercase; }

/* ==========================================================
   6. AUTH, PROFILE, POSTS & UTILITY PAGES
   ================================================---------- */
.auth-box { width: 90%; max-width: 400px; margin: 60px auto; padding: 30px; background: #ffffff; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.auth-box h2 { text-align: center; color: #333; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #555; font-weight: bold; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 16px; }
.btn-login { width: 100%; padding: 12px; background-color: #008080; color: white; border: none; border-radius: 6px; font-size: 18px; cursor: pointer; transition: background 0.3s; }
.btn-login:hover { background-color: #006666; }
.error-message { color: #d9534f; background: #fdf7f7; padding: 10px; border-radius: 4px; margin-bottom: 20px; text-align: center; border: 1px solid #d9534f; }
.auth-footer { text-align: center; margin-top: 20px; color: #666; }
.auth-footer a { color: #008080; text-decoration: none; font-weight: bold; }

.search-section { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.search-bar-container { display: flex; flex-grow: 1; gap: 5px; min-width: 250px; }
.search-box { flex-grow: 1; margin-left: 4px; padding: 12px; border: 1px solid #008080; border-radius: 6px; width: 100%; }
.search-btn, .filter-toggle-btn { padding: 12px 20px; border-radius: 6px; cursor: pointer; }
.search-btn { background: #008080; color: white; border: none; }
.filter-toggle-btn { background: #f0f0f0; border: 1px solid #ccc; }
.filter-box { background: #fff; padding: 20px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 20px; }
.filter-row { display: grid; grid-template-columns: repeat(3, 1fr ); gap: 8px; margin-bottom: 15px; }
.date-range { display: flex; margin-bottom: 15px; }
.apply-btn { padding: 10px 20px; background: #008080; color: white; border: none; border-radius: 4px; cursor: pointer; }
.reset-btn { margin: 8px 12px 8px 7px; padding: 9px 18px; background: #e0e0e0; text-decoration: none; color: #333; border-radius: 4px; }


    /* Default (Mobile) - 2 columns */
    .posts-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    /* Desktop View - 4 columns */
    @media screen and (min-width: 768px) {
        .posts-grid {
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 20px;
        }
    }

.post-image { width: 100%; height: 250px; object-fit: cover; background: #eaeaea; }
.post-content { padding: 15px; }
.no-results { grid-column: span 2; text-align: center; padding: 50px; color: #666; }

.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin: 40px 0; }
.btn-page { background: #008080; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: bold; }
.btn-page:hover { background: #005959; }

.view-post-container { width: 95%; max-width: 800px; margin: 20px auto; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); box-sizing: border-box; }
.slider-wrapper { position: relative; max-width: 100%; margin: 0 auto 25px auto; overflow: hidden; border-radius: 8px; border: 1px solid #ddd; background: #f9f9f9; }
.slides-container { display: flex; transition: transform 0.4s ease-in-out; width: 100%; } 
.slide-item { min-width: 100%; box-sizing: border-box; text-align: center; }
.slide-item img { width: 100%; height: auto; max-height: 400px; object-fit: contain; }
.slider-btn { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); padding: 12px 18px; color: white; font-weight: bold; font-size: 24px; background-color: rgba(0,0,0,0.5); border: none; border-radius: 4px; z-index: 10; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.profile-container { width: 95%; max-width: 500px; margin: 30px auto; padding: 20px; font-family: sans-serif; box-sizing: border-box; }
.profile-card { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center; width: 100%; box-sizing: border-box; }
.avatar { width: 100px; height: 100px; background: #008080; color: white; font-size: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 15px; }
.user-name { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 5px; }
.user-email { color: #777; margin-bottom: 25px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; text-align: left; }
.info-item { background: #f9f9f9; padding: 15px; border-radius: 12px; }
.info-label { font-size: 12px; color: #888; text-transform: uppercase; }
.info-value { font-size: 16px; font-weight: bold; color: #333; }
.btn-logout { display: block; margin-top: 30px; background: #ff4d4d; color: white; padding: 12px; border-radius: 10px; text-decoration: none; font-weight: bold; }
.btn-logout:hover { background: #e60000; }

/* ==========================================================
   7. MEDIA QUERIES (DESKTOP & MOBILE RESPONSIVE)
   ================================================---------- */

/* Desktop View (min-width: 768px) */
@media screen and (min-width: 768px) {
    .menu-toggle-btn {
        display: none !important;
    }

    .auth-links {
        display: none !important;
    }

    .menu-window {
        display: flex !important;
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        align-items: center;
    }

    .menu-window a {
        padding: 8px 14px;
        display: inline-block;
        font-size: 15px;
        font-weight: 500;
        color: #333333;
        text-decoration: 0.06rem underline #ffaa00;
        text-underline-offset: 5px;
    }

    .menu-window a:hover {
        background-color: transparent;
        color: #008080;
    }

    .nav-divider {
        display: none; 
    }

    .button-stack { 
        flex-direction: row; 
        justify-content: center; 
    }
    
    .stats-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }

    .main-container .hero-banner-image {
        display: none !important;
    }

    .content-box {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://returnhub.in/banners/image1.jpeg') !important;
    background-color: red !important; /* Yeh line add karein */
    
 
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    height: 35vh;
    padding: 18vh 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    max-width: 1200px;
}

    .content-box h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 25px;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .content-box .button-stack {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .content-box .button-stack .btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 30px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        text-decoration: none;
        display: inline-block;
    }

    .content-box .button-stack .btn-primary {
        background-color: #008080;
        border: 2px solid #008080;
        color: white;
    }

    .content-box .button-stack .btn-primary:hover {
        background-color: #006666;
        transform: translateY(-2px);
    }

    .content-box .button-stack .btn-outline {
        background-color: transparent;
        border: 2px solid #ffffff;
        color: #ffffff;
    }

    .content-box .button-stack .btn-outline:hover {
        background-color: #ffffff;
        color: #333333;
        transform: translateY(-2px);
    }

    .content-box .button-stack .btn-secondary {
        background-color: #ffaa00;
        border: 2px solid #ffaa00;
        color: #ffffff;
    }

    .content-box .button-stack .btn-secondary:hover {
        background-color: #e69500;
        transform: translateY(-2px);
    }

    .trends-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .trends-grid .trend-card {
        display: flex !important;
        flex-direction: column;
    }
    
    .trends-grid .trend-card:nth-child(n+10) {
        display: none !important;
    }

    .lnf-workflow-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: 
            "heading heading heading"
            "subheading subheading subheading"
            "card1 card2 card3";
        gap: 30px;
        width: 100% !important;
        max-width: 100% !important;
        background-color: #f8f9fa;
        border-radius: 12px;
        padding: 50px 40px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .lnf-workflow-container .lnf-main-heading {
        grid-area: heading;
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 10px;
    }

    .lnf-workflow-container .lnf-sub-heading {
        grid-area: subheading;
        font-size: 1.1rem;
        text-align: center;
        max-width: 800px;
        margin: 0 auto 30px auto;
        color: #666;
    }

    .lnf-workflow-container .lnf-action-card:nth-of-type(1) { grid-area: card1; }
    .lnf-workflow-container .lnf-action-card:nth-of-type(2) { grid-area: card2; }
    .lnf-workflow-container .lnf-action-card:nth-of-type(3) { grid-area: card3; }

    .lnf-workflow-container .lnf-action-card {
       