body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 0;
  counter-reset: experience-counter;
}

h1 {
  margin-bottom: 10px;
  margin-top: 15px;
  font-size: 36px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 26px;
    margin-top: 10px;
  }
}

header {
  background-color: #00695c; /* Dark Emerald Green*/
  color: white;
  text-align: center;
  padding: 1px;
}

.last-updated-header {
  font-weight: bold;
  margin-top: -12px;
}

@media only screen and (max-width: 767px) {
  .last-updated-header {
    font-weight: bold;
    margin-top: -13px;
    font-size: 12px;
  }
}

/* Adjust header padding on small screens */
@media only screen and (max-width: 767px) {
  header {
    padding: 4px 0; /* Small padding for smaller screens */
  }
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: underline;
  gap: 5px;
  margin-bottom: 8px;
}

.contact-info .icon img {
  display: block;
}

.contact-info .text {
  font-weight: bold;
}

@media only screen and (max-width: 767px) {
  .contact-info .text {
    font-size: 14px;
  }
  .contact-info {
    margin-top: -10px;
  }
}

.navbar {
  display: flex;
  justify-content: center;
  position: relative;
}

.menu-btn {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 10px;
}

@media screen and (max-width: 767px) {
  .menu-btn {
    padding: 5px 5px;
    font-size: 16px;
  }
}
.menu-btn:focus {
  outline: 2px solid black;
  outline-offset: 2px;
}

.menu-btn:hover {
  background-color: #3498db; /* Belize Hole */
  color: white; /* ensures good contrast */
}

.nav-list.active {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0px;
  padding: 3px;
  display: none;
  position: absolute;
  background-color: #3498db; /* main accent blue */
  border-radius: 8px;
  top: 50px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  box-shadow: 0 9px 9px rgba(0, 0, 0, 0.2);
  text-align: left;
  counter-reset: nav-counter;
}

.nav-list li {
  border-bottom: 1px solid #fff;
  position: relative;
  display: flex;
  align-items: center;
  font-size: 16px;
}

@media only screen and (max-width: 767px) {
  .nav-list li {
    font-size: 14px;
  }
}

.nav-list li:last-child {
  border-bottom: none;
}

.nav-list li::before {
  font-family: "Open Sans", sans-serif;
  counter-increment: nav-counter;
  content: counter(nav-counter) ". ";
  color: white;
  margin-right: -7px;
  padding: 5px;
}

.nav-list li:hover::before {
  font-weight: bold;
  color: white;
}

.nav-list li a {
  color: white;
  display: block;
  padding: 6px 10px;
  position: relative; /* remove absolute */
  text-decoration: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.nav-list li:hover {
  background-color: #2980b9;
}

.nav-list li:hover a {
  font-weight: bold;
  text-shadow: 5px 5px 8px rgba(7, 8, 0, 0.3);
}

.intro {
  margin-top: 25px;
  margin-bottom: -10px;
  margin-left: 30px;
  margin-right: 30px;
  border: 1px solid #00695c;
  border-radius: 10px;
}

.container {
  margin-top: 35px;
  margin-left: 30px;
  margin-right: 30px;
  border: 1px solid #00695c;
  border-radius: 10px;
  background-color: #fff;
}

@media (max-width: 768px) {
  .intro,
  .container {
    margin-left: 5px;
    margin-right: 5px;
  }
  .intro {
    margin-top: 20px;
  }
}

.welcome h2 {
  font-size: 26px;
  text-align: left;
  margin-bottom: 0px;
  margin-left: 20px;
}

.welcome p {
  text-indent: 2em;
  padding: 1em;
  margin-top: -3px;
  text-align: justify;
  font-size: 18px;
}

@media only screen and (max-width: 767px) {
  .welcome {
    margin-left: -7px;
    margin-right: -7px;
  }
  .welcome h2 {
    font-size: 20px;
  }
  .welcome p {
    font-size: 16px;
  }
}

.category-heading {
  padding: 5px 5px;
  margin-left: 5px;
  margin-right: 5px;
}

.category-heading h2 {
  font-size: 24px;
  color: #fff;
  background-color: #3498db;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
  margin-bottom: 25px;
}

@media only screen and (max-width: 767px) {
  .category-heading h2 {
    font-size: 20px;
    padding: 10px 15px;
    margin-top: 15px;
    margin-bottom: 20px;
  }
}

/* Number each main category (Teaching, Sales, etc.) */
.experience-category .category-heading > h2::before {
  counter-increment: experience-counter;
  content: counter(experience-counter) ". ";
  color: #fff;
  font-weight: bold;
  margin-right: 6px;
}

.job-section {
  background-color: #f4f4f9;
  padding: 5px 15px;
  max-width: auto;
  border: 1px solid black;
  border-radius: 10px;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 15px;
}
@media only screen and (max-width: 767px) {
  .job-section {
    padding: 0px 5px;
    margin-left: 6px;
    margin-right: 6px;
  }
}

.job-heading {
  padding: 0px 5px;
  margin-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
  border-radius: 10px;
  background-color: #00695c;
}
.job-heading h3 {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  color: white;
  border-left: 8px solid white;
  border-top: 2px solid white;
  padding: 8px 12px;
  border-radius: 9px;
  margin-top: 15px;
  margin-bottom: 12px;
}

@media only screen and (max-width: 767px) {
  .job-heading h3 {
    font-size: 18px;
  }
}

.job-info dt {
  font-weight: bold;
  font-size: 18px;
  color: #00695c; /* dark green accent */
  margin-top: 13px;
  margin-bottom: 6px;
}

.job-info dd {
  margin-left: 0; /* remove default indent */
  font-size: 18px;
  margin-bottom: 8px;
  padding-left: 5px; /* small space for neatness */
  color: #2c3e50; /* dark gray text */
}

@media only screen and (max-width: 767px) {
  .job-info dt,
  .job-info dd {
    font-size: 14px;
  }
}

ul {
  list-style: none;
  padding-left: 1em;
}

ul li::before {
  content: "✔ ";
  color: black;
}

.challenges-table {
  width: 100%;
  border-spacing: 0;
  font-family: "Poppins", sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.challenges-table th {
  background-color: #3498db;
  color: white;
}

.challenges-table th,
.challenges-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: top;
}

.challenges-table th:last-child,
.challenges-table td:last-child {
  border-right: none;
}

.challenges-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.challenges-table tr:hover {
  background-color: #ecf9f1;
}

@media (max-width: 768px) {
  .challenges-table {
    display: block;
    width: 100%;
  }
  .challenges-table td {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 4px;
    position: relative;
    font-size: 0.9em;
  }
  .challenges-table th {
    padding: 4px;
    font-size: 1em;
  }
  .challenges-table td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }
}

.previews {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* space between images */
  justify-content: center; /* center-align rows */
}

.previews figure {
  flex: 1 1 calc(50% - 20px); /* two per row */
  max-width: 600px;
  box-sizing: border-box;
}

.previews img {
  width: 100%; /* fill the figure box */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  border: 1px solid black;
}

figure {
  margin: 0;
  padding: 0;
}

figcaption {
  font-size: 0.95em; /* Slightly smaller than body text */
  font-weight: bold;
  color: #555; /* Soft gray text */
  margin-top: 4px; /* Space above the caption */
  margin-bottom: 10px;
  font-style: italic; /* Optional: italic text */
  line-height: 1.4; /* Good readability */
}

@media screen and (max-width: 768px) {
  .previews {
    flex: 1 1 45%; /* Two items per row */
  }

  .previews img {
    max-width: 100%; /* Ensure images fit on smaller screens */
    height: auto;
  }
}

@media (max-width: 600px) {
  .previews {
    flex: 1 1 100%; /* Full width for each item */
    margin: 5px 0;
    flex-direction: column; /* Stack items vertically */
  }
}

.last-thank {
  padding: 1px 100px;
}

.last-thank p {
  font-size: 18px;
  font-weight: bold;
}

@media only screen and (max-width: 767px) {
  .last-thank {
    padding: 0px 20px;
  }
  .last-thank p {
    font-size: 14px;
  }
}

#scrollToTopBtn {
  position: fixed;
  bottom: 37px;
  right: 20px;
  background: #00695c;
  color: white;
  padding: 0.5em 0.8em;
  border-radius: 50%;
  display: none;
  cursor: pointer;
  font-size: 18px;
  height: 25px;
}

#scrollToTopBtn:hover {
  opacity: 0.8; /* Reduces the button's opacity to 80% of its original value when hovered over */
  transform: scale(
    1.1
  ); /* Increases the size of the button by 10% when hovered over */
}

/* Show the button when scrolling down 20px from the top */
#scrollToTopBtn.show {
  /* ".show" from the JavaScript: when the user scrolls down, triggering the button to appear */
  display: block; /* makes the button visible and ensures it behaves like a block element */
}

/* Adjustments for the screens smaller than 768px (usually mobile devices) */
@media (max-width: 600px) {
  #scrollToTopBtn {
    bottom: 35px;
    right: 10px;
    font-size: 12px;
    padding: 9px;
    height: 15px;
  }
}

html {
  scroll-behavior: smooth;
}

.footer {
  background-color: #00695c;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #f2f2f2;
  margin-top: 10px;
}

/* Footer adjustments for small screens */
@media screen and (max-width: 768px) {
  .footer {
    padding: 10px 0;
    font-size: 12px;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  color: #3498db;
  text-decoration: underline;
}

#last-updated-footer,
#last-updated-header {
  font-style: italic;
}

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