/* 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%;
  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;
  margin: 0 0 20px;
}

.gov-sites li {
  display: inline-block;
  margin-right: 20px;
  width: 165px;
  height: 50px;
  vertical-align: middle;
}

/* sprite sheet: assets/images/footer-logo-sprite-3.png (1852x80) */
.sprite { background-repeat: no-repeat; }
.sprite-data-gov      { background: url("../assets/images/footer-logo-sprite-3.png") 0px -25px / 985% auto no-repeat; }
.sprite-digitalindia2{ background: url("../assets/images/footer-logo-sprite-3.png") -155px 0px / 700% auto no-repeat; }
.sprite-indiagov     { background: url("../assets/images/footer-logo-sprite-3.png") -410px 2px / 745% auto no-repeat; }
.sprite-makeinindia  { background: url("../assets/images/footer-logo-sprite-3.png") -636px -1px / 725% auto no-repeat; }
.sprite-mygov        { background: url("../assets/images/footer-logo-sprite-3.png") 318px 0px / 700% auto no-repeat; }
.sprite-pmica        { background: url("../assets/images/footer-logo-sprite-3.png") 152px -19px / 1000% auto no-repeat; width: 150px; }
.sprite-iyc          { background: url("../assets/images/iyc.png") center / 69% auto no-repeat; }

.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 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; }
}

@media (max-width: 767px) {
  .gov-sites li { margin-right: 8px; width: 120px; height: 40px; background-size: 700% auto !important; }
  .content { padding: 30px 12px; }
}
