/* ===== CSS VARIABLES ===== */
:root {
  --font-family: "Reddit Sans", serif;
  --font-size: 16px;
  --font-weight: 400;
  --font-color: #212121;
  --primary-color: #6b21a8;
  --primary-color-light: #6b21a854;
  --secondary-color: #be185d;
  --secondary-color-light: #be185d5c;
  --light-color: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HERO SECTION ===== */
#hero-section {
  position: relative;
  overflow: hidden;
  padding: 180px 0 45px 0;
  background: url('../images/hero-section-bg-image-01.png') center/cover no-repeat;
}

#hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.75) 0%, rgba(190, 24, 93, 0.75) 100%);
  z-index: 1;
}

#hero-section .container {
  position: relative;
  z-index: 2;
}

#hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

#hero-section p {
  font-size: 1.35rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  font-weight: 400;
}

/* ===== FILTER SECTION ===== */
.filters {
  background-color: #f8f6fc;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filters-sidebar {
  position: relative;
}

.filter-form {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(107, 33, 168, 0.08);
  transition: var(--transition);
}

.filter-form:hover {
  box-shadow: var(--shadow-lg);
}

.filter-form .form-control,
.filter-form .form-select {
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  transition: var(--transition);
  font-size: 0.95rem;
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.1);
  outline: none;
}

.filter-form .form-control::placeholder {
  color: #94a3b8;
}

#toggle-advanced {
  color: #fff;
  background: linear-gradient(135deg, var(--secondary-color), #d946ef);
  border: none;
  border-radius: 10px;
  transition: var(--transition);
  font-weight: 600;
}

#toggle-advanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.3);
}

.filter-tags {
  margin-top: 1rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.filter-tags .badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 20px;
}

#advanced-filters {
  margin-top: 1rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-purple {
  color: var(--primary-color);
}

.form-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* ===== MAIN LAYOUT ===== */
.main-content {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}

.roles-column {
  max-height: 85vh;
  overflow-y: auto;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color-light) transparent;
}

.roles-column::-webkit-scrollbar {
  width: 6px;
}

.roles-column::-webkit-scrollbar-track {
  background: transparent;
}

.roles-column::-webkit-scrollbar-thumb {
  background: var(--primary-color-light);
  border-radius: 10px;
}

.roles-column::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.details-column {
  position: sticky;
  top: 2rem;
  padding-right: 20px;
}

/* ===== COMPACT JOB CARDS ===== */
.compact-role-card {
  background: linear-gradient(to right, #7320a1 0%, #c42f6d 100%) top/100% 45% no-repeat,
              white;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 1.25rem;
  cursor: pointer;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.compact-role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.compact-role-card:hover {
  background: linear-gradient(to right, #9d63c1 0%, #e05b8b 100%) top/100% 45% no-repeat,
              white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(107, 33, 168, 0.3);
}

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

.compact-role-card.active {
  background: linear-gradient(to right, #7d3aaf 0%, #c4286b 100%) top/100% 45% no-repeat,
              white;
  box-shadow: 0 16px 32px rgba(107, 33, 168, 0.2),
              0 0 20px rgba(196, 40, 107, 0.3);
  border-left: 6px solid var(--secondary-color);
  transform: translateY(-2px);
}

.compact-role-card.active::before {
  transform: scaleX(1);
}

.compact-role-card.active .compact-job-title,
.compact-role-card.active .compact-company {
  color: #ffffff;
}

.compact-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.compact-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  position: relative;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compact-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.compact-role-card:hover .compact-logo::after {
  opacity: 1;
}

.compact-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compact-role-card:hover .compact-logo img {
  transform: scale(1.08);
}

.compact-title-section {
  flex: 1;
  min-width: 0;
}

.compact-job-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.375rem 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.compact-company {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.compact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.compact-badge {
  padding: 0.5rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.compact-role-card:hover .compact-badge::before {
  transform: translateX(100%);
}

.compact-badge.new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.compact-badge.urgent {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

.compact-badge.remote {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.compact-details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.compact-job-details,
.compact-schedule {
  margin-bottom: 0;
}

.compact-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compact-section-title::before {
  content: '';
  width: 4px;
  height: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.compact-detail-item {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
}

.compact-detail-item::before {
  content: '•';
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.compact-detail-item:last-child {
  margin-bottom: 0;
}

/* ===== DETAILS PANEL ===== */
.details-panel {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(107, 33, 168, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: fit-content;
  position: sticky;
  top: 2rem;
  transition: var(--transition);
  animation: panelSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px 20px 0 0;
  z-index: 999;
  pointer-events: none;
}

.details-panel.active::before {
  animation: loadingBar 1.2s ease forwards;
}

@keyframes loadingBar {
  from { width: 0; }
  to { width: 100%; }
}

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

.details-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(107, 33, 168, 0.15);
}

.details-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.7) 100%);
  border-radius: 16px;
  border: 2px dashed rgba(148, 163, 184, 0.3);
  position: relative;
  overflow: hidden;
}

.details-empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.8s ease-in-out;
}

.details-empty-state:hover::before {
  left: 100%;
}

.details-empty-state i {
  font-size: 4.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  display: block;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.details-empty-state h4 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.details-empty-state p {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

.role-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.role-detail-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(107, 33, 168, 0.2) 20%, rgba(107, 33, 168, 0.3) 50%, rgba(107, 33, 168, 0.2) 80%, transparent 100%);
}

.role-detail-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(107, 33, 168, 0.15);
  transition: var(--transition);
  background: white;
}

.role-detail-logo:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-lg);
}

.role-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.role-detail-logo:hover img {
  transform: scale(1.1);
}

.role-detail-title-section h2 {
  font-size: 2.25rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  letter-spacing: -0.02em;
}

.role-detail-company {
  font-size: 1.4rem;
  color: #6366f1;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0.9;
  letter-spacing: -0.01em;
}

.role-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.role-detail-badge {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.role-detail-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.role-detail-badge:hover::before {
  left: 100%;
}

.role-detail-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.role-detail-badge.new {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  color: white;
}

.role-detail-badge.urgent {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
  color: white;
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5); }
}

.role-detail-badge.remote {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  color: white;
}

.job-description {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.job-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
}

.job-description h4 {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.job-description p {
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.job-description p:last-child {
  margin-bottom: 0;
}

.role-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.role-detail-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 250, 252, 0.5) 100%);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.role-detail-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.role-detail-section h4 {
  font-size: 1.125rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.role-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #475569;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: var(--transition);
  border-radius: 8px;
}

.role-detail-item:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(4px);
  padding-left: 0.75rem;
}

.role-detail-item:last-child {
  margin-bottom: 0;
}

.role-detail-icon {
  width: 20px;
  height: 20px;
  color: #7c3aed;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.role-detail-item:hover .role-detail-icon {
  transform: scale(1.15);
}

.role-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  position: relative;
}

.role-actions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(107, 33, 168, 0.15) 20%, rgba(107, 33, 168, 0.25) 50%, rgba(107, 33, 168, 0.15) 80%, transparent 100%);
}

.actions-primary {
  display: flex;
  gap: 1rem;
  flex: 1;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5b1a96, #a01651);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 33, 168, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary.pdf-btn {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.like-button {
  background: white;
  border: 2px solid rgba(107, 33, 168, 0.2);
  color: var(--primary-color);
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.like-button:hover {
  background: rgba(107, 33, 168, 0.05);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.alert-info {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.9) 0%, rgba(226, 232, 240, 0.8) 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #334155;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 500;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
  #hero-section {
    padding: 140px 0 40px 0;
  }

  #hero-section h1 {
    font-size: 2.75rem;
  }

  #hero-section p {
    font-size: 1.2rem;
  }

  .main-content {
    grid-template-columns: 35% 65%;
    gap: 1.5rem;
  }

  .role-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .role-detail-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .details-panel {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  #hero-section {
    padding: 120px 0 40px 0;
  }

  #hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  #hero-section p {
    font-size: 1rem;
    max-width: 90%;
  }

  .filters {
    padding: 1.5rem 0;
    position: static;
  }

  .filters-sidebar {
    margin-bottom: 1.5rem;
  }

  .filter-form {
    padding: 1.25rem;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }

  .roles-column {
    max-height: none;
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .details-column {
    display: none;
    position: static;
    padding-right: 0;
  }

  .compact-role-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .compact-card-header {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .compact-logo {
    width: 50px;
    height: 50px;
  }

  .compact-job-title {
    font-size: 1.1rem;
  }

  .compact-company {
    font-size: 0.9rem;
  }

  .compact-details-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .compact-badges {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .compact-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
  }

  /* Mobile Details Panel */
  .mobile-details-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .mobile-details-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    height: 5px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 999;
    pointer-events: none;
    transition: width 1.2s ease;
  }

  .mobile-details-panel.active::before {
    width: 100%;
  }

  .mobile-details-panel.active {
    transform: translateY(0);
  }

  .close-panel {
    position: sticky;
    top: 0;
    right: 0;
    align-self: flex-end;
    margin: 16px 16px 0 0;
    border: none;
    background: rgba(107, 33, 168, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1051;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    line-height: 1;
  }

  .close-panel:hover {
    background: rgba(107, 33, 168, 0.2);
    transform: scale(1.1);
  }

  .mobile-details-content {
    padding: 0 20px 32px 20px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-details-content .role-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(107, 33, 168, 0.1);
  }

  .mobile-details-content .role-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin: 0 auto;
  }

  .mobile-details-content .role-detail-title-section h2 {
    font-size: 1.75rem;
  }

  .mobile-details-content .role-detail-company {
    font-size: 1.1rem;
  }

  .mobile-details-content .role-detail-badges {
    justify-content: center;
  }

  .mobile-details-content .role-detail-badge {
    padding: 8px 16px;
    font-size: 0.75rem;
  }

  .mobile-details-content .job-description {
    padding: 1.5rem;
    margin-bottom: 24px;
  }

  .mobile-details-content .job-description h4 {
    font-size: 1.1rem;
  }

  .mobile-details-content .job-description p {
    font-size: 0.95rem;
  }

  .mobile-details-content .role-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .mobile-details-content .role-detail-section {
    padding: 1.25rem;
  }

  .mobile-details-content .role-detail-section h4 {
    font-size: 1rem;
  }

  .mobile-details-content .role-detail-item {
    font-size: 0.9rem;
    gap: 12px;
  }

  .mobile-details-content .role-actions {
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(107, 33, 168, 0.1);
  }

  .mobile-details-content .actions-primary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .mobile-details-content .btn {
    width: 100%;
    padding: 16px 20px;
    justify-content: center;
    font-size: 1rem;
  }

  .mobile-details-content .like-button {
    width: 100%;
    padding: 16px 20px;
    justify-content: center;
  }

  .mobile-details-panel {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-details-content {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 480px) {
  #hero-section {
    padding: 100px 0 35px 0;
  }

  #hero-section h1 {
    font-size: 1.75rem;
  }

  #hero-section p {
    font-size: 0.95rem;
  }

  .filter-form {
    padding: 1rem;
  }

  .compact-role-card {
    padding: 1rem;
  }

  .compact-job-title {
    font-size: 1rem;
  }

  .compact-company {
    font-size: 0.85rem;
  }

  .compact-logo {
    width: 44px;
    height: 44px;
  }

  .compact-details-container {
    padding: 0.875rem;
  }

  .compact-detail-item {
    font-size: 0.8rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-purple {
  color: var(--primary-color);
}

/* ===== SCROLLBAR STYLING ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color-light) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--primary-color-light);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
