/* =========================================================
   CBE Public Site Styles — based on recruitment frontend
   ========================================================= */

/* ── Variables from styles.css ── */
:root {
  --primary: #c53030;
  --primary-dark: #9b2c2c;
  --primary-light: #e53e3e;
  --secondary: #64748b;
  --accent: #d97706;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --blue-50: #fff5f5;
  --blue-100: #fed7d7;
  --blue-500: #c53030;
  --blue-600: #9b2c2c;
  --blue-700: #822727;
  --blue-800: #63171b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ── Reset / base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  padding-top: 80px;
}

/* =========================================================
   Navbar Outside (public)
   ========================================================= */

.navbar {
  background-color: #fff;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1050;
}

.custom-navbar {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  font-size: 1.1rem;
}

.custom-navbar .nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.navbar-brand img {
  height: 45px;
}

.nav-link {
  font-weight: 500;
  color: #444 !important;
  padding: 0.75rem 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: #cc0000 !important;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #b30000;
  margin-bottom: 30px;
}

/* Filtros */
.filter-box {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.filter-box h5 {
  font-weight: bold;
  color: #b30000;
}

.filter-box select {
  font-size: 0.95rem;
}

/* Cards genéricos do navbar-outside */
.job-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.job-card .job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-card .job-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
}

.job-card .job-details {
  font-size: 0.9rem;
  color: #666;
}

.badge-category {
  background-color: #fff0f0;
  color: #cc0000;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 50px;
  font-weight: 500;
}

.btn-apply {
  background-color: #cc0000;
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  transition: background 0.3s ease;
  border: none;
}

.btn-apply:hover {
  background-color: #a00000;
}

@media (max-width: 576px) {
  .job-card .job-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-apply {
    width: 100%;
    margin-top: 15px;
  }
}

/* Login Button */
.navbar .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

@media (max-width: 991px) {
  .navbar .btn-danger {
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* =========================================================
   Footer Outside (public)
   ========================================================= */

.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 56px 0 0;
  font-size: 0.88rem;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand */
.footer .footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer .footer-brand .logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e82222, #7a0000);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer .footer-brand .logo-badge img {
  width: 26px;
}

.footer .footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer .footer-brand .brand-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer .footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.footer .social-links {
  display: flex;
  gap: 8px;
}

.footer .social-links a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer .social-links a:hover {
  background: rgba(232, 34, 34, 0.2);
  border-color: rgba(232, 34, 34, 0.4);
  color: #ff6b6b;
}

/* Column header */
.footer .footer-col h6 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer .footer-col h6::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: #e82222;
  border-radius: 2px;
}

/* Nav links */
.footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer .footer-col ul a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, padding-left 0.2s;
  cursor: pointer;
}

.footer .footer-col ul a i {
  font-size: 0.7rem;
  opacity: 0.6;
}

.footer .footer-col ul a:hover {
  color: #ff6b6b;
  padding-left: 4px;
}

/* Service items */
.footer .service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer .service-item i {
  font-size: 0.9rem;
  color: rgba(232, 34, 34, 0.6);
  width: 16px;
  flex-shrink: 0;
}

.footer .service-item span {
  font-size: 0.78rem;
  line-height: 1.2;
}

.footer .service-item:hover {
  background: rgba(232, 34, 34, 0.1);
  border-color: rgba(232, 34, 34, 0.25);
  color: #ff8888;
}

.footer .service-item:hover i {
  color: #ff6b6b;
}

/* Contacts */
.footer .contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.footer .contact-item i {
  color: #e82222;
  font-size: 0.9rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.footer .contact-item span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer .contact-item a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer .contact-item a:hover {
  color: #ff6b6b;
}

/* Bottom bar */
.footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  margin: 0;
}

.footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s;
}

.footer .footer-bottom a:hover {
  color: #ff6b6b;
}

.footer .footer-bottom .dot {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
  .footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer .footer-brand {
    grid-column: auto;
  }
  .footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   Utilities from global styles.css
   ========================================================= */

.highlight {
  background-color: rgb(216, 216, 169);
  color: black;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 2px;
}

.sticky-filter {
  position: sticky;
  top: 1rem;
  z-index: 1020;
}

@media (max-width: 767.98px) {
  .sticky-filter {
    position: static;
    top: auto;
  }
}
