/* styles.css */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #D6EAF8; /* soft light blue */
  color: #333;
}

/* Make the "Contents" list stick on desktop */
@media (min-width: 768px) {
  #toc {
    position: sticky;
    top: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* Simple accent for active ScrollSpy link */
#toc .nav-link.active {
  font-weight: 600;
  text-decoration: underline;
}

/* in style.css, near the top */
.teaser-img {
  max-width: 75%;           /* never wider than 75% of viewport */
  margin-left: auto;
  margin-right: auto;
}

footer.custom-footer {
  background-color: #1F4E79; /* Similar teal-blue */
  color: #fffff0;
  text-align: center;
  padding: 3rem 1rem;
}

.footer-box {
  background-color: #273F6B; /* slightly darker than beige background */
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto 1rem auto;
}

.footer-box h5 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-box p {
  margin-bottom: 0;
}

header.custom-header {
  background-color: #1F4E79;
  color: #fffff0;
  padding: 2rem 1rem;
  border-radius: 0 0 16px 16px;
  width: 100%;
  text-align: center;
}

.custom-header h1 {
  color: #fffff0;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.custom-header p,
.custom-header small,
.custom-header a {
  color: #fffff0 !important;
}

.custom-header .btn-outline-primary {
  border-color: white;
  color: white;
}

.custom-header .btn-outline-primary:hover {
  background-color: white;
  color: #8a8d6f;
}

section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #8a8d6f;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1s ease-out forwards;
}

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

.fade-delay-1 {
  animation-delay: 0.3s;
}

.fade-delay-2 {
  animation-delay: 0.6s;
}

.author-link {
  color: #8a8d6f; /* soft yellow that pops on blue */
  text-decoration: underline;
  font-weight: 600;
}

.author-link:hover {
  color: #fffff0;
  text-decoration: none;
}

.custom-btn {
  background-color: #2f2f2f;
  color: white !important;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  text-decoration: none;
  margin: 0.25rem;
}

.custom-btn:link,
.custom-btn:visited,
.custom-btn:active {
  color: white !important;
  text-decoration: none;
}

.custom-btn:hover {
  background-color: #1e1e1e;
  text-decoration: none;
  color: white;
}

.custom-btn img {
  vertical-align: middle;
}

.github-btn {
  background-color: #2f2f2f;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: white !important;
}

.github-btn:link,
.github-btn:visited,
.github-btn:active,
.github-btn:focus {
  color: white !important;
  text-decoration: none;
  background-color: #1e1e1e;
}

.github-btn:hover {
  background-color: #1e1e1e;
  text-decoration: none;
  color: white;
}

.github-btn img {
  vertical-align: middle;
}

.workshop-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.custom-header .workshop-name {
  color: #fffff0 !important;
}

/* Button container for better spacing */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Responsive adjustments for buttons */
@media (max-width: 576px) {
  .button-group {
    flex-direction: column;
  }
  .custom-btn {
    width: 150px;
    justify-content: center;
  }
}

.video-container {
  max-width: 65%;
  margin: 0 auto;
}

.custom-navbar {
  background-color: #0D253F; /* Dark red color */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}

.nav-link {
  font-weight: 500;
  color: #f9f7f3 !important;
}

nav.custom-navbar .nav-link:hover,
nav.custom-navbar .nav-link:focus {
  background-color: transparent !important;  /* kill the gray flash */
  color: #7CD752 !important;                 /* your green hover color */
}

.navbar-nav {
  gap: 2rem;
}

.nav-link i {
  font-size: 1.5rem;
}

.nav-link:hover i {
  color: #e8ebe1;
}

.nav-link span {
  font-weight: 500;
  color: #f9f7f3;
}

.custom-navbar {
  padding: 0.5rem 1rem;
}

.nav-link {
  font-size: 0.9rem;
  padding: 0.1rem 0.5rem;
}

.navbar-toggler {
  padding: 0.1rem 0.5rem;
}

.company-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.servicenow-logo {
  height: 200px;
  transition: transform 0.3s ease;
}

.servicenow-logo:hover {
  transform: scale(1.4);
}

#examples .nav-pills .nav-link.active {
  color: #fff !important;        
  background-color: #0D253F !important; 
}

#examples .nav-pills .nav-link {
  color: #6c757d !important;        
  background-color: #e9ecef;        
}

.example-text {
  background-color: #f8f9fa;  /* very light grey */
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}
.conditional-text {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2em 0.4em;
  background-color: rgba(124, 215, 82, 0.1);
  color: #7cd752;
  font-style: italic;
  border-radius: 4px;
}

.logo-with-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;  /* ← never break inside here */
}

/* make the SVG icon size follow the font-size exactly */
.header-h-icon {
  height: 1em;     /* exactly the x-height of the current font */
  width: auto;     /* preserve its aspect ratio */
  margin-right: 0.2em; /* a hair of breathing room */
  flex-shrink: 0;  /* never let it shrink smaller */
}