:root {
    --primary-color: #D3BD2A;
    --primary-dark: #B5A019;
    --accent-color: #F1D950;
    --accent-hover: #C5A017;
    --bg-light: #F9FAFB;
    --bg-cream: #ffffff;
    --text-dark: #333333;
    --text-muted: #555555;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-color: rgba(211, 189, 42, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background: var(--white);
    padding: 50px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.top-nav {
    display: none;
}

.logo {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    transition: 0.3s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 80px;
    filter: drop-shadow(0 4px 8px var(--shadow-color));
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Categories in Header */
.header-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.header-cat-item {
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--white);
    border: 2px solid var(--border-color);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.header-cat-item:hover,
.header-cat-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

/* Search */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 60px;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.search-box input,
.search-box select {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: var(--bg-cream);
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
    transition: 0.3s;
}

.search-box input:focus,
.search-box select:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.search-box button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Content */
.container {
    max-width: 1250px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--border-color);
}

.section-title {
    color: var(--primary-dark);
    font-size: 1.7rem;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -23px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    row-gap: 40px;
}

@media (min-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.job-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 20px;
    gap: 15px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: 0.3s;
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px -12px var(--shadow-color);
    transform: translateY(-8px);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: right;
    gap: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    padding: 5px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    margin-bottom: 0;
}

.job-info {
    text-align: right;
}

.job-info h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.job-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}



.job-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
}

.tag {
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bg-light);
    padding-top: 15px;
    margin-top: auto;
    width: 100%;
}

.job-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.apply-link {
    background: transparent;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
}

.apply-link:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px var(--shadow-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #ecfdf5;
    text-align: center;
    padding: 50px 20px;
    margin-top: 100px;
    border-top: 5px solid var(--primary-color);
}

/* Top Banner (Static Content Design) */
.top-banner-wrap {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px;
    margin: 0 auto 30px auto;
    /* Centered with margin-bottom */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 800px;
    /* Limit width on large screens */
}

.top-banner-wrap a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

.top-banner-wrap a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.top-banner {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        margin: 30px auto;
    }

    header {
        padding: 35px 15px;
    }

    .logo {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .logo img {
        height: 65px;
    }

    .top-nav {
        position: static;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 0;
    }

    .search-box {
        flex-direction: column;
        border-radius: 24px;
        padding: 18px;
        gap: 12px;
    }

    .search-box input,
    .search-box select {
        width: 100%;
        border-radius: 12px;
        padding: 14px 18px;
    }

    .search-box button {
        width: 100%;
        border-radius: 12px;
        padding: 14px;
    }

    .header-categories {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-right: -15px;
        margin-left: -15px;
        padding-right: 15px;
        padding-left: 15px;
        width: calc(100% + 30px);
    }

    .header-categories::-webkit-scrollbar {
        display: none;
    }

    .header-cat-item {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .job-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .company-logo {
        width: 75px;
        height: 75px;
    }

    .section-title {
        font-size: 1.4rem;
    }
}