/* ---- Base ---- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #1a1a1a;
  background-color: #f2f4f8;
  min-height: 100vh;
  padding: 24px 24px 48px;
}

/* ---- Top Header Card (replaces old sidebar) ---- */
.header {
  max-width: 1400px;
  margin: 0 auto 24px auto;
  background-color: #ffffff;
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  padding: 24px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-brand .logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.header-brand-text h1 {
  margin: 0;
  font-size: 28px;
  color: #003087;
  font-weight: 700;
}

.header-brand-text p {
  margin: 4px 0 0;
  color: #5a6470;
  font-size: 14px;
  max-width: 560px;
}

.header-meta {
  text-align: right;
  font-size: 13px;
  color: #5a6470;
  line-height: 1.5;
}

.header-meta strong {
  color: #1a1a1a;
}

.header-badge {
  display: inline-block;
  margin-top: 6px;
  background-color: #e8f0fe;
  color: #003087;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* ---- Nav pill buttons ---- */
.nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 15px;
  background-color: transparent;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.nav a:hover {
  background-color: #eef1f6;
}

.nav a.active {
  background-color: #003087;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 48, 135, 0.25);
}

.nav a.active:hover {
  background-color: #0040a8;
}

/* ---- Content card ---- */
.content {
  max-width: 1400px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  padding: 32px 40px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content h1 {
  color: #003087;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 26px;
}

.content h1:first-child {
  margin-top: 0;
}

.content h2 {
  color: #003087;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 20px;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #2a2f36;
}

/* Big page title (used on team page) */
.title {
  color: #003087;
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 28px 0;
  padding: 0;
  text-align: center;
}

.content-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  font-size: 42px;
  margin: 0 0 28px 0;
}

.content-title img {
  height: 70px;
  width: auto;
}

/* ---- Lists ---- */
.content ul,
.content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.65;
  color: #2a2f36;
}

.content ul li,
.content ol li {
  margin-bottom: 8px;
}

.content ul li ul {
  list-style-type: circle;
  margin-top: 6px;
  margin-bottom: 6px;
}

.content ol li ol {
  list-style-type: lower-alpha;
  margin-top: 6px;
  margin-bottom: 6px;
}

/* ---- Button ---- */
.button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background-color: #003087;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 48, 135, 0.25);
}

.button:hover {
  background-color: #0040a8;
}

.company-name {
  color: #003087;
  font-weight: 600;
}

/* ---- Team cards ---- */
.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.team {
  flex: 0 1 240px;
  padding: 20px;
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.team:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.12);
}

.team-photo {
  width: 160px;
  height: 160px;
  min-width: 160px;
  min-height: 160px;
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  margin: 0 auto 12px auto;
  display: block;
}

.team h2 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #003087;
}

.team p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

/* ---- Document grid ---- */
.document-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---- Document viewer ---- */
.document-viewer {
  margin-bottom: 32px;
  padding: 20px;
  background-color: #f8fafc;
  border: 1px solid #e3e6ec;
  border-radius: 12px;
}

.document-viewer h2 {
  color: #003087;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.document-viewer p {
  margin-top: 0;
  margin-bottom: 14px;
  color: #5a6470;
  font-size: 15px;
}

.pdf-iframe {
  width: 100%;
  height: 420px;
  border: 1px solid #c8d1dc;
  border-radius: 8px;
  background-color: #ffffff;
}

.video-player {
  width: 100%;
  max-height: 600px;
  border: 1px solid #c8d1dc;
  border-radius: 8px;
  background-color: #000000;
}

/* ---- Home page advertisement video ---- */
.home-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #c8d1dc;
  border-radius: 10px;
  background-color: #000000;
  margin: 0 0 28px 0;
  display: block;
  object-fit: contain;
}

/* ---- Images inside content ---- */
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---- Solution overview image pair ---- */
.solution-image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.solution-image-row .diagram-overview {
  flex: 1;
  min-width: 320px;
  max-width: 640px;
  margin: 0;
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;
}

.solution-image-row .diagram-techstack {
  flex: 0 0 auto;
  width: 260px;
  margin: 0;
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;
}

/* ---- Diagram / schedule images (project page) ---- */
.diagram-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  display: block;
  background-color: #ffffff;
  padding: 16px;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  box-sizing: border-box;
}

/* ---- Mobile ---- */
@media (max-width: 800px) {
  body {
    padding: 12px 12px 32px;
  }

  .header {
    padding: 18px 20px;
    border-radius: 12px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-meta {
    text-align: left;
  }

  .header-brand-text h1 {
    font-size: 22px;
  }

  .header-brand .logo {
    width: 52px;
    height: 52px;
  }

  .nav {
    gap: 6px;
    margin-top: 16px;
  }

  .nav a {
    padding: 8px 16px;
    font-size: 14px;
  }

  .content {
    padding: 20px 18px;
    border-radius: 12px;
  }

  .title,
  .content-title {
    font-size: 30px;
    flex-direction: column;
    gap: 10px;
  }

  .content-title img {
    height: 50px;
  }

  .content h1 {
    font-size: 22px;
  }

  .content h2 {
    font-size: 18px;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

  .pdf-iframe {
    height: 300px;
  }
}
