:root {
    --primary: #12970a;
    --primary-hover: #4338ca;
    --primary-light: #f5f3ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Header */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

/* Search Section */
.hero-search {
    padding: 30px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}

.search-container {
    background: #fff;
    padding: 5px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 5px;
    align-items: center;
    border: 1px solid var(--border);
    transition: border-radius 0.2s;
}

.search-container.dropdown-active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.search-field {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-field input {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.search-divider {
    width: 1px;
    height: 25px;
    background: var(--border);
}

.search-form-v12 {
    display: flex;
    width: 100%;
    align-items: center;
}

@media (max-width: 768px) {
    .search-form-v12 {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-divider {
        display: none;
    }

    .search-field {
        max-width: 100% !important;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

    .search-btn {
        width: 100%;
        margin-top: 5px;
    }
}

.search-btn,
.apply-btn-v12 {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius);
    border: none;
    font-weight: 400;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 15px rgba(18, 151, 10, 0.3);
}

.search-btn:hover,
.apply-btn-v12:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 151, 10, 0.4);
}

.hashtag-suggest {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: 4px;
    font-weight: 600;
}

.hashtag-suggest::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary) 10%, transparent 60%);
    animation: rotate-border 4s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.hashtag-suggest::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #fff;
    border-radius: 19px;
    z-index: -1;
}

.hashtag-suggest:hover {
    color: var(--primary);
    border-color: transparent;
}

.hashtag-suggest:hover::before {
    opacity: 1;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.job-card-featured {
    /* Removed background and border highlights as per user request */
}

.featured-star-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #f59e0b;
    font-size: 16px;
    background: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* Dropdown Premium */
.modern-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: -6px;
    right: -6px;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    border-top: none;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownShow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

@keyframes dropdownShow {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.dropdown-item {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-item.priority {
    background: #fffbeb;
}

.job-card {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: 0.2s;
    display: flex;
    gap: 15px;
    align-items: center;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    overflow: hidden;
}

.company-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.job-info h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-main);
}

.job-info .company {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.job-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}

/* v12 Style - Modern Salary Tag */
.tag-v12 {
    display: inline-flex;
    align-items: center;
    background: #f5f3ff;
    color: #85768;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: -0.2px;
}

.tag.salary {
    background: #f5f3ff;
    color: #4f46e5;
}

/* Detail Page */
.detail-header {
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

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

.info-box {
    background: #fff;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.info-box .icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.info-box .label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.info-box .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 4px;
    display: block;
}

.apply-btn-v12 {
    background: var(--primary);
    color: #fff !important;
    padding: 16px 40px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-btn-v12:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.apply-btn-large {
    background: var(--primary);
    color: #fff !important;
    padding: 12px 40px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
    transition: 0.2s;
}

.apply-btn-large:hover {
    transform: translateY(-1px);
}

/* Related Jobs Sidebar */
.related-job-item {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
}

.related-job-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.related-job-logo {
    width: 44px;
    height: 44px;
    flex: none;
    padding: 4px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-job-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-job-info {
    flex: 1;
    min-width: 0;
}

.related-job-title {
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-job-company {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.related-job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-job-salary {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.related-job-date {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sidebar Widget */
.modern-widget {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.modern-widget h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.modern-widget ul {
    list-style: none;
}

.modern-widget li {
    margin-bottom: 12px;
}

.modern-widget a {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
}

.modern-widget a:hover {
    color: var(--primary);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 10px 0;
    }

    .logo {
        font-size: 18px;
    }

    .hero-search {
        padding: 20px 0;
    }

    .search-container {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        border-radius: 8px;
    }

    .search-divider {
        display: none;
    }

    .search-field {
        padding: 0 10px;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .search-btn {
        width: 100%;
        padding: 14px;
        border-radius: 6px;
    }

    .job-card {
        padding: 12px;
        gap: 12px;
    }

    .company-logo {
        width: 45px;
        height: 45px;
    }

    .job-info h2 {
        font-size: 15px;
        line-height: 1.3;
    }

    .job-meta-tags {
        gap: 4px;
    }

    .tag {
        padding: 2px 8px;
        font-size: 10px;
    }

    .detail-header h1 {
        font-size: 22px;
        line-height: 1.3;
        margin-top: 10px;
    }

    /* Layout Single Page */
    .content-area,
    .sidebar {
        width: 100% !important;
        display: block !important;
        grid-column: span 2;
    }

    /* Force grid to stack */
    [style*="display:grid"] {
        display: block !important;
    }

    .content-area>div {
        padding: 0px !important;
        border-radius: 12px !important;
        margin-bottom: 20px;
    }

    .sidebar {
        margin-top: 10px;
        padding-bottom: 40px;
    }

    .info-grid {
        display: grid !important;
        /* Keep info boxes in grid but 2 cols */
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .info-box {
        padding: 12px;
    }

    .info-box .icon {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .info-box .value {
        font-size: 14px;
    }

    .content-rich img {
        height: auto !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .detail-header {
        text-align: center;
    }
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-menu>li {
    position: relative;
    perspective: 1000px;
}

.main-menu>li>a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    padding: 20px 0;
    display: block;
    transition: 0.2s;
}

.main-menu>li:hover>a {
    color: var(--primary);
}

/* Mega Menu - Refined & Professional */
.has-mega {
    position: relative !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotateX(-15deg) scale(0.95);
    transform-origin: top center;
    width: 750px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    pointer-events: none;
}

.main-menu>li:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) rotateX(0deg) scale(1);
    pointer-events: auto;
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .header-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: #fff;
        flex-direction: column;
        padding: 30px;
        transition: 0.3s;
        z-index: 999;
        overflow-y: auto;
    }

    .header-nav.active {
        left: 0;
    }

    .main-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .mega-menu {
        position: static;
        box-shadow: none;
        padding: 20px 0;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .main-menu>li:hover .mega-menu {
        display: block;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Professional Footer */
.footer-main {
    background: #1e293b;
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: inherit;
    transition: 0.2s;
    font-size: 14px;
}

.footer-list a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Pagination Styles --- */
.navigation.pagination {
    margin: 50px 0;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.navigation.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(18, 151, 10, 0.2);
}

.navigation.pagination .page-numbers:hover:not(.current):not(.dots) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.navigation.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.navigation.pagination .next, 
.navigation.pagination .prev {
    padding: 0 20px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .navigation.pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
