.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

.justify-text {
    flex: 1 1 0%;
    text-align: justify;
    color: black;
    line-height: 1.6;
    margin: 2em auto 0;       /* no offset */
    margin-top: 2em;  /* space from header */
    padding: 0;      /* clean padding */
    width: 150%;     /* full width */
    font-size: 1.1em;
    font-stretch: expanded;
    transform: translateX(-15%); /* shift left by half of extra width */
}
.justify-text h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: black
}

/* Custom CSS for Home Page button */

.btn-small {
  display: inline-block;
  padding: 0.3em 0.8em;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 0.3em;
  text-decoration: none;
  color: #333;
  background-color: transparent;
  transition: 0.2s ease;
}

.btn-small:hover {
  background-color: #d3d3d3;
  color: #333333;
}

/* Custom CSS for footer */

.custom-footer {
  padding: 1em 2em;
  font-size: 0.9em;
  background-color: #f8f9fa;
  border-top: 1px solid #ccc;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.footer-left,
.footer-right {
  flex: 1 1 auto;
  min-width: 250px;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: #157878;
  text-decoration: none;
  margin-left: 0.5em;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Custom CSS for Table */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

/* Bigger font size for header */
th {
  background-color: #157878;
  color: white;
  font-size: 1.1rem;
  text-align: center;
}

/* Smaller font size for table cells */
td {
  font-size: 0.9rem;
  text-align: left;
}


/* Custom CSS for Pathways */

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin-top: 1.5em;
  width: 150%;     /* full width */
  transform: translateX(-15%); /* shift left by half of extra width */
  margin-left: auto;
  margin-right: auto;
}
.pathway-card {
  border-radius: 12px;
  padding: 1.2em;
  background-color:rgba(0, 37, 66, 0.70);
  color: white;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.pathway-card:hover {
  background-color:rgba(0, 37, 66, 0.70);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

.pathway-card h3 {
  margin-top: 0;
  font-size: 1.3em;
  font-weight: bold;
  color: rgba(0, 37, 66, 0.70);
}

.pathway-card h3 a {
  color: white;          
  text-decoration: none;   /* Optional: remove underline */
}

.pathway-card h3 a:hover {
  text-decoration: none;  /* Optional: underline on hover */
}

.pathway-card p {
  margin: 0.5em 0;
  color: #eaeaea; /* Lighter text for body */
  font-size: 0.9em;
}

.pathway-card .tags {
  margin-top: 0.5em;
}

.pathway-card .tags span {
  display: inline-block;
  background-color: #ffffff;
  color: rgba(0, 37, 66, 0.70);
  font-size: 0.65em;
  font-weight: bold;
  padding: 0.3em 0.6em;
  margin: 0.2em 0.2em 0 0;
  border-radius: 4px;
  font-family: monospace;
}

/* Custom CSS for Pathway content */
.pathway-content h2 {
  font-size: 1.5em;
  font-weight: semi-bold;
  margin: 2em 0 0.5em;  /* space from header */
  line-height: 1.6;
  padding: 0;   
  color: black;
  text-align: left;
  width: 100%;     /* full width */
  font-stretch: expanded;
}
.pathway-content p {
  color: black;
  width: 100%;     /* full width */
  font-stretch: expanded;
  font-size: 1.1em;
  text-align: left;
}
.pathway-content th {
  background-color:rgba(0, 37, 66, 0.852);
  color: white;               /* text color */
  padding: 0.5rem;
  text-align: left;           /* optional */
  font-weight: 600;           /* optional */
  font-size: 1.1em;
}
.pathway-content table {
  width: 100%;
  margin: 1em auto 1em; /* Center the table */
  border-collapse: collapse;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}
.pathway-content table:colgroup {
  background-color: #0b466d; /* Header background color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.pathway-content td {
  padding: 0.5rem;
  vertical-align: top;
  color: black;
}
.pathway-content td,
.pathway-content a {
  color: black;
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 0.95em;
}
/* Hover/focus state for links */
.pathway-content a:hover,
.pathway-content a:focus {
  color: #b5b5b5; /* Adjust hover color as needed */
  background-color: rgba(255, 255, 255, 0.08); /* Use background-color for clarity */
  text-decoration: none; /* Optional: underline on hover */
  text-align: center;
}


/* -------- Tutorial Group Layout -------- */

/* Group title styling */

.tutorial-group h2 {
  font-size: 1.5em;
  font-weight: semi-bold;
  margin: 2em 0 0.5em;  /* space from header */
  line-height: 1.6;
  padding: 0;   
  color: black;
  text-align: left;
  width: 150%;     /* full width */
  font-stretch: expanded;
  display: block;
  transform: translateX(-15%); /* shift left by half of extra width */
}

/* Group description styling */
.tutorial-group p {
  color: black;
  width: 150%;     /* full width */
  font-stretch: expanded;
  display: block;
  transform: translateX(-15%); /* shift left by half of extra width */
  font-size: 1.1em;
  text-align: left;
}

.tutorial-group th {
  background-color:rgba(0, 37, 66, 0.852);
  color: white;               /* text color */
  padding: 0.5rem;
  text-align: left;           /* optional */
  font-weight: 600;           /* optional */
}

/* Table cell styling */
.tutorial-group td {
  padding: 0.5rem;
  vertical-align: top;
  color: black;
}

/* Link and td shared styles */
.tutorial-group td,
.tutorial-group a {
  color: black;
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 0.95em;
}

/* Hover/focus state for links */
.tutorial-group a:hover,
.tutorial-group a:focus {
  color: #b5b5b5; /* Adjust hover color as needed */
  background-color: rgba(255, 255, 255, 0.08); /* Use background-color for clarity */
  text-decoration: none; /* Optional: underline on hover */
  text-align: center;
}
.tutorial-group table {
  width: 150%;
  margin: 1rem auto 1em; /* Center the table */
  border-collapse: collapse;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transform: translateX(-15%);
}
.tutorial-group table:colgroup {
  background-color: #0b466d; /* Header background color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.logo {
  height: 80px;
  vertical-align: top;
  margin-right: 16px;
  margin-bottom: 16px;
}

.page-header {
  background: url("/training/assets/img/background_dekcd.original.png") center/cover no-repeat;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 4em 2em;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.page-header h1,
.page-header h2,
.page-header a {
  position: relative;
  z-index: 1; /* ensure content is above overlay */
}

.page-header h1 {
  font-size: 2.5em;
  font-weight: bold;
}

.page-header h2 {
  font-size: 1.5em;
}

/* Drop-down for FAQ*/
details {
  margin: 1em 0;
  padding: 0.95em 1em;
  border: 0.5px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: background 0.3s;
}

details:hover {
  background: #f1f1f1;
}

details summary {
  cursor: pointer;
  font-weight: semi-bold;
  font-size: 1.1em;
}

details[open] {
  background: #eef6ff;
  border-color: #0b466d;
}

details.answer-block summary {
  font-weight: semi-bold;
}

details.answer-block div {
  padding-left: 15px;
  margin-top: 5px;
  font-size: 1em;
}
