@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- Brand Design System --- */
:root {
  --bg-main: #0a192f;
  --bg-card: #112240;
  --bg-card-hover: #1d3557;
  --color-primary: #1e3a8a; /* Deep Corporate Blue */
  --color-secondary: #0ea5e9; /* Light Cyan Blue */
  --color-gold: #d4af37; /* Metallic Gold */
  --color-gold-light: #f3e5ab; /* Soft Cream Gold */
  --color-gold-dark: #b45309; /* Warm Amber */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-slate: #cbd5e1;
  --glass-bg: rgba(17, 34, 64, 0.7);
  --glass-border: rgba(212, 175, 55, 0.25);
  --glass-border-hover: rgba(212, 175, 55, 0.6);
  --shadow-gold: 0 8px 32px 0 rgba(212, 175, 55, 0.15);
  --shadow-blue: 0 8px 32px 0 rgba(14, 165, 233, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* --- Global Resets & Body --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Dynamic background glows */
body::before, body::after {
  content: '';
  position: absolute;
  width: 35vw;
  height: 35vw;
  border-radius: 50%;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

body::before {
  top: 10%;
  left: 5%;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
}

body::after {
  top: 50%;
  right: 5%;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

h1 {
  font-weight: 900;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text {
  color: var(--color-gold);
}

/* --- Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-svg {
  width: 40px;
  height: 40px;
  fill: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
  transition: var(--transition-smooth);
}

.logo-link:hover .logo-svg {
  transform: rotate(45deg);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.logo-text span {
  color: var(--color-gold);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-slate);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.cta-btn {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.05);
}

.cta-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* Mobile Nav Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* --- Container Layouts --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section {
  display: none; /* Controlled via Javascript Router */
  animation: fadeIn 0.5s ease-out forwards;
}

section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hero Section --- */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
}

.hero-left h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

/* Hero Interactive Bar */
.search-widget {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: var(--shadow-gold);
  max-width: 650px;
}

.widget-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.widget-icon {
  position: absolute;
  left: 12px;
  fill: var(--color-gold);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-widget input {
  width: 100%;
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.8rem 1rem 0.8rem 2.2rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-widget input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.search-widget button {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--bg-main);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.search-widget button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.key-graphic {
  position: absolute;
  z-index: 2;
  width: 140px;
  height: 140px;
  animation: float 4s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.key-graphic-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 18px rgba(212, 175, 55, 0.45));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

.circle-ring {
  position: absolute;
  border: 1.5px dashed rgba(212, 175, 55, 0.22);
  border-radius: 50%;
  animation: spin 30s linear infinite;
  z-index: 1;
}

.ring-lg {
  width: 320px;
  height: 320px;
}

.ring-md {
  width: 240px;
  height: 240px;
  animation-duration: 20s;
  animation-direction: reverse;
  border-color: rgba(14, 165, 233, 0.15);
}

.curved-text-overlay {
  position: absolute;
  width: 360px;
  height: 360px;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* --- Statistics Banner --- */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 3rem;
  text-align: center;
  box-shadow: var(--shadow-blue);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-slate);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Brand Statement / About --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
}

.accent-bar {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 1.2rem auto;
}

.branding-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.branding-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.branding-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.branding-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
  border-color: rgba(14, 165, 233, 0.2);
}

.branding-card:hover::before {
  transform: scaleX(1);
}

.card-icon-container {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 26px;
  height: 26px;
  fill: var(--color-gold);
}

.branding-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.branding-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Portals Section --- */
.portals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.portal-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
}

.portal-box.gold-theme {
  box-shadow: var(--shadow-gold);
  border-color: rgba(212, 175, 55, 0.25);
}

.portal-box.blue-theme {
  box-shadow: var(--shadow-blue);
  border-color: rgba(14, 165, 233, 0.25);
}

.portal-box:hover {
  transform: translateY(-8px);
}

.portal-box.gold-theme:hover {
  border-color: var(--color-gold);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

.portal-box.blue-theme:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.25);
}

.portal-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.gold-theme .portal-tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
}

.blue-theme .portal-tag {
  background: rgba(14, 165, 233, 0.15);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.portal-box h3 {
  font-size: 2rem;
}

.portal-box p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.portal-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-filled {
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

.gold-theme .btn-filled {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--bg-main);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.gold-theme .btn-filled:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.blue-theme .btn-filled {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.blue-theme .btn-filled:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-outline {
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

.gold-theme .btn-outline {
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
}

.gold-theme .btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

.blue-theme .btn-outline {
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}

.blue-theme .btn-outline:hover {
  background: rgba(14, 165, 233, 0.1);
}

/* --- Dedicated Job Search Place --- */
.job-search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Filter Panel */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.8rem;
  position: sticky;
  top: 100px;
}

.filter-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-title-bar h3 {
  font-size: 1.1rem;
  color: var(--color-gold);
}

.btn-clear-filters {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-clear-filters:hover {
  color: var(--color-gold);
}

.filter-group {
  margin-bottom: 1.8rem;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-slate);
  margin-bottom: 0.8rem;
}

.filter-group select, .filter-group input[type="text"] {
  width: 100%;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.filter-group select:focus, .filter-group input[type="text"]:focus {
  border-color: var(--color-gold);
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  accent-color: var(--color-gold);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Job Listings Grid */
.job-listings-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-slate);
}

.results-count span {
  font-weight: 700;
  color: var(--color-gold);
}

/* Job Card styles */
.job-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background-color: var(--color-gold);
  transform: scaleY(0);
  transition: var(--transition-smooth);
}

.job-card:hover {
  transform: translateX(4px);
  border-color: rgba(212, 175, 55, 0.25);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.job-card:hover::before {
  transform: scaleY(1);
}

.job-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-title {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}

.job-company {
  font-weight: 600;
  color: var(--color-gold-light);
  font-size: 0.95rem;
}

.job-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.3rem 0;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-type-fulltime {
  background: rgba(14, 165, 233, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-type-parttime {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-type-remote {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-type-contract {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.job-meta-row {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  align-items: center;
}

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

.job-meta-icon {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

.job-description-excerpt {
  color: var(--text-slate);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-actions {
  display: flex;
  align-items: center;
}

.no-jobs-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.no-jobs-state svg {
  width: 60px;
  height: 60px;
  fill: var(--text-muted);
  margin-bottom: 1.5rem;
}

.no-jobs-state h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold-light);
}

.no-jobs-state p {
  color: var(--text-muted);
}

/* --- Modals / Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-gold);
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 2.5rem;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.modal-close-svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: var(--transition-smooth);
}

.modal-close:hover .modal-close-svg {
  fill: var(--color-gold);
}

.modal-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
  font-size: 1.6rem;
  color: var(--color-gold-light);
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Forms styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-full-width {
  grid-column: span 2;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-slate);
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

/* Custom file upload styling */
.file-upload-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  padding: 2rem 1rem;
  text-align: center;
  background: rgba(10, 25, 47, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.file-upload-wrapper:hover {
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.05);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  width: 36px;
  height: 36px;
  fill: var(--color-gold);
  margin-bottom: 0.8rem;
}

.file-upload-text {
  font-size: 0.9rem;
  color: var(--text-slate);
}

.file-upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.modal-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Success notification toasts */
.toast {
  position: fixed;
  bottom: 2rem;
  right: -350px;
  background: var(--bg-card);
  border-left: 4px solid var(--color-gold);
  border-radius: 4px;
  padding: 1.2rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  right: 2rem;
}

.toast-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-gold);
}

.toast-message {
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Footer --- */
footer {
  background-color: #050c18;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 4rem 2rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .logo-text {
  font-size: 1.2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--color-gold);
  transform: translateX(3px);
  display: inline-block;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  fill: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-left h1 {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }
  .search-widget {
    margin: 0 auto;
  }
  .hero-right {
    order: -1;
  }
  .branding-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portals-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .job-search-layout {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    position: static;
    margin-bottom: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }
  nav ul {
    display: none; /* Mobile menu drop down placeholder */
  }
  .menu-toggle {
    display: flex;
  }
  .cta-btn {
    display: none;
  }
  .branding-info-grid {
    grid-template-columns: 1fr;
  }
  .job-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .job-card-actions {
    justify-content: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full-width {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
