/* Reset and basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
}

/*a {
  text-decoration: none;
  color: #333;
}
*/
/* Header image */
header {
  text-align: center;
  padding: 20px 0;
}

header img {
  max-width: 100%;
  height: auto;
  max-height: 200px; /* Limit desktop height */
  object-fit: cover; /* Maintain aspect ratio nicely */
}

/* Navigation */
nav {
  background-color: #333;
  color: #fff;
}

/* Desktop menu */
.menu {
  display: flex;
  justify-content: center;
  list-style: none;
}

.menu li {
  position: relative;
}

.menu > li {
  margin: 0 20px;
}

.menu li a {
  display: block;
  padding: 15px 10px;
  color: #fff;
}

.menu li:hover > a {
  background-color: #444;
}

/* Dropdown menu */
.menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  list-style: none;
  min-width: 150px;
  z-index: 1000;
}

.menu li:hover > ul {
  display: block;
}

.menu li ul li {
  margin: 0;
}

.menu li ul li a {
  padding: 10px;
}

.menu li ul li a:hover {
  background-color: #555;
}

.menu a {
  text-decoration: none;
  color: #333;
}

/* Mobile menu button */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  padding: 15px;
}

/* Mobile menu */
@media (max-width: 768px) {
  header img {
    max-height: none; /* Let mobile scale naturally */
    height: auto;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .menu li {
    width: 100%;
  }

  .menu li ul {
    position: static;
  }

  .menu li:hover > ul {
    display: none;
  }

  .menu li.open > ul {
    display: block;
  }

  .hamburger {
    display: block;
    background-color: #333;
    color: #fff;
    text-align: center;
  }
}

/* Container for the cells */
.cells-container {
  display: flex;
  flex-wrap: wrap;       /* allow stacking on small screens */
  gap: 1rem;             /* spacing between cells */
  justify-content: center;
}

/* Individual cells */
.cell {
  flex: 1 1 200px;       /* grow, shrink, minimum width 200px */
  min-width: 200px;
  background-color: #f0f0f0;
  padding: 1rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Optional: adjust layout for smaller screens */
@media (max-width: 600px) {
  .cell {
    flex: 1 1 100%;      /* stack vertically */
  }
}

.cell img {
  width: 100%;       /* scale to the full width of the cell */
  height: auto;      /* maintain aspect ratio */
  border-radius: 5px; /* optional: rounded corners */
  margin-bottom: 0.5rem;
  display: block;    /* removes tiny gap under images */
}

.round-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;

}

.cell75 {
  width: 75%;           /* default for desktop */
  margin: auto;
  background-color: #f0f0f0;
  padding: 1rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* Mobile view: width 100% */
  @media (max-width: 768px) {
    .cell75 {
      width: 100%;
    }
  }

.cell75 img {
  max-width: 100%;
}

.cell75 iframe{
  max-width: 100%;
}

.justify {
  text-align: justify;
}

.cell50 {
  width: 50%;           /* default for desktop */
  margin: auto;
  background-color: #f0f0f0;
  padding: 1rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex: 1 1 200px;       /* grow, shrink, minimum width 200px */
  min-width: 200px;
  background-color: #f0f0f0;
  padding: 1rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* Mobile view: width 100% */
  @media (max-width: 768px) {
    .cell50 {
      width: 100%;
    }
  }

.cell50 img {
  max-width: 100%;
}

figcaption {
  font-size: 0.95em;   /* smaller than surrounding text */
  font-style: italic; /* italic text */
}
