/* ==========================================================================
   1. GLOBAL SYSTEM RESETS & TYPOGRAPHY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    background: #F8F8FF;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
}

/* ==========================================================================
   2. CORE APPLICATION WRAPPERS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ==========================================================================
   3. STICKY NAVIGATION HEADER
   ========================================================================== */
.navbar {
    background: #34495e;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform .3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    /* ← slightly tighter gap between items */
    margin-left: 30px;
    /* ← reduced from 40px */
}

.nav-right>a,
.dropbtn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    /* ← slightly smaller, cleaner */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    white-space: nowrap;
    transition: .3s;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    padding: 0 4px;
    /* ← give each item a tiny horizontal breathing room */
}

.nav-right>a:hover,
.dropbtn:hover,
.nav-right>a.active {
    color: #27ae60 !important;
}

.nav-right>a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 15px;
    width: 0%;
    height: 2px;
    background: #27ae60;
    transition: width 0.3s ease;
}

.nav-right>a:hover::after,
.nav-right>a.active::after {
    width: 100%;
}
/* Adjust icon spacing inside links */
.nav-right>a i,
.dropbtn i {
    margin-right: 6px;
    /* ← space between icon and text */
    font-size: 0.9em;
    /* ← slightly smaller icon for balance */
}

/* Keep the dropdown chevron close to the text */
.dropbtn .fa-chevron-down {
    margin-left: 4px;
    font-size: 0.7rem;
}

/* ==========================================================================
   4. PRIMARY HOVER NAVIGATION DROPDOWNS
   ========================================================================== */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 70px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 260px;
    max-height: 350px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    z-index: 9999;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a,
.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    background: white;
}

.dropdown-content a:hover,
.filter-item:hover {
    background: #f0fdf4;
    color: #27ae60;
}

.dropdown-content a span,
.filter-item .count {
    margin-left: auto;
    font-weight: bold;
    color: white;
    background: #27ae60;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    min-width: 28px;
    text-align: center;
}

.dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #27ae60;
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* ==========================================================================
   5. GENERAL USER INTERFACE (CARDS, BUTTONS & FORMS)
   ========================================================================== */
.card {
    background: #fff;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease;
    border-left: 6px solid #27ae60;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card h3,
.card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.btn,
.btn2 {
    background: #27ae60;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin: 4px;
}

.btn2 {
    background: #34495e;
}

.btn:hover {
    background: #219150;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn2:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: white;
}

input,
select,
textarea {
    padding: 12px 16px;
    margin: 8px 0 18px 0;
    width: 100%;
    max-width: 400px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    display: block;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.search-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    max-width: 100%;
    margin: 0;
}

.job-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.job-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    background: #ecf0f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #2c3e50;
}

.pagination {
    text-align: center;
    margin-top: 25px;
}

.active-page {
    background: #2c3e50 !important;
    color: white !important;
    transform: scale(1.1);
}

/* ==========================================================================
   6. MULTI-SELECT CHECKBOX DROPDOWN
   ========================================================================== */
.checkbox-dropdown {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 8px 0;
}

.checkbox-dropdown .dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.checkbox-dropdown .dropdown-btn:hover {
    border-color: #27ae60;
}

.checkbox-dropdown.active .dropdown-btn {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

.checkbox-dropdown-content {
    display: none;
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    max-height: 250px;
    overflow-y: auto;
    z-index: 999;
    padding: 8px;
}

.checkbox-dropdown.active .checkbox-dropdown-content {
    display: block;
}

.checkbox-dropdown-content label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 2px;
    border-radius: 6px;
    cursor: pointer;
    color: #2c3e50;
    font-size: 13.5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.checkbox-dropdown-content label:hover {
    background: #f0fdf4;
    color: #27ae60;
}

.checkbox-dropdown-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #27ae60;
    cursor: pointer;
    display: inline-block;
}

.checkbox-dropdown-content label:has(input:checked) {
    background: #e8f8ef;
    color: #27ae60;
    font-weight: 600;
}

/* ==========================================================================
   7. HERO & CATEGORY GRID
   ========================================================================== */
.contact-text,
.about-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    color: #555;
}

.about-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-hero h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
}

.about-hero p {
    font-size: 16px;
    margin: 0;
    opacity: 0.85;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.category-card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

.category-card span {
    font-weight: 600;
    color: #27ae60;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #27ae60;
    box-shadow: 0 12px 20px rgba(39, 174, 96, 0.08);
    background: #fdfdfd;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    font-size: 14px;
}

footer a {
    color: #27ae60;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
}

/* ==========================================================================
   9. ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   10. AUTH PAGES
   ========================================================================== */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

.auth-container label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-top: 10px;
}

.auth-container input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    margin: 8px 0 18px 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
}

.auth-container input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

.auth-container .btn {
    width: 100%;
    margin: 10px 0 0 0;
}

.auth-container .btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.auth-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.email-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.email-row input {
    flex: 1;
    margin-bottom: 0;
}

.email-row .btn {
    white-space: nowrap;
    margin: 8px 0 0 0;
    padding: 12px 20px;
}

/* ==========================================================================
   11. SOCIAL FOOTER ICONS
   ========================================================================== */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.social-links span {
    color: #ecf0f1;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.social-icon i {
    font-size: 1.1rem;
}

.social-icon.facebook i {
    color: #1877F2;
}

.social-icon.telegram i {
    color: #26A5E4;
}

.social-icon.telegram-channel i {
    color: #26A5E4;
}

.social-icon.whatsapp i {
    color: #25D366;
}

.social-icon.tiktok i {
    color: #ffffff;
}

.social-icon:hover {
    color: #27ae60;
}

/* ==========================================================================
   12. MOBILE NAVIGATION TOGGLES & CUSTOM MENU
   ========================================================================== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: #27ae60;
}

.menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.3rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.menu-close:hover {
    color: #e74c3c;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.dropbtn.active {
    color: #27ae60 !important;
}

.dropbtn .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 4px;
}

/* ==========================================================================
   13. ADMIN PANEL
   ========================================================================== */
.admin-dashboard-hidden {
    display: none;
    margin-top: 20px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.toggle-row label {
    font-weight: 600;
    font-size: 16px;
}

.toggle-row select {
    max-width: 200px;
    display: inline-block;
}

.pending-job-card {
    margin-bottom: 15px;
    border-left: 5px solid #e74c3c;
    padding: 15px;
    background: #fffcfc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.live-job-card {
    margin-bottom: 15px;
    border-left: 5px solid #2e7d32;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pending-job-header,
.live-job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pending-job-header h3,
.live-job-header h3 {
    margin: 0;
}

.pending-job-header h3 small,
.live-job-header h3 small {
    color: #7f8c8d;
    font-size: 12px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge-pending {
    background: #fff3e0;
    color: #e65100;
}

.badge-live {
    background: #e8f5e9;
    color: #2e7d32;
}

.pending-job-actions,
.live-job-actions {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.btn-approve {
    background: #27ae60 !important;
    color: white !important;
    padding: 6px 12px !important;
    border: none !important;
    cursor: pointer;
    font-weight: 600;
}

.btn-edit {
    background: #34495e !important;
    color: white !important;
    padding: 6px 12px !important;
    border: none !important;
    cursor: pointer;
}

.btn-delete {
    background: #e74c3c !important;
    color: white !important;
    padding: 6px 12px !important;
    border: none !important;
    cursor: pointer;
}

.form-buttons {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.loading-text {
    color: #7f8c8d;
    font-style: italic;
    margin: 10px 0;
}

/* ==========================================================================
   14. DEADLINE & TIME AGO
   ========================================================================== */
.job-deadline {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    color: #e74c3c;
}

.job-deadline span {
    color: #c0392b;
}

.job-deadline.no-deadline {
    color: #95a5a6;
    font-weight: 400;
}

.time-ago {
    font-size: 12px;
    color: #95a5a6;
    white-space: nowrap;
    margin-left: 10px;
    font-weight: 400;
}

/* ==========================================================================
   15. DASHBOARD HEADER
   ========================================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* ==========================================================================
   16. FULL RESPONSIVE STYLES (ALL BREAKPOINTS)
   ========================================================================== */

/* ---------- 992px: TABLET LANDSCAPE ---------- */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        height: auto;
    }

    .nav-right {
        margin-left: 0;
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
        gap: 12px;
    }

    .nav-right>a,
    .dropdown {
        height: auto;
        padding: 8px 0;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-right>a::after {
        bottom: 0;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* General mobile dropdown reset */
    #nav-menu .dropdown .dropdown-content {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        padding: 5px 0;
        margin: 0;
        border-left: 2px solid #27ae60;
        border-top: none;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 280px;
        display: none;
    }

    #nav-menu .dropdown.open-mobile .dropdown-content {
        display: block;
    }

    /* Explicit fix for Types (and any other) */
    #nav-menu .dropdown-type .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
    }

    #nav-menu .dropdown-content a,
    #nav-menu .filter-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        color: #bdc3c7;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 13px;
        white-space: normal;
        word-break: break-word;
    }

    #nav-menu .filter-item .label,
    #nav-menu .dropdown-content a span:first-child {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 6px;
        overflow-wrap: break-word;
    }

    #nav-menu .dropdown-content a span:last-child,
    #nav-menu .filter-item .count {
        flex: none;
        width: auto;
        background: #27ae60;
        color: white;
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 20px;
        min-width: 24px;
        text-align: center;
        margin-left: 4px;
    }

    .container {
        padding: 20px 15px;
    }

    .card {
        padding: 18px;
    }

    .checkbox-dropdown {
        max-width: 100%;
    }
}
/* ---------- 768px: TABLET PORTRAIT / MOBILE LANDSCAPE ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-close {
        display: block;
    }

    .nav-right {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: #2c3e50;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
        padding: 60px 15px 30px 15px;
        gap: 5px;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 0;
    }

    .nav-right.open {
        right: 0;
        display: flex;
    }

    .nav-right>a {
        width: 100%;
        padding: 12px 12px;
        height: auto;
        font-size: 14px;
        border-radius: 8px;
        color: #ecf0f1;
        justify-content: flex-start;
        gap: 8px;
        transition: all 0.25s ease;
        flex-shrink: 0;
    }

    .nav-right>a i {
        width: 18px;
        text-align: center;
    }

    .nav-right>a:hover,
    .nav-right>a.active {
        background: rgba(39, 174, 96, 0.2);
        color: #27ae60 !important;
    }

    .nav-right>a::after {
        display: none;
    }

    .dropdown {
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    .dropbtn {
        width: 100%;
        padding: 12px 12px;
        height: auto;
        font-size: 14px;
        border-radius: 8px;
        color: #ecf0f1;
        justify-content: flex-start;
        gap: 8px;
    }

    .dropbtn i:first-child {
        width: 18px;
        text-align: center;
    }

    .dropbtn:hover {
        background: rgba(39, 174, 96, 0.2);
        color: #27ae60 !important;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* General mobile dropdown reset */
    #nav-menu .dropdown .dropdown-content {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 5px 0;
        border-radius: 0 0 8px 8px;
        background: rgba(0, 0, 0, 0.25);
        box-shadow: none;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 250px;
        display: none;
    }

    #nav-menu .dropdown.open-mobile .dropdown-content {
        display: block;
    }

    /* Explicit fix for Types */
    #nav-menu .dropdown-type .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
    }

    #nav-menu .dropdown-content a,
    #nav-menu .filter-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
        color: #bdc3c7;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 12px;
        transition: all 0.2s ease;
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
    }

    #nav-menu .dropdown-content a:hover,
    #nav-menu .filter-item:hover {
        background: rgba(39, 174, 96, 0.25);
        color: #27ae60;
    }

    #nav-menu .filter-item .label,
    #nav-menu .dropdown-content a span:first-child {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 6px;
        overflow-wrap: break-word;
    }

    #nav-menu .dropdown-content a span:last-child,
    #nav-menu .filter-item .count {
        flex: none;
        width: auto;
        background: #27ae60;
        color: white;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 20px;
        min-width: 20px;
        text-align: center;
        margin-left: 4px;
        white-space: nowrap;
    }

    /* generic mobile styles */
    input,
    select,
    textarea {
        max-width: 100% !important;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box .btn {
        width: 100%;
    }

    #list {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 15px;
    }

    .job-meta {
        flex-direction: column;
        gap: 5px;
    }

    .job-meta span,
    .tag {
        font-size: 12px;
        padding: 4px 8px;
    }

    .auth-container {
        margin: 20px;
        padding: 20px;
    }

    .email-row {
        flex-direction: column;
    }

    .email-row .btn {
        width: 100%;
    }

    footer {
        padding: 20px;
    }

    footer div {
        flex-direction: column;
        gap: 5px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons .btn {
        width: 100%;
    }

    .toggle-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .toggle-row select {
        max-width: 100%;
        width: 100%;
    }

    .pending-job-header,
    .live-job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .pending-job-actions,
    .live-job-actions {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pending-job-actions .btn,
    .live-job-actions .btn {
        width: 100%;
        text-align: center;
    }
}/* ---------- 480px: MOBILE PORTRAIT ---------- */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 16px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card h3 a {
        font-size: 16px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    .logo {
        height: 40px;
    }

    .navbar {
        padding: 10px;
    }

    .container {
        padding: 15px 10px;
    }

    .about-hero {
        padding: 30px 15px;
    }

    .about-hero h1 {
        font-size: 24px;
    }

    .about-hero p {
        font-size: 14px;
    }

    .time-ago {
        font-size: 10px;
    }

    .job-deadline {
        font-size: 12px;
    }

    .auth-container {
        margin: 10px;
        padding: 15px;
    }

    .auth-container h1 {
        font-size: 20px;
    }

    /* Keep static positioning */
    #nav-menu .dropdown .dropdown-content {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Explicit fix for Types */
    #nav-menu .dropdown-type .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
    }

    .dropdown-content a,
    .filter-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .dropdown-content a span:last-child,
    .filter-item .count {
        font-size: 10px;
        padding: 2px 6px;
        min-width: 20px;
    }

    .nav-right>a {
        padding: 12px 12px;
        font-size: 14px;
    }

    .dropbtn {
        padding: 12px 12px;
        font-size: 14px;
    }
}/* ---------- 375px: SMALL MOBILE ---------- */
@media (max-width: 375px) {
    .logo {
        height: 30px;
    }

    .navbar {
        padding: 8px;
    }

    .nav-right {
        padding: 10px;
        gap: 6px;
    }

    .container {
        padding: 10px 8px;
    }

    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 16px;
    }

    .card {
        padding: 12px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card h3 a {
        font-size: 14px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .search-box {
        padding: 10px;
    }

    .search-box input {
        padding: 10px;
        font-size: 14px;
    }

    .job-meta span,
    .tag {
        font-size: 11px;
        padding: 3px 6px;
    }

    .time-ago {
        font-size: 9px;
    }

    .job-deadline {
        font-size: 11px;
    }

    .about-hero {
        padding: 20px 10px;
    }

    .about-hero h1 {
        font-size: 20px;
    }

    .about-hero p {
        font-size: 12px;
    }

    footer {
        padding: 15px 10px;
        font-size: 12px;
    }

    .social-links {
        font-size: 11px;
    }

    .pagination .btn {
        padding: 6px 10px;
        font-size: 12px;
        margin: 2px;
    }

    .auth-container {
        margin: 5px;
        padding: 12px;
    }

    .auth-container h1 {
        font-size: 18px;
    }

    .auth-container input {
        padding: 10px;
        font-size: 13px;
    }

    /* dropdown items */
    .dropdown-content a,
    .filter-item {
        padding: 8px 10px;
        font-size: 11px;
        display: flex;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        word-break: break-word;
    }

    .filter-item .label,
    .dropdown-content a span:first-child {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 6px;
        overflow-wrap: break-word;
    }

    /* count badge */
    .dropdown-content a span:last-child,
    .filter-item .count {
        flex: none;
        width: auto;
        font-size: 9px;
        padding: 2px 5px;
        min-width: 18px;
        background: #27ae60;
        color: white;
        border-radius: 20px;
        text-align: center;
        margin-left: 4px;
        white-space: nowrap;
    }

    .nav-right>a {
        padding: 10px 10px;
        font-size: 13px;
    }

    .dropbtn {
        padding: 10px 10px;
        font-size: 13px;
    }
}

/* ==========================================================================
   FINAL FIX: Force Types dropdown to open downward on mobile
   ========================================================================== */


@media (max-width: 992px) {
    #dropdown-type .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    #dropdown-type .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    #dropdown-type .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 375px) {
    #dropdown-type .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   ULTIMATE MOBILE DROPDOWN FIX – ALL DROPDOWNS STAY INSIDE
   ========================================================================== */
@media (max-width: 992px) {

    /* When a dropdown is open on mobile, force its content to flow normally */
    .dropdown.open-mobile .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: block;
        /* make sure it's visible */
        box-shadow: none;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 0 0 8px 8px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0 !important;
        padding: 5px 0;
    }
}
/* ==========================================================================
   GUARANTEED MOBILE DROPDOWN FIX – ALL DROPDOWNS
   ========================================================================== */
@media (max-width: 992px) {

    /* Make sure the dropdown content is visible and inside the panel */
    #nav-menu .dropdown.open-mobile .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        /* ← force visible */
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 250px;
        /* scroll if too long */
        margin: 0 !important;
        padding: 5px 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 0 0 8px 8px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Prevent the parent panel from clipping the dropdown */
    #nav-menu {
        overflow-x: hidden;
        overflow-y: auto;
    }
}