:root {
    --primary-green: #0a2f1d;
    --accent-gold: #c5a880;
    --price-green: #2d6a4f;
    --bg-light: #f4f6f4;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 70px; 
}

/* --- Desktop Navigation --- */
.desktop-nav {
    background-color: var(--primary-green);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.desktop-nav .logo-zone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-nav .logo-text h1 {
    color: var(--accent-gold);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.desktop-nav .logo-text span {
    color: var(--white);
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}
/* --- New Action Icons for Desktop --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-actions a {
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.nav-actions a:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.nav-actions .sell-btn {
    background-color: #ff8921; 
    color: #ffffff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease; 
}

.nav-actions .sell-btn:hover {
    background-color:var(--white);  
    color: var(--primary-green); 
    transform: scale(1.05); /* বাটনটি সামান্য একটু বড় হবে, যা ইউজারকে ক্লিক করতে আকর্ষিত করবে */
}

.nav-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff; 
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-notice-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}


.notice-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e63946;
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 10px;
    text-align: center;
}


.notice-drawer {
    position: fixed;
    top: 0; right: -400px; 
    width: 360px; height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.05, 0.74, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.notice-drawer.open {
    right: 0; 
}

.drawer-header {
    padding: 20px;
    background: #2d6a4f;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
.close-drawer-btn { background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

.drawer-body { padding: 20px; overflow-y: auto; flex: 1; background: #fcfcfc; }


.notice-card {
    background: white;
    border-left: 4px solid #2d6a4f;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-top: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}


.notice-card.recruitment {
    border-left-color: #c5a880; 
}

.notice-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}
.tag-recruitment { background: #fdf6ec; color: #c5a880; }
.tag-general { background: #e8f5e9; color: #2d6a4f; }

.notice-card h4 { margin: 0 0 5px 0; color: #333; font-size: 15px; font-weight: 600; }
.notice-card p { margin: 0 0 10px 0; color: #666; font-size: 13px; line-height: 1.5; }
.notice-time { font-size: 11px; color: #999; display: block; text-align: right; }


.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 2500;
}
.support-btn {
    background-color: var(--accent-gold);
    color: var(--primary-green) !important;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600 !important;
}

/* --- Hero / Search Section (Matches Image Top) --- */
.hero-section {
    background-image: linear-gradient(rgba(13, 61, 38, 0.7), rgba(13, 61, 38, 0.7)), url('assets/hero-bg.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}
/* আপনার সার্চ বা হিরো সেকশনের ক্লাসের নামের ভেতর এই কোডটুকু বসাবেন */
.search-section { 
    background-image: linear-gradient(rgba(27, 67, 50, 0.65), rgba(27, 67, 50, 0.65)), url('assets/hero-bg.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px; /* আপনার আগের প্যাডিং অনুযায়ী কম-বেশি করতে পারেন */
    transition: background 0.3s ease;
}
/* Mobile Logo in Hero (Matches Image) */
.mobile-logo {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-logo i {
    font-size: 35px;
    color: var(--accent-gold);
}

.mobile-logo h2 {
    color: var(--accent-gold);
    font-size: 24px;
    margin-top: 5px;
}

.mobile-logo span {
    font-size: 14px;
    color: var(--white);
}

.hero-section h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Search Bar Wrapper */
.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.location-select {
    border: none;
    outline: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    border-right: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    width: 30%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    width: 70%;
    padding-left: 10px;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 10px;
}

.search-input-wrapper i {
    color: var(--text-muted);
    margin-right: 10px;
    cursor: pointer;
}

/* --- Intro Video Section --- */
.intro-section {
    max-width: 800px;
    margin: -20px auto 30px auto;
    padding: 0 15px;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12 rgba(0,0,0,0.05);
    text-align: center;
}

.video-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--primary-green);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe, .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Categories Grid --- */
.categories-section {
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.view-icons i {
    margin-left: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.view-icons i.active {
    color: var(--price-green);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.category-item {
    background: var(--white);
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.category-item i {
    font-size: 24px;
    color: var(--price-green);
    margin-bottom: 8px;
}

.category-item p {
    font-size: 13px;
    font-weight: 500;
}

/* --- Product Grid (Matches Image Layout) --- */
.products-section {
    padding: 0 5% 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 180px;
    background-color: #eee;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verification-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-price {
    color: var(--price-green);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-price span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
    height: 36px;
    overflow: hidden;
}

.product-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-status-tag {
    align-self: flex-start;
    background: #e8f5e9;
    color: var(--price-green);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav-item.active {
    color: #b3925a;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-logo {
        display: flex;
    }

    .hero-section {
        padding: 20px 15px;
    }

    .search-container {
        width: 100%;
    }

    .location-select {
        font-size: 12px;
        padding: 8px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 130px;
    }

    .product-info {
        padding: 10px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-title {
        font-size: 12px;
        height: 32px;
    }

    .mobile-bottom-nav {
        display: flex;
    }
}

.navbar {
    background-color: #1b4332;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}
.nav-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}


.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}


@media screen and (max-width: 768px) {
    
    
    .menu-toggle {
        display: block;
        margin-right: 15px;
        order: 1; 
    }
    
    .logo {
        order: 2; 
    }
    
    .nav-actions {
        order: 3; 
    }

   
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: -100%; 
        left: 0;
        width: 100%;
        background-color: #1b4332;
        text-align: center;
        transition: 0.4s ease-in-out;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 999;
        padding: 20px 0;
        gap: 15px;
    }

   
    .nav-links.mobile-active {
        top: 60px; 
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
 
    .sell-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

.menu-toggle {
    display: none;
}


@media screen and (max-width: 768px) {
    
    
    .desktop-nav {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    
    .menu-toggle {
        display: block !important;    
        position: absolute;
        left: 20px;                  
        top: 50%;                    
        transform: translateY(-50%); 
        font-size: 26px !important;   
        color: #ffffff !important;    
        cursor: pointer;
        z-index: 9999;              
    }
}

  /* MOBILE RESPONSIVE FIX */
@media screen and (max-width: 768px) {
    
   
    .nav-notice-btn, 
    .sell-btn, 
    .nav-actions,
    .desktop-nav > a, 
    .desktop-nav > button,
    .notice-badge {
        display: none !important;
    }

    
    .menu-toggle {
        display: block !important;
        position: fixed !important;
        left: 20px;
        top: 25px;            
        font-size: 24px !important;
        color: #ffffff !important;
        cursor: pointer;
        z-index: 100000 !important; 
        transition: all 0.3s ease;
    }

     
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;   
        width: 280px !important; 
        height: 100vh !important; 
        background-color: #112d22 !important; 
        padding: 90px 25px 20px 25px !important; 
        gap: 15px !important;
        transition: left 0.3s ease-in-out !important;
        z-index: 99999 !important; 
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.4) !important;
    }

   
    .nav-links.mobile-active {
        left: 0 !important;
    }

   
    .nav-links li {
        width: 100% !important;
        list-style: none !important;
    }

    .nav-links li a {
        display: block !important;
        color: #ffffff !important;
        font-size: 18px !important;
        text-decoration: none !important;
        padding: 12px 0 !important;
        text-align: left !important;  
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; 
    }

   
    .nav-links li a:hover {
        color: var(--accent-gold) !important;
    }
}


/* ==========================================================================
  
   ========================================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a2f1d; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999; 
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 160px;
    margin-bottom: 20px;
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-text {
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    color: #c5a880; 
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.04) translateY(-8px);
    }
}
/* new button styles */
.link-item {
    text-decoration: none !important; 
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}


.link-item:hover {
    transform: translateY(-5px);
}


.report-btn i {
    color: #d32f2f !important; 
}
/* Premium Profile Button Design */
.premium-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08); /* Halka transparent background */
    padding: 5px 15px 5px 6px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #c5a880; /* Apnar theme er golden color */
    cursor: pointer;
    margin-left: 10px;
}

.premium-profile-btn:hover {
    background: rgba(197, 168, 128, 0.2); /* Hover korle halka golden hobe */
    transform: translateY(-2px); /* 3D pop effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Real Profile Image Style */
.real-profile-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff; /* Chobir charpashe shada border */
}

/* Profile Text Style */
.profile-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Dropdown Choto Icon */
.profile-dropdown-icon {
    color: #c5a880;
    font-size: 12px;
    margin-left: 3px;
}
.logo-zone .nav-logo:hover {
    transform: scale(1.05); 
}


@media (max-width: 768px) {
    .logo-zone .nav-logo {
        height: 80px !important; 
    }
}