/* ==========================================================================
   Shaqoraad / Shaqoraad — Global Theme Styles
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Design tokens shared by job archive / resources / events */
    --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --brand-gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6a3d8e 100%);
    --events-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --resources-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

body.dashboard-page {
    background: #f8fafc;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

body.dashboard-page .footer { display: none; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: var(--gray-400);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom a { color: var(--gray-400); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-contact li {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.75rem; color: var(--gray-400);
}
.footer-contact i { width: 16px; text-align: center; }

.social-links { display: flex; gap: 1rem; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; color: var(--white);
    text-decoration: none; transition: all 0.3s;
}
.social-links a:hover { background: var(--primary); transform: translateY(-2px); }

/* ============================================
   Utility
   ============================================ */

.dashboard-page { background: #f8fafc; }
.dashboard-container { max-width: 1400px; margin: 0 auto; }

body.dashboard-page .main,
body.dashboard-page #content,
body.dashboard-page .site-content { padding: 0; margin: 0; }

body:not(.dashboard-page) .main {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
}

body:not(.dashboard-page) #content,
body:not(.dashboard-page) .site-content { padding: 0; }

/* ============================================
   PAGE HERO (shared by archive / resources / events)
   ============================================ */

.page-hero {
    background: var(--brand-gradient);
    padding: 60px 0;
    color: #fff;
    position: relative;
    margin-bottom: 40px;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/cover no-repeat;
    pointer-events: none;
}

.page-hero.resources-hero { background: var(--resources-gradient); }
.page-hero.events-hero    { background: var(--events-gradient); }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: .9;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: .8125rem;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-label  { font-size: .875rem; opacity: .9; }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,.3); }

/* ============================================
   SEARCH CONTAINER
   ============================================ */

.search-container {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
    margin-bottom: 30px;
    text-align: left;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 0;
}

.search-field { position: relative; }

.search-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #1e293b;
    transition: all .3s;
}

.search-field input:focus,
.search-field select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}

.search-btn {
    padding: 14px 30px;
    font-weight: 600;
    height: 100%;
    white-space: nowrap;
    border-radius: 8px;
}

/* ============================================
   TWO-COLUMN CONTENT LAYOUT
   ============================================ */

.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.content-main { min-width: 0; }

/* ============================================
   SIDEBAR
   ============================================ */

.content-sidebar {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 25px;
    align-self: start;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h3 i { color: #667eea; }

.clear-link {
    color: #6c757d;
    font-size: .875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-link:hover { color: #dc3545; }

.sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.section-title > i:first-child {
    color: #667eea;
    margin-right: 8px;
}

.section-toggle { color: #6c757d; transition: transform .3s; }
.sidebar-section.collapsed .section-content { display: none; }
.sidebar-section.collapsed .section-toggle i { transform: rotate(-90deg); }

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: .875rem;
    color: #495057;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.filter-checkbox .count {
    color: #6c757d;
    font-size: .75rem;
    margin-left: auto;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: .875rem;
    color: #495057;
    background: #fff;
}

.filter-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102,126,234,.1);
}

.filter-options { display: flex; flex-direction: column; gap: 10px; }

.filter-options .filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all .2s ease;
    margin-bottom: 0;
}

.filter-options .filter-checkbox:hover {
    background: #fff;
    border-color: #667eea;
    transform: translateX(2px);
}

.filter-options .filter-checkbox i {
    width: 20px;
    text-align: center;
    color: #667eea;
}

.filter-options .filter-checkbox span {
    flex: 1;
    font-size: .875rem;
    font-weight: 500;
    color: #475569;
}

/* Resource-type list (used by resources + events sidebar) */
.resource-type-list { display: flex; flex-direction: column; gap: 8px; }

.resource-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s ease;
}

.resource-type-item i:first-child {
    width: 20px;
    text-align: center;
    color: #667eea;
}

.resource-type-item i:last-child {
    margin-left: auto;
    font-size: .7rem;
    color: #94a3b8;
}

.resource-type-item:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
    transform: translateX(2px);
}

.resource-type-item.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}

.resource-type-item.active i { color: #fff; }

/* Sidebar CTA (resources + events) */
.sidebar-cta {
    margin-top: 25px;
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border: 1px solid #e0e7ff;
    text-align: center;
}

.sidebar-cta-purple {
    background: var(--brand-gradient);
    border: none;
    color: #fff;
}

.sidebar-cta-purple p { color: rgba(255,255,255,.85); }

.sidebar-cta-icon {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

.sidebar-cta-purple .sidebar-cta-icon { background: rgba(255,255,255,.2); }

.sidebar-cta h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.sidebar-cta-purple h4 { color: #fff; }

.sidebar-cta p {
    font-size: .8125rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* ============================================
   RESULTS HEADER
   ============================================ */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    gap: 15px;
}

.results-count { font-size: .9375rem; color: #6c757d; }
.count-number { font-weight: 700; color: #2c3e50; }

.results-sort { display: flex; align-items: center; gap: 10px; }
.results-sort label { font-size: .875rem; color: #6c757d; }

.results-sort select {
    padding: 8px 25px 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: .875rem;
    color: #495057;
    background: #fff;
    cursor: pointer;
}

.results-sort select:focus { border-color: #667eea; outline: none; }

.results-actions { display: flex; align-items: center; gap: 10px; }

.mobile-filter-toggle {
    display: none;
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    font-size: .875rem;
    cursor: pointer;
}

.mobile-filter-toggle i { margin-right: 5px; }

/* View toggle (events page) */
.view-toggle {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    background: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #6c757d;
    transition: all .2s;
}

.view-btn.active { background: #667eea; color: #fff; }

/* ============================================
   ACTIVE FILTER TAGS
   ============================================ */

.active-filters {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filters-label { font-size: .875rem; font-weight: 600; color: #495057; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    font-size: .8125rem;
    color: #495057;
}

.remove-filter {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.remove-filter:hover { color: #dc3545; }

/* ============================================
   CARD GRID & JOB/RESOURCE/EVENT CARD
   ============================================ */

.cards-grid {
    display: grid;
    gap: 25px;
}

.job-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all .3s;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
}

.job-card.featured { border-left: 4px solid #ffc107; }
.job-card.urgent   { border-left: 4px solid #dc3545; }

/* Card badges (top-right) */
.card-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card-badges .badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3px;
}

.card-badges .badge.featured {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
}

.card-badges .badge.urgent {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    color: #fff;
}

.card-badges .badge.expired {
    background: #f8d7da;
    color: #721c24;
}

/* Card header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-right: 120px;
    gap: 15px;
}

.company-info { display: flex; gap: 15px; }

.company-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #fff;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.company-details { flex: 1; min-width: 0; }

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.35;
}

.card-title a { color: #2c3e50; text-decoration: none; }
.card-title a:hover { color: #667eea; }

.company-name {
    color: #6c757d;
    font-size: .9375rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.salary-badge {
    background: #e7f5ff;
    color: #0a58ca;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: .9375rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card meta */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: .875rem;
    color: #6c757d;
}

.card-meta span { display: flex; align-items: center; gap: 6px; }

/* Card excerpt */
.card-excerpt {
    color: #4a5568;
    font-size: .9375rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

/* Card tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.card-tags .tag {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 500;
}

.tag-level { display: inline-flex; align-items: center; gap: 4px; }

/* Card footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.posted-time {
    color: #6c757d;
    font-size: .8125rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.applied-badge {
    color: #28a745;
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-link {
    color: #667eea;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover { color: #764ba2; }

/* Save button */
.save-job-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 1rem;
}

.save-job-btn:hover {
    background: #e9ecef;
    color: #667eea;
    border-color: #667eea;
}

.save-job-btn.saved {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.save-job-btn.saved:hover { background: #5a67d8; color: #fff; }

/* ============================================
   SECTION HEADINGS (shared)
   ============================================ */

.section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading i { color: #667eea; }

/* Featured resources (3-col preview row) */
.featured-resources { margin-bottom: 40px; }

.featured-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
}

.featured-resource-card {
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all .3s;
}

.featured-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,.08);
}

.featured-resource-card.big {
    background: linear-gradient(135deg, #f8f7ff 0%, #fdf4ff 100%);
    border-color: #ddd6fe;
}

.featured-resource-badge {
    position: absolute;
    top: 18px; right: 18px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    font-size: .6875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.featured-resource-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.featured-resource-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px;
}

.featured-resource-card.big h3 { font-size: 1.3rem; }

.featured-resource-card p {
    font-size: .875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 12px;
}

.featured-resource-meta {
    display: flex;
    gap: 15px;
    font-size: .75rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.featured-resource-meta span { display: flex; align-items: center; gap: 5px; }

/* ============================================
   RESOURCE / EVENT CARD ACCENTS
   ============================================ */

.resource-card { position: relative; padding-top: 30px; }

.resource-type-badge {
    position: absolute;
    top: 18px; left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.resource-icon-lg {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 15px;
}

/* Event card */
.event-card { position: relative; padding-top: 30px; }

.event-date-badge {
    position: absolute;
    top: 16px; right: 18px;
    width: 52px; height: 56px;
    border-radius: 10px;
    background: var(--events-gradient);
    color: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(99,102,241,.3);
}

.event-day { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.event-month { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.event-icon { background: var(--events-gradient); }
.event-meta { flex-direction: column; gap: 8px; }

.event-price {
    font-size: .8125rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.event-price.free { background: #dcfce7; color: #166534; }
.event-price.paid { background: #fef3c7; color: #92400e; }

/* Event list view */
.events-grid.list-view { grid-template-columns: 1fr; }
.events-grid.list-view .event-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.events-grid.list-view .resource-icon-lg { margin: 0; flex-shrink: 0; }
.events-grid.list-view .card-title,
.events-grid.list-view .card-excerpt,
.events-grid.list-view .card-meta,
.events-grid.list-view .card-footer { flex: 1 1 100%; }

/* ============================================
   FEATURED EVENT (events page hero card)
   ============================================ */

.featured-event {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 35px;
    border-radius: 16px;
    background: var(--events-gradient);
    color: #fff;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(99,102,241,.25);
}

.featured-event h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 12px 0 10px;
    color: #fff;
}

.featured-event p {
    color: rgba(255,255,255,.9);
    line-height: 1.6;
    margin-bottom: 18px;
}

.featured-event .badge.featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.2);
    color: #fff;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 700;
}

.featured-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
    font-size: .875rem;
    color: rgba(255,255,255,.9);
}

.featured-event-meta span { display: flex; align-items: center; gap: 6px; }

.featured-event-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.5);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Countdown */
.countdown-box {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.countdown-label {
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .85;
    display: block;
    margin-bottom: 15px;
}

.countdown { display: flex; gap: 12px; justify-content: center; }

.countdown-unit {
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 12px 10px;
    min-width: 62px;
    display: flex; flex-direction: column; gap: 4px;
}

.countdown-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.countdown-txt { font-size: .65rem; text-transform: uppercase; letter-spacing: .5px; opacity: .85; }

/* ============================================
   BOTTOM CTA
   ============================================ */

.bottom-cta {
    margin-top: 50px;
    padding: 30px 35px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.bottom-cta h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom-cta h2 i { color: #93c5fd; }

.bottom-cta p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: .9375rem;
}

.bottom-cta-form { display: flex; gap: 10px; flex-wrap: wrap; }

.bottom-cta-form input {
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .9375rem;
    min-width: 240px;
}

.bottom-cta-form input::placeholder { color: rgba(255,255,255,.6); }

.bottom-cta-form input:focus {
    outline: none;
    border-color: #93c5fd;
    background: rgba(255,255,255,.15);
}

.bottom-cta-form .btn { padding: 11px 20px; }

/* ============================================
   PAGINATION
   ============================================ */

.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li { display: inline-block; }

.pagination li span,
.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    font-size: .9375rem;
    text-decoration: none;
    transition: all .2s;
}

.pagination li a:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.pagination li span.current {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}

.pagination li span.dots { border: none; background: transparent; }

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.empty-icon {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 25px;
}

.empty-state h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   TOPIC TAGS (resources sidebar)
   ============================================ */

.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.topic-tag {
    padding: 6px 12px;
    border-radius: 30px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}

.topic-tag:hover { background: #4f46e5; color: #fff; }

/* ============================================
   UTILITY
   ============================================ */

.hidden-filter-form { display: none; }
.btn-sm { padding: 8px 14px; font-size: .875rem; border-radius: 6px; }

/* ============================================
   RESPONSIVE — SHARED BREAKPOINTS
   ============================================ */

@media (max-width: 1200px) {
    .page-title { font-size: 2rem; }
    .search-grid { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 992px) {
    .page-hero { padding: 40px 0; }
    .page-title { font-size: 1.75rem; }

    .search-grid { grid-template-columns: 1fr; }

    .content-layout { grid-template-columns: 1fr; }

    .content-sidebar {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 1050;
        border-radius: 0;
        margin: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    .content-sidebar.active { display: block; }

    .mobile-filter-toggle { display: block; }

    .hero-stats { flex-direction: column; gap: 15px; }
    .stat-divider { display: none; }

    .featured-event { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-content { padding: 0 1rem 3rem; }

    .results-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .results-sort { width: 100%; }
    .results-sort select { width: 100%; }
    .results-actions { width: 100%; justify-content: space-between; }

    .card-header { flex-direction: column; gap: 15px; padding-right: 0; }
    .salary-badge { align-self: flex-start; }

    .card-meta { flex-direction: column; gap: 10px; }
    .event-meta { flex-direction: column; }

    .card-footer { flex-direction: column; align-items: flex-start; gap: 15px; }
    .card-actions { width: 100%; justify-content: space-between; }

    .empty-actions { flex-direction: column; }

    .featured-grid { grid-template-columns: 1fr; }
    .featured-resource-card.big { grid-column: auto; }

    .bottom-cta { flex-direction: column; align-items: flex-start; }
    .bottom-cta-form { width: 100%; }
    .bottom-cta-form input { flex: 1; min-width: 0; }

    .featured-event-meta { flex-direction: column; gap: 8px; }
}

@media (max-width: 576px) {
    .page-title { font-size: 1.5rem; }
    .search-container { padding: 15px; }
    .job-card { padding: 20px; }

    .card-badges { position: static; margin-bottom: 15px; }
    .company-info { flex-direction: column; align-items: flex-start; }
    .company-logo { width: 50px; height: 50px; }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .footer { display: none !important; }
    .page-hero { background: none !important; color: #000; }
    .page-hero::before { display: none !important; }
    .content-sidebar { display: none !important; }
}