
/* Main content */
body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;     /* improved readability */
  background-color: #f9f9f9;
}

html { font-size: 18px; }

p, li { font-size: 1rem; }


/* ——— Color variables & typography tweaks ——— */
:root {
  --primary: #003366;
  --dark: #00264d;
  --accent: #00796b;    /* teal accent */
  --text: #333;
}


h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary); }
h3 { font-size: 1.5rem; margin-top: 1rem; color: var(--primary); }



section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
  margin-top: 0;
  color: #003366;
}

section p {
  margin-top: 0;
}

section ul {
  padding-left: 20px;
}

section li {
  margin-bottom: 8px;
}

section a {
  color: #004080;
  text-decoration: underline;
  transition: color 0.2s ease;
}

section a:hover,
section a:focus {
  color: #00264d;
}

header {
  width: 100%;
}

.hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0%);
  text-align: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.444);
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.444), rgba(255, 255, 255, 0)); */
  padding: 1rem 2rem;
  border-radius: 8px;
}

.hero-text h1 {
  margin: 0;
  font-size: 2.5rem;
}

.hero-text p {
  margin: 0;
  font-size: 1.2rem;
}

/* ——— Card-based grid on home page ——— */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;   /* force exactly two columns */
  gap: 1.5rem;                             /* space between cards */
  margin: 2rem 0;
}


.project-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 1rem;              /* adds space on all sides */
  box-sizing: border-box;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.project-card img {
  margin: -1rem -1rem 1rem;  /* pull the image full-width, but keep text padded */
  width: calc(100% + 2rem);
  height: 140px;
  object-fit: cover;
}

.project-card h3 {
  margin: 0.75rem 1rem 0.25rem;
  font-size: 1.25rem;
  color: var(--accent);
}
.project-card p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-card ul {
  padding-left: 2rem;
  padding-right: 2rem;
  margin-bottom: 1rem;
}



/* Sidebar navigation (scoped only to .content nav) */
.content nav {
  width: 220px;
  padding: 1rem;
  background: #f5f5f5;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.content nav .nav-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d9d9d9;
}
.content nav .nav-logos img {
  display: block;
  max-width: 80px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.content nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.content nav li {
  margin-bottom: 0.75rem;
}
.content nav a {
  display: block;
  color: #003366;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.content nav a:hover,
.content nav a:focus {
  background-color: #e0e0e0;
}
.content nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Two‑column layout below the hero */
.content {
  display: flex;
  background-color: white;
  min-height: calc(100vh - 320px);
}
 

.content main {
  flex: 1;
  padding: 1.5rem;
  background-color: white;      /* reinforce the white backdrop */
  text-align: justify;          /* your justified text */
  text-justify: inter-word;
}

.content main p {
  text-align: justify;
  text-justify: inter-word;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  color: #666;
  background-color: #f0f0f0;
  border-top: 1px solid #e0e0e0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .content nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }
  .content { flex-direction: column; }
  .content nav {
    width: 100%;
    box-shadow: none;
  }
  .content nav .nav-logos {
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }
  .content nav .nav-logos img {
    max-width: 72px;
  }
  .content nav a { padding: 0.75rem 1rem; }
  .content main {
    padding: 1rem;
  }
}


.project-header {
  display: flex;
  align-items: top;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;    /* lets image drop below text if screen is narrow */
}

.project-header__text {
  flex: 1 1 300px;    /* text column grows first, but won’t shrink below 300px */
  text-align: left;
}

.project-header__img img {
  max-width: 400px;   /* set your desired max width for the header image */
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.project-header__text h2 {
  margin-bottom: 0;      /* remove extra space below h2 */
  line-height: 1.1;      /* tighten space between title and <br> */
}

.project-header__text h2 .subtitle {
  display: block;        /* make sure it starts on a new line */
  font-size: 0.7em;      /* smaller than the title */
  line-height: 1.2;      /* tighter spacing if subtitle wraps */
  margin-top: 0.2em;     /* small gap between title and subtitle */
  font-weight: normal;  /* optional: makes it lighter */
}

.pdf-container {
  /* Set a relative container that maintains an aspect ratio */
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 Aspect Ratio (adjust as needed) */
  height: 0;
  overflow: hidden;
}

.pdf-container iframe {
  /* Position and size the iframe to fill the container */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
