:root {
  /* Brand Colors - Netixa Bold (Corporate/Brutalist) */
  --primary-main: #0056B3; /* Royal Blue - Trust & Confidence */
  --primary-dark: #004494; /* Darker Blue */
  --primary-light: #F0F7FF; /* Very Pale Blue */
  
  --accent-action: #0056B3; /* Consistent with primary */
  
  --bg-body: #FFFFFF; /* Pure White */
  --bg-surface: #FFFFFF;
  --bg-subtle: #F8FAFC; /* Slate 50 */
  
  --text-main: #1E293B; /* Slate 800 - High legibility, not harsh black */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94A3B8; /* Slate 400 */
  
  --accent-gold: #D97706; /* Amber 600 */
  --accent-success: #059669; /* Emerald 600 */
  --accent-danger: #DC2626; /* Red 600 */

  /* Borders - Sharp & Defined (Darkened for better visibility) */
  --border-light: #CBD5E1; /* Slate 300 (Darkened from E2E8F0) */
  --border-dark: #1E293B; /* Slate 800 */
  --border-focus: #0056B3; /* Royal Blue */

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 64px; /* Reduced from 80px for compactness */
  
  /* Modern Geometry - Sharp */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px; /* Minimal rounding */
  --radius-full: 9999px;

  /* Shadows - Refined for subtle depth */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
  --shadow-outline: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  min-height: 70vh;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
body {
  max-width: 100%;
  position: relative;
}
/* Removed overflow-x: hidden from body to ensure position: sticky works */

h1,h2,h3,h4,h5,h6 {
  color: var(--text-main);
  font-weight: 800; /* Extra Bold */
  letter-spacing: -0.03em; /* Tight corporate tracking */
  line-height: 1.1;
}

a {
  color: var(--primary-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.1s;
}
a:hover { color: var(--accent-action); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header - Solid & Authoritative */
.site-header {
  height: var(--header-height);
  background: var(--bg-surface);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border-light); /* Thicker border */
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.logo i {
  color: var(--primary-main);
  font-size: 1.5rem;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  height: 100%;
  border-bottom: 2px solid transparent;
}

.nav-link i { 
    font-size: 1.2rem; 
    color: var(--text-secondary); 
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-main);
  border-bottom-color: var(--primary-main);
}
.nav-link:hover i, .nav-link.active i { color: var(--primary-main); }

/* Buttons - Sharp & Solid */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.1s ease;
  border: 2px solid transparent; /* Thicker borders */
  gap: 0.5rem;
  text-transform: capitalize; /* Or uppercase based on preference, capitalize keeps it readable */
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary-main);
  color: white;
  border-color: var(--primary-main);
}
.btn-primary:hover {
  background: var(--accent-action);
  border-color: var(--accent-action);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-main);
  border-color: #94A3B8; /* Darker neutral border for outline buttons */
  border-width: 2px;
}
.btn-outline:hover {
  border-color: var(--primary-main);
  background: var(--bg-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--primary-main);
}

.btn-pill-lg, .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Cards - Defined Borders, Minimal Shadow */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm); 
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-main);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* Forms */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 500;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-main);
}

/* Utilities */
.text-primary { color: var(--primary-main) !important; }
.text-muted { color: var(--text-secondary) !important; }
.bg-light { background-color: var(--bg-subtle) !important; }
.bg-subtle { background-color: var(--primary-light) !important; }
/* Selectively Allow Shadows */
.shadow-none { box-shadow: none !important; }

/* Badges - Solid Outline */
.badge {
  padding: 0.4em 0.8em;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1.5px solid transparent;
  background: white;
}
.badge-primary { 
    color: var(--primary-main); 
    border-color: var(--primary-main);
}
.badge-success { 
    color: var(--accent-success); 
    border-color: var(--accent-success);
}
.badge-warning { 
    color: var(--accent-gold); 
    border-color: var(--accent-gold);
}
.badge-danger { 
    color: var(--accent-danger); 
    border-color: var(--accent-danger);
}

/* Premium Hero Section */
.hero-section {
  padding: 25px 0 30px;
  background: radial-gradient(circle at 5% 5%, rgba(0, 86, 179, 0.02) 0%, transparent 25%),
              radial-gradient(circle at 95% 95%, rgba(0, 86, 179, 0.02) 0%, transparent 25%);
}

@media (min-width: 992px) {
  .hero-section {
    padding: 30px 0 30px; /* Reduced top padding */
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal split to allow more width for image */
  align-items: start;
  gap: 4rem;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-top: 10px;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(2) { animation-delay: 0.1s; }
.title-line:nth-child(3) { animation-delay: 0.2s; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary-main) 0%, #00A3FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.text-gradient::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-main), #00A3FF);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 3px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title:hover .text-gradient::after {
  transform: scaleX(1);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 520px;
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
  padding: 0;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-container {
  position: relative;
  z-index: 1;
  background: white;
  padding: 12px;
  border: 8px solid var(--primary-main);
  box-shadow: 20px 20px 0 var(--primary-light);
}

.hero-image-container img {
  width: 100%;
  height: 420px; /* Reduced height */
  object-fit: cover;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  right: -25px;
  background: var(--primary-main);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Job Cards List */
.job-card-list {
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  align-items: center;
}
.job-card-list:hover {
  border-color: var(--primary-main);
  transform: none; /* No movement */
  box-shadow: 4px 4px 0 var(--primary-main); /* Brutalist shadow offset */
}

/* Course Cards (Learn Page) */
.course-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light) !important;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-main) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.course-card .ratio img {
    transition: transform 0.5s ease;
    filter: none !important;
    opacity: 1 !important;
}

.course-card:hover .ratio img {
    transform: scale(1.05);
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

/* Job Detail overrides */
.job-header-card {
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--primary-main); /* Accent top border */
}

/* Mobile */
/* Mobile Navigation Drawer */
@media (max-width: 991px) {
  .site-header { 
    height: 64px !important;
    padding: 0.5rem 0; 
  }
  .logo span {
    font-size: 1.25rem !important;
  }
  body { 
    padding-top: 64px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .mobile-menu-toggle { 
    display: block; 
    font-size: 1.5rem; 
    background: none; 
    border: none; 
    color: var(--primary-main);
    cursor: pointer;
    padding: 0.5rem;
  }

  /* Mobile Actions Layout */
  .mobile-nav-actions {
    display: flex;
    align-items: center;
  }
  .mobile-action-item {
    position: relative;
    padding: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.3rem;
  }
  .mobile-action-item .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--accent-danger, #DC2626);
    border: 2px solid white;
    border-radius: 50%;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 1050;
    padding: 80px 1.5rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block !important;
    overflow-y: auto;
  }

  .nav-wrapper.active {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    height: auto;
    padding: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--bg-subtle);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 1rem 0;
    width: 100%;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
  }
  
  .nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
  }
  
  .nav-link span { display: inline-block; margin-left: 0.5rem; }

  /* Adjust Dropdowns for Mobile */
  .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    box-shadow: none !important;
    background: var(--bg-subtle);
    margin-top: 0;
    border: none;
    padding-left: 1rem;
  }
  
  .hero-layout { 
    grid-template-columns: 1fr; 
    text-align: center; 
    padding: 0 !important; 
    gap: 3rem;
  }
  .hero-title {
    align-items: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
  }
  .hero-subtitle {
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
  }
  .hero-image-container {
    border: 6px solid var(--primary-main);
    padding: 8px;
    box-shadow: 12px 12px 0 var(--primary-light);
    width: 100%;
    margin-bottom: 0 !important;
    border-radius: 0;
  }
  .hero-image-container img {
    height: 237px !important;
    object-fit: cover;
  }
  .hero-badge {
    right: 5px;
    bottom: 5px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  /* Pill Grid Adjustments */
  .pill-grid {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .pill-tag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Centering Titles & Content */
  .section-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  
  .section-padding {
    padding: 3.5rem 0 !important;
  }
  
  .pill-grid {
    justify-content: flex-start;
  }
  
  .w-100-mobile { width: 100% !important; }

  /* Unified Search & Filter Header (Mobile) */
.unified-header-bar {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1; /* Louder border */
    border-radius: 100px;
    padding: 4px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 12px 0 0 0; /* Removed bottom margin */
    height: 48px; /* Added explicit height */
}

.unified-header-filter {
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 100px;
    padding: 0 16px;
    height: 38px; /* Internal height */
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-main);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    white-space: nowrap;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.unified-header-filter:active {
    transform: scale(0.96);
    background: #f8fafc;
}

.unified-header-search {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    min-width: 0;
}

.unified-header-search i {
    font-size: 0.95rem;
    color: #64748b;
    margin-right: 12px;
}

.unified-header-search input {
    border: none !important;
    background: transparent !important;
    font-size: 0.9rem !important;
    width: 100%;
    outline: none !important;
    padding: 8px 0 !important;
    color: #0f172a;
    box-shadow: none !important;
    font-weight: 500;
}

.unified-header-search input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}
  /* Mobile Filters Modal-like sidebar */
  .filters-sidebar-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }
  .filters-sidebar-mobile.show {
    transform: translateY(0);
  }
  .mobile-filter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  /* Job List Adjustments */
  .job-card-list { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 1rem; 
    padding: 1.5rem;
  }
  
  .job-logo img, .job-logo div {
    width: 56px; height: 56px;
  }
  
  .job-actions {
    width: 100%;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: stretch;
  }
  .job-actions .btn { flex: 1; }

  /* Tables to Cards */
  .card-table-mobile thead { display: none; }
  .card-table-mobile tr { 
    display: block; 
    border: 1px solid var(--border-light); 
    border-radius: var(--radius-md); 
    padding: 1rem; 
    margin-bottom: 1rem;
    background: white;
    box-shadow: var(--shadow-sm);
  }
  .card-table-mobile td { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.5rem 0; 
    border: none;
    text-align: right;
  }
  .card-table-mobile td::before {
    content: attr(data-label);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
  }
}

@media (min-width: 992px) {
  .section-padding { padding: 5rem 0 !important; }
  .section-title { text-align: left; font-size: 2.5rem; margin-bottom: 3rem; }
  .pill-grid { justify-content: flex-start; max-width: 900px; margin-left: 0; margin-right: auto; }
}

@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
}

/* --- Enhanced Footer --- */
.site-footer {
  background-color: #0f172a; /* Slate 900 - Professional dark */
  color: #94a3b8; /* Slate 400 */
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--primary-main);
}

.site-footer h5, .site-footer h6 {
  color: #f8fafc; /* Slate 50 */
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer .footer-logo {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.footer-link-group {
    margin-bottom: 2rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  color: white;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 1rem;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary-main);
  transform: translateY(-3px);
  color: white;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

.compliance-box {
  background: rgba(255,255,255,0.03);
  padding: 1.25rem;
  border-left: 3px solid var(--primary-main);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.compliance-box p {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* --- Breadcrumbs --- */
.breadcrumb-wrapper {
  margin: 0;
  margin-bottom: 1rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-main);
}

.breadcrumb-item::after {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
  pointer-events: none;
}

/* --- Social Sharing --- */
.share-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.share-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: white;
  filter: brightness(1.1);
}

.share-btn.linkedin { background: #0077b5; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: #475569; }

/* --- Pill Grid & Tags (Home Page) --- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px; /* Brutalist slightly rounded */
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Soft premium shadow */
  letter-spacing: -0.01em;
}

.pill-tag i {
  color: var(--primary-main);
  transition: transform 0.3s ease;
}

.pill-tag:hover {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.pill-tag:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    .site-header {
        height: 64px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important;
        z-index: 1000 !important;
    }
    
    /* Hero Section - Structural Spacing */
    .hero-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    .hero-layout {
        display: flex !important;
        flex-direction: column !important;
        text-align: left !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .hero-image-wrapper {
        width: 100% !important;
        margin-top: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    .hero-content {
        width: 100% !important;
        padding: 0 0.5rem 0 0.5rem !important;
        text-align: left !important;
    }
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
    }
    .hero-image-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 2px solid var(--primary-main) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    .hero-image-container img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 0 !important; 
    }
    .hero-content h1, .hero-content h2, .hero-content p, .hero-content .hero-title {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        display: block !important;
        width: 100% !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    .hero-content h1 {
        font-size: 2.1rem !important; /* Slightly smaller to fit two words */
        line-height: 1.1 !important;
        text-align: left !important;
        width: 100% !important;
    }
    .hero-title span {
        display: block !important;
    }
    .hero-title span:nth-child(1), 
    .hero-title span:nth-child(2) {
        display: inline !important; /* CONNECT and GROW on one line */
        margin-right: 0.35rem !important;
    }
    .hero-title span:nth-child(3) {
        display: block !important; /* GET HIRED on new line */
        margin-top: 0.25rem !important;
    }
    .hero-content .d-flex {
        justify-content: flex-start !important;
        width: 100%;
        max-width: 100vw;
    }

    /* General Layout */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .row {
        margin-left: -0.5rem !important; 
        margin-right: -0.5rem !important;
    }
    
    .col-12, .col-md-12 {
        padding-left: 0.5rem !important; /* Minimal internal padding for content safety */
        padding-right: 0.5rem !important;
    }
    
    /* Flex Stacking */
    section .d-flex {
        flex-direction: column; /* General stacking for sections */
        gap: 0.5rem !important; /* Heavily reduced gap */
    }
    /* Exclude specific components from column stacking if needed */
    .nav-menu .d-flex, .pill-grid, .social-links, .job-actions, .trending-searches .d-flex {
       flex-direction: row !important;
    }
    .pill-grid {
       flex-wrap: wrap !important;
       justify-content: flex-start !important;
       gap: 0.5rem !important;
       margin-top: 0 !important;
       margin-bottom: 2.5rem !important;
    }
    .w-100-mobile {
        width: 100% !important;
        margin-bottom: 2.5rem !important; /* Added margin below full-width mobile buttons */
    }

    /* Footer */
    .footer-link-group {
        text-align: left;
        margin-bottom: 2rem;
    }
    .social-links {
        justify-content: flex-start !important;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }
    .footer-legal-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .mobile-nav-tabs {
        display: flex;
        width: 100%;
        border: 2px solid var(--primary-main);
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 2rem;
    }
    .mobile-nav-tabs .tab-item {
        flex: 1;
        text-align: center;
        padding: 0.75rem;
        font-weight: 700;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s;
    }
    .mobile-nav-tabs .tab-item.active {
        background: var(--primary-main);
        color: white;
    }
    .mobile-nav-tabs .tab-item:not(.active) {
        background: white;
        color: var(--primary-main);
    }

    .trending-searches .badge-primary {
        background-color: #3b82f6 !important; /* Vivid blue */
        color: white !important;
        border: none;
        font-weight: 700;
        letter-spacing: 0.05em;
        padding: 0.5rem 1rem !important;
        border-radius: 2px;
    }

    .pill-tag { 
        padding: 0.6rem 1.2rem; 
        margin: 0 0.5rem 0.5rem 0;
        background: white;
        color: #1e293b;
        border: 1px solid #e2e8f0;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        border-radius: 10px;
        font-size: 0.85rem;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    .pill-tag.text-xs {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    .pill-tag i {
        color: var(--primary-main);
        font-size: 0.95rem;
    }

    .hero-section .container {
        margin-bottom: 2.5rem !important;
    }

    .section-title { margin-bottom: 15px !important; }
    .section-padding { padding-top: 0 !important; padding-bottom: 0 !important; }
}

/* Global Banner Style (WheelCollectors Inspired) */
.section-banner {
    overflow: hidden;
    border-radius: 4px;
    height: 100px !important;
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    background: black;
}
@media (min-width: 769px) {
    .section-banner {
        height: 250px !important;
        margin-bottom: 4rem;
    }
    .banner-title { font-size: 3rem !important; }
    .banner-label { font-size: 1rem !important; }
    .banner-desc { font-size: 1.2rem !important; }
}
.banner-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.6;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}
.banner-label {
    color: #ff3b30 !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.banner-title {
    color: white !important;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0 !important;
    line-height: 1 !important;
}
.banner-desc {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.8rem !important;
    margin-top: 0.5rem !important;
    font-weight: 500 !important;
}

.fixSize{
    height: 150px !important;
}

/* --- Modern Dashboard Layout --- */
:root {
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --dashboard-header-height: 70px;
  --dashboard-bg: #f8fafc;
}

body.dashboard-layout {
  padding-top: 0;
  background-color: var(--dashboard-bg);
  overflow-x: hidden;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: #1e293b; /* Slate 900 */
  color: #94a3b8;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  height: var(--dashboard-header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  background: rgba(0,0,0,0.1);
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.05em;
  text-decoration: none !important;
}

.sidebar-logo span { color: var(--primary-main); }

.sidebar-nav {
  flex-grow: 1;
  padding: 1.5rem 0.75rem;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  color: #94a3b8;
  text-decoration: none !important;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-link i {
  width: 20px;
  margin-right: 1rem;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.sidebar-link.active {
  background: var(--primary-main);
  color: white;
}

.sidebar-link.active i { color: white; }

/* Main Content Area */
.dashboard-main {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.dashboard-topbar {
  height: var(--dashboard-header-height);
  background: white;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
}

.topbar-user:hover {
  background: var(--bg-subtle);
}

.topbar-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Page Content */
.dashboard-content {
  padding: 2rem;
  flex-grow: 1;
}

.dashboard-card {
  border: none !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  margin-bottom: 1.5rem;
}

/* Stats Widget */
.stat-widget {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }
  
  .dashboard-sidebar.active {
    transform: translateX(0);
  }
  
  .dashboard-main {
    margin-left: 0;
  }
  
  .sidebar-toggler {
    display: block !important;
  }
}

.sidebar-toggler {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-main);
  padding: 0.5rem;
}

.course-card, .job-card-list {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

@media (max-width: 991px) {
  .course-mobile-grid, .job-mobile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .course-card, .job-card-list {
    flex-direction: row !important;
    padding: 0.5rem !important; /* Reduced padding from 0.75rem */
    align-items: flex-start !important;
    gap: 0.75rem !important; /* Reduced gap from 1rem */
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .course-img-container, .job-logo, .job-logo img, .job-logo div {
    width: 50px !important; /* Reduced image size from 60px */
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .card-body, .job-content {
    flex-grow: 1 !important;
    min-width: 0 !important;
    max-width: calc(100% - 62px) !important; /* Adjusted for 50px image + 12px gap */
    padding: 0 !important;
  }

  .job-action-btn .btn-primary {
    padding: 0.25rem 0.75rem !important; /* Shrunk from standard scale */
    font-size: 0.7rem !important;
    min-width: 60px !important;
    border-radius: 2px !important; /* Square type instead of rounded */
  }

  .course-info-top h6, .job-info-top .h5 {
    font-size: 0.85rem !important; /* Reduced from 0.95rem */
    line-height: 1.2 !important;
    margin-bottom: 0.15rem !important;
  }

  .course-meta-text .small, .job-meta-text .small {
    font-size: 0.65rem !important; /* Reduced from 0.75rem */
  }
}

.title-truncate {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
  cursor: pointer;
}

.course-card:hover .text-primary {
  color: var(--primary-dark) !important;
}

/* Mobile Filter & Sidebar Styles (Global for Jobs, Learn, Articles) */
@media (max-width: 991px) {
  .mobile-filter-bar {
      display: block;
      position: fixed;
      bottom: calc(60px + env(safe-area-inset-bottom) + 15px);
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      max-width: 400px;
      z-index: 1050;
      text-align: center;
  }
  .mobile-filter-bar button {
      border-radius: 100px !important;
      padding: 0.5rem 1rem !important;
      color: white !important;
  }
  
  .filters-sidebar, .filters-sidebar-mobile {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: white;
      z-index: 2000;
      padding: 1rem;
      overflow-y: auto;
      transform: translateY(100%);
      transition: transform 0.3s ease-in-out;
      display: block !important;
  }
  
  .filters-sidebar.show-mobile, .filters-sidebar-mobile.show {
      transform: translateY(0);
  }
  
  .filters-sidebar .card, .filters-sidebar-mobile .card {
      border: none !important;
      height: auto !important;
      box-shadow: none !important;
  }
}

/* Page Specific Deskrop Rules (Moved from templates) */
@media (min-width: 992px) {
  .course-img-container {
      aspect-ratio: 16/9;
      width: 100%;
  }
}

/* Sticky Sidebar for Desktop */
@media (min-width: 992px) {
  .sticky-desktop-sidebar {
    position: sticky;
    top: 64px !important; /* Force exact header height */
    align-self: flex-start; /* Prevent column stretch so sticky works */
    max-height: calc(100vh - var(--header-height) - 2rem);
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  }
  .sticky-desktop-sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }
}

/* Hover Utilities */
.no-hover-transform:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important; /* Keep original shadow */
}

/* Connection Cards - Premium Refinement */
.connection-card {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.5rem 1rem !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  height: 100% !important;
  position: relative;
  overflow: hidden;
}

.connection-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: var(--primary-main) !important;
}

.card-avatar-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
  z-index: 2;
}

.card-avatar-wrapper img, 
.card-avatar-wrapper .avatar-placeholder {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  border: 3px solid #f8fafc !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  object-fit: cover;
}

.connection-card:hover .card-avatar-wrapper img,
.connection-card:hover .card-avatar-wrapper .avatar-placeholder {
  border-color: var(--primary-main) !important;
  transform: scale(1.05);
}

.connection-card .card-name {
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 0.35rem !important;
  font-size: 0.95rem !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2;
}

.connection-card .card-tagline {
  color: #64748b !important;
  font-size: 0.75rem !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.4;
  font-weight: 500;
}

.connection-card .btn-connect {
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  padding: 0.6rem 1.2rem !important;
  background: var(--primary-main) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  margin-top: auto !important;
  text-decoration: none;
  display: inline-block;
}

.connection-card .btn-connect:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}
