/* ============================================
   ROOT VARIABLES (লাইট ও Dark Modeের জন্য)
   ============================================ */
:root {
    /* Light Mode কালার */
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-light: #000000;
    --black-color: #000000;
    --header-bg: #ffffff;
    --nav-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(43, 41, 41, 0.123);
    --shadow-hover: 0 5px 20px rgba(27, 25, 25, 0.12);
    --card-bg: #ffffff;
    --tool-btn-bg: #4f3081;
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #7209b7;
    --success: #06d6a0;
    --warning: #ffb703;
    --danger: #ef476f;
    --footer-bg: #3838f3;
    --footer-text: #000000;
    /* লাইট মোডে বাটন কালার */
    --btn-bg: #0e55ee;
    --btn-text: #ffffff;
    --primary-btn-text: #ffffff;
    --btn-hover-bg: #3a56d4;
    --primary-btn-text: #000000;
    --primary-btn-bg: #5d2db8;
    --secondary-btn-bg: #d2d6e6;
     --text-black-color: #000000;

}

body.dark-mode {
    /* Dark Mode কালার */
    --bg-color: #0f0f1a;
    --text-color: #ffffff;
    --black-color: #ffffff;
    --text-light: #ffffff;
    --header-bg: #16162a;
    --nav-bg: #1e1e3a;
    --border-color: #2a2a4a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.4);
    --card-bg: #1a1a2e;
    --tool-btn-bg: #4e278b;
    --primary-color: #dad6fd;
    --primary-hover: #534ada;
    --footer-bg: #0a0a12;
    --footer-text: #dddddd;
    /* ডার্ক মোডে বাটন কালার */
    --btn-bg: #1e15d4;
    --btn-text: #ffffff;
    --primary-btn-text: #ffffff;
    --btn-hover-bg: #7b72ff;
    --secondary-btn-bg: #121318;
    --primary-btn-bg: #643ab1;

}

/* ============================== GLOBAL STYLES =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 5px;
}

/* ============================ HEADER STYLES ============================= */
.header {
    background: var(--header-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
    padding: 0 30px;
    height: 70px;
    backdrop-filter: blur(10px);
    background: rgba(var(--header-bg-rgb, 255, 255, 255), 0.95);
}

body.dark-mode .header {
    background: rgba(22, 22, 42, 0.95);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* হ্যামবার্গার মেনু */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: 0.3s;
}

/* লোগো */
.logo {
    font-size: 26px;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

/* ডেস্কটপ নেভিগেশন */
.desktop-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: none;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: inherit;
}

.nav-btn:hover {
    background: #9f94cf;
    transform: translateY(-2px);
}

/* ড্রপডাউন মেনু */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    border-radius: 12px;
    z-index: 100;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.3s;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #9f94cf;
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Dark Mode বাটন */
.dark-mode-btn {
    background: var(--nav-bg);
    border-radius: 30px;
    padding: 8px 18px;
     background: var(--nav-bg);
}

/* ============================ মোবাইল সাইডবার ================================ */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--card-bg);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.sidebar-menu {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 10px;
    transition: background 0.3s;
    font-size: 16px;
}

.sidebar-link:hover {
    background: var(--nav-bg);
}

.sidebar-dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
}

.sidebar-dropdown-content {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
}

.sidebar-dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 8px;
}

.sidebar-dropdown-content.show {
    display: block;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* ========================== মেইন কন্টেন্ট এরিয়া ============================== */
.main-content {
    min-height: calc(100vh - 70px - 400px);
    padding: 5px 5px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ব্রেডক্রাম্ব */
.breadcrumb-wrapper {
    background: var(--nav-bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-light);
}

/* ================== Homeপেজ - টুল কার্ড ================================== */
.category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.tool-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.tool-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/*  ====================  SEO কন্টেন্ট এলাকা ======================================*/
.seo-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

/* Light Modeে SEO কন্টেন্টের কালার */
.seo-content h1 {
    font-size: 32px;
    margin: 25px 0 10px;
    color: var(--text-color);
}

.seo-content h2 {
    font-size: 24px;
    margin: 15px 0 5px;
    color: var(--text-color);
}

.seo-content h3 {
    font-size: 20px;
    margin: 15px 0 5px;
    color: var(--text-color);
}

.seo-content h4, .seo-content h5, .seo-content h6 {
    color: var(--text-color);
}

.seo-content p {
    margin-bottom: 10px;
    color: var(--black-color);
    line-height: 1.6;
}

.seo-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.seo-content a:hover {
    text-decoration: underline;
}

.seo-content ul, .seo-content ol {
    margin: 15px 0 15px 25px;
    color: var(--text-light);
}

.seo-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.seo-content strong, .seo-content b {
    color: var(--text-color);
    font-weight: 600;
}

/* Dark Modeে SEO কন্টেন্টের কালার */
body.dark-mode .seo-content h1,
body.dark-mode .seo-content h2,
body.dark-mode .seo-content h3,
body.dark-mode .seo-content h4,
body.dark-mode .seo-content strong,
body.dark-mode .seo-content b {
    color: #ffffff;
}

body.dark-mode .seo-content p,
body.dark-mode .seo-content li,
body.dark-mode .seo-content ul,
body.dark-mode .seo-content ol {
    color: #ffffff;
}

body.dark-mode .seo-content a {
    color: #8b85ff;
}

body.dark-mode .seo-content a:hover {
    color: #a69eff;
}

/* ব্লগ পোস্টের ইমেজ স্টাইল */
.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 25px;
    display: block;
}
/*  ===================END OF SEO কন্টেন্ট এলাকা ====================================*/

/* ========================= ফুটার স্টাইল (ডার্ক/Light Modeে অপরিবর্তিত) ============= */
.site-footer {
    background: #0f0f1a;
    color: #eeeeee;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaaaaa;
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #ffffff;
}

.footer-col a {
    display: block;
    color: #aaaaaa;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #6c63ff;
}

.footer-bottom {
    border-top: 1px solid #2a2a4a;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copy {
    color: #aaaaaa;
}

.footer-copy a {
    color: #6c63ff;
    text-decoration: none;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label {
    color: #aaaaaa;
    font-size: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.share-btn.x { background: #f1f1f1; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}
/* ==================END of ফুটার স্টাইল (ডার্ক/Light Modeে অপরিবর্তিত) ============= */

/* ==================== রেসপনসিভ ডিজাইন ================================ */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header {
        padding: 0 5px;
    }
    
    .main-content {
        padding: 3px 3px;
    }
    
    .tool-container {
        padding: 3px;
    }
    
    .tool-container h1 {
        font-size: 24px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    /* ✅ এই অংশটুকু শুধু যোগ করুন */
    .header {
        justify-content: space-between;
    }
    
    .header-left {
        display: flex;
        align-items: center;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .tool-widget {
        padding: 15px;
    }
    
    .result-number {
        font-size: 28px;
    }
}

/* =========================== অ্যানিমেশন ================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* স্ক্রলবার কাস্টমাইজ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nav-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
/* ================= সব টুলের জন্য CSS =================================== */
/* ----- বাটন স্টাইল ----- */
.btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--btn-hover-bg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--primary-btn-text);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ----- টেক্সট লেবেল ----- */
.text-label {
    color: var(--primary-btn-text);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* ইউনিভার্সাল ইনপুট স্টাইল */
.tool-input {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--black-color);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tool-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.tool-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* ----- রেজাল্ট আউটপুট ----- */
.result-output-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 10px 0;
}

.result-output {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* ----- টোস্ট নোটিফিকেশন ----- */
.toast-notif {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-hover);
}

.toast-notif.show {
    transform: translateX(0);
}

/* ----- বাটন গ্রুপ (পাশাপাশি বাটন) ----- */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}
/* ================= End of সব টুলের জন্য CSS ============================ */

/* =================================== Mobile রেসপনসিভ===================================== */
@media (max-width: 550px) {
    /* আপনার পুরোনো কোড */
    .tool-panel {
        padding: 1.2rem;
    }
    .input-row {
        flex-direction: column;
    }
    .input-row .tool-input,
    .input-row .tool-select {
        width: 100%;
    }
    .tool-input-placeholder {
        display: none;
    }
    .result-value {
        font-size: 1.5rem;
    }
    .cat-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    .btn-group {
        flex-direction: column;
    }
    
    /* ✅ নতুন যোগ করা অংশ */
    .btn-primary, .btn-gradient {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .btn-secondary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .result-output-main {
        font-size: 1.8rem;
    }
}


/* ============================== ইমেজ রেসপনসিভ করার জন্য ============================= */
.tool-screenshot {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ইমেজ ডিভাইসের জন্য */
@media (max-width: 768px) {
    .tool-screenshot {
        width: 100%;
        height: auto;
    }
}
/* ইমেজ উপরের মার্জিন */
.seo-content img {
    margin-top: 40px;
}
/* =========================== END Of ইমেজ রেসপনসিভ করার জন্য ============================= */

/* =============================== রিলেটেড টুলস সেকশন ======================================= */
.related-tools-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-tools-section h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.related-grid .tool-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px 15px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.related-grid .tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.related-grid .tool-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.related-grid h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.related-grid p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ========== 1024px (ল্যাপটপ) ========== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

/* ========== 768px (ট্যাবলেট) ========== */
@media (max-width: 768px) {
    .related-tools-section {
        margin-top: 35px;
        padding-top: 20px;
    }
    
    .related-tools-section h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .related-grid .tool-card {
        padding: 15px 10px;
    }
    
    .related-grid .tool-icon {
        font-size: 28px;
    }
    
    .related-grid h4 {
        font-size: 14px;
    }
    
    .related-grid p {
        font-size: 11px;
        display: none;
    }
}

/* ========== 480px (মোবাইল) ========== */
@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .related-tools-section h3 {
        font-size: 18px;
    }
    
    .related-grid .tool-card {
        padding: 12px 8px;
    }
    
    .related-grid .tool-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .related-grid h4 {
        font-size: 13px;
    }
}
/* ========================= End OF রিলেটেড টুলস সেকশন ==================================== */
/* ========== সার্চ (ডেস্কটপ + মোবাইল) ========== */
.header-search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    flex-shrink: 0;
}

.header-search-input {
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid var(--black-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    width: 200px;
    transition: all 0.3s;
    outline: none;
}

.header-search-input:focus {
    width: 100%;
    border-color: var(--primary-color);
}

.header-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--shadow-hover);
    display: none;
}

.header-search-results .search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}
.header-search-results .search-item:hover { background: var(--nav-bg); }
.header-search-results .search-item:last-child { border-bottom: none; }
.header-search-results .search-icon { font-size: 20px; min-width: 30px; text-align: center; }
.header-search-results .search-name { flex: 1; font-size: 14px; }
.header-search-results .search-category { font-size: 10px; color: var(--text-light); background: var(--nav-bg); padding: 2px 8px; border-radius: 20px; }
.header-search-results .no-results { padding: 15px; text-align: center; color: var(--text-light); }

/* হেডার প্রসারিত বন্ধ */
.header, .desktop-nav { flex-wrap: nowrap !important; overflow: visible !important; }
.nav-btn, .dropdown { flex-shrink: 0; white-space: nowrap; }

/* মোবাইল */
.mobile-search-icon {
    display: none;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    color: var(--text-color);
}

.mobile-search-bar {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
    box-shadow: var(--shadow);
    flex-direction: column;
}
.mobile-search-bar.active { display: flex; }

.mobile-search-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
    outline: none;
}
.mobile-search-input:focus { border-color: var(--primary-color); }

.mobile-search-close {
    position: absolute;
    right: 20px;
    top: 18px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
}

.mobile-search-results {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: none;
}

.mobile-search-results .search-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.mobile-search-results .search-item:last-child { border-bottom: none; }
.mobile-search-results .search-item:hover { background: var(--nav-bg); }
.mobile-search-results .search-icon { font-size: 22px; min-width: 35px; text-align: center; }
.mobile-search-results .search-name { flex: 1; font-weight: 500; font-size: 14px; text-align: left; }
.mobile-search-results .search-category { font-size: 11px; color: var(--text-light); background: var(--nav-bg); padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.mobile-search-results .no-results { padding: 20px; text-align: center; color: var(--text-light); font-size: 14px; }

@media (max-width: 768px) {
    .header-search-wrapper { display: none; }
    .mobile-search-icon { display: block; }
}

/* ডেস্কটপ নেভের সার্চ র‍্যাপার — fixed width যাতে expand না হয় */
.header-search-wrapper {
    position: relative;
    width: 200px;          /* fixed width */
    flex-shrink: 0;        /* shrink হবে না */
}

.header-search-input {
    width: 100%;
    box-sizing: border-box; /* padding width এর মধ্যে রাখবে */
}

/* সার্চ রেজাল্ট dropdown — parent এর বাইরে যাবে না */
.header-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;          /* চাইলে বড় রাখতে পারেন */
    z-index: 9999;
}
/* ==================== End Of সার্চ (এক্সিস্টিং ক্লাস ব্যবহার করে) ======================= */
