/* assets/css/style.css */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #475569;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --highlight: #f59e0b;
    --radius: 8px;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    margin-left: 24px;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-section h1 {
    font-size: 36px;
    margin-bottom: 24px;
}

.search-box form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    outline: none;
    font-size: 16px;
}

.search-box button {
    border-radius: 50px;
    padding: 10px 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover { background-color: var(--primary-hover); color: white; }

.btn-secondary { background-color: var(--secondary-color); color: white; }
.btn-success { background-color: #10b981; color: white; }

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 8px 16px;
    border-radius: var(--radius);
}
.btn-outline:hover { background-color: var(--primary-color); color: white; }

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Layout */
.main-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.content-left {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* Job Cards */
.job-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.highlight {
    color: var(--highlight);
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.job-card.featured {
    border-left: 4px solid var(--highlight);
    background: #fffcf5;
}

.job-card-main h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.job-card-main .org {
    color: var(--text-muted);
    font-size: 14px;
}

.job-card-main .dates {
    margin-top: 8px;
    font-size: 13px;
    color: var(--secondary-color);
}

/* Sidebar Widgets */
.widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

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

.cat-list li {
    margin-bottom: 8px;
}

.cat-list a {
    color: var(--text-color);
    display: block;
    padding: 6px 0;
    transition: padding-left 0.2s;
}

.cat-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Job Detail Page */
.page-header {
    margin: 30px auto;
}

.job-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
}

.job-detail-card .job-title {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.job-tags { margin-bottom: 20px; display: flex; gap: 10px; }

.apply-box {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 30px;
    border: 1px dashed var(--border-color);
}

.job-content-section {
    margin-top: 30px;
}

.job-content-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.content-block {
    color: #334155;
}

.content-block ul, .content-block ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-block p {
    margin-bottom: 15px;
}

.content-block table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.content-block table td, .content-block table th {
    border: 1px solid var(--border-color);
    padding: 10px;
}

/* Miscellaneous */
.mt-30 { margin-top: 30px; }

.share-buttons {
    display: flex;
    gap: 10px;
}
.share-btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    color: white !important;
    font-size: 14px;
}
.whatsapp { background: #25D366; }
.email { background: var(--secondary-color); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.pagination a {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
}
.pagination a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 20px;
    margin-top: auto;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .main-nav {
        display: none; /* simple toggle handled by JS */
    }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .main-nav.active a {
        margin: 10px 0;
    }
}
