* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* adding this to see what is overflowing */
  /* outline: 1px solid red; */
}

body {
  min-height: 100vh;
}

.navbar {
  margin: 0;
  padding: 0;
  display: flex;
  background-image: linear-gradient(180deg, #0b1f3b, #143768);
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: Arial, Helvetica, sans-serif;
}

.business-mission {
  color: #286ccb;
  margin-top: 2%;
}

.view-resume {
  color: #286ccb;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 550;
}

.view-resume:hover {
  color: #286ccb;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 550;
  text-decoration: underline;
  cursor: pointer;
}

ol {
  padding-left: 2rem;
  line-height: 1.6;
  list-style: decimal;
  font-family: Arial, Helvetica, sans-serif;
}

ul {
  line-height: 1.6;
  font-family: Arial, Helvetica, sans-serif;
  padding-left: 2rem;
}

.navbar li {
  list-style-type: none;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-link {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  font-size: larger;
  font-family: Arial, Helvetica, sans-serif;
}

.logo-link {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  font-size: larger;
  font-family: Arial, Helvetica, sans-serif;
}

.nav-link:hover {
  background-color: #163b73;
}

.nav-link.active {
  background-color: #163b73;
}

.nav-header {
  background-image: linear-gradient(180deg, #0b1f3b, #143768);
  align-items: center;
  display: none;
}

.hamburger-icon {
  display: none;
  cursor: pointer;
  font-size: 50px;
  color: white;
  padding: 14px 16px;
}

.hamburger-icon:hover {
  background-color: #163b73;
}

.hamburger-icon.active {
  background-color: #163b73;
}

.logo {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 680px) {
  .nav-link {
    display: none;
  }

  .logo-link {
    display: none;
  }

  #mobile-logo {
    height: 30px;
    width: auto;
  }

  .hamburger-icon {
    display: block;
  }

  .nav-header {
    display: flex;
  }

  .card-grid {
    justify-content: center;
  }

  .card {
    width: 100%;
    max-width: 350px;
  }

  html {
    scroll-padding-top: 45px;
  }

  .contact-info {
    margin-bottom: 15px;
  }

  #snackbar {
    min-width: 90%;
    font-size: 15px;
    padding: 12px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.dropdown {
  margin: 0;
  padding: 0;
  background-image: linear-gradient(180deg, #0b1f3b, #143768);
  position: sticky;
}

.dropdown li a {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-family: Arial, Helvetica, sans-serif;
}

.banner {
  background-image: linear-gradient(180deg, rgb(36, 35, 35), #343434);
  align-items: center;
  display: block;
  color: white;
  scroll-margin-top: 65px;
}

.banner h1 {
  font-size: 3rem;
  font-family: Arial, Helvetica, sans-serif;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding-left: 5px;
}

.img-wrap {
  justify-content: center;
}

img {
  display: block;
  height: auto;
  width: 30%;
  margin: auto;
}

.contact-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-left: 10%;
  justify-content: center;
}

.contact-page,
.contact-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: Arial, Helvetica, sans-serif;
  padding-left: 0;
}

.contact-page input,
.contact-page textarea,
.contact-page select,
.news-search {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 2px;
  border: 1px solid #ddd;
  resize: vertical;
}

select {
  font-weight: bold;
}

option {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.news-search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

textarea {
  height: 200px;
  min-height: 150px;
}

#submit-btn {
  width: auto;
  max-width: 150px;
  padding: 12px 20px;
  margin-bottom: 10px;
  box-sizing: border-box;
  background-color: #163b73;
  color: white;
  border: none;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: large;
  cursor: pointer;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0px;
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  border-radius: 4px;
  overflow: hidden;
  background: white;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}

.card .container {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card .container p {
  flex-grow: 1;
}

.leadership-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

.footer {
  font-size: medium;
  background-image: linear-gradient(180deg, #0b1f3b, #143768);
  font-family:
    Arial,
    Helvetica,
    Open Sans,
    sans-serif;
  text-align: center;
  line-height: 50px;
  color: white;
}

/* these three might be problematic and conflicting */
.mySlides {
  display: none;
  position: relative; /* CRUCIAL - positions .text inside each slide */
  height: 300px; /* Matches img height */
}

/* Slideshow container */
.slideshow-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 0;
}

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: 0.5rem auto; /* Adds top/bottom gap to other sections */
  padding: 0; /* Removes any inherited padding */
  height: 300px; /* Slightly taller than img to fit overlays */
  overflow: hidden;
}

.slideshow-container + br {
  display: none !important;
}

.dots-container {
  text-align: center;
  margin-top: 20px;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  display: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.text {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent banner */
  color: white;
  font-size: 25px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  padding: 15px 20px;
  text-align: center;
  margin: 0;
  z-index: 2; /* Above image */
}

/* Remove extra spacing */
.slideshow-container + br {
  display: none;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev,
  .next,
  .text {
    font-size: 11px;
  }
}

.news-main {
  max-width: 900px;
  margin: 80px auto 40px;
  padding: 0 16px;
}

.news-title {
  margin-bottom: 8px;
}

.news-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.news-body {
  line-height: 1.6;
  margin-bottom: 10px;
}

.news-article {
  padding: 20px 16px;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  scroll-margin-top: 100px;
}

.news-article img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  margin: 0 0 10px 0;
  display: block;
}

.news-search-bar {
  width: 250px;
  height: 32px;
  max-width: 90%;
  padding: 0 12px;
  border: 1px solid #4a5e82;
  border-radius: 4px;
  font-size: 14px;
}

/* modal stuff */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.resume-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 16px;
}

.logo-link img,
.logo img {
  height: 40px;
  width: auto;
  margin: 0;
}

.modal-name {
  text-align: center;
  margin: 0 0 4px;
  color: #0b1f3b;
}

.modal-title {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 0 0 20px;
}

.resume-modal .close {
  position: absolute;
  top: 10px;
  right: 16px;
  color: #666;
  font-size: 28px;
  cursor: pointer;
}

.resume-modal .close:hover {
  color: #000;
}

.resume-modal .modal-content {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  max-height: 80vh; /* ADD THIS - limits modal height */
  display: flex; /* ADD THIS - for proper layout */
  flex-direction: column; /* ADD THIS */
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-image: linear-gradient(180deg, #0b1f3b, #143768);
  color: white;
}

.modal-body {
  padding: 16px;
  overflow-y: auto; /* ADD THIS - enables scrolling */
  flex: 1; /* ADD THIS - takes available space */
}

.modal-body p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.modal-body p:first-of-type {
  font-size: 1.05em;
  color: #333;
}

.resume-modal .modal-body {
  padding: 24px 32px;
}

.mfg-item {
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #f5f5f5;
}

.mfg-item:hover {
  background-color: #e3f2fd; /* Subtle color change */
  transform: translateX(5px); /* Slight slide right */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* for Galazy Z Fold 5 */
@media (max-width: 345px) {
  #mobile-logo {
    height: 30px;
    padding: 1px;
  }
}

.error {
  display: none;
  color: red;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.error.visible {
  display: inline;
}

#snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #00d12d;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
  transform: translateX(-50%);
}

#snackbar.show {
  visibility: visible;
  -webkit-animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
  animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

.news-section {
  line-height: 1.6rem;
}
