* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: Arial, Helvetica, sans-serif;
}
.TESDA-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.STS-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.logo {
  height: 40px;
  width: auto;
}
.sticky-header {
  max-height: 90px;
  position: sticky;
  top: 0px;
  color: white;
  padding: 0.7rem;
  z-index: 1000; /* ensures it stays above other content */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* optional: gives it a subtle shadow */
}
/* Navigation Base Styles (from earlier) */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  position: relative;
}

nav ul li {
  position: relative;
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  font-size: 0.8rem;
}
/* Dropdown Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #555;
  top: 100%;
  left: 0;
  min-width: 150px;
  z-index: 1;
  border-radius: 4px;
}

.dropdown-menu li {
  margin: 0;
  text-align: left;
}

.dropdown-menu li a {
  padding: 10px;
  color: white;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a:hover {
  background-color: #666;
}

.dropdown {
  font-size: 15px;
}
header {
  background-color: #150259;
  color: #fff;
  padding: 1rem;
}
/* Flex container */
.content-wrapper {
  display: flex;
  flex: 3;
  gap: 20px;
  /* spacing between main and sidebar */
  padding: 20px;
}
.welcome-content {
  flex: 3;
  /* takes 3 parts */
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.welcome-content p {
  flex: 3;
  /* takes 3 parts */
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  text-align: justify;
}
/* Main section: take more space */
.main-content {
  background-color: #f4f4f4;
  flex: 3;
  padding: 20px;
  border-radius: 8px;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}
.left-heading {
  text-align: left;
}
.DPO-wrapper {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  align-items: center;
  margin-bottom: 30px;
}
/* Sidebar section: take less space */
.sidebar {
  flex: 1;
  /* takes 1 part */
  background-color: #e0e0e0;
  padding: 20px;
  border-radius: 8px;
}
.sidebar h3,
img {
  text-align: center;
}
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 300px;
  margin-right: 25px;
  overflow: hidden;
  border: 12px solid #0477bf;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}
/* Individual white box */
.info-box {
  margin-top: 40px;
  flex: 1;
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
/* Text inside boxes */
.info-box h3 {
  font-size: 20px;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.info-box p {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
  text-align: left;
}

.info-box a {
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}
/* Hover effect */
.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
/* Footer */
footer {
  background-color: #686868;
  color: #fff;
  text-align: center;
  padding: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
}
.footer-style {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
section img {
  padding: 20px;
}
tr,
td {
  border: 1px #333;
  border-style: solid;
  margin-block: 40px;
  border-collapse: collapse;
  text-align: left;
  padding: 10px;
}
table thead {
  background-color: rgb(52, 231, 255);
}
.assessment-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 1200px;
  margin: 0 auto; /* centers the table */
  border-collapse: collapse;
}
.assessment-table th:first-child,
.assessment-table td:first-child {
  padding-left: 16px;
}
.list-style {
  list-style: none;
  margin-left: 20px;
}
.history-paragraph {
  text-indent: 2em;
  text-align: justify;
  margin-bottom: 1rem;
}
.centered-profile {
  text-align: center;
}
/* Admin Section */
.admin-box {
  background-color: #1e3a8a;
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Grid Layout for Personnel */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.person-box {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.person-box h3 {
  margin-bottom: 10px;
  color: #1e3a8a;
}

.person-box p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.centered-body {
  width: 77%;
  margin: 0 auto;
  /* Centers the element horizontally */
}

/* CSS */
.rounded-img {
  border-radius: 15px;
  width: 200px;
}

.fancy-img {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  width: 300px;
}

.fancy-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
