:root {
  --b-green: #2f8a57;
  --b-green-soft: #93c9aa;
  --b-bg: #f1f4f2;
  --b-text: #1d3d2d;
  --b-blue-bg: #dce7f5;
  --b-blue-border: #8bb4d9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #ebebeb;
  color: var(--b-text);
}

.b-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 30px;
  background: #fff;
}

.b-section {
  padding: 14px;
}

/* ---------- HERO ---------- */
.hero {
  padding: 0 0 12px;
  overflow: hidden;
}

.hero-head {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--b-green-soft);
  padding: 14px;
}

/* Logo column (logo + language selector). On desktop the selector is absolute
   (top-right of the hero), so this column only lays out the logo. On mobile the
   selector becomes static and stacks above the logo in this same column. */
.hero-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.lang-selector-wrap {
  position: absolute;
  top: 8px;
  right: 8px;
}

.b-lang-selector {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--b-green);
  background: #fff;
  color: #1d5b3d;
  border-radius: 6px;
  cursor: pointer;
}

.logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.hero-title-wrap {
  flex: 1;
  text-align: center;
}

.hero-pretitle {
  color: #C55A11;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0 0 6px;
  line-height: 1.1;
}

.hero-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0,0,0,.1);
  text-align: center;
}

.hero-subtitle {
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 10px;
  opacity: 0.92;
  font-style: italic;
}

.qr-pill {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  background: #d7f0df;
  border: 2px solid var(--b-green);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 16px;
  color: #2e5f45;
}

.preserved-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 2px solid var(--b-green);
  color: #1d5b3d;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.preserved-photo {
  margin-top: 14px;
  text-align: center;
}

.preserved-photo img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 6px;
  object-fit: contain;
}

.preserved-photo .carousel { max-width: 100%; margin: 0 auto; }
.preserved-photo .carousel-control-prev,
.preserved-photo .carousel-control-next { width: 12%; }

.preserved-btn:hover,
.preserved-btn:focus {
  background: #eaf6ee;
  color: #1d5b3d;
}

.meal-photo {
  background: #fff;
  text-align: center;
  padding: 18px;
  position: relative;
}

/* ---------- RECALL ---------- */
.recall-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 340px;
  pointer-events: none;
  z-index: 5;
}

.recall-block {
  background: #fff;
  padding: 0 18px 18px;
}

.recall-revoked {
  color: #e01b1b;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  margin: 4px 0 14px;
}

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

.recall-table th,
.recall-table td {
  border: 1px solid #cfcfcf;
  padding: 10px 12px;
  font-size: 15px;
  text-align: center;
  vertical-align: top;
}

.recall-table th {
  background: #ededed;
  font-weight: 700;
}

.meal-photo img {
  width: 300px;
  max-width: 100%;
  border-radius: 6px;
}

.meal-photo .carousel {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
}

.meal-photo .carousel-inner {
  height: 320px;
}

.meal-photo .carousel-item {
  height: 320px;
}

.meal-photo .carousel-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

.meal-photo .carousel-control-prev,
.meal-photo .carousel-control-next {
  width: 12%;
}

.hero-foot {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px 12px;
}

.course-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4f0ea;
  border: 1px solid #c1d9cd;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 22px;
  white-space: nowrap;
}

.auth-btn {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 12px auto 0;
  border: 2px solid var(--b-green);
  background: #fff;
  color: #225e3f;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.auth-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--b-green);
  flex: 0 0 auto;
  display: inline-block;
}

.date-title {
  margin: 0;
  padding: 0 12px;
  font-size: 30px;
  font-weight: 800;
  color: #000;
}

.menu-box { padding: 0 12px; }
.menu-box h3 { margin: 6px 0; font-size: 18px; color: #000; }
.menu-box li { font-size: 18px; line-height: 1.3; color: #000; }

.transport-box {
  margin: 12px 0 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  border-top: 8px solid var(--b-green-soft);
  padding: 12px 14px 0;
}

.transport-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.transport-title::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--b-green-soft);
}

.transport-title img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.transport-box h3 {
  margin: 0;
  font-size: 26px;
  color: #245d41;
  font-weight: 800;
}

.transport-grid {
  display: flex;
  gap: 10px;
}

.transport-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transport-left .transport-card {
  flex: 1;
}

.transport-right {
  width: 46%;
  display: grid;
  gap: 8px;
}

.transport-card {
  border-radius: 10px;
  padding: 10px 10px 10px 14px;
  position: relative;
  overflow: hidden;
}

.transport-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
}

.transport-card-green {
  background: #ededed;
  border: 1px solid #d8d8d8;
}

.transport-card-green::before {
  background: var(--b-green-soft);
}

.transport-label {
  font-size: 16px;
  color: #7a7a7a;
  margin-bottom: 4px;
}

.transport-time {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: #111;
}

.transport-date {
  font-size: 14px;
  color: #9a9a9a;
  margin-top: 4px;
}

.transport-card-truck {
  background: #f7e7c8;
  border: 1px solid #dcc596;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px 10px 18px;
}

.transport-card-truck::before {
  background: #8a6846;
}

.transport-card-truck .truck-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.truck-label {
  font-size: 15px;
  color: #8a6846;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.truck-plate-num {
  font-size: 26px;
  font-weight: 800;
  color: #1f1f1f;
  text-align: center;
  letter-spacing: 0.5px;
}

.transport-right { align-self: stretch; }
.transport-right .transport-card-truck { height: 100%; }

/* ---------- SECTION COMMON ---------- */
.section-block {
  margin-top: 10px;
  border-top: 8px solid var(--b-green-soft);
}

.cat-h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 28px;
  color: #245d41;
  font-weight: 800;
}

.cat-h2::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--b-green-soft);
}

.cat-h2 .cat-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cat-h2 .cat-icon-img[src*="image7"],
.cat-h2 .cat-icon-img[src*="image8"] {
  width: 52px;
  height: 52px;
}

.feedback-block h2 {
  margin: 0 0 14px;
  font-size: 38px;
  color: #245d41;
  font-weight: 800;
}

/* ---------- SUPPLIER (Masskitchen) ---------- */
.supplier-card {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
}

.supplier-head { flex: 1; }
.supplier-head strong { display: block; font-size: 16px; color: #205c3f; line-height: 1.2; }
.supplier-head small { display: block; font-size: 12px; color: #5f6b65; line-height: 1.3; margin-top: 2px; }

.supplier-card.supplier-card-static {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 12px 8px;
  width: auto;
}

.supplier-card.supplier-card-static .supplier-head strong {
  color: #111;
  font-size: 18px;
}

.supplier-card.supplier-card-static .supplier-head small {
  color: #1f1f1f;
  font-size: 18px;
  line-height: 1.35;
  margin-top: 4px;
}

.supplier-detail {
  margin: 8px 12px 0;
  border: 1px solid #d6e3db;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.supplier-detail[hidden] { display: none; }
.supplier-detail:not([hidden]) { animation: panelIn .35s ease both; }
.supplier-detail.closing { animation: panelOut .32s ease both; }

/* ---------- KEY-VALUE ROWS ---------- */
.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #ecf2ee;
  font-size: 14px;
  align-items: center;
}

.kv:last-child { border-bottom: 0; }
.kv .k { color: #4a6359; font-weight: 600; }
.kv .v { color: #1f1f1f; word-break: break-word; }
.kv .v a { color: #2563eb; text-decoration: underline; }

.supplier-detail .kv .v,
.supplier-panel .kv .v,
.modal-box .kv .v {
  text-align: right;
  justify-self: end;
}

/* Blockchain modal: the hash is a long unbroken string — let it wrap. */
.modal-box .bc-hash {
  word-break: break-all;
}

.supplier-detail .kv .v.v-stack,
.supplier-panel .kv .v.v-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.supplier-detail .kv .v.v-stack .cert-badge,
.supplier-panel .kv .v.v-stack .cert-badge {
  margin-right: 0;
}

/* ---------- CERT BADGES ---------- */
.cert-badge {
  display: inline-block;
  background: #d5f0df;
  border: 1px solid #a7d4b9;
  color: #1d5b3d;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 6px;
  cursor: pointer;
}

.cert-badge.cert-soft {
  background: #e8f5ec;
}

/* ---------- LAST TESTING TABLE ---------- */
.testing-block { margin-top: 10px; }
.testing-title {
  font-size: 13px;
  color: #4a6359;
  font-weight: 700;
  margin-bottom: 4px;
}

.testing-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d6e3db;
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}

.testing-table th {
  background: #ededed;
  color: #4a4a4a;
  font-weight: 700;
  padding: 6px;
  text-align: left;
  border-bottom: 1px solid #d6d6d6;
}

.testing-table td {
  padding: 6px;
  border-bottom: 1px solid #ecf2ee;
}

.testing-table tr:last-child td { border-bottom: 0; }

.pass {
  color: var(--b-green);
  font-weight: 700;
}

/* ---------- GREEN-TICK APPROVED NOTE ---------- */
.green-note {
  margin: 10px 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: #d9f2e3;
  border-left: 8px solid var(--b-green);
  color: #1d5b3d;
  padding: 12px 14px;
  font-size: 18px;
  line-height: 1.35;
  cursor: pointer;
}

.green-note:hover,
.green-note:focus {
  background: #c9ebd5;
  outline: none;
}

.green-note.not-clickable {
  cursor: default;
}

.green-note.not-clickable:hover,
.green-note.not-clickable:focus {
  background: #d9f2e3;
}

.green-note.small {
  font-size: 16px;
  padding: 10px 12px;
  margin-left: 0;
  margin-right: 0;
}

.green-note .gt-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  flex: 0 0 auto;
  pointer-events: none;
}

.gt-modal-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d6e0d9;
}

.gt-modal-subtitle {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #1d5b3d;
  text-align: center;
  letter-spacing: 0.5px;
}

.gt-modal-poweredby {
  margin-top: 12px;
  justify-content: center;
  text-align: center;
}

.gt-bullet-title {
  margin: 14px 0 8px;
  font-weight: 800;
  color: #1d5b3d;
  font-size: 16px;
  text-align: left;
}

.gt-bullet-list {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.45;
  color: #1f1f1f;
  text-align: left;
}

.gt-bullet-list li {
  margin-bottom: 6px;
}

.gt-bullet-list .gt-lead {
  font-weight: 800;
  color: #1d5b3d;
}

.green-note .gt-btn img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.green-note.small .gt-btn img {
  width: 48px;
  height: 48px;
}

/* ---------- RAW (Pork/Poultry/Egg) ---------- */
.sub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #245d41;
  margin: 14px 12px 12px;
  font-size: 19px;
}

.sub-title .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2f8a57;
  display: inline-block;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 12px 6px;
  font-weight: 700;
  font-size: 16px;
  color: #1d3d2d;
}

.raw-card + .cat-row {
  border-top: 1px solid var(--b-blue-border);
  margin-top: 14px;
  padding-top: 12px;
}

.cat-emoji { font-size: 22px; line-height: 1; }
.cat-name { font-weight: 800; color: #C04F15; }

/* Special controlled raw materials heading — distinct from supply-chain sub-titles. */
.sub-title-controlled { color: #C04F15; }
.sub-title-controlled .dot { background: #C04F15; }

.raw-card {
  border: 1px solid var(--b-blue-border);
  background: var(--b-blue-bg);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 12px 8px;
}

.raw-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 10px;
  align-items: center;
  font-size: 17px;
}

.raw-k { color: #1f5793; font-weight: 700; }
.raw-v { color: #1f1f1f; text-align: right; justify-self: end; }
.raw-v strong { color: #1f1f1f; }

.serial-btn {
  border: 1px solid #7fa6ca;
  background: #c8d9ef;
  border-radius: 8px;
  padding: 5px 14px;
  color: #1f5793;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  justify-self: end;
}

/* ---------- SUPPLIER LIST (compact, expandable) ---------- */
.supplier-list {
  list-style: none;
  margin: 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.supplier-list-nested {
  margin-top: 12px;
}

.panel-logo-img {
  margin: 10px 0 12px;
  text-align: center;
}

.panel-logo-img img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 6px;
}

.qr-link {
  display: inline-block;
  justify-self: end;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.qr-img {
  width: 110px;
  height: 110px;
  display: block;
}

.visit-link-btn {
  display: inline-block;
  justify-self: end;
  background: var(--b-blue-bg);
  border: 1px solid #1f5793;
  color: #1f5793;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.visit-link-btn:hover,
.visit-link-btn:focus {
  background: #c8d9ef;
  color: #1f5793;
  text-decoration: none;
}

.sub-title-divider {
  border-top: 8px solid var(--b-green-soft);
  margin-left: -14px;
  margin-right: -14px;
  margin-top: 20px;
  padding: 16px 26px 0;
}

.supplier-line {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #d6e3db;
  background: #fbfdfb;
  border-radius: 10px;
  padding: 8px 38px 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #205c3f;
  font-weight: 700;
}

.supplier-line::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #5f6b65;
  border-bottom: 2px solid #5f6b65;
  transform: rotate(45deg);
  transition: transform .25s ease, border-color .25s ease;
}

.supplier-line small {
  display: block;
  font-weight: 400;
  color: #5f6b65;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
}

.supplier-line.open {
  background: #ecf5ef;
  border-color: #c8e2d3;
}

.supplier-line.open::after {
  transform: rotate(-135deg);
  border-color: #2f8a57;
}

.supplier-line.supplier-line-lg {
  margin: 0 12px 8px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 30px 0 0;
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

.supplier-line.supplier-line-lg::after {
  top: 6px;
  right: 6px;
}

.supplier-line.supplier-line-lg small {
  font-size: 18px;
  color: #1f1f1f;
  line-height: 1.35;
  margin-top: 4px;
}

.supplier-line.supplier-line-lg.open {
  background: transparent;
  border-color: transparent;
}

.supplier-line.masskitchen-trigger {
  margin: 0 12px 8px;
  border: 1px solid #2f8a57;
  background: #2f8a57;
  border-radius: 10px;
  padding: 10px 40px 10px 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.supplier-line.masskitchen-trigger::after {
  top: 11px;
  right: 12px;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.supplier-line.masskitchen-trigger small {
  font-size: 13px;
  color: #e8f7ee;
  line-height: 1.35;
  margin-top: 4px;
}

.supplier-line.masskitchen-trigger.open {
  background: #256d46;
  border-color: #256d46;
}

.supplier-line.masskitchen-trigger.open::after {
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.supplier-panel {
  margin-top: 6px;
  border: 1px solid #d6e3db;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
}

.supplier-panel[hidden] { display: none; }
.supplier-panel:not([hidden]) { animation: panelIn .35s ease both; }
.supplier-panel.closing { animation: panelOut .32s ease both; }

.panel-logo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 1px solid #d6e3db;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  cursor: pointer;
}

.panel-logo img { width: 100%; height: 100%; object-fit: contain; }

.panel-head { padding-right: 44px; margin-bottom: 8px; }
.panel-head strong { display: block; color: #205c3f; font-size: 15px; line-height: 1.2; }
.panel-head small { display: block; color: #5f6b65; font-size: 12px; line-height: 1.3; margin-top: 2px; }

/* ---------- SCHOOL CARD ---------- */
.school-card {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 12px;
}

.school-card strong { display: block; font-size: 18px; color: #111; line-height: 1.3; }
.school-card small { display: block; font-size: 18px; color: #1f1f1f; margin: 4px 0; line-height: 1.35; }
.school-card a { color: #2563eb; text-decoration: underline; font-size: 18px; word-break: break-all; }

/* ---------- FEEDBACK ---------- */
.feedback-block { text-align: center; }
.feedback-block p { font-size: 18px; margin-bottom: 12px; }
.socials { display: flex; justify-content: center; gap: 14px; }
.socials img { width: 56px; height: 56px; object-fit: contain; }

.video-embed {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 14px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.operated-by {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4a6359;
  font-size: 13px;
}

.operated-by img { height: 22px; }

.contact-grid {
  margin: 18px auto 0;
  max-width: 480px;
  text-align: left;
}

.contact-col {
  padding: 0;
  margin-bottom: 14px;
}

.contact-col:last-child {
  margin-bottom: 0;
}

.contact-lead {
  font-size: 14px !important;
  margin: 0 0 6px !important;
  color: #1d5b3d;
  font-weight: 700;
  text-align: left;
  line-height: 1.3;
}

.contact-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #1d5b3d;
  line-height: 1.3;
}

.contact-line {
  font-size: 14px !important;
  margin: 0 0 4px !important;
  line-height: 1.4;
  color: #1f1f1f;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-line a {
  color: #1f5793;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ---------- MODALS ---------- */
.modal-b {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 28, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-b.open { display: flex; }
.modal-b.open .modal-box { animation: modalIn .35s ease both; }
.modal-b.closing { display: flex; }
.modal-b.closing .modal-box { animation: modalOut .32s ease both; }

.modal-box {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #cfe0d6;
  padding: 16px;
  position: relative;
}

.modal-box h3 { margin-top: 0; font-size: 20px; color: #205c3f; }
.modal-box p { font-size: 14px; margin: 6px 0; }
.modal-box ol { padding-left: 20px; font-size: 14px; }

.pdf-placeholder {
  margin-top: 10px;
  border: 2px solid #2d5f8a;
  min-height: 180px;
  display: grid;
  place-items: center;
  font-size: 18px;
  text-align: center;
  padding: 12px;
  color: #2d5f8a;
}

.pdf-placeholder small { display: block; font-size: 13px; color: #4a6e8a; margin-top: 4px; }

/* Embedded certificate file viewer inside the cert modal (PDF or image). */
.cert-file-viewer { margin-top: 10px; }
.cert-pdf-frame {
  display: block;
  width: 100%;
  height: 70vh;
  border: 1px solid #cfe0d6;
  border-radius: 6px;
  background: #fff;
}
.cert-file-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cfe0d6;
  border-radius: 6px;
}

.close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #4a6359;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  /* Language selector stacked above the logo (same column), aligned to the top
     of the hero on mobile. */
  .lang-selector-wrap {
    position: static;
  }
  .hero-logo-col {
    align-self: flex-start;
  }

  .hero-title { font-size: 22px; }
  .logo { width: 86px; height: 86px; }
  .qr-pill { font-size: 14px; padding: 8px 16px; }
  .course-pill { font-size: 18px; padding: 4px 18px; }
  .auth-btn { font-size: 12px; }
  .date-title { font-size: 26px; }
  .menu-box li { font-size: 16px; }

  .transport-grid { flex-direction: column; }
  .transport-right { width: 100%; }
  .transport-box h3 { font-size: 22px; }
  .transport-title img { width: 42px; height: 42px; }
  .transport-time { font-size: 28px; }
  .transport-card-truck .truck-icon { width: 56px; height: 56px; }
  .truck-plate-num { font-size: 22px; }

  .cat-h2 { font-size: 22px; }
  .cat-h2 .cat-icon-img { width: 30px; height: 30px; }
  .cat-h2 .cat-icon-img[src*="image7"],
  .cat-h2 .cat-icon-img[src*="image8"] { width: 42px; height: 42px; }

  .feedback-block h2 { font-size: 28px; }
  .feedback-block p { font-size: 16px; }

  .green-note { font-size: 16px; padding: 10px 12px; }
  .green-note.small { font-size: 14px; padding: 8px 10px; }
  .green-note .gt-btn img { width: 48px; height: 48px; }
  .green-note.small .gt-btn img { width: 36px; height: 36px; }

  .supplier-card.supplier-card-static .supplier-head strong,
  .supplier-card.supplier-card-static .supplier-head small,
  .school-card strong,
  .school-card small,
  .school-card a { font-size: 16px; }

  .sub-title { font-size: 17px; }
  .raw-grid { grid-template-columns: 120px 1fr; font-size: 15px; }
  .serial-btn { font-size: 14px; }
  .kv { grid-template-columns: 120px 1fr; font-size: 14px; }
}
