/*————————————————————*/
/*  RESET & BASE       */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*————————————————————*/
/*  FIXED HEADER       */
/*————————————————————*/
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  padding: 1rem 0;
}
body {
  margin: 0;
  padding-top: 120px;  /* push content below header */
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 80px;
}
.main-nav {
  display: flex;
  align-items: center;
}
.main-nav a,
.dropbtn {
  margin-left: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  cursor: pointer;

  padding: 0.5rem 1rem;     /* Just enough padding */
  white-space: nowrap;      /* Prevent wrapping */
  min-width: unset;         /* Remove any restrictive min-width */
  display: inline-block;    /* So padding works well */
}

.main-nav a.active,
.dropdown-content a.active {
  color: #007BFF; /* Your preferred highlight color */
  font-weight: 600; /* Slightly bolder font */
  text-decoration: underline; /* Optional: underline active link */
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 10;
  left: 0;
  right: auto;
  width: max-content;       /* Make width fit the content */
  min-width: 180px;         /* Avoid too narrow */
  max-width: 280px;         /* Prevent excessive width */
  padding: 0.5rem 0;        /* Reduce vertical padding */
  box-sizing: border-box;
  white-space: nowrap;      /* Prevent line breaking */
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;    /* Slightly less vertical padding */
  margin: 0;
  color: #333;
  white-space: nowrap;     /* Avoid line breaks */
}

/* Keep hover style for showing dropdowns */
.dropdown:hover .dropdown-content {
  display: block;
}

/* New addition: Show dropdown when JavaScript toggles the 'show' class */
.dropdown-content.show {
  display: block;
}

/*————————————————————*/
/*  PAGE HEADER TITLES */
/*————————————————————*/
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}
.page-header h1 {
  font-size: 2.25rem;
  margin: 0;
}

/*————————————————————*/
/*  HERO (Home)        */
/*————————————————————*/
.hero {
  display: flex;
  width: 100%;
  height: 60vh;
}
.hero-left, .hero-right {
  flex: 1 1 50%;
  overflow: hidden;
}
.hero-left .hero-img {
  animation: slow-zoom 20s ease-in-out infinite alternate;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.9;
}
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  background: #222;
  color: #fff;
}
.hero-right h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-right p {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 400px;
}

/* Hero section font adjustments */
.hero, .hero * {
  font-family: 'Josefin Sans', sans-serif;
}

.hero-right h2 {
  font-weight: 600; /* Use a font weight you have loaded */
}

.hero-right p {
  font-weight: 300;
}

/*————————————————————*/
/*  SUBPAGE HERO BANNER */
/*————————————————————*/
.subpage-hero {
  width: 100%;
  height: 60vh;          /* tall library banner */
  overflow: hidden;
}
.subpage-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* crop-to-fill */
}

/*————————————————————*/
/*  EDGE-TO-EDGE BLACK */
/*————————————————————*/
.page-section {
  width: 100%;
  overflow: hidden;
}
.black-bg {
  background: #222;
  color: #fff;
  padding: 4rem 0;
}
.black-bg h1 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.black-bg p {
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 1rem;
}

/*————————————————————*/
/*  RESEARCH EMBED      */
/*————————————————————*/
.container iframe {
  width: 100%;
  height: 800px;
  border: none;
}

/*————————————————————*/
/*  PILLARS (Our Approach) */
/*————————————————————*/
.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
}
.pillar {
  flex: 1 1 calc(33.333% - 2rem);
  text-align: center;
}
.pillar-img {
  width: 100%;
  height: 200px;         /* fixed smaller height */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.pillar p {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

/*————————————————————*/
/*  OUR TEAM (3 columns white on black) */
/*————————————————————*/
.page-section.black-bg .team {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
}
.member {
  flex: 1;
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.member:first-child {
  padding-left: 0;
  border-left: none;
}
.member h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.member p {
  color: #ddd;
  line-height: 1.6;
  font-size: 1rem;
}

/*————————————————————*/
/*  CONTACT FORM        */
/*————————————————————*/
.contact-form h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
}
.contact-form form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.contact-form label {
  flex: 1 1 100%;
  color: #fff;
}
.contact-form input,
.contact-form textarea {
  flex: 1 1 300px;
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form button {
  padding: 0.75rem 1.5rem;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}
.hours {
  text-align: center;
  margin-top: 2rem;
}
.hours h4 {
  margin-bottom: 1rem;
  color: #fff;
}
.hours ul {
  list-style: none;
  padding: 0;
  color: #ddd;
}
.hours li {
  margin-bottom: 0.5rem;
}

/*————————————————————*/
/*  FOOTER              */
/*————————————————————*/
.site-footer {
  background: #f5f5f5;
  padding: 1rem 0;
  text-align: center;
}
.site-footer p {
  font-size: 0.8rem;
  color: #666;
}
/* --------------------------------
   Light‑grey background sections
   -------------------------------- */
.page-section.grey-bg {
  background: #f5f5f5;    /* light grey */
  color: #000;            /* black text */
  padding: 2rem 0;        /* tighter vertical spacing */
}

/* center all content in these sections */
.page-section.grey-bg .container {
  text-align: center;
}

/* headings in grey‑bg */
.page-section.grey-bg h1 {
  font-size: 3rem;        /* much larger title */
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #000;
}
.page-section.grey-bg h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #000;
}

/* paragraphs in grey‑bg */
.page-section.grey-bg p {
  color: #333;            /* softer dark for body copy */
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* diagram spacing */
.diagram-container {
  margin: 1.5rem auto;    /* smaller gap above/below the image */
}

/* cap & center the quadrant diagram */
.full-width-img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  margin: 0 auto;
}

/* Treemap stack (inherits grey‑bg on its <section>) */
.quad-iframe-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}
.quad-iframe-stack iframe {
  width: 100%;
  height: 800px;
  border: none;
}

/* ----- CONTACT US PAGE: Black Background/White Text ----- */
.contact-section {
  background: #222 !important;   /* Deep black for the box */
}
.contact-section .contact-form,
.contact-section .contact-form *,
.contact-section .hours,
.contact-section .hours *,
.contact-section h3,
.contact-section h4 {
  color: #fff !important;        /* All white text */
}

/* Slightly lighter black for input fields */
.contact-section .contact-form input,
.contact-section .contact-form textarea {
  background: #333 !important;   /* Dark gray for inputs */
  color: #fff !important;        /* White input text */
  border: 1px solid #444;        /* Subtle lighter border */
}
.contact-section .contact-form input::placeholder,
.contact-section .contact-form textarea::placeholder {
  color: #bbb;                   /* Light gray placeholders for good contrast */
}

/* Button: white text on dark, light gray on hover */
.contact-section .contact-form button {
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #444;
  transition: background 0.15s, color 0.15s;
}
.contact-section .contact-form button:hover {
  background: #666;
  color: #fff;
}
