/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
    /*background-image: url("/static/resources/bg-1.png");*/
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* ================= HEADER ================== */
header {
  width: 100%;
  background-color: #57b894;
  border-bottom: 1px solid rgba(16, 16, 16, 0.1);
  height: 55px; /* keep this */
  display: flex;            /* make header a flex container */
  align-items: center;      /* vertically center .inner */
  justify-content: center;  /* optional: center .inner horizontally */
}

header .inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  min-height: 55px; /* ensure inner takes full height of header */
  box-sizing: border-box;
}

/* ================= LOGO ================== */
header .logo {
  display: flex;
  align-items: center;
}

header .logo h1 {
    font-size: 24px;
    color: #003366;
}

header .logo h1 span {
    color: #f8f8f8;
}

header .logo a {
    text-decoration: none;
    color: inherit;
}

header .logo a:hover {
    color: #0056b3;
}

/* ================= NAV ================== */
header nav {
  display: flex;
  align-items: center;
  gap: 30px;  /* space between nav items */
}

header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 30px;
  align-items: center;
}

header nav li {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-transform: capitalize;
  letter-spacing: 1px;
}

header nav a {
    color: white;
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s, border-bottom 0.3s;
}

header nav a:hover,
header nav a.active {
    color: #003366;
    background-color: rgba(255, 255, 255, 0.2);
}

header nav a.active {
    border-bottom: 2px solid white;
}

/* ================= DROPDOWN ================== */
.sp-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.sp-dropbtn {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.sp-circle {
    width: 36px;
    height: 36px;
    background-color: #57b894;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sp-arrow {
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-left: 5px;
    transform: rotate(45deg);
    transition: transform 0.3s, border-color 0.3s;
}

/* Hover styles */
.sp-dropbtn:hover .sp-circle,
.sp-dropbtn:hover .sp-arrow {
    border-color: #003366;
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.8);
}

.sp-dropdown:hover .sp-arrow {
    transform: rotate(225deg);
}

/* Dropdown content */
.sp-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #57b894;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 100px;
    z-index: 1;
}

.sp-dropdown-content a {
    color: white;
    display: block;
    padding: 10px 15px;
    font-size: 12px;
    transition: background-color 0.3s;
    text-align: left;
}

.sp-dropdown-content a:hover {
    background-color: #3e8c6f; /* #66deb2;*/
}

.sp-dropdown:hover .sp-dropdown-content {
    display: block;
}

/*MEDIA QUERY*/
@media (max-width: 600px) {
  header {
    height: auto; /* allow height to adjust */
  }

  header .inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  header nav li {
    font-size: 14px;
  }
}

