 /* -------------------------------------------------------------------------- */
        /* CORE CSS */
        /* -------------------------------------------------------------------------- */

        /* Reset & basic styles */
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
font-family: 'Signika', 'Roboto', sans-serif;
            background-color: #f3f4f6; 
            display: flex;
            flex-direction: column;
        }


        /* Using Flexbox for the main 1-column layout */
        #wrapper {
            width: 100%;
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 0;
            display: flex; 
            justify-content: center;
            flex-grow: 1; 
        }

        #wrapper {
            flex: 1 !important; 
        }
        
        #main-row {
            display: flex;
            width: 100%;
            margin: 0;
            justify-content: center; 
        }

        .main-content-col {
            width: 100%; 
            max-width: 1000px; 
            padding: 0 10px; 
        }

        /* Using CSS variables for easy adjustment if Navbar height changes */
        :root {
            --navbar-height: 80px; 
            --sidebar-top: calc(var(--navbar-height) + 6px); 
        }
        
        /* --- Main Posts Content --- */
        #page-content-wrapper {
            margin-top: var(--sidebar-top);
            padding: 10px 0 0 0; 
            min-height: auto; 
            overflow-y: visible; 
            box-sizing: border-box;
            overflow-x: hidden; 
            display: flex;
            flex-direction: column;
        }
        
        /* -------------------------------------------------------------------------- */
        /* POST STYLES */
        /* -------------------------------------------------------------------------- */
        
        /* Strict 2 Columns */
        #posts {
            display: grid !important; 
            grid-template-columns: repeat(2, 1fr); /* Exactly 2 columns */
            gap: 15px; 
            align-items: flex-start; 
            padding: 0;
        }
        
        .post-card {
            background: white;
            border: 1px solid #e2e8f0; 
            border-radius: 10px; 
            max-width: none; 
            width: 100%; 
            margin: 0; 
            padding: 0;
            color: #333;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
            position: relative; 
        }

        .post-header {
            padding: 8px 12px; 
            display: flex;
            align-items: center;
            justify-content: space-between; 
        }

       .post-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px; /* Ek fixed height header area ke liye */
}

        .post-header img, 
.post-profile-img, 
.profile-initial {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important; /* Fixed width ensure karne ke liye */
    min-height: 35px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important; /* Image ko dabne se rokne ke liye */
}

        .post-user-info h6 {
            margin: 0;
            font-size: 14px; 
            font-weight: 600;
            color: #1e293b; 
            line-height: 1.2;
        }

        .post-user-info .post-time {
            font-size: 11px;
            color: #94a3b8; 
            margin-top: 2px;
        }

        .post-description {
            padding: 0 12px 0 12px; 
            margin-bottom: 0;
        }

        .post-description p {
            margin: 0;
            padding: 6px 8px; 
            font-size: 14px; 
            line-height: 1.4;
            color: #334155; 
            background-color: #f8fafc; 
            border-radius: 6px;
            border-left: none; 
        }

        .post-media {
            width: 100%;
            min-height: 100px; 
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #000; 
        }

        /* 🔄 CHANGE: Increased max-height to 350px (Balanced Size) */
        .post-media img,
        .post-media video {
            width: 100%;
            height: auto; 
            max-height: 350px; 
            display: block;
            margin: auto;
            object-fit: cover;
        }
        
        /* -------------------------------------------------------------------------- */
        /* ACTION BUTTONS */
        /* -------------------------------------------------------------------------- */
.post-card-buttons-group { 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    padding: 4px 0; 
    border-top: 1px solid #f1f5f9 !important; 
    margin: 0; 
    height: 48px; 
    background-color: #fff;
}

.post-card-buttons {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    cursor: pointer;
    font-size: 14px; 
    font-weight: 500; 
    color: #475569; 
    padding: 0 10px; 
    height: 100%; 
    
    /* Border aur Background ko clean rakhne ke liye */
    border: none !important; 
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important; 
    
    /* Black Square Box (Outline) hatane ke liye main lines */
    outline: none !important; 
    -webkit-tap-highlight-color: transparent !important; /* Mobile click effect */
    user-select: none; /* Text selection block karne ke liye */

    transition: none !important; 
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

/* Click karne ke baad ya keyboard focus ke waqt box hatana */
.post-card-buttons:focus, 
.post-card-buttons:active, 
.post-card-buttons:focus-visible,
.post-card-buttons:focus-within {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Firefox ke liye specific fix */
.post-card-buttons::-moz-focus-inner {
    border: 0 !important;
}

/* Icons Style */
.post-card-buttons i {
    font-size: 18px; 
    color: #64748b;
    pointer-events: none; /* Icon click par focus na le */
}

/* Liked/Insightful Green Color (As per image) */
.post-card-buttons .text-primary,
.post-card-buttons .fa-thumbs-up.active {
    color: #00a884 !important; 
}

/* Button Text */
.btn-text {
    font-size: 13px;
    letter-spacing: -0.2px;
}
.post-location {
    font-weight: 400;
    transition: color 0.2s;
}

.post-location:hover {
    color: #3b82f6 !important; /* Hover karne par blue dikhega */
    text-decoration: underline;
}

.post-user-info h6 {
    font-size: 14px;
    font-weight: 600;
}
.post-location-inline {
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap; /* Location name ek hi line mein rahega */
    overflow: hidden;
    text-overflow: ellipsis; /* Agar name bahut bada hai toh "..." dikhega */
    max-width: 150px; 
}

.post-location-inline:hover {
    text-decoration: underline;
}
.post-location-wrapper span {
    max-width: 150px; /* Badi location names ko limit karne ke liye */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Bada naam hone par "..." dikhayega */
}
/* Counts */
.like-count, .comment-count, .suggestion-count {
    font-size: 13px;
    font-weight: 600;
    margin-left: 2px;
}
        /* -------------------------------------------------------------------------- */
        /* CUSTOM CODE */
        /* -------------------------------------------------------------------------- */

        /* 1. Interactive Like Animation */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); color: #ef4444; } 
            100% { transform: scale(1); }
        }
        .post-card-buttons i.liked-animation {
            color: #ef4444 !important; 
            animation: pulse 0.3s ease-out;
        }

        /* Post options dropdown */
        .post-options {
            position: relative;
            cursor: pointer;
        }

        .options-icon {
            font-size: 18px;
            color: #94a3b8; 
            padding: 5px;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .options-icon:hover {
            background-color: #f1f5f9;
            color: #334155;
        }

        .options-dropdown {
            position: absolute;
            top: 25px;
            right: 0;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            min-width: 180px;
            max-width: 250px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
            z-index: 100;
            padding: 5px 0;
        }

        .options-dropdown span {
            display: block;
            padding: 8px 12px;
            font-size: 13px;
            cursor: pointer;
            color: #334155;
        }

        .options-dropdown span:hover {
            background-color: #f0f0f0;
        }

        /* Report reasons */
        .report-reasons {
            padding: 5px 0;
            border-top: 1px solid #eee;
            margin-top: 5px;
        }
        .report-reasons span {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            font-size: 13px;
            cursor: pointer;
            border-bottom: none; 
        }

        .report-reasons span:last-child {
            border-bottom: none;
        }

        .report-reasons span:hover {
            background-color: #f9f9f9;
        }

        .report-reasons i {
            margin-right: 10px;
            font-size: 15px;
            color: #ff4d4d;
        }
        
        /* Style for the feedback message */
        .report-feedback-message {
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 500;
            margin: 0;
            text-align: center;
            border-top: 1px solid #f1f5f9;
        }

        .report-feedback-message.success {
            color: #10b981; 
            background-color: #e5f7f2;
        }

        .report-feedback-message.error {
            color: #ef4444; 
            background-color: #feebe8;
        }

        /* --- Custom Share Popup/Toast Styles --- */
        .share-popup {
            position: absolute; 
            bottom: 55px; 
            left: 50%; 
            transform: translateX(-50%); 
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 500; 
            padding: 10px;
            min-width: 180px;
            text-align: center;
            margin-top: 0; 
        }
        
        .share-popup .copy-link {
            padding: 8px 12px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            border-radius: 6px;
            margin-bottom: 10px;
            background-color: #f1f5f9;
            color: #334155;
            transition: background-color 0.2s;
        }
        
        .share-popup .copy-link:hover {
            background-color: #e2e8f0;
        }

        .share-popup .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        
        .share-popup .social-links a {
            display: block;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            overflow: hidden;
        }

        .share-popup .social-links img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .toast {
            position: absolute;
            background: #333;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 13px;
            z-index: 10000;
            opacity: 1;
        }
        
        /* Responsive layout FIXED for Full Width / Instagram Style */
        @media (max-width: 991px) { /* Tablet size tak */
            
            #main-row {
                flex-direction: column;
                justify-content: flex-start !important; 
                align-items: center; 
            }

            .main-content-col {
                width: 100%; 
                max-width: 100% !important; 
                margin: 0; 
                padding: 0 !important; 
            }
            
            .post-card {
                width: 100%; 
                max-width: 100% !important; 
                margin: 0 0 12px 0 !important; 
                border-radius: 0 !important; 
                border-left: none !important;
                border-right: none !important;
                box-shadow: none !important; 
                border-top: 1px solid #eee;
                border-bottom: 1px solid #eee;
            }
            
            /* Small screen ke liye 1 column layout */
            #posts {
                grid-template-columns: 100% !important; 
                display: grid !important;
                gap: 0; 
                width: 100%; 
            }

            .post-media img,
            .post-media video {
                height: auto;
                max-height: 380px; 
            }
            
            #page-content-wrapper {
                padding: 0 !important; 
                margin-top: var(--navbar-height) !important; 
                width: 100%;
            }
        }
        
        /* Pagination Container */
        #pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin: 20px 0 30px 0; 
            flex-wrap: wrap;
            grid-column: 1 / -1; 
        }

        /* Pagination Buttons (No change) */
        .pagination-btn {
            min-width: 32px; 
            height: 32px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 8px;
            border: 1px solid #ddd;
            background-color: #fff;
            color: #555;
            font-weight: 500;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }

        .pagination-btn:hover {
            background-color: #6366f1; 
            color: #fff;
            border-color: #6366f1;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }

        .pagination-btn.active {
            background-color: #6366f1; 
            color: #fff;
            border-color: #6366f1;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
        }

        .pagination-btn:disabled {
            background-color: #f5f5f5;
            color: #ccc;
            cursor: not-allowed;
            border-color: #eee;
            box-shadow: none;
        }

        /* Initial avatar styles */
        /* Initial avatar styles - Updated for consistent text size */
.profile-initial {
    width: 35px !important; 
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    border-radius: 50% !important;
    background: #14b8a6; 
    color: #fff !important;
    
    /* Font size ko fix karein */
    font-size: 16px !important; 
    font-weight: 600 !important;
    text-transform: uppercase;
    font-family: inherit;
    
    /* Text ko perfect center karne ke liye */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line height 1 rakhne se vertical alignment nahi bigadti */
    
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
       
        .post-container, 
        .home-content, 
        .main-content, 
        .feed-section {
            height: auto !important;
            min-height: auto !important;
            overflow: visible !important;
        }

        @media(max-width: 768px) {
            .post-container, 
            .home-content, 
            .main-content, 
            .feed-section {
                height: auto !important;
            }
        }
        .post-container {
            height: auto !important;
            overflow: visible !important;
        }
/* Footer ko mobile view (991px se niche) mein hide karne ke liye */
@media (max-width: 991px) {
    #footer_section {
        display: none !important;
    }
}
/* Pagination Container adjustment */
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Niche ka margin 100px se kam karke 30px kiya */
    margin: 20px 0 30px 0; 
    flex-wrap: wrap;
    grid-column: 1 / -1; 
}

/* Mobile view ke liye space aur badhao */
@media (max-width: 991px) {
    #pagination {
        /* Margin ko 75px se badha kar 100px kar dein */
        margin-bottom: 100px !important; 
        margin-top: 30px;
        display: flex !important;
        justify-content: center;
        width: 100%;
    }

    /* Ye ensure karega ki wrapper ke niche extra space ho */
    .main-content-col {
        padding-bottom: 20px !important;
    }
    
    #page-content-wrapper {
        overflow-x: hidden;
    }
}