/* =========================================
   CSEC Design System
   ========================================= */
:root {
  /* Colors */
  --primary: #0F3D6D;
  --primary-light: #7A9BFA;
  --primary-dark: #13284E;
  --secondary: #13284E;
  --accent: #7A9BFA;

  /* Neutrals */
  --slate-900: #13284E;
  --slate-800: #0F3D6D;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Spacing & Layout */
  --container-width: 100%;
  /* Stretched layout as requested */
  --content-max-width: 1800px;
  /* Increased constraint for massive screens */
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 4px 14px 0 rgba(11, 58, 106, 0.3);

  /* Animations */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(12px);
}

/* =========================================
   Reset & Base
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--slate-700);
  background-color: var(--slate-50);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Custom Scrollbar
   ========================================= */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: var(--radius-xl);
  border: 2px solid var(--slate-50);
  /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  border-color: transparent;
}

/* Firefox support */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}

/* =========================================
   Layout Utilities
   ========================================= */
/* Full Width Container */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 3vw;
  /* Responsive padding */
  padding-right: 3vw;
}

/* Lenis Smooth Scroll Essential CSS */
html.lenis,
html.lenis body {
  height: auto;
}

/* Force native scroll behavior availability */
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
  /* Removing this to see if it unblocks wheel */
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Optimized Hero for JS Parallax (Prevents Jitter) */
.hero {
  background-attachment: scroll !important;
  /* Disable CSS fixed parallax */
  /* Disable CSS fixed parallax */
  will-change: transform;
}

/* Ensure overlays don't block scroll */
.hero-overlay,
.hero::before,
.hero::after {
  pointer-events: none;
}

.section {
  padding: 50px 0;
}

.section-sm {
  padding: 25px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

/* Additional Utility Classes */
.text-slate-200 {
  color: var(--slate-200);
}

.text-slate-300 {
  color: var(--slate-300);
}

.text-slate-400 {
  color: var(--slate-400);
}

.text-slate-500 {
  color: var(--slate-500);
}

.text-slate-600 {
  color: var(--slate-600);
}

.text-slate-800 {
  color: var(--slate-800);
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-green-400 {
  color: #4ade80;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.leading-relaxed {
  line-height: 1.625;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.w-full {
  width: 100%;
}

.block {
  display: block;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.opacity-75 {
  opacity: 0.75;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.border-b {
  border-bottom-width: 1px;
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-slate-50 {
  background-color: var(--slate-50);
}

.bg-primary {
  background-color: var(--primary);
}

.gap-2 {
  gap: 0.5rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.transition {
  transition: all 0.2s ease;
}

.hover\:text-accent:hover {
  color: var(--accent);
}

.hover\:bg-white:hover {
  background-color: var(--white);
}

.hover\:text-primary:hover {
  color: var(--primary);
}

.border-white {
  border-color: var(--white);
}


/* =========================================
   Components
   ========================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background-color: var(--slate-100);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.icon-box {
  width: 56px;
  height: 56px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card:hover .icon-box {
  background: var(--primary);
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

/* Consolidated Top Bar Notice */
.header-notice {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-notice strong {
  color: var(--accent);
}

.header-notice .alert-link {
  color: var(--white);
  text-decoration: underline;
  font-weight: 700;
}

.header-notice .alert-link:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 992px) {
  .header-notice {
    display: none;
  }
}

.header-top {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 58%, var(--secondary) 100%);
  color: var(--slate-300);
  font-size: 0.85rem;
  padding: 10px 0;
  transition: height var(--transition-base), opacity var(--transition-base), padding var(--transition-base);
  position: relative;
  overflow: hidden;
}

.header-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 3s infinite;
}

.site-header.scrolled .header-top {
  height: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Restoring Missing Legacy Utilities for Jobs Page */
.mb-5 {
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mr-10 {
  margin-right: 10px;
}

.gap-15 {
  gap: 15px;
}

.flex {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

/* Flex align */
.text-center {
  text-align: center;
}

.wrap {
  flex-wrap: wrap;
}

.font-medium {
  font-weight: 500;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: default;
}

.header-contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.header-contact-item i {
  color: var(--accent);
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.header-contact-item:hover i {
  transform: scale(1.2);
}

.header-contact-item a {
  color: inherit;
  transition: color var(--transition-fast);
}

.header-contact-item a:hover {
  color: var(--white);
}

.header-socials {
  display: flex;
  gap: 8px;
}

.header-social-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.header-social-link:hover {
  color: var(--white);
  background: rgba(255, 122, 0, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px) rotate(5deg);
}

.header-main {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: height var(--transition-base);
}

.site-header.scrolled .header-main {
  height: 60px;
}

.logo img,
.logo .brand-logo-svg-wrap svg {
  height: 48px;
  width: auto;
  transition: var(--transition-base);
  border-radius: var(--radius-md);
}

.logo .brand-logo-svg-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header.scrolled .logo img,
.site-header.scrolled .logo .brand-logo-svg-wrap svg {
  height: 40px;
}

.nav-shell {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
  backdrop-filter: blur(10px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Navigation Links & Dropdowns */
.nav-item {
  position: relative;
  padding: 4px 0;
}

.nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link i.fa-chevron-down {
  font-size: 0.62rem;
  opacity: 0.7;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-item:hover .nav-link {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(11, 58, 106, 0.09), rgba(96, 165, 250, 0.1));
  box-shadow: inset 0 0 0 1px rgba(11, 58, 106, 0.08);
}

.nav-item:hover .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-link.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(11, 58, 106, 0.1), rgba(96, 165, 250, 0.16));
  box-shadow: inset 0 0 0 1px rgba(11, 58, 106, 0.12);
}

.main-nav .nav-item.open>.nav-link {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(11, 58, 106, 0.1), rgba(96, 165, 250, 0.16));
  box-shadow: inset 0 0 0 1px rgba(11, 58, 106, 0.12);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.98);
  background: rgba(255, 255, 255, 0.96);
  min-width: 220px;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.18);
  opacity: 0;
  visibility: hidden;
  display: block !important; /* Force block to override Bootstrap's display: none */
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 14px;
  z-index: 1015;
  backdrop-filter: blur(12px);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  color: #334155;
  font-size: 0.88rem;
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(11, 58, 106, 0.08), rgba(96, 165, 250, 0.14));
  color: var(--primary);
  transform: translateX(2px);
}

.mega-menu {
  min-width: 820px;
  width: 820px;
  max-width: calc(100vw - 40px);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.nav-item:hover .mega-menu {
  width: 980px;
  min-width: 980px;
}

.mega-menu-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 230px;
  gap: 14px;
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .mega-menu-wrap {
  grid-template-columns: 1fr 1fr 270px;
}

.mega-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-title {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  padding: 4px 10px 8px;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}

.mega-link i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  color: var(--primary);
  background: rgba(11, 58, 106, 0.08);
}

.mega-link-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-link-copy strong {
  color: #13284E;
  font-size: 0.86rem;
  line-height: 1.2;
  font-weight: 700;
}

.mega-link-copy small {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.2;
}

.mega-link:hover {
  border-color: rgba(11, 58, 106, 0.12);
}

.mega-panel {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(165deg, #0F3D6D, #0f4f8e);
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.mega-panel-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
}

.mega-panel h5 {
  margin: 10px 0 8px;
  font-size: 1rem;
  color: #fff;
  line-height: 1.25;
}

.mega-panel p {
  margin: 0 0 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.mega-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.mega-panel-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* CTA Button in Nav */
.nav-cta {
  margin-left: 12px;
}

/* Menu Toggle for Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--slate-800);
  margin: 5px 0;
  transition: 0.3s;
}

/* =========================================
   Breadcrumb Navigation
   ========================================= */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  justify-content: center;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.breadcrumb-nav a:hover {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.breadcrumb-nav .sep {
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.breadcrumb-nav .current {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 80px 0;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  /* overflow: hidden; */
  /* REMOVED: Traps scroll events in some browsers */
  overflow: clip;
  /* Modern alternative, or just remove if not needed */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 58, 106, 0.85) 0%, rgba(5, 29, 54, 0.85) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--slate-200);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-proof {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--slate-300);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   Footer (Modern Redesign)
   ========================================= */
.site-footer {
  background: radial-gradient(circle at 10% 5%, rgba(122, 155, 250, 0.08) 0%, transparent 35%),
    linear-gradient(145deg, var(--primary-dark) 0%, #12284f 58%, #0F3D6D 100%);
  color: var(--slate-300);
  padding-top: 90px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent; /* Changed from linear-gradient to avoid visible line overlaying wave */
  z-index: 10; /* Ensure wave is above content if needed */
}

.footer-main {
  padding-bottom: 60px;
}

.footer-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 20px;
  margin-bottom: 38px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(8px);
}

.footer-spotlight-copy h3 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.3;
}

.footer-spotlight-copy p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.93rem;
  max-width: 680px;
}

.footer-spotlight-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0F3D6D 0%, #7A9BFA 100%);
}

.footer-spotlight-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-spotlight-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7A9BFA);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(15, 61, 109, 0.35);
}

.footer-spotlight-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 61, 109, 0.4);
}

.footer-spotlight-link {
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-spotlight-link:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .footer-logo,
.footer-brand .brand-logo-svg-wrap svg {
  height: 50px;
  width: auto;
  margin-bottom: 24px;
  padding: 0;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.footer-brand .brand-logo-svg-wrap {
  display: inline-flex;
}

.footer-brand .footer-logo:hover,
.footer-brand .brand-logo-svg-wrap svg:hover {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 6px 14px rgba(2, 6, 23, 0.25));
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-400);
  margin-bottom: 24px;
}

.footer-brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-contact-item a {
  color: inherit;
  transition: var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(11, 58, 106, 0.4);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--slate-500);
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--white);
}

/* Footer Wave Decoration */
.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  color: var(--slate-50);
}

/* =========================================
   Home Page Specifics (Premium Enhancements)
   ========================================= */

/* Hero Enhancements */
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.hero-proof-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-proof-item i {
  color: #4ade80;
  font-size: 1.1rem;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
}

.stat-item {
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: var(--slate-50);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--slate-500);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  color: var(--secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--slate-500);
  margin-top: 16px;
  line-height: 1.6;
}

/* Job Cards */
.job-tag {
  background: #e0f2fe;
  color: #0284c7;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.job-meta {
  display: flex;
  gap: 16px;
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-meta i {
  color: var(--slate-400);
}

/* Process Section */
.process-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(11, 58, 106, 0.1);
}

.process-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 24px;
  position: relative;
}

.process-icon::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(11, 58, 106, 0.1);
  transition: all 0.5s ease;
}

.process-card:hover .process-icon::after {
  transform: rotate(180deg);
  border-color: var(--primary);
}

.process-number {
  display: inline-block;
  padding: 6px 16px;
  background: var(--slate-50);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  border: 1px solid var(--slate-200);
}

/* Compliance Section */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item i {
  color: var(--accent);
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: var(--radius-md);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.verified-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.doc-pill {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
}

.quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 3rem;
  color: var(--slate-100);
  z-index: 1;
}

.rating {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: #7A9BFA;
}

.testimonial-text {
  color: var(--slate-600);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-50);
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}

/* CTA Section */
.cta-box {
  background: linear-gradient(135deg, var(--slate-900) 0%, #0b2a4a 100%);
  border-radius: var(--radius-xl);
  padding: 50px 30px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Newsletter Section */
.footer-newsletter {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 60px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.newsletter-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
  flex-shrink: 0;
  animation: float 3s ease-in-out infinite;
}

.newsletter-text h3 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.95rem;
}

.newsletter-form {
  max-width: 600px;
}

.newsletter-input-group {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 20px;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.newsletter-input-group:focus-within {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.newsletter-input-group i.fa-envelope {
  color: var(--slate-400);
  font-size: 1.1rem;
}

.newsletter-input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--slate-700);
}

.newsletter-input-group input::placeholder {
  color: var(--slate-400);
}

.newsletter-input-group .btn {
  padding: 12px 24px;
  margin: 0;
  white-space: nowrap;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 20px rgba(11, 58, 106, 0.4);
}

.back-to-top:active {
  transform: scale(0.95);
}

/* Enhanced Header Transitions */
.site-header {
  transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.site-header .header-top {
  transition: all var(--transition-base);
}

/* Improved Dropdown Menu */
.dropdown-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Enhanced Button Styles */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Ripple Effect Styling */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Process Cards Hover Effects */
.process-card {
  cursor: default;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl) !important;
}

.process-card:hover .process-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Stats Section Enhancements */
.stats-section {
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 58, 106, 0.02) 0%, rgba(51, 154, 240, 0.02) 100%);
  pointer-events: none;
}

.stat-item {
  padding: 24px;
  transition: transform var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-variant-numeric: tabular-nums;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  :root {
    --container-width: 960px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-shell {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--slate-200);
    border-radius: 0 0 20px 20px;
    animation: slideDown 0.3s ease-out;
    gap: 8px;
  }

  .main-nav.show {
    display: flex;
  }

  .main-nav>a,
  .main-nav>.nav-item>.nav-link {
    width: 100%;
    text-align: left;
    margin: 0;
    justify-content: space-between;
    border-radius: 12px;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    background: var(--slate-50);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    min-width: 100%;
    padding: 8px;
    border-radius: 12px;
    display: none;
  }

  .main-nav .nav-item.open>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
  }

  .mega-menu {
    min-width: 100%;
  }

  .mega-menu-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mega-panel {
    margin-top: 6px;
  }

  .mega-menu .dropdown-item,
  .mega-link {
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-spotlight {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 14px;
  }

  .footer-spotlight-actions {
    width: 100%;
    align-items: flex-start;
  }

  .footer-newsletter {
    padding: 24px;
  }

  .newsletter-input-group {
    flex-direction: column;
    padding: 16px;
  }

  .newsletter-input-group .btn {
    width: 100%;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* =========================================
   Premium Admin UI
   ========================================= */
:root {
  --primary-green: #2e7d32;
  --light-green: #f1f8f1;
  --sage-dark: #1e3a24;
  --bg-body: #f8fbf8;
  --card-shadow: 0 10px 30px rgba(46, 125, 50, 0.05);
}

/* Sidebar Styling */
.sidebar {
  background: var(--sage-dark);
  min-height: 100vh;
  padding: 30px 20px;
  position: fixed;
  width: 250px;
  z-index: 1000;
}

.sidebar-brand {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(5px);
}

.sidebar hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 25px 0;
}

.main-content {
  margin-left: 250px;
  padding: 40px;
}

/* Card & Table Styling */
.premium-card,
.card {
  background: white;
  border: none;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 25px;
  margin-bottom: 30px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.toast-alert {
  background: white;
  color: #333;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
  border-left: 4px solid var(--primary-green);
  min-width: 300px;
}

.toast-alert.error {
  border-left-color: #13284E;
}

.toast-alert i {
  font-size: 1.2rem;
}

.toast-alert.success i {
  color: var(--primary-green);
}

.toast-alert.error i {
  color: #13284E;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Custom Modal */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.custom-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.custom-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 30px;
  transform: scale(0.95);
  transition: transform 0.2s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.custom-modal-overlay.show .custom-modal {
  transform: scale(1);
}

@media (max-width: 992px) {
  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }
}

/* =========================================
   Job Board & Form Components
   ========================================= */

/* Form Controls (Missing in jobs.php screenshot) */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--slate-700);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(11, 58, 106, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}

/* Job Cards */
.card.job-item {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  display: block;
  /* Ensure it behaves like a block */
}

.card.p-40 {
  padding: 40px;
}

.job-item {
  padding: 20px;
  border-left: 4px solid transparent;
}

.job-item p:last-child {
  margin-bottom: 0;
}

.job-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--secondary);
}

.job-meta .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Utilities used in jobs.php */
.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
  display: grid;
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.gap-15 {
  gap: 15px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mr-10 {
  margin-right: 10px;
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Flex Helpers */
.flex {
  display: flex;
}

.between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.wrap {
  flex-wrap: wrap;
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  padding: 10px 20px;
  display: inline-block;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
}

.btn-secondary:hover {
  background-color: #c92a2a;
  color: white;
}

/* System Alert (Marquee Style) */
.system-alert {
  background-color: #fff5f5;
  color: #c92a2a;
  border-bottom: 1px solid #ffc9c9;
  padding: 10px 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 1001;
  overflow: hidden;
}

.alert-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.alert-marquee-list {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  animation: marquee 60s linear infinite;
  will-change: transform;
}

.alert-marquee-list li {
  flex-shrink: 0;
  padding: 0 50px;
  position: relative;
  display: flex;
  align-items: center;
}

.alert-marquee-list li::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: rgba(201, 42, 42, 0.2);
}

.alert-marquee:hover .alert-marquee-list {
  animation-play-state: paused;
}

.alert-link {
  color: #c92a2a;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 10px;
  transition: opacity 0.2s;
}

.alert-link:hover {
  opacity: 0.8;
  color: #a01d1d;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Ensure mobile compatibility */
@media (max-width: 768px) {
  .alert-marquee-list {
    animation-duration: 40s;
  }

  .alert-marquee-list li {
    padding: 0 25px;
    font-size: 0.85rem;
  }
}


/* Footer Logo Fix */
.site-footer .footer-brand svg text { fill: #ffffff !important; opacity: 0.9; }
.site-footer .footer-brand svg rect[fill='url(#hcNavy)'] { fill: rgba(255, 255, 255, 0.1) !important; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1px; }
.site-footer .footer-brand img { filter: brightness(0) invert(1); opacity: 0.8; }
