@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Libre Franklin', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url("../images/bg-tile.png");
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
}

header {
  background-color: #ffffff;
  background: url('../images/header-bg.jpg') no-repeat center center;
  background-size: cover; /* ensures image covers entire header area */
  color: #333;
  padding: 1rem;
  text-align: center;
}

header img {
	max-width: 100%;
    height: auto;
}

nav {
  background-color: #e0e0e0;
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  padding: 1rem;
  cursor: pointer;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.menu-item {
  position: relative;
}

.menu > .menu-item > a {
  display: block;
  padding: 1rem;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-item:hover {
  background-color: #555;
}

.menu-item:hover > a {
  color: #fff;
}

.dropdown {
  display: none;
  position: absolute;
  background-color: #f2f2f2;
  min-width: 200px;
  z-index: 1000;
  border: 1px solid #ccc;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dropdown a {
  padding: 0.75rem 1rem;
  display: block;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown a:hover {
  background-color: #555;
  color: #fff;
}

.menu-item:hover .dropdown {
  display: block;
}

main {
  flex-grow: 1;
  padding: 2rem;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
}

.announcement {
  background-color: #ffffff;
  color: #222222;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-weight: 400;
  font-size: 0.9rem;
}

.announcement h2 {
  background-color: #e0e0e0;
  color: #333;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ccc;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 1.2rem;
}

.announcement-section {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.announcement-section h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  border-left: 4px solid #555;
  padding-left: 0.5rem;
}

.announcement-section ol {
  margin: 0 0 1rem 1.2rem;
  padding-left: 0.8rem;
}

.announcement-section li {
  margin: 0.5rem 0;
  line-height: 1.5;
  color: #333;
  position: relative;
}

.announcement-section li::marker {
  color: #555;
  font-weight: bold;
}

.toc {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.toc h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--announcement-header-bg);
  margin-bottom: 0.5rem;
}

.toc ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin: 0.4rem 0;
}

.toc a {
  text-decoration: none;
  color: var(--announcement-header-bg);
  font-weight: 600;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: #a0a0a0;
}

footer {
  background-color: #333;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 12px;
}

.quote-box {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  background-color: #f5f5f5;
  border-left: 5px solid #333;
  border-radius: 6px;
  font-style: italic;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.career-path {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background-color: var(--announcement-bg);
  color: var(--announcement-text);
  box-shadow: 0 2px 10px var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.career-path th, 
.career-path td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--nav-border);
}

.career-path th {
  background-color: #333;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

.career-path tr:nth-child(even) {
  background-color: rgba(0,0,0,0.03);
}

.career-path tr:hover {
  background-color: rgba(0,0,0,0.07);
}

.table.offence {
  width: 100%;
  border: 1px solid #99c2ff;
  border-collapse: collapse;
  color: #0b3d91;
  font-weight: 600;
  margin-bottom: 20px;
}

.table.offence td {
  padding: 8px 12px;
}

.table.offence tr {
  background-color: #e6f0fa;
}

.table.offence tr:nth-child(even) {
  background-color: #cce0ff;
}

.table.offence tr:hover {
  background-color: #99c2ff;
}

.table.penalty {
  width: 100%;
  border: 1px solid #ffdada;
  border-collapse: collapse;
  color: #a33;
  font-weight: 600;
  margin-bottom: 20px;
}

.table.penalty td {
  padding: 8px 12px;
}

.table.penalty tr {
  background-color: #fff5f5;
}

.table.penalty tr:nth-child(even) {
  background-color: #ffecec;
}

.table.penalty tr:hover {
  background-color: #ffdada;
}

.commissioner-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.commissioner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.commissioner-photo {
  width: 260px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px; /* rounded corners */
  border: 1px solid #bbb; /* dark grey border */
  box-shadow: 0 4px 10px rgba(0,0,0,0.35); /* soft shadow */
}

.commissioner-info h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  line-height: 1.1;
}

.commissioner-title {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  color: #555;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .menu.show {
    display: flex;
  }

  .dropdown {
    position: static;
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    box-shadow: none;
  }

  .menu-item:hover .dropdown {
    display: none;
  }

  .menu-item.active .dropdown {
    display: block;
  }
  
  .commissioner-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .commissioner-photo {
    margin-bottom: 0.8rem;
  }
}