body {
    /* font-family: "Lexend", Helvetica, sans-serif; */
    /* font-family: "Inter", Helvetica, arial, sans-serif; */
    font-family: Helvetica, sans-serif;
    background-color: #100050;
}

#container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#header {
    margin: 0px;
    padding: 0px;
    height: 800px;
    background-image: url("people_1536x1024.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
    background-size: 1200px auto;
    position: relative;
    z-index: 1;    
}

#header-title {
    font-family: "Kirang Haerang", Tahoma, sans-serif;
    font-weight: 400;
    color: white;
    text-shadow: 1px 1px 10px black;
        
    position: absolute;
    bottom: -40px;
    right: 10px;
    margin: 0px;
    padding: 0px;
    font-size: clamp(24px, 20vw, 160px); 
    /*font-size: clamp(1.5rem, 5vw, 3rem);*/
}

#navbar {
    position: sticky;
    top: 0;
    overflow: hidden;
    display: block;  
    padding: 14px 14px 14px 18px;
    background-color: #100030; 
    font-size: clamp(0.5em, 1.5vw, 1em);
}

/* 1. Hide the title by default and give it a smooth fade transition */
#navbar-title {
    font-family: "Kirang Haerang", Tahoma, sans-serif;
    font-weight: 400;
    color: white;
    text-shadow: 1px 1px 10px black;

    position: absolute;
    top: -26px;
    right: 10px;
    margin: 0px;
    padding: 0px;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. Show the title only when the parent navbar gets the 'is-sticky' class */
#navbar.is-sticky #navbar-title {
    opacity: 1;
    visibility: visible;
}

/* 3. Minor fix: Adjust the navbar image so it doesn't overflow awkwardly */
#navbar-image {
    position: relative;
    top: 15px; /* Adjusted slightly so it aligns nicely when it appears */
    right: 0px;
    margin: 0px;
    padding: 0px;
    z-index: 10;
}

/* --- Dropdown Menu System --- */

#dropdown-container {
    color: white;    
    /* The trick for smooth sliding: start at 0 height and 0 opacity */
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 99; /* Keeps it right beneath the sticky navbar */
}

/* When open, it smoothly animates out to accommodate content without overlapping */
#dropdown-container.open {
    max-height: 500px; /* Adjust this maximum height based on your menu text length */
    opacity: 1;
}

/* Individual panels inside the container */
.dropdown-panel {
    display: none; 
    line-height: 1.6;
}

/* Only display the selected panel */
.dropdown-panel.active {
    display: block;
}

/* The "X" Close Button */
.close-button {
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: #f2f2f2;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 101;
}

.close-button:hover {
    color: #ff4a4a; /* Turns subtle red on hover */
}

/* Both table-like wrappers share the exact same width and placement */
.menu-container {
    width: 100%;
}

.menu-row-header {
    display: grid;
    grid-template-columns: minmax(26%,26%) minmax(33%,33%) minmax(41%,41%); /* Matches widths across both tables */
    gap: 10px; 
    font-weight: 600;
}

.menu-row-header a {
    text-decoration: none;
    color: #ffff88;
}

.menu-row-header2 {
    color: #ffff88;
    padding-top: 24px;
}

/* Force rows in both tables to use identical grid column tracks */
.menu-row {
    display: grid;
    grid-template-columns: minmax(26%,26%) minmax(33%,33%) minmax(41%,41%); /* Matches widths across both tables */
    gap: 10px; 
    font-weight: 300;
    padding-top: 6px;
}

.menu-row a {
    text-decoration: none;
    color: white;
}

.menu-row2 {
    padding-top: 3px;
}

#content {
    background-color: white;
    padding-top: 72px;
    padding-bottom: 128px;
    padding-left: clamp(0.5rem, 26vw - 100px, 14rem);
    padding-right: clamp(0.5rem, 26vw - 100px, 14rem);
    line-height: 1.6;
    font-size: 0.95em;
    font-weight: 300;
}

#content ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.table-container {
  width: 100%;
  max-width: 600px; /* Aligns visually with the max-width of alert boxes */
  margin: 24px 0; /* Clear spacing from surrounding content blocks */
  overflow-x: auto; /* Ensures tables don't break mobile layouts */
  border: 1px solid #e2e8f0; /* Soft outer border */
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  text-align: left;
  background-color: #ffffff;
}

.content-table th {
  background-color: #f8fafc; /* Very subtle, cool grey/blue background */
  color: #334155; /* Slate color for readable, non-aggressive headers */
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.content-table td {
  padding: 12px 16px;
  color: #475569; /* Balanced contrast for body text */
  line-height: 1.5;
  border-bottom: 1px solid #f1f5f9; /* Soft separator between rows */
}

.content-table tbody tr:hover {
  background-color: #f8fafc; /* Gentle feedback on hover */
}

.content-table tbody tr:last-child td {
  border-bottom: none;
}

.content-table .num-col {
  text-align: right;
}

.alert-box {
  display: flex;
  gap: 12px;
  border-radius: 6px;
  padding: 16px 16px 0px 16px;
  max-width: 500px;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.alert-icon {
  flex-shrink: 0;
  margin-top: 2px; /* Vertically aligns main icon */
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-title {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.alert-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.alert-content ul {
  margin: 8px 0 0 0; 
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alert-content li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 2px;
}

.alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.alert-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.alert-link svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- WARNING VARIANT (Amber) --- */
.alert-box.is-warning { background-color: #fdf6e2; border-left: 4px solid #d97706; }
.alert-box.is-warning .alert-icon { color: #d97706; }
.alert-box.is-warning .alert-title { color: #78350f; }
.alert-box.is-warning .alert-text { color: #92400e; }
.alert-box.is-warning .alert-content li::marker { color: #d97706; }
/* .alert-box.is-warning .alert-content li { color: #92400e; } -an experimentation to make the bullets the same colour */

/* Warning Link Elements */
.alert-box.is-warning .alert-link.primary { background-color: #d97706; color: #ffffff; }
.alert-box.is-warning .alert-link.primary:hover { background-color: #b45309; }
.alert-box.is-warning .alert-link.primary svg { color: #ffffff; }

.alert-box.is-warning .alert-link.secondary { background-color: transparent; color: #92400e; border: 1px solid #fde68a; }
.alert-box.is-warning .alert-link.secondary:hover { background-color: #fef3c7; border-color: #d97706; }
.alert-box.is-warning .alert-link.secondary svg { color: #92400e; }


/* --- INFO VARIANT (Blue) --- */
.alert-box.is-info { background-color: #f0f7ff; border-left: 4px solid #0284c7; }
.alert-box.is-info .alert-icon { color: #0284c7; }
.alert-box.is-info .alert-title { color: #0369a1; }
.alert-box.is-info .alert-text { color: #0c4a6e; }
.alert-box.is-info .alert-content li::marker { color: #0284c7; }

/* Info Link Elements */
.alert-box.is-info .alert-link.primary { background-color: #0284c7; color: #ffffff; }
.alert-box.is-info .alert-link.primary:hover { background-color: #0369a1; }
.alert-box.is-info .alert-link.primary svg { color: #ffffff; }

.alert-box.is-info .alert-link.secondary { background-color: transparent; color: #0c4a6e; border: 1px solid #bae6fd; }
.alert-box.is-info .alert-link.secondary:hover { background-color: #e0f2fe; border-color: #0284c7; }
.alert-box.is-info .alert-link.secondary svg { color: #0c4a6e; }


/* --- NEXT STEPS VARIANT (Green) --- */
.alert-box.is-next { background-color: #f0fdf4; border-left: 4px solid #16a34a; }
.alert-box.is-next .alert-icon { color: #16a34a; }
.alert-box.is-next .alert-title { color: #14532d; }
.alert-box.is-next .alert-text { color: #166534; }
.alert-box.is-next .alert-content li::marker { color: #16a34a; }

/* Next Steps Link Elements */
.alert-box.is-next .alert-link.primary { background-color: #16a34a; color: #ffffff; }
.alert-box.is-next .alert-link.primary:hover { background-color: #15803d; }
.alert-box.is-next .alert-link.primary svg { color: #ffffff; }

.alert-box.is-next .alert-link.secondary { background-color: transparent; color: #166534; border: 1px solid #bbf7d0; }
.alert-box.is-next .alert-link.secondary:hover { background-color: #dcfce7; border-color: #16a34a; }
.alert-box.is-next .alert-link.secondary svg { color: #166534; }