/* App-like styling for Occupational Toolkit */
body {
  font-family: "Source Sans Pro", Calibri, sans-serif !important;
  padding: 20px;
  background: linear-gradient(135deg, #f3f9fc 0%, #ffffff 100%);
  min-height: 100vh;
}

/* Ensure Source Sans Pro is used throughout the toolkit */
#otk-content,
#otk-title,
.otk-app-container,
.otk-title,
.link,
.back,
.choice,
.otk-detail-card,
.otk-series-container,
.otk-found-in-container,
.otk-found-in-label,
.otk-found-in-badge,
.otk-nav-container {
  font-family: "Source Sans Pro", Calibri, sans-serif !important;
}

/* Smooth fade-in animation for content */
#otk-content,
.otk-app-container {
  animation: fadeIn 0.4s ease-in;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Enhanced title styling */
#otk-title {
  color: #0053a3;
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 83, 163, 0.1);
  animation: fadeIn 0.5s ease-in;
}

/* Card-like link blocks */
.link,
.back,
.choice {
  display: block;
  margin: 12px 0;
  text-decoration: none;
  color: #0053a3;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-left: 3px solid transparent;
}

.link:hover,
.back:hover,
.choice:hover {
  background: linear-gradient(135deg, #f3f9fc 0%, #ffffff 100%);
  color: #00488e;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 83, 163, 0.15);
  border-left-color: #0053a3;
}

.choice {
  font-size: 1.2em;
  font-weight: 500;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f9fc 100%);
  border-radius: 12px;
  width: fit-content;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 83, 163, 0.1);
}

.choice:hover {
  background: linear-gradient(135deg, #f3f9fc 0%, #e8f4f9 100%);
  box-shadow: 0 6px 16px rgba(0, 83, 163, 0.2);
  transform: translateY(-2px);
}

/* Enhanced flex row with better spacing */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 1.5rem 0;
}

.column {
  flex: 1;
  min-width: 200px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.column:hover {
  box-shadow: 0 4px 16px rgba(0, 83, 163, 0.12);
}

/* Enhanced link container with card styling */
.link-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* Landing page intro */
.otk-landing-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.link-block {
  flex: 1 1 45%;
  min-width: 250px;
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 83, 163, 0.1);
  position: relative;
  overflow: hidden;
}

.link-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0053a3 0%, #226e8e 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.link-block:hover::before {
  transform: scaleX(1);
}

.link-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 83, 163, 0.15);
}

.link-block .usa-button {
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 83, 163, 0.2);
}

.link-block .usa-button:hover {
  box-shadow: 0 4px 8px rgba(0, 83, 163, 0.3);
  transform: translateY(-1px);
}

.link-block .description {
  color: #666666;
  line-height: 1.6;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Enhanced content sections */
#otk-content h3 {
  color: #0053a3;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 83, 163, 0.2);
  font-size: 1.75rem;
}

#otk-content p {
  color: #393b3e;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Navigation container styling */
#otk-content>div[style*="margin"] {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 2rem !important;
  margin: 0 auto !important;
  width: fit-content !important;
}

/* Enhanced USA button styling within the toolkit */
#otk-content .usa-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 83, 163, 0.2);
  border-radius: 6px;
}

#otk-content .usa-button:hover {
  box-shadow: 0 4px 12px rgba(0, 83, 163, 0.3);
  transform: translateY(-2px);
}

#otk-content .usa-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 83, 163, 0.2);
}

/* Staggered animation for list items */
.column .link {
  animation: slideInLeft 0.4s ease-out backwards;
}

.column .link:nth-child(1) {
  animation-delay: 0.05s;
}

.column .link:nth-child(2) {
  animation-delay: 0.1s;
}

.column .link:nth-child(3) {
  animation-delay: 0.15s;
}

.column .link:nth-child(4) {
  animation-delay: 0.2s;
}

.column .link:nth-child(5) {
  animation-delay: 0.25s;
}

.column .link:nth-child(6) {
  animation-delay: 0.3s;
}

.column .link:nth-child(7) {
  animation-delay: 0.35s;
}

.column .link:nth-child(8) {
  animation-delay: 0.4s;
}

.column .link:nth-child(9) {
  animation-delay: 0.45s;
}

.column .link:nth-child(10) {
  animation-delay: 0.5s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

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

/* Detail card styling */
.otk-detail-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 83, 163, 0.1);
}

/* Series container styling */
.otk-series-container {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 83, 163, 0.1);
}

/* Found in container styling */
.otk-found-in-container {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 1.5rem auto 0;
  border: 1px solid rgba(0, 83, 163, 0.1);
  color: #393b3e;
  font-size: 0.95rem;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.otk-found-in-label {
  color: #0053a3 !important;
  font-weight: 600;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  align-self: center;
  line-height: 44px;
  height: 44px;
}

.otk-found-in-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  align-self: center;
}

.otk-found-in-badge {
  display: inline-block;
  padding: 12px 16px;
  background: #ffffff;
  color: #0053a3;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-left: 3px solid transparent;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.otk-found-in-badge:hover {
  background: linear-gradient(135deg, #f3f9fc 0%, #ffffff 100%);
  color: #00488e;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 83, 163, 0.15);
  border-left-color: #0053a3;
}

.otk-found-in-badge:active {
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(0, 83, 163, 0.12);
}

/* Navigation container */
.otk-nav-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 1.5rem auto 0;
  border: 1px solid rgba(0, 83, 163, 0.1);
  width: fit-content;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .link-block {
    flex: 1 1 100%;
    padding: 1.5rem;
  }

  .flex-row {
    flex-direction: column;
  }

  .column {
    min-width: 100%;
  }

  #otk-title,
  .otk-title {
    font-size: 1.5rem;
  }

  .otk-detail-card {
    padding: 1.5rem;
  }

  .otk-nav-container {
    flex-direction: column;
    width: 100%;
  }

  .otk-nav-container .usa-button {
    width: 100%;
    text-align: center;
  }
}