/* ================= 🔤 সোলাইমানলিপি ফন্ট লোডার ================= */
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

/* ================= 🎨 কালার ও ফন্ট ভ্যারিয়েবল ================= */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #dc2626;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --input-bg: #ffffff;
    --tag-bg: #f1f5f9;
    --table-header: #f8fafc;
    --radius: 12px;

    --font-main: 'SolaimanLipi', 'Noto Sans Bengali', 'Segoe UI', Arial, sans-serif;
}

/* ================= 🌙 নাইট মোড কালারস ================= */
[data-theme="dark"] {
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --accent: #ef4444;
    --bg-body: #0b0f19;
    --bg-card: #131c2e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #233044;
    --input-bg: #1a2436;
    --tag-bg: #1a2436;
    --table-header: #1a2436;
}

/* 🚀 জুম-আউট ঠেকাতে পুরো পেজের ওভারফ্লো কন্ট্রোল */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main) !important;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 16.5px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ================= 🔢 স্পষ্ট সংখ্যা ও ব্যাজ ================= */
.num-font,
.deadline-badge,
.vacancy-badge,
.num-highlight {
    font-weight: 700 !important;
    letter-spacing: 0.3px;
}

.deadline-badge {
    display: inline-block;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 15.5px;
    font-weight: 700;
}

[data-theme="dark"] .deadline-badge {
    color: #fca5a5;
    background: #361418;
    border-color: #6d1f27;
}

.vacancy-badge {
    color: var(--primary);
    font-weight: 800;
    font-size: 16.5px;
}

/* ================= 🖥️ হেডার ডিজাইন ================= */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    width: 100%;
    transition: background 0.3s, border-color 0.3s;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: #0f766e;
    flex-shrink: 0;
}

.logo-badge {
    background: #0f766e;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 16px;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-date {
    font-size: 15px;
    color: var(--text-muted);
    white-space: nowrap;
}

.header-date .num-highlight {
    color: var(--text-main);
    font-weight: 700;
}

.theme-toggle-btn {
    background: var(--tag-bg);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    outline: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    transform: scale(1.03);
}

/* নেভিগেশন বার */
nav {
    background: #0d9488;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    width: 100%;
}

.nav-container {
    position: relative;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-links li a {
    display: block;
    padding: 13px 20px;
    color: #ffffff;
    font-size: 16.5px;
    font-weight: 600;
    transition: background 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: #0f766e;
    color: #ffffff;
}

.mobile-nav-bar { display: none; }
.mobile-search-drawer { display: none; }
.mobile-only-link { display: none; }

/* ================= 🔍 ফিল্টার সেকশন (রেসপনসিভ) ================= */
.filter-section {
    background: var(--bg-card);
    margin: 20px 0;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 100%;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
}

.search-box input {
    flex: 1;
    min-width: 0; /* ফ্লেক্সবক্সে ইনপুট বাইরে চলে যাওয়া বন্ধ করবে */
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 15.5px;
    background: var(--input-bg);
    color: var(--text-main);
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box button {
    background: #0d9488;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}

.tag-btn {
    background: var(--tag-bg);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-btn:hover {
    background: #0d9488;
    color: white;
    border-color: #0d9488;
}

.filter-dropdowns-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    align-items: flex-end;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.filter-group label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.filter-select {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14.5px;
    outline: none;
    background: var(--input-bg);
    color: var(--text-main);
    cursor: pointer;
}

.btn-filter-search {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14.5px;
    white-space: nowrap;
}

/* গ্রিড লেআউট */
.layout-grid {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 26px;
    margin-bottom: 45px;
    width: 100%;
}

.layout-grid > main,
.layout-grid > aside {
    min-width: 0;
    width: 100%;
}

/* ================= 📋 চাকরির কার্ড ================= */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    width: 100%;
    overflow: hidden;
}

.job-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 6px;
    word-break: break-word;
}

.job-title a { color: #0284c7; }
.job-title a:hover { color: #0369a1; }
[data-theme="dark"] .job-title a { color: #38bdf8; }

.post-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-featured {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.job-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
    align-items: flex-start;
    width: 100%;
}

.job-thumb-banner {
    width: 100%;
    max-width: 100%;
    height: 195px;
    background: var(--tag-bg);
    border-radius: 8px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    min-width: 0;
}

.job-thumb-banner img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-info-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-main);
    flex-wrap: wrap;
}

.info-icon {
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.info-dash-divider {
    border-bottom: 1.5px dashed #cbd5e1;
    margin: 8px 0 10px 0;
}

[data-theme="dark"] .info-dash-divider { border-bottom-color: var(--border); }

.big-red-deadline {
    color: #dc2626;
    font-size: 18px;
    font-weight: 800;
    margin: 2px 0 10px 32px;
    word-break: break-word;
}

[data-theme="dark"] .big-red-deadline { color: #f87171; }

.readmore-box {
    margin-bottom: 12px;
}

.readmore-link {
    color: #0284c7;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.readmore-link:hover { text-decoration: underline; }
[data-theme="dark"] .readmore-link { color: #38bdf8; }

.job-footer-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.tags-content {
    word-break: break-word;
}

/* ================= 📞 যোগাযোগ পেজ ================= */
.contact-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin: 30px auto;
    max-width: 950px;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
    align-items: flex-start;
    width: 100%;
}

.contact-form-col { width: 100%; min-width: 0; }
.contact-form-group { margin-bottom: 18px; }
.contact-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100% !important;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-main);
    display: block;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus { border-color: var(--primary); }

.btn-contact-submit {
    background: #0f766e;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-contact-submit:hover { background: #115e59; }

.contact-info-card {
    background: var(--tag-bg);
    padding: 26px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 15px;
    width: 100%;
}

/* সাইডবার */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    width: 100%;
}

.widget-title {
    font-size: 19.5px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2.5px solid #0d9488;
    color: var(--text-main);
}

.category-list { list-style: none; }
.category-list li { border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--text-main);
}
.category-list a:hover { color: #0d9488; }
.category-list a span:last-child {
    font-weight: 800 !important;
    font-size: 14px;
    background: var(--tag-bg);
    padding: 2px 10px;
    border-radius: 12px;
    color: var(--text-muted);
}

/* পেজিনেশন */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 35px;
}
.page-item {
    display: inline-block;
    padding: 8px 15px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
}
.page-item.active {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

/* সিঙ্গেল জব পেজ */
.single-job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    width: 100%;
}
.single-job-card h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}
.job-meta-table {
    width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
}
.job-meta-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-main);
}
.job-meta-table td:first-child {
    background: var(--table-header);
    font-weight: 700;
    width: 32%;
}
.btn-apply {
    display: inline-block;
    background: #0d9488;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-top: 25px;
}

/* ফুটার */
footer {
    background: #060911;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    font-size: 15px;
    border-top: 1px solid var(--border);
    width: 100%;
}
footer a { color: #cbd5e1; margin: 0 8px; display: inline-block; }
footer a:hover { color: white; }

/* ========================================================
   📱 মোবাইল ও ছোট স্ক্রিনের আল্ট্রা-রেসপনসিভ সিএসএস (<= 850px)
   ======================================================== */
@media (max-width: 850px) {
    .container {
        padding: 0 10px; /* মোবাইলে অতিরিক্ত প্যাডিং কমানো হলো */
    }

    header {
        padding: 10px 0 12px 0;
    }

    .header-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo theme"
            "date date";
        gap: 10px;
        align-items: center;
    }

    .logo {
        grid-area: logo;
        font-size: 21px;
    }

    .logo-badge {
        font-size: 14px;
        padding: 2px 8px;
    }

    .header-right-actions {
        display: contents;
    }

    .theme-toggle-btn {
        grid-area: theme;
        justify-self: end;
        padding: 5px 12px;
        font-size: 12.5px;
    }

    .header-date {
        grid-area: date;
        font-size: 13.5px;
        text-align: center;
        width: 100%;
        background: var(--tag-bg);
        padding: 5px 12px;
        border-radius: 20px;
        border: 1px solid var(--border);
        margin: 0 auto;
    }

    /* ফিল্টার বক্স মোবাইলে ১০০% ফিট */
    .filter-section {
        padding: 14px 12px;
        margin: 12px 0 16px 0;
    }

    .search-box {
        gap: 8px;
    }

    .search-box input {
        font-size: 14.5px;
        padding: 10px 12px;
    }

    .search-box button {
        padding: 10px 18px;
        font-size: 15px;
    }

    /* মোবাইলে ড্রপডাউনগুলো ১ কলাম হবে (ফলে কোনো ওভারফ্লো হবে না) */
    .filter-dropdowns-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 12px;
    }

    .filter-btn-group {
        width: 100%;
    }

    .btn-filter-search {
        width: 100%;
        padding: 11px;
    }

    /* লেআউট গ্রিড */
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* কার্ড মোবাইলে পারফেক্ট */
    .job-card {
        padding: 16px 14px;
        margin-bottom: 16px;
    }

    .job-title {
        font-size: 20px;
    }

    .job-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .job-thumb-banner {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 220px;
    }

    .big-red-deadline {
        margin-left: 0;
        margin-top: 4px;
        font-size: 17px;
    }

    /* যোগাযোগ পেজ */
    .contact-wrapper {
        padding: 20px 14px;
        margin: 15px auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .btn-contact-submit {
        width: 100% !important;
        padding: 13px;
    }

    .contact-info-card {
        padding: 18px 14px;
    }

    /* মোবাইল মেনুবার */
    .mobile-nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 11px 0;
    }

    .mobile-nav-brand { color: #ffffff; font-weight: 700; font-size: 16.5px; }
    .mobile-nav-actions { display: flex; align-items: center; gap: 14px; }
    .mobile-btn { background: transparent; border: none; color: #ffffff; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px; outline: none; }
    .menu-toggle-btn { font-size: 16px; }
    .hamburger-icon { font-size: 20px; line-height: 1; }
    .menu-text { font-weight: 700; font-size: 16px; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0f766e;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 6px 0;
    }
    .nav-links.show-menu { display: flex; }
    .nav-links li a { padding: 11px 16px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .mobile-only-link { display: block; }

    .mobile-search-drawer { display: none; padding: 10px 0; background: #0f766e; border-top: 1px solid rgba(255,255,255,0.1); }
    .mobile-search-drawer.show-search { display: block; }
    .mobile-search-drawer form { display: flex; gap: 8px; }
    .mobile-search-drawer input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 6px; border: 1px solid var(--border); outline: none; font-size: 14.5px; background: var(--input-bg); color: var(--text-main); }
    .mobile-search-drawer button { background: #059669; color: white; border: none; padding: 9px 16px; border-radius: 6px; font-weight: 700; font-size: 14.5px; cursor: pointer; flex-shrink: 0; }
}
