/* Global Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: rgb(255, 255, 255);
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Header & Navbar */
header {
  background-color: rgba(255, 255, 255, 0.95); /* Slight transparency */
  backdrop-filter: blur(10px); /* Modern blur effect */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Softer shadow */
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #004080;
}

.logo-img {
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Navigation Menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #fdfd3e;
  color: #020202;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  font-weight: 400;
  cursor: pointer;
  color: #000000;
  z-index: 1001; /* Above overlay */
}

/* Mobile Overlay Navigation */
@media (max-width: 873px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110vh;
    background-color: rgb(255, 255, 0); /* Dark blue overlay */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%); /* Hidden by default */
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
  }

  nav ul.show {
    transform: translateY(0); /* Slide down */
  }

  nav ul li a {
    color: #020202;
    font-size: 1.5rem;
    padding: 10px 20px;
  }

  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  max-height: fit-content;
}

.mySlide {
  display: none;
}

.slide-img {
  width: 100%;
  height: auto;
  display: block;
}

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

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

/* Sections */
section {
  padding: 2rem 2rem;
}

.section-container {
  margin: auto;
}

.section-title {
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: #0d0e0d;
  font-weight: bold;
  padding-bottom: 1rem;
  border-radius: 8px;
  text-align: center;
}

.section-title:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  background-image: linear-gradient(
    90deg,
    rgb(239, 245, 239),
    rgb(252, 250, 154)
  );
  color: #004080; /* Optional: Change text color on hover for better contrast */
}

.section-card {
  background: #fff;
  background-image: linear-gradient(
    90deg,
    rgb(239, 245, 239),
    rgb(252, 250, 154)
  );
  padding: 2rem;
  border-radius: 12px; /* Softer corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Softer shadow */
  border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle border */
  margin-bottom: 1.5rem;

  /* Transition for hover effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* Entrance Animation */
  opacity: 0; /* Start invisible */
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation delays */
.section-card:nth-child(1) {
  animation-delay: 0.1s;
}
.section-card:nth-child(2) {
  animation-delay: 0.2s;
}
.section-card:nth-child(3) {
  animation-delay: 0.3s;
}
.section-card:nth-child(4) {
  animation-delay: 0.4s;
}
.section-card:nth-child(5) {
  animation-delay: 0.5s;
}
.section-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-card:hover {
  transform: translateY(-5px);
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); /* Deeper but soft shadow on hover */
}

.section-subtitle {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #0d0e0d;
  font-weight: bold;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
}
.section-card-footer {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  color: #020202;
  font-weight: 400;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-image: linear-gradient(
    90deg,
    rgb(239, 245, 239),
    rgb(252, 250, 154)
  );
  width: auto;
}

.section-card-footer:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background-color: #004080;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  color: #fffdfd;
  font-size: 1rem;
  font-weight: 400;
  padding: 1rem;
  border-top: 0px solid #ccc;
  background-color: #000000;
}

/* Organizational Chart Styles */
.chart-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.level {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  padding: 20px 0;
}

.col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
  position: relative;
}

.node {
  background: #fffffb;
  border: 1px solid #e0e0e0;
  border-top: 4px solid #000000; /* Professional accent top border */
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-image: linear-gradient(
    90deg,
    rgb(239, 245, 239),
    rgb(252, 250, 154)
  );
}

.node:hover {
  transform: translateY(-5px);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #fcff63;
}

.node h4 {
  margin-bottom: 5px;
  color: #111111;
  font-size: 1.1rem;
}

.node p {
  font-size: 0.9rem;
  margin: 0;
  color: #050505;
  font-weight: 400;
}

/* Connectors */
.connectors {
  height: 20px;
  width: 1px;
  background: #004080;
  margin: 0 auto;
}

/* Horizontal connector line for siblings */
.level .col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 1;
}

/* Hide horizontal line for single child or first/last adjustments */
.level .col:first-child::before {
  left: 50%;
}

.level .col:last-child::before {
  right: 50%;
}

.level .col:only-child::before {
  display: none;
}

/* Vertical line from parent to horizontal line */
.level .col::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 20px;
  width: 1px;
  background: #ffffff;
  transform: translateX(-50%);
}
