/* ========================================
   VERIFIEDBPO - PROFESSIONAL STYLES
   Mobile-first, Trust-focused, SEO-optimized
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1F2937;
  --accent: #0066CC;
  --accent-dark: #004499;
  --accent-light: #E3F2FD;
  --success: #10B981;
  --danger: #EF4444;
  --light: #F9FAFB;
  --gray: #6B7280;
  --text: #111827;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== NAVBAR ===== */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-menu a:hover { color: var(--accent); }

.nav-menu .admin-link { display: none; }
.nav-menu .admin-link.visible { 
  display: block;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
}

/* ===== NAVBAR LOGO ===== */
.navbar-logo {
  display: block;
  height: 40px;
  width: auto;
  max-height: 45px;
  object-fit: contain;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 32px 16px;
  text-align: center;
}

.hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.hero p { font-size: 16px; margin-bottom: 24px; opacity: 0.95; }

.search-container {
  background: white;
  padding: 16px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 20px;
}

.search-input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.search-input:focus { outline: none; border-color: var(--accent); }

.search-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.search-btn:hover { background: var(--accent-dark); }

/* ===== FILTERS ===== */
.filters {
  background: var(--light);
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.filter-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}

.filter-group select:focus { outline: none; border-color: var(--accent); }

/* ===== JOBS ===== */
.section { padding: 24px 16px; }
.section-title { margin-bottom: 20px; }
.section-title h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.section-title p { color: var(--text-light); font-size: 14px; }

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) { .jobs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .jobs-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.job-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.job-header { margin-bottom: 12px; }
.job-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.job-company { font-size: 13px; color: var(--text-light); font-weight: 500; }

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex: 1;
}

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

.job-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  padding: 10px 12px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
}

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

.btn-secondary { background: var(--light); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }

.no-jobs { text-align: center; padding: 60px 16px; color: var(--text-light); }
.no-jobs-icon { font-size: 48px; margin-bottom: 16px; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blog-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 40px;
}

.blog-content { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.blog-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  width: fit-content;
}

.blog-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.blog-excerpt { font-size: 13px; color: var(--text-light); margin-bottom: 12px; flex: 1; line-height: 1.5; }
.blog-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 13px; }
.blog-link:hover { text-decoration: underline; }

/* ========================================
   REDESIGNED FOOTER
   ======================================== */

.footer {
    background: #0F172A; /* Deep navy */
    color: #E2E8F0;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 4px solid #F97316; /* Orange accent */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 55px;
    width: auto;
    max-height: 65px;
    object-fit: contain;
    background: white;  /* Ensures dark logo is visible */
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.footer-brand h3 {
    color: #F97316;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: #CBD5E1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

/* Links Columns */
.footer-links h4 {
    color: #F97316;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #F97316;
    padding-left: 4px;
}

/* Newsletter Section */
.footer-newsletter h4 {
    color: #F97316;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-newsletter p {
    color: #CBD5E1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #1E293B;
    border-radius: 50%;
    color: #CBD5E1;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #F97316;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

/* Bottom Bar */
.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid #1E293B;
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
}

.footer-bottom p {
    margin: 4px 0;
}

/* ===== RESPONSIVE FOOTER ===== */

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

    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-logo {
        height: 50px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links ul {
        padding: 0;
    }

    .footer-social {
        justify-content: center;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .footer-logo {
        height: 42px;
    }

    /* Mobile logo adjustments */
    .navbar-logo {
        height: 32px;
        max-height: 36px;
    }
}

/* ========================================
   FORMS
   ======================================== */

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--text); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ========================================
   ALERTS
   ======================================== */

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--success); }
.alert-error { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--danger); }

/* ========================================
   CONTENT PAGES
   ======================================== */

.content-page { padding: 32px 16px; max-width: 800px; margin: 0 auto; }
.content-page h1 { font-size: 28px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.content-page h2 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: var(--text); }
.content-page p { font-size: 15px; line-height: 1.7; color: var(--text-light); margin-bottom: 12px; }
.content-page ul { margin: 12px 0 12px 20px; color: var(--text-light); font-size: 15px; }
.content-page li { margin-bottom: 8px; line-height: 1.6; }

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 480px) {
  .navbar-content { flex-wrap: wrap; }
  .nav-menu { gap: 12px; font-size: 13px; }
  .hero h1 { font-size: 22px; }
  .search-container { grid-template-columns: 1fr; }
  .search-btn { width: 100%; }
  .job-actions { grid-template-columns: 1fr; }
  .hero { padding: 24px 12px; }
  .section { padding: 16px 12px; }
}