body {
  font-family: "IBM Plex Sans";
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.simple-header {
  padding: 2rem 0 1rem 0;
}

.nav-link-hover {
  transition: transform 0.2s ease;
}

.nav-link-hover:hover {
  transform: translateY(-2px);
  color: rgb(123 211 255) !important;
}

@media (max-width:991px) {

  .account-link,
  .login-link {
    margin: 8px 0 !important;
  }
}

.info-container {
  padding: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 2px solid #eee;
  border-left-width: .25rem;
  border-radius: .25rem;
  border-left-color: #0d6efd
}

.hidden {
  display: none;
}

.header-bg {
  position: relative;
  overflow: hidden;
}

.header-bg.map {
  background: url('/img/site/map.avif') center center / cover no-repeat;
}

.header-bg.news {
  background: url('/img/site/news.avif') center center / cover no-repeat;
}


.header-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.header-bg.news::before {
  background-color: rgba(0, 0, 0, 0.75);
}

.header-bg .container {
  position: relative;
  z-index: 2;
}

.badge-difficulty {
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  border-radius: 0.4rem;
  margin-right: 5px;
  text-transform: capitalize;
}

.badge-difficulty.easy {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #155724;
}

.badge-difficulty.medium {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #856404;
}

.badge-difficulty.hard {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #721c24;
}

.section-title {
  font-weight: 600;
  padding-left: 12px;
  border-left: 4px solid #0d6efd;
  color: #333;
  margin-bottom: 1rem;
}


/************/

.badge-difficulty {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 0.4rem;
  font-weight: 600;
}

.badge-difficulty.easy {
  background-color: #d4edda;
  color: #155724;
}

.badge-difficulty.medium {
  background-color: #fff3cd;
  color: #856404;
}

.badge-difficulty.hard {
  background-color: #f8d7da;
  color: #721c24;
}

/************/

.challenge-page .challenge-container {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.challenge-page .section-title {
  margin-top: 0
}

.challenge-page .category-pill {
  background: #111;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .8rem;
}

.challenge-page .status-pill {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .8rem;
  color: white;
}

.challenge-page .status-pill.completed {
  background: #198754;
}

.challenge-page .status-pill.incomplete {
  background: #dc3545;
}

.challenge-page .challenge-title {
  font-weight: 700;
}

.challenge-page .challenge-desc {
  font-size: 1.05rem;
  color: #444;
}

.challenge-page .section-divider {
  margin: 1.5rem 0;
  border: 1px dashed #c5c3c3;
  border-radius: 10px;
  opacity: 1;
}

.challenge-page .difficulty-pill {
  padding: 6px 10px;
  border-radius: 8px;
  color: white;
  text-transform: capitalize;
}

.challenge-page .difficulty-pill.easy {
  background: #198754;
}

.challenge-page .difficulty-pill.medium {
  background: #ffc107;
  color: black;
}

.challenge-page .difficulty-pill.hard {
  background: #dc3545;
}

.challenge-page .tag-pill {
  background: #1b7fcc;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: .8rem;
}

.challenge-page .instruction-img {
  width: 50%;
  margin: 1rem auto;
  display: block;
  border-radius: 5px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.challenge-page .solution-box {
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.challenge-page .disclaimer-box {
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.accordion-item {
  border: 1px solid #dee2e6;
  border-radius: 0.6rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background-color: #fff;
}

.accordion-button {
  background-color: #f8f9fa;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0d6efd;
}

.challenge-page .alert {
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.btn-check:checked+.btn {
  color: #fff !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
}

.btn-outline-success:checked+.btn,
.btn-outline-success.btn.active {
  background-color: #198754 !important;
  border-color: #198754 !important;
}

.btn-outline-danger:checked+.btn,
.btn-outline-danger.btn.active {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}


/* Resources */

.wrapper-1300 {
  max-width: 1300px;
}

.wrapper-1000 {
  max-width: 1000px;
}

.resource-title {
  font-weight: 600;
  color: #0d6efd;
}

.resource-excerpt {
  color: #444;
  line-height: 1.5;
  font-size: 0.95rem;
}

.learn-osint-filter-form {
  background: #eee;
  padding: 10px 5px 30px;
  border-radius: 10px;
}

.news-link {
  text-decoration: none;
  color: inherit;
}

.news-link:hover {
  text-decoration: underline;
}

.article-link-wrapper {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 0.5rem;
}

.article-link-wrapper:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.article-item {
  cursor: pointer;
  padding: 15px
}

.article-image-wrapper {
  width: 180px;
  height: 120px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0, 0, 0, .2);
  border-radius: 10px;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover img {
  object-fit: cover;
  max-height: 400px;
  max-width: 100%;
}

.article-link-wrapper:hover .article-title {
  color: #0d6efd;
}

.badge.bg-primary-subtle {
  background-color: #e7f1ff;
  font-weight: 500;
}

@media (max-width: 768px) {
  .article-image-wrapper {
    width: 100%;
    height: 200px;
  }
}

.resource-content {
  color: #373434;
  line-height: 1.6;
}

.resource-content h2,
h3 {
  font-size: 1.8rem;
  margin: 30px 0 10px;
  color: #222;
}

.resource-content h3 {
  font-size: 1.4rem;
}

.resource-content img {
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  margin: 20px 0 40px;
}


.article-cover-caption {
  font-size: 0.92em;
  color: #666;
  margin: 5px;
  text-align: center;
}

/* Contribute tabs */

.nav-pills .nav-link {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background-color .2s, transform .2s;
}

.nav-pills .nav-link:hover {
  transform: translateY(-1px);
}

.nav-pills .nav-link.active {
  background-color: var(--bs-primary);
  color: #fff;
}

.tab-pane {
  border-radius: 10px;
  border: 2px solid lightgray;
}

label.form-check-label:hover {
  cursor: pointer
}

.profile-wrapper {
  max-width: 100%;
}

.profile-card {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #d5d8dc;
  border-radius: 12px;
  box-shadow: 0 0 0 3px #e5e7e9;
}

.profile-icon {
  width: 70px;
  height: 70px;
  background: #0d6efd;
  color: white;
}


.leaderboard-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  transition: background 0.15s ease;
}

.leaderboard-item:hover {
  background: #fafafa;
}

.rank-badge {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.username {
  font-weight: 500;
  text-decoration: none;
  color: var(--text-color, #333);
}

.username:hover {
  text-decoration: underline;
}

.points {
  font-weight: 600;
  color: #555;
}

.challenge-table .badge {
  background-color: #e6e6e6;
}

.challenge-table thead th {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: #0d6efd;
  border-bottom-width: 2px;
}

.challenge-table tbody tr:hover {
  background-color: #f8f9fa;
}

.badge-difficulty.easy {
  background-color: #d1e7dd;
  color: #0f5132;
}

.badge-difficulty.medium {
  background-color: #fff3cd;
  color: #664d03;
}

.badge-difficulty.hard {
  background-color: #f8d7da;
  color: #842029;
}


@media (max-width: 993px) {
  .challenge-table {
    font-size: 0.9rem;
  }

  .challenge-table>:not(caption)>*>* {
    padding: 0.5rem 0.25rem;
  }

  .challenge-table .bi-arrow-down-up,
  .challenge-table .bi-check-circle-fill,
  .challenge-table .bi-x-circle-fill {
    display: none;
  }

  .challenge-table .last-column {
    display: none
  }
}

.progress-bar-easy {background-color:green}
.progress-bar-medium {background-color:orange}
.progress-bar-hard {background-color:red}

.cat-card {
  display: inline-block;
  margin: 2px 2px 5px 0;
  padding: 0.5rem;
  background: #e6e7ea;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
}

.cat-card:hover,
.cat-card.active {
  background: #0d6efd;
  color: #ffffff;
}

.cat-card:hover{
  transition: .3s
}

.cat-card.active {
  padding: 0.4rem;
  outline: 2px solid #0d6efd;
  outline-offset: 1px
}

.alert-primary {
  background-color:#eaf2ff
}