/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global styles */
body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  background: #eef2f7;
  color: #222;
}

/* Header and navigation */
header {
  background: #1c2a39;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.site-title h1 {
  margin-bottom: 0.25rem;
  font-size: 1.8rem;
}

.site-title p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Logo */
.header-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Navigation */
nav {
  margin-top: 0.75rem;
}

nav a {
  color: #e5eaf2;
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom-color: #f4c542;
}

nav a.active {
  border-bottom-color: #f4c542;
  font-weight: 600;
}

/* Dropdown container */
nav .dropdown {
  position: relative;
  display: inline-block;
}

/* WGs button uses same base nav styles; just add pointer */
nav .dropbtn {
  cursor: pointer;
}

/* Dropdown panel */
nav .dropdown-content {
  display: none; /* hidden by default */
  position: absolute;
  background-color: #2b3b4f;
  min-width: 220px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

/* Links inside dropdown */
nav .dropdown-content a {
  display: block;
  padding: 0.4rem 0.75rem;
  margin-right: 0;
  border-bottom: none;
  font-size: 0.9rem;
}

/* Highlight dropdown items on hover */
nav .dropdown-content a:hover {
  background-color: #394b63;
}

/* Show dropdown on hover (force with !important) */
nav .dropdown:hover .dropdown-content {
  display: block !important;
}

/* Main content container */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Section headings and paragraphs */
main h2 {
  margin: 1.5rem 0 0.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

main h3 {
  margin: 1.5rem 0 0.5rem;
}

main h4 {
  margin: 0.25rem 0 0.5rem;
}

main p {
  margin: 0.5rem 0 1rem;
}

/* Hero section (used on index.html) */
.hero {
  background: linear-gradient(135deg, #1c2a39, #394b63);
  color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.hero h2 {
  margin-bottom: 0.75rem;
  border-bottom: none;
  padding-bottom: 0;
}

.hero p {
  margin-bottom: 1rem;
}

.hero-button {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: #f4c542;
  color: #1c2a39;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-button:hover {
  filter: brightness(1.05);
}

/* News list */
.news-list {
  list-style: none;
  margin-top: 0.5rem;
}

.news-list li {
  margin-bottom: 0.5rem;
}

/* Card grid (for highlights, board, WGs, etc.) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #dde3ee;
}

.card h3,
.card h4 {
  margin-bottom: 0.5rem;
}

/* Portrait images in cards */
.card .portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0 2rem;
  font-size: 0.85rem;
  color: #666;
}

footer a {
  color: inherit;
  text-decoration: underline;
}

/* Simple mobile tweak */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-logo {
    align-self: flex-end;
  }
}
/* Job list styles */
.job-list {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 0;
}

.job-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e1e5ef;
}

.job-list li:last-child {
  border-bottom: none;
}

.job-date {
  font-size: 0.85rem;
  color: #666;
}

.job-title {
  margin: 0.15rem 0 0.25rem;
}

.job-title a {
  color: #1c2a39;
  text-decoration: none;
}

.job-title a:hover {
  text-decoration: underline;
}

.job-meta {
  font-size: 0.9rem;
  color: #444;
}

/* Slightly faded style for archived jobs */
.job-list-archive .job-date,
.job-list-archive .job-meta {
  color: #888;
}

.job-archive-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.wg-list {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 0;
}

.wg-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e1e5ef;
}

.wg-list li:last-child {
  border-bottom: none;
}

/* Layout for each meeting: image + text side by side */
.wg-meeting {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.wg-image {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #ccc; /* fallback if image is missing */
}

.wg-text {
  flex: 1;
}

.wg-date {
  font-size: 0.85rem;
  color: #666;
}

.wg-title {
  margin: 0.15rem 0 0.25rem;
}

.wg-title a {
  color: #1c2a39;
  text-decoration: none;
}

.wg-title a:hover {
  text-decoration: underline;
}

.wg-meta {
  font-size: 0.9rem;
  color: #444;
}

.wg-desc {
  font-size: 0.9rem;
}

/* Slightly faded style for archived meetings */
.wg-list-archive .wg-date,
.wg-list-archive .wg-meta {
  color: #888;
}

/* On small screens, stack image above text */
@media (max-width: 600px) {
  .wg-meeting {
    flex-direction: column;
  }

  .wg-image {
    width: 100%;
    height: auto;
  }
}

.pdf-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Fix list rendering inside main content */
.content ul {
  margin: 1em 0 1em 1.5em;
  padding: 0;
  list-style-position: outside;
}

.content ol {
  margin: 1em 0 1em 1.5em;
  padding: 0;
  list-style-position: inside;
}

.content li {
  margin-bottom: 0.5em;
}


/* STSM bit */
.content .stsm-list,
.content .stsm-steps {
  margin: 0.5rem 0 1rem 1.25rem;
  padding-left: 1.1rem;
}

.content .stsm-list li,
.content .stsm-steps li {
  margin: 0.35rem 0;
  line-height: 1.55;
}

/* Make nested numbered list sit neatly under bullet 2 */
.content .stsm-list li > .stsm-steps {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Links should wrap nicely inside list items */
.content li a {
  word-break: break-word;
}

/* STSM callout box */
.callout {
  margin: 1rem 0rem 1rem; /* top, left/right, bottom */
  padding: 1rem 1rem 1rem;

  background: #1c2a39;  /* dark blue — tweak if needed */
  color: #fff;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
}

.callout h3 {
  margin-top: 0;
  color: #fff;
}

.callout a {
  color: #fff;
  text-decoration: underline;
}

.footer-logo {
  display: block;
  margin: -2rem auto 0; /* space above, centered */
  height: 100px;          /* tweak size */
  width: auto;
  opacity: 1.0;          /* optional: subtle */
}
