/* ========== GLOBAL BASICS ========== */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* ========== HEADER ========== */
header {
  background: #003366;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: flex-start;   /* move menu left */
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;                     /* space between logo and menu */
}

header h1 {
  margin: 0;
  font-size: 1.5em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 120px;
  width: auto;
  vertical-align: middle;
  margin-top: -5px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

nav a.portal-link {
  background: #ffcc00;
  color: #003366;
  padding: 6px 12px;
  border-radius: 4px;
}

nav a.portal-link:hover {
  background: #ffdb4d;
}

/* Match language selector with header look */
.language_cd-switcher {
  margin-left: 10px;
  font-size: 0.9em;
  opacity: 0.9;
  padding-left: 15px; /* add spacing between portal button and selector */
}

.language_cd-switcher select {
  background: #003366;     /* same blue as header */
  color: white;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 1.2em;
  appearance: none;        /* hide OS styling */
  cursor: pointer;
  text-align: center;          /* 👈 center text */
  text-align-last: center;     /* 👈 ensures selected option is centered */
}

.language_cd-switcher select:hover,
.language_cd-switcher select:focus {
  background: #004080;
  outline: none;
}

/* Responsive header adjustments */
@media (max-width: 768px) {
  .brand img {
    height: 60px;
  }
  header {
    flex-direction: column;
    align-items: center;
  }
  nav {
    margin-top: 10px;
    justify-content: center;
  }
}

/* ========== MAIN CONTENT ========== */
main {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: justify;
}

h1, h2 {
  color: #003366;
  margin-top: 40px;
}

/* ========== BUTTONS ========== */
/* Force the "Use Cases" CTA to center inside justified main */
.use-cases-button {
  text-align: center;
  margin: 60px 0;
  width: 100%;
}

.use-cases-button .cta-button {
  display: block;
  width: max-content;
  margin: 0 auto;
}

/* Slightly larger call-to-action button */
.cta-button {
  background: #003366;
  color: white;
  padding: 16px 32px;   /* bigger */
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;     /* larger text */
}

.cta-button:hover {
  background: #004080;
}


/* ========== USE CASE BLOCKS ========== */
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.use-case {
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.use-case img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 10px;
}

.use-case h3 {
  margin: 0;
  font-size: 1em;
}

/* ========== ALTERNATE USE CASE BLOCK (ROW LAYOUT) ========== */
.use-case-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.use-case-block:nth-child(even) {
  flex-direction: row-reverse;
}

.use-case-image {
  flex: 1;
}

.use-case-image img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.use-case-text {
  flex: 1;
}

.use-case-text h2 {
  margin-top: 0;
}

.use-case-text p {
  text-align: justify;
}

/* ========== FOOTER ========== */
footer {
  background: #003366;
  color: white;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9em;
  text-align: center;
}

.footer-nav {
  margin-bottom: 10px;
}

.footer-copy {
  margin: 0;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  text-decoration: underline;
}
