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

body {
  font-family: "Arial", sans-serif;
  background: #f9f9f9;
  color: #333;
}

header {
  background: #004080;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
}

.logo i {
  font-size: 1.5rem;
}

.logo:hover {
  color: #e9e9e9;
}

header a {
  font-size: 1rem;
  margin-left: 12px;
  text-decoration: none;
  color: inherit;
}

header .btn-warning {
  color: #000;
  border-radius: 20px;
  padding: 6px 16px;
  transition: background-color 0.3s ease;
}

header .btn-warning:hover {
  background-color: #ffc107;
  color: #000;
}

.search-section {
  background: #fff;
  padding: 1.5em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.compbanner {
  margin-top: 2em !important;
  margin-bottom: 1em !important;
}

.banner-box {
  background: linear-gradient(90deg, #004080, #0066cc);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 4rem auto;
  max-width: 860px;
}

.banner-box p {
  font-size: 22px;
  color: #fff;
}

.banner-box .btn {
  font-size: 18px;
  padding: 10px 24px;
}

.job-card,
.job-card-width {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.job-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}

.job-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.job-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #004080;
}

.badge-category {
  margin-top: 10px;
  font-size: 0.9rem;
}

.job-desc {
  line-height: 1.5;
}

.card-icons button {
  border: none;
  background: transparent;
  font-size: 1.3rem;
  color: #004080;
  cursor: pointer;
}

.card-icons button:hover {
  color: #003060;
}

.view-btn,
.apply-btn {
  font-weight: 500;
}

.card-header,
.card-footer {
  background-color: #ffffff;
}

.card-footer .btn-link {
  color: #004080;
  text-decoration: none;
}

.card-footer .btn-link:hover {
  text-decoration: underline;
}

.card-footer .btn-outline-secondary {
  font-size: 16px;
  font-weight: 500;
  padding: 6px 16px;
}

.btn-custom-grey {
  padding: 0.2rem 0.5rem;
  font-size: 1rem !important;
  background-color: #f0f0f0 !important;
  border: 1px solid #ccc !important;
  color: #333 !important;
}

.btn-custom-grey:hover {
  background-color: #e0e0e0 !important;
  border-color: #999 !important;
}

.form-label,
.form-control {
  text-align: right !important;
}

.resume-page {
  font-family: "Heebo", sans-serif;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.resume-page .hero {
  background: linear-gradient(135deg, #6c757d, #343a40);
}

.resume-page .profile-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
}

.resume-page .section-title {
  font-weight: bold;
  font-size: 1.2rem;
}

.resume-page .card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.resume-page .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.resume-page .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.resume-page .btn-editbtn {
  margin-right: 5px;
}

.resume-page .card-body ul {
  padding-right: 20px;
  margin: 0;
  list-style-position: inside;
}

.resume-page .card-body li {
  margin-bottom: 6px;
}

.example-btn,
.reset-btn {
  font-size: 0.75rem !important;
  padding: 2px 6px !important;
  margin-right: 5px;
}

.example-btn {
  color: #666 !important;
}

.example-btn:hover {
  background-color: #666 !important;
  color: #ffffff !important;
}

.bi-heart-fill {
  color: lightcoral;
}

.mobile-text {
  display: none;
}

.desktop-text {
  display: inline;
}

.table thead.table-light th {
  background-color: #fff !important;
}

.table-responsive {
  margin: 2em 0 0.5em 0 !important;
}

.responsivecontainer {
  margin-top: 3em !important;
}

.twosideoption {
  margin: 2em auto !important;
}

@media (max-width: 768px) {
  #createresumebtn {
    font-size: 0.95em;
    margin: 0;
  }

  .compbanner {
    margin-top: 1em !important;
    margin-bottom: 0 !important;
  }

  .searchbtnm {
    margin-top: 1em;
  }

  .card-text strong {
    display: inline-block;
    min-width: 50px;
  }

  .card-text {
    margin-bottom: 1rem !important;
    line-height: 1.8;
  }

  .card-body ul li strong {
    display: inline-block;
    min-width: 110px;
  }

  .card-body ul {
    margin-bottom: 1rem !important;
    line-height: 1.8;
  }

  .createresumebtn,
  .addjobbtn {
    margin-top: 1.5rem;
  }

  .mobile-text {
    display: inline;
  }

  .desktop-text {
    display: none;
  }
}

html,
body {
  height: 100%;
}

.wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.wrapper > footer {
  margin-top: auto;
}

.footer-site {
  margin-top: 0;
}

.footerlia {
  color: #ffffff;
  text-decoration: none;
  display: block;
  padding: 0;
  transition: 0.2s;
}

.footerlia:hover {
  text-decoration: underline !important;
}

#site-logo a {
  font-size: 1.5rem !important;
}

.premium-badge {
  padding: 5px 10px;
  border-radius: 6px;
}

.premium-ribbon {
  position: absolute;
  top: 2px;
  right: -8px;
  background: #f4c542;
  color: #000;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  transform: rotate(35deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border-radius: 2px;
}

.job-card {
  position: relative;
}

/* Accessibility Modes — kept separate as requested */

.a11y-dark,
.a11y-dark body,
.a11y-dark body * {
  background-color: #0b0b0b !important;
  color: #eaeaea !important;
}

.a11y-dark a {
  color: #9ecbff !important;
}

.a11y-high-contrast,
.a11y-high-contrast body,
.a11y-high-contrast body * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.a11y-high-contrast a {
  color: #00ffff !important;
  text-decoration: underline !important;
}

.a11y-high-contrast button,
.a11y-high-contrast input[type="button"],
.a11y-high-contrast input[type="submit"],
.a11y-high-contrast input[type="reset"] {
  background-color: #000 !important;
  color: #fff !important;
  border: 3px solid #fff !important;
}

.a11y-high-contrast input,
.a11y-high-contrast select,
.a11y-high-contrast textarea {
  background-color: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.a11y-high-contrast h1,
.a11y-high-contrast h2,
.a11y-high-contrast h3,
.a11y-high-contrast h4,
.a11y-high-contrast h5,
.a11y-high-contrast h6 {
  color: #fff !important;
  border-bottom: 3px solid #fff !important;
  padding-bottom: 4px;
}

.a11y-high-contrast table,
.a11y-high-contrast th,
.a11y-high-contrast td {
  border: 2px solid #fff !important;
}

.a11y-high-contrast *:focus {
  outline: 3px solid #ffff00 !important;
  outline-offset: 3px !important;
}

.a11y-high-contrast svg {
  fill: #fff !important;
  stroke: #fff !important;
}

.a11y-reduced-motion * {
  transition: none !important;
  animation: none !important;
}

html {
  font-size: calc(100% * var(--a11y-text-scale, 1));
}

.a11y-highlight-links a {
  outline: 2px solid #ff9800 !important;
  background-color: #fff3cd !important;
  color: #000 !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48'><polygon points='15,4 44,15 31,21 41,41 26,47 17,27 4,33' fill='yellow' stroke='black' stroke-width='2'/></svg>") 0 0,
    auto !important;
}

.a11y-highlight-titles h1,
.a11y-highlight-titles h2,
.a11y-highlight-titles h3,
.a11y-highlight-titles h4,
.a11y-highlight-titles h5,
.a11y-highlight-titles h6 {
  outline: 2px solid #4caf50 !important;
  background-color: #e8f5e9 !important;
  color: #000 !important;
}

.a11y-dark.a11y-highlight-titles h1,
.a11y-dark.a11y-highlight-titles h2,
.a11y-dark.a11y-highlight-titles h3,
.a11y-dark.a11y-highlight-titles h4,
.a11y-dark.a11y-highlight-titles h5,
.a11y-dark.a11y-highlight-titles h6 {
  outline: 2px solid #81c784 !important;
  background-color: #1f2a1f !important;
  color: #eaeaea !important;
}

html.a11y-grayscale {
  filter: grayscale(1) !important;
}

.a11y-virtual-keyboard {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  background: #222;
  padding: 0.5rem;
  display: none;
  gap: 0.25rem;
  z-index: 9999;
  direction: rtl;
}

.a11y-virtual-keyboard.active {
  display: flex;
  flex-direction: column;
}

.a11y-virtual-keyboard .vk-row {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.a11y-virtual-keyboard .vk-key {
  min-width: 2.5rem;
  padding: 0.4rem 0.6rem;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  font-size: 1rem;
  cursor: pointer;
}

.a11y-virtual-keyboard .vk-key:focus {
  outline: 3px solid #ff0;
  outline-offset: 2px;
}

.a11y-virtual-keyboard .vk-key-backspace,
.a11y-virtual-keyboard .vk-key-space {
  min-width: 4rem;
}

.vk-toggle-row {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.vk-toggle-layout {
  background: #444;
}

.vk-toggle-layout.active {
  background: #0080ff;
}

.vk-layout-en {
  display: none;
}

.vk-key-close {
  background: #900;
  color: #fff;
  font-weight: bold;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  box-shadow: none !important;
  outline: none !important;
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 768px) {
  .vk-layout-he .vk-row,
  .vk-layout-en .vk-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    gap: 2px;
    justify-items: center;
  }

  .vk-numbers-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .vk-numbers-row .vk-key {
    flex: 1;
    min-width: 0;
    margin: 0 2px;
  }

  .vk-key {
    padding: 0.45rem 0;
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .bounce-fixed-width {
    min-width: 120px;
    text-align: center;
  }
}

.app-icon {
  width: 70px;
  height: 70px;
  background: none;
}

.footer-hr {
  width: 100%;
  margin: 0.75rem 0;
}

@media (min-width: 768px) {
  .footer-hr {
    width: 25%;
    margin-right: 0;
    margin-left: auto;
    margin-top: 8px;
    margin-bottom: 8px;
  }
}

#create-resume-banner-btn {
  font-size: 1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: 0.2s ease-in-out;
}

#create-resume-banner-btn:hover {
  transform: translateY(-2px);
}

.chart-small {
  max-height: 220px;
}

.chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

.btn-group-responsive {
  display: flex;
  gap: 6px;
}

@media (min-width: 768px) {
  .btn-group-responsive {
    width: auto !important;
  }
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-top: none;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  font-size: 15px;
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: #e8f0fe;
}

.autocomplete-section-title {
  padding: 6px 12px;
  font-weight: bold;
  background: #dfdfdf;
  color: #424242;
  border-bottom: 1px solid #dfdfdf;
}

#subscriptionModal .modal-content {
  border-radius: 16px;
}

#subscriptionModal ul li {
  font-size: 0.9rem;
}

#subscriptionModal .btn {
  border-radius: 10px;
}

#subscriptionModal .modal-body {
  padding-bottom: 1.5rem;
}

.profile-toggle-btn-nice {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  color: #333;
}

.profile-toggle-btn-nice:hover {
  background: #f7f7f7;
  border-color: #c8c8c8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-toggle-btn-nice .toggle-icon {
  transition: transform 0.25s ease;
}

.profile-toggle-btn-nice[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.profile-toggle-btn-nice {
  border-image: linear-gradient(90deg, #dcdcdc, #eaeaea) 1;
}

.compare-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  transition: all 0.25s ease;
}

.compare-link:hover {
  background: #e9f2ff;
  color: #0a58ca;
}

.table td,
.table th {
  white-space: normal !important;
  word-wrap: break-word;
}

.salary-role-column {
  max-width: 100px;
  white-space: normal;
}
