:root {
    --primary-color: #10b981;
    --primary-dark: #047857;
    --accent-color: #34d399;
    --accent-hover: #059669;
    --bg-light: #f0fdf4;
    --bg-cream: #ffffff;
    --text-dark: #064e3b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-color: rgba(16, 185, 129, 0.1);
}

* {
    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;
    padding: 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: 3px solid #064e3b;
    /* Deep green matching footer */
    border-radius: 24px;
    padding: 35px 25px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    /* Gold accent */
    opacity: 1;
    /* Always visible now */
    transition: 0.3s;
}

.job-card:hover {
    border-color: #0f766e;
    /* Slightly lighter green on hover */
    box-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.15);
    transform: translateY(-8px);
}

.job-card:hover::before {
    height: 8px;
    /* Slightly thicker on hover */
}

.job-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.company-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: contain;
    border: 3px solid var(--bg-cream);
    background: var(--white);
    padding: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.job-info {
    width: 100%;
}

.job-info h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 800;
}

.job-info span {
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    font-weight: 500;
}

.job-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 18px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: linear-gradient(135deg, var(--bg-cream), var(--bg-light));
    padding: 8px 16px;
    border-radius: 25px;
    color: var(--text-dark);
    font-size: 0.88rem;
    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: 2px solid var(--bg-cream);
    padding-top: 20px;
    margin-top: auto;
    width: 100%;
}

.job-date {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.apply-link {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.apply-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: scale(1.05);
}

/* Footer */

/* News Ticker */
.ticker-wrap {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    overflow: hidden;
    height: 45px;
    line-height: 45px;
    font-weight: 600;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 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 {
        justify-content: flex-start;
        gap: 10px;
    }

    .header-cat-item {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .job-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .company-logo {
        width: 75px;
        height: 75px;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

/* Date Widget */
.date-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 6px 20px var(--shadow-color);
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .date-widget {
        width: 100%;
        justify-content: center;
    }
}