/* Clean rebuild of dc.crsorgi.gov.in /crs/verifyCertificate (light theme).
   Colors/sizes taken from the site's own CSS captured in the MHTML. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  background: #f4f5f8;
  color: #333;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: #fff;
  height: 64px;
}

.flag-bg {
  position: absolute;
  inset: 0;
  height: 64px;
  overflow: hidden;
}

.flag-bg-left, .flag-bg-right {
  position: absolute;
  top: 0;
  width: 45%;
  height: 100%;
}

.flag-bg-left { left: 0; transform: scaleX(-1); }
.flag-bg-right { right: 0; }

.flag-bg-left img, .flag-bg-right img {
  object-fit: cover;
  height: 64px;
  width: auto;
}

.flag-bg-left img { position: absolute; right: 0; }

.emblem {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 64px;
  display: flex;
  align-items: center;
}

.emblem img { width: 40px; height: auto; }

.header-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  z-index: 1;
}

.header-left { display: flex; align-items: center; flex-grow: 1; }

.logo { width: 320px; height: auto; }
.logo-mobile { display: none; }

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.font-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f0f0f0;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.login-btn {
  background: #234a7d;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.caret { font-size: 11px; }

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: auto;
  min-height: 50px;
  background: #234a7d;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 14px 16px;
}

.navbar a:hover { background: rgba(255, 255, 255, 0.12); }
.navbar a.active { background: rgba(255, 255, 255, 0.2); }

/* ---------- Content card ---------- */
.content {
  display: flex;
  justify-content: center;
  padding: 60px 16px;
}

.card {
  width: 100%;
  max-width: 560px;
  padding: 25px;
  background: #fff;
  border-top: 3px solid #3f51b5;
  box-shadow: 4px -5px 13px -1px grey;
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table td {
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  text-align: left;
  font-size: 15px;
}

.detail-table td:first-child {
  width: 40%;
}

@media (min-width: 481px) {
  .detail-table td:first-child { white-space: nowrap; }
}

.detail-table tr:nth-child(odd) td { background: #f8f9fa; }

/* ---------- Footer ---------- */
.site-footer {
  background: radial-gradient(circle, #138f78 0, #234a7d 100%);
  border-top: 4px solid #ccc;
  color: #fff;
  padding: 40px 0 16px;
  text-align: center;
  overflow-x: hidden;
}

.gov-sites {
  list-style: none;
  padding: 0 10px;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.gov-sites li {
  margin: 0 15px 10px 0;
  height: 50px;
  display: flex;
  align-items: center;
}

.gov-sites li img {
  max-height: 50px;
  max-width: 165px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* individual cropped logos — no sprite positioning to break at any size */

.quick-links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 10px 0;
}

.quick-links li {
  display: inline-block;
  margin: 0 10px;
  position: relative;
}

.quick-links li::after {
  content: "";
  width: 2px;
  height: 20px;
  background-color: #fff;
  position: absolute;
  right: -11px;
}

.quick-links li:last-of-type::after { width: 0; }

.quick-links a {
  text-decoration: none;
  color: #fff;
}

.quick-links a:hover { text-decoration: underline; }

.footer-note { margin: 6px 0; font-size: 14px; }

.copyright { margin-top: 16px; }
.copyright p { margin: 0; padding: 8px 0; font-size: 14px; }

/* ---------- Responsive (matches original breakpoints) ---------- */
@media screen and (max-width: 991px) {
  .logo { width: 250px; }
}

@media screen and (max-width: 800px) {
  .logo { display: none; }
  .logo-mobile { display: inline; width: 55px; }
}

@media (max-width: 767px) {
  .content { padding: 30px 12px; }
  .card { padding: 16px; }
  .detail-table td { font-size: 14px; padding: 7px 9px; }
  .navbar a { padding: 10px 12px; font-size: 14px; }
}

@media screen and (max-width: 599px) {
  .flag-bg, .site-header { height: 56px; }
  .flag-bg-left img, .flag-bg-right img { height: 56px; }
  .emblem { height: 56px; }
  .emblem img { width: 30px; }
  .login-btn { padding: 6px 10px; font-size: 13px; }
  .quick-links li { margin: 0 6px; }
  .footer-note, .copyright p { font-size: 12px; }
}

@media (max-width: 480px) {
  .font-btn { display: none; } /* original portal hides these on mobile too */
  .card { padding: 12px; }
  .detail-table td:first-child { width: 42%; }
}
