html, body {
  background-color: #fff !important;
  color: #000 !important;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
}

html {
  overflow-y: scroll;
}

body.home {
  background-size: cover;
  background-attachment: fixed;
  background-color: white !important;
  color: #fff !important;
}

h1, h2, h3 {
  color: #000 !important;
  font-family: 'JetBrains Mono', monospace;
}

.no-wrap-title h1.title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.home h1,
body.home h2,
body.home h3 {
  color: black !important;
  font-family: 'JetBrains Mono', monospace;
}

.content strong {
  color: #000 !important;
}

body.home .content strong {
  color: black !important;
}

.hero, .main, .section, section {
  background: transparent !important;
  margin: 0;
  padding: 0;
}

#main, #content {
  background: transparent !important;
  margin: 0;
  padding: 0;
}

.hero-body {
  position: relative;
  height: 100%;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.landing-caption {
  position: static;
  text-align: center;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: -5rem; /* add space above footer */
}

.title-wrapper {
  text-align: left; /* Apply to the container */
  width: 100%;
  max-width: none;
  overflow: hidden; /* Prevent parent from clipping */
}

.title-wrapper h1.title {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;

  line-height: 1.2;
  padding-bottom: 0.1em;
}

.title.section-title {
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

.custom-title {
  font-size: 26pt;
  font-weight: bold;
  position: relative;
  margin-top: 0.5in;
  font-family: 'JetBrains Mono', monospace;
  color: black;
}

.hero .subtitle {
  color: black !important;
  font-size: 16pt;
  margin-top: 0.5in;
  font-family: 'JetBrains Mono', monospace;
}

.landing-caption a.button {
  display: none !important;
}

:root {
  --bulma-navbar-item-img-max-height: 80px !important;
}

.navbar {
  background-color: white !important;
}

.navbar .navbar-item,
.navbar .navbar-link {
  color: black !important;
}

.navbar .navbar-item:hover,
.navbar .navbar-link:hover {
  background-color: white !important;
  color: red !important;
}

.navbar-item {
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

.navbar-item img {
  height: auto !important;
  max-height: 96px !important; /* or 100px, adjust as needed */
  width: auto !important;
  display: block !important;
}

.navbar.is-fresh .navbar-brand img {
  height: auto !important;
  max-height: 80px !important;
}

.scrum-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  align-items: start;
}

.scrum-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  height: auto;
  min-height: 200px; /* Ensures same min size per cell */
}

.scrum-grid img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

.scrum-grid figcaption {
  font-style: normal !important;
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.3;
}

footer.footer,
.footer.footer-light,
.footer.footer-dark {
  background-color: #fff !important;
  color: #000 !important;
}

.footer.footer-dark a {
  color: #000 !important;
}

.footer.footer-dark a:hover {
  color: red !important; /* or whatever hover color you want */
}

.footer-bottom-links a {
  margin: 0 0.5rem;
  color: #000;
  font-size: 1.2rem;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #0077b5; /* Adjust hover color if desired */
}

table th {
  color: #000 !important;
}

.version-label {
  position: fixed;
  bottom: 10px;
  right: 15px;
  font-size: 0.75rem;
  color: #888;
  z-index: 9999;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #ccc;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 15px;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #fff;
  border: 4px solid #007acc;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.courseware-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  margin-top: 1rem;
}

.courseware-grid img {
  width: 100%;
  height: auto;
  border: 1px solid black;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* subtle drop shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.courseware-grid img:hover {
  transform: scale(1.02); /* slight zoom on hover (optional) */
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-form {
  max-width: 600px;
  margin-left: 0;
}

.quote {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 4px solid #ccc;
  font-style: italic;
}

/* Video section container */
.video-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 66%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Video styling */
.video-box video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Text box below video */
.video-text {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
}

/* Add spacing above the blog cards */
.blog-card-section {
  margin-top: 1.5rem; /* ≈½ inch */
}

.blog-card-section.columns {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* Ensures cards stretch to equal height */
}

.blog-card-section .column {
  display: flex;
  flex-direction: column;
}

/* Smaller font and spacing in cards */
.blog-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background-color: #e6f4ff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 0.75rem; /* ~3/4 normal size */
  line-height: 1.4;
}

.blog-card pre,
.blog-card code {
  white-space: pre-wrap;   /* Allow wrapping */
  word-wrap: break-word;
  font-size: 0.75rem;
}

.blog-card .content {
  margin-top: 1rem; /* Pushes the text content down */
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.blog-card .title.is-5 {
  margin-bottom: 0.4rem; /* reduces space below the title */
}

.blog-card .blog-meta {
  margin-top: 0rem;        /* removes gap above meta */
  margin-bottom: 0.75rem;  /* keeps space before content */
  font-size: 0.75rem;
  font-style: normal;
  color: #333;
  line-height: 1.2;
}

.blog-card hr {
  display: none;
}

.blog-card .tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slight hover effect */
}

.tag {
  border: 1px solid #000;
  background-color: transparent;
  color: #000;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  display: inline-block;
  text-decoration: none;
}

.tag:hover {
  background-color: #000;
  color: #fff;
}

.author-tag {
  border: 1px solid #000;
  background-color: transparent;
  color: #000;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.25rem;
  text-decoration: none;
  display: inline-block;
}

.author-tag:hover {
  background-color: #000;
  color: #fff;
}

/* === MOBILE RESPONSIVE STYLES === */

@media screen and (max-width: 768px) {

  .content,
  .section,
  .main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  section.hero.is-fullheight {
    min-height: auto;
    height: auto;
  }

  .footer,
  .footer.footer-dark {
    margin-top: 0;
    padding-top: 1rem;
  }

  .hero-body {
    display: block;
    padding: 2rem 1rem 1rem;
    height: auto;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .title-wrapper {
    padding-bottom: 0.25em;
  }
  
  .title-wrapper h1.title {
    line-height: 1.2;
    padding-bottom: 0.3em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  .title-wrapper h1.title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .custom-title {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem; /* ✅ tighten space below title */
    text-align: center;
    line-height: 1.2;
  }

  .hero .subtitle {
    font-size: 1rem;
    margin-top: 0.75rem; /* ✅ tighten space above subtitle */
  }

  .navbar-menu {
    background-color: white;
  }

  .navbar-menu .navbar-item,
  .navbar-menu .navbar-link {
    color: black;
  }

  .navbar-menu .navbar-item:hover,
  .navbar-menu .navbar-link:hover {
    background-color: #111;
    color: #ffdddd;
  }

  .navbar-burger span {
    background-color: black;
  }

  table th {
    color: #000 !important;
  }

  .scrum-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.training-page .content {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  body.training-page .content table th,
  body.training-page .content table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }

  body.training-page .section-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .timeline-content h3 {
    font-size: 0.7rem;
  }

  .timeline-content p {
    font-size: 0.6rem;
  }

  .courseware-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .quote {
    background-color: #f9f9f9 !important;
    color: #000 !important;
    opacity: 1 !important;
    filter: none !important;
    padding: 1rem !important;
    margin: 1rem 0 !important;
    border-left: 4px solid #ccc !important;
    border-radius: 4px;
  }

  .video-box {
    position: relative;
    width: 66.666%;
    margin-top: 75px;
  }

  .video-text {
    position: absolute;
    bottom: 0.3rem; /* ⬅ lower it closer to the bottom */
    left: 0.3rem;   /* ⬅ inset from left edge */
    right: 0.3rem;  /* ⬅ inset from right edge */
    transform: none; /* no centering, since we're stretching it */

    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.75rem;
    font-size: 0.5rem;
    line-height: 1.4;
    font-weight: 400;
    border-radius: 8px;
    text-align: center;
    max-width: unset; /* allow full width */
  }

  .blog-card-section .column {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 auto 1rem; /* center and add spacing */
  }

  .blog-card {
    font-size: 0.7rem;
    line-height: 1.3;
    aspect-ratio: 1 / 1; /* ensures square cards */
    width: 100%;         /* fill the column */
  }

  .blog-card .content {
    padding: 0.75rem;
  }
  
  @media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
      .title-wrapper h1.title {
        padding-bottom: 0.4em; /* extra space for Safari on iOS */
      }
    }
  }
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
  .video-box {
    margin-top: 8rem; /* Push it further down */
  }
}