*,
::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0088a8;
  --primary-dark: #006880;
  --primary-light: #00b4d8;
  --primary-glow: rgba(0, 136, 168, 0.28);
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #556070;
  --card-bg: #f4fafc;
  --border: rgba(0, 136, 168, 0.14);
  --shadow-sm: 0 4px 16px rgba(0, 136, 168, 0.1);
  --shadow-md: 0 8px 32px rgba(0, 136, 168, 0.16);
  --nav-height: 68px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

.top-links {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0 60px;
  height: var(--nav-height);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.logo-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.top-logo {
  height: 40px;
  transition: transform 0.4s var(--ease-bounce);
  filter: drop-shadow(0 2px 6px rgba(0, 136, 168, 0.18));
}

.logo-brand-wrapper:hover .top-logo {
  transform: rotate(-8deg) scale(1.1);
}

.brand-name-wrapper .career {
  color: #111;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.brand-name-wrapper .guide {
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.top-links ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  margin-right: 50px;
}

.top-links ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.top-links ul li a::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 55%;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  transition: transform 0.25s ease;
}

.top-links ul li a:hover {
  color: var(--primary);
  background: rgba(0, 136, 168, 0.07);
}

.top-links ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.top-links ul li a.active::after {
  display: none;
}

.top-links.scrolled {
  box-shadow: 0 4px 24px rgba(0, 136, 168, 0.13);
  background: rgba(255, 255, 255, 0.98);
}

.top-links ul li a.active {
  background: var(--primary);
  color: #fff;
}

.top-links ul li a.nav-btn {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.top-links ul li a.nav-btn:hover {
  background: var(--primary);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(0, 136, 168, 0.08);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.35s var(--ease-smooth);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 30px;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 136, 168, 0.1);
  flex-direction: column;
  gap: 8px;
  transform: translateY(-16px);
  opacity: 0;
  transition: all 0.3s var(--ease-smooth);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary);
  color: #fff;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 60vh;
  padding: var(--nav-height) 80px 60px;
  background:
    linear-gradient(
      135deg,
      rgba(0, 80, 104, 0.85) 0%,
      rgba(0, 136, 168, 0.6) 60%,
      transparent 100%
    ),
    url("/static/careers/images/BG.png") no-repeat center 40%;
  background-size: cover;
  background-attachment: fixed;
  overflow: visible;
  z-index: 10;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-particles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  animation: floatP linear infinite;
}

.hero-particles span:nth-child(1) {
  width: 280px;
  height: 280px;
  top: -60px;
  right: 8%;
  animation-duration: 14s;
}

.hero-particles span:nth-child(2) {
  width: 180px;
  height: 180px;
  top: 65%;
  right: 22%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.hero-particles span:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 35%;
  right: 4%;
  animation-duration: 10s;
  animation-delay: -3s;
}

.hero-particles span:nth-child(4) {
  width: 70px;
  height: 70px;
  top: 78%;
  left: 18%;
  animation-duration: 12s;
  animation-delay: -7s;
}

.hero-particles span:nth-child(5) {
  width: 140px;
  height: 140px;
  bottom: -30px;
  right: 38%;
  animation-duration: 16s;
  animation-delay: -9s;
  background: rgba(0, 180, 216, 0.07);
}

@keyframes floatP {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(-55px) rotate(180deg);
    opacity: 0.7;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  color: var(--white);
  animation: heroIn 0.85s var(--ease-bounce) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 16px;
  animation: heroIn 0.7s var(--ease-bounce) both 0.2s;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
  animation: heroIn 0.7s var(--ease-bounce) both 0.32s;
}

.hero-buttons {
  align-items: center;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroIn 0.7s var(--ease-bounce) both 0.44s;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.search-bar {
  width: 100%;
  padding: 13px 42px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  outline: none;
}

.search-bar:focus {
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(0, 136, 168, 0.3),
    0 6px 24px rgba(0, 0, 0, 0.15);
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  display: none;
  transition: color 0.2s;
}

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

.clear-btn.visible {
  display: block;
}

.filter-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 20;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  height: 47px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  border: none;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(0, 136, 168, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 136, 168, 0.15);
  min-width: 200px;
  max-height: 27vh;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px;
  display: none;
}

.filter-dropdown.show {
  display: block !important;
}

.filter-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  border-radius: 6px;
  font-family: "Roboto", sans-serif;
  color: var(--text-dark);
  transition: 0.2s;
}

.filter-dropdown button:hover {
  background: rgba(0, 136, 168, 0.08);
  color: var(--primary);
}

.results-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 10%;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 136, 168, 0.06);
}

.results-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

#resultsCount {
  font-size: 14px;
  color: var(--text-muted);
}

#resultsCount strong {
  color: var(--primary);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.sort-wrap select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.sort-wrap select:focus {
  border-color: var(--primary);
}

.career-section {
  background: var(--card-bg);
  padding: 0 80px;
  position: relative;
  z-index: 1;
}

.career-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.career-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  border-left: 4px solid #0088a8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
  position: relative;
}

.career-item:hover {
  transform: translateY(-5px) scale(1.008);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 136, 168, 0.28);
}

.career-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.career-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.career-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 136, 168, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
}

.career-demand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.career-demand.high {
  color: #06814a;
  background: rgba(6, 129, 74, 0.1);
}

.career-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  transition: color 0.2s;
  flex: 1;
}

.career-item:hover h3 {
  color: var(--primary);
}

.career-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.view-details {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 40px;
  color: var(--border);
  margin-bottom: 16px;
  display: block;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-state button {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.loading-spinner {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: #0088a8;
  font-size: 1rem;
}

.loading-spinner i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.cta-banner {
  padding: 80px 10%;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 60%,
    var(--primary-light) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 500px;
  margin: 0 auto 34px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition: all 0.3s var(--ease-bounce);
}

.cta-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}

.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 60px 10%;
  flex-wrap: wrap;
}

.footer-brand .career {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.footer-brand .guide {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-light);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  max-width: 240px;
  margin-top: 10px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 10%;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.28);
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-menu {
  position: relative;
}

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088a8, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid rgba(0, 136, 168, 0.15);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 136, 168, 0.14);
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 500;
}

.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 136, 168, 0.1);
  background: rgba(0, 136, 168, 0.03);
}

.dropdown-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088a8, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.dropdown-fullname {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 2px;
}

.dropdown-email {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.dropdown-body {
  padding: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(0, 136, 168, 0.07);
  color: #0088a8;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 136, 168, 0.1);
  margin: 5px 0;
}

.dropdown-item--danger {
  color: #c0392b;
}

.dropdown-item--danger:hover {
  background: rgba(192, 57, 43, 0.07);
}

@media (max-width: 960px) {
  .top-links {
    padding: 0 24px;
  }

  .top-links ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: auto;
    min-height: 55vh;
    padding: calc(var(--nav-height) + 24px) 32px 40px;
  }

  .filter-dropdown {
    left: auto;
    right: 0;
    min-width: 180px;
    max-height: 220px;
  }

  .career-section {
    padding: 0 24px;
  }

  .career-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: calc(var(--nav-height) + 16px) 20px 32px;
    background-attachment: scroll;
  }

  .hero-content p {
    font-size: 15px;
  }

  .filter-dropdown {
    max-height: 220px;
  }

  .career-section {
    padding: 0 12px;
  }

  .career-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .career-item {
    height: auto;
    min-height: 150px;
    padding: 12px;
    border-left-width: 3px;
  }

  .career-item h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .career-tag {
    font-size: 10px;
    padding: 2px 8px;
  }

  .career-demand {
    font-size: 9px;
    padding: 2px 8px;
  }

  .view-details {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .career-meta {
    gap: 6px;
    margin-bottom: 6px;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .search-wrapper {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .filter-btn {
    padding: 0 14px;
    flex-shrink: 0;
  }
  .filter-dropdown {
    left: auto;
    right: 0;
    min-width: 180px;
  }
}
