/* ===== Base Styles ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 64px;   /* space for fixed top-bar on desktop */
  background-color: #f9f9f9;
}

@media (max-width: 600px) {
  body {
    padding-top: 64px; /* space for fixed top-bar on mobile */
  }
}

h1 { color: #333; }
h2 { margin-top: 2rem; font-size: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }
h4 { margin-left: 0rem; font-size: 1.2rem; margin-top: 3.0rem; }
h5 { margin-left: 0rem; font-size: 1.0rem; margin-top: 3.0rem; }
ul { list-style: none; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; font-size: 1rem; }

/* ===== Top Bar ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;        /* desktop height */
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 0 0px;
}

/* ===== Image container ===== */
.image-overlay-container {
  position: relative;
  display: inline-block; /* keeps image and overlay together */
  width: 100%; /* full width, adjust as needed */
}

.image-overlay-container img {
  width: 100%;  /* scale image */
  height: auto;
  display: block;
}

.image-overlay-text {
  position: absolute;
  width: 100%;
  top: 50%;        /* vertically centered */
  left: 50%;       /* horizontally centered */
  transform: translate(-50%, -50%); /* perfect centering */
  color: white;    /* overlay text color */
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem 2rem;
}

.image-overlay-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  background-color: #007BFF; /* bootstrap-style blue */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.image-overlay-button:hover {
  background-color: #0056b3; /* darker on hover */
};


/* ===== Client Container ===== */
/* Wrapper for the client containers */
.client-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;             /* space between containers */
  margin: 3rem auto;     /* vertical spacing + auto horizontal centering */
  padding: 0 0px;
  padding-top: 120px;
  padding-bottom: 120px;
  justify-content: center; /* center the containers horizontally */
}

/* Each client container takes 30% of the screen width */
.client-container {
  flex: 0 0 30%;       /* fixed 30% width, no grow/shrink */
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  box-sizing: border-box;  /* include padding in width */
}

.client-container img {
  width: 100%;
  height: 400px;       /* fixed height */
  object-fit: cover;   /* crop to fit */
  display: block;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Mobile: stack containers */
@media (max-width: 600px) {
  .client-container {
    flex: 1 1 100%;    /* full width on mobile */
  }
}


/* Mobile: stack containers */
@media (max-width: 600px) {
    .client-wrapper {
        flex-direction: column;
    }
    .client-container {
        flex: 1 1 100%;  /* full width on mobile */
    }
    .client-container img {
    width: 100%;          /* fills container width */
    height: auto;         /* keeps aspect ratio */
    border-radius: 6px;   /* optional: rounded corners */
    margin-bottom: 1rem;  /* space before text */
    display: block;
    object-fit: cover;    /* crops image nicely if needed */
    width: 100%;
    height: auto;
    }  
}

/* Header & Logos */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.header img.left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header img.right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Text */
.page-links {
  display: block;
  position: relative;
  flex-wrap: wrap;
  gap: 1rem;
  width: 20%;
  padding-left: 5%;
  padding-right: 5%;
  text-align: left;
}

/* Text */
.text {
  display: block;
  position: relative;
  flex-wrap: wrap;
  gap: 1rem;
  width: 50%;
  padding-left: 25%;
  padding-right: 25%;
  text-align: left;
}

.table1 {
  width: auto;             /* let table width fit content */
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  table-layout: auto;      /* allow columns to size to content */
}

.table1 th, .table1 td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  white-space: nowrap;     /* prevent header text from wrapping */
}

/* Optional: allow planned features column to wrap */
.table1 td:nth-child(4) {
  white-space: normal;     /* allow text wrapping for planned features */
}

/* Center yes/no columns (free demo & early access) */
.table1 tbody td:nth-child(2),
.table1 tbody td:nth-child(3) {
  text-align: center;
}

/* Header style */
.table1 thead th {
  background-color: #4c74af;
  color: white;
  text-align: left;
}

/* Alternating row colors */
.table1 tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table1 tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

/* Hover effect */
.table1 tbody tr:hover {
  background-color: #f1f1f1;
}

/* Smaller text for superscripts */
.table1 sup {
  font-size: 0.7em;
}

/* Replace yes/no text with symbols */
.table1 tbody td:nth-child(2),
.table1 tbody td:nth-child(3) {
  text-align: center;
  font-weight: bold;
}

/* Hide original text and insert symbols */
.table1 tbody td:nth-child(2)::before,
.table1 tbody td:nth-child(3)::before {
  content: attr(data-status);  /* we’ll set this with JS */
}

/* Optional: use Unicode symbols */
.table1 tbody td[data-status="yes"]::before {
  content: "✔";   /* checkmark */
  color: green;
}

.table1 tbody td[data-status="no"]::before {
  content: "—";   /* dash */
  color: red;
}


/* ===== Mobile Styles ===== */
@media (max-width: 600px) {

  /* Shrink & move main logo to top-left */
  .top-bar {
    height: 64px;
    padding: 0 10px;
    justify-content: flex-start;
  }
  body {
    padding-top: 64px;   /* leave space for fixed top-bar */
  }
  .top-bar .center {
    width: 64px;
    height: auto;
    position: absolute;
    top: 0;
    left: 10px;
  }
  .top-bar h5 {
    position: absolute;
    top: 20px;
    right: 10px;
    font-size: 0.8rem;
  }

  /* Footer */
  .footer {
    height: 64px;
    padding: 0 10px;
    justify-content: flex-start;
  }

  /* Header layout stacked & centered */
  .header {
    flex-direction: column;
    position: static;
    text-align: center;
  }
  .header img.left,
  .header img.right {
    position: static;
    transform: none;
    margin: 0 auto;
    height: 48px;
  }

  /* Smaller fonts for headings */
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1rem; }

  /* Mobile: single-column test results */
  .client-container ul {
    display: block; /* revert from grid */
    padding-left: 1.5rem;
  }

  .client-container li {
    margin-bottom: 0.5rem;
  }
}


.hover-container {
    position: relative;
    display: inline-block;  /* shrink to image size */
}

.hover-container img {
  width: 100%;
  height: 400px;       /* fixed height */
  object-fit: cover;   /* crop to fit */
  display: block;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Text overlay, initially hidden */
.hover-text {
    display: none;
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); /* center over image */
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
    padding: 0.5rem 1rem;
    border-radius: 32px;
    text-align: center;
}

/* Show text on hover */
.hover-container:hover .hover-text {
    display: block;
}

/* Button overlay, initially hidden */
.hover-button {
    display: none;
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); /* center over image */
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: #0056b3;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

/* Show button on hover */
.hover-container:hover .hover-button {
    display: block;
}

/* Optional: hover effect on the button */
.hover-button:hover {
    background-color: #003d80;
}

a {
  color: black;
  text-decoration: none;
}