:root{
  --wood-1: #3b2416;
  --wood-2: #55321f;
  --gold: #ddbf4a;
  --gold-dark: #b8922b;
  --panel-padding: 21px;
  --board-width: 540px;
  --board-radius: 13.5px;
  --accent-line: 3px;
  --title-font: "Playfair Display", Georgia, serif;
  --body-font: "Montserrat", Arial, sans-serif;
}

/* container */
.honour-roll {
  width: 100%;
  max-width: var(--board-width);
  margin: 30px auto;
  font-family: var(--body-font);
  color: var(--gold);
  display: block;
  text-align: center;
  background: url('https://www.transparenttextures.com/patterns/wood-pattern.png') repeat, linear-gradient(135deg, #6e4a2a 0%, #55321f 60%, #3b2416 100%);
  background-blend-mode: multiply;
  border-radius: 36px;
  border: 6px solid #b8922b; /* thinner, lighter gold border */
  box-shadow:
    0 2px 8px #fff8d0 inset, /* top inner highlight */
    0 10px 40px rgba(0,0,0,0.55), /* outer shadow */
    0 0 0 4px #3b2416, /* outer wood shadow, thinner */
    0 1px 0 #fff8d0 inset, /* subtle bevel highlight */
    0 -2px 8px #2a170c inset; /* bottom inner shadow */
}

.honour-roll__panel {
  background: none;
}
/* Table column gold separators */
.honour-roll__table th:not(:last-child),
.honour-roll__table td:not(:last-child) {
  border-right: 3px solid #ddbf4a;
}

.honour-roll__table th,
.honour-roll__table td {
  box-shadow: none;
}

/* arch at the top using pseudo element */
.honour-roll__arch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -70px;
  width: 92%;
  width: 105px;
  height: 105px;
  margin-top: -28px;
  z-index: 2;
}

/* board inner dark insert where the table sits */
.honour-roll__inner {
  background: none;
  padding-top: 38px;
  padding-bottom: 18px;
  border-radius: 0;
  min-height: 420px;
  position: relative;
}

/* crest / badge */
.honour-roll__crest {
  width: 140px;
  max-width: 510px;
  margin: 0 auto;
  margin-top: -38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-radius: 50%;
  border: 6px solid #ddbf4a;
  box-shadow: 0 4px 18px rgba(0,0,0,0.7), 0 0 0 6px #3b2416, inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}

.honour-roll__crest img {
  margin: 0 !important;
  border-radius: 50% !important;
}


/* main curved title: we use the SVG text path */
.honour-roll__title {
  font-family: var(--title-font);
  font-weight: 900;
  letter-spacing: 3px;
  fill: var(--gold);
  font-size: 28.5px;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 6px #b8922b) drop-shadow(0 1px 0 #000);
}

/* small formed date line */
.honour-roll__formed {
  color: rgba(221,191,74,0.95);
  font-family: var(--body-font);
  font-size: 9px;
  margin-top: 6px;
}

/* honour roll title line (HONOUR ROLL) */
.honour-roll__subheading {
  font-family: var(--title-font);
  font-size: 33px;
  margin: 18px 0 18px;
  color: var(--gold);
  font-weight: 900;
  text-shadow: 0 2px 8px #b8922b, 0 1px 0 #000;
}

/* table styles */
.honour-roll__table {
  width: 92%;
  max-width: 680px;
  margin: 10px auto;
  border-collapse: separate;
  border-spacing: 0 0;
  table-layout: fixed;
  color: var(--gold);
  font-size: 13.5px;
}

.honour-roll__table thead th{
  font-family: var(--title-font);
  font-size: 15px;
  color: var(--gold);
  padding: 6px 8px;
  text-align: center;
  letter-spacing: 2px;
  border-bottom: var(--accent-line) solid #ddbf4a;
  font-weight: 900;
  text-shadow: 0 2px 8px #b8922b, 0 1px 0 #000;
}

/* each row */
.honour-roll__table tbody tr{
  border-bottom: 1px solid rgba(255,255,255,0.04);
  height: 34px;
}

.honour-roll__table td{
  vertical-align: middle;
  padding: 6px 8px;
  font-size: 13.5px;
  color: #ddbf4a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  text-shadow: 0 1px 0 #000, 0 0 6px #b8922b;
}

/* gold vertical separators (match photo) */
.honour-roll__sep {
  border-left: 4px solid #ddbf4a;
  position: absolute;
  top: calc(170px + 4.5em); /* Start just below the heading and crest */
  height: calc(100% - 220px); /* End just above the bottom padding */
  pointer-events: none;
  z-index: 3;
}

/* place vertical lines — we'll add these as elements in HTML for exact positioning */
.sep-1 { left: 28%; }
.sep-2 { left: 52%; }
.sep-3 { left: 72%; }

/* responsive */
@media (max-width:880px){
  :root{ --board-width: 520px; }
  .honour-roll__subheading{ font-size: 24px; }
  .honour-roll__title{ font-size: 14px; }
}

@media (max-width:600px){
  .honour-roll {
    max-width: 99vw;
    border-radius: 18px;
    padding: 6px;
  }
  .honour-roll__subheading {
    font-size: 1.1rem;
    margin: 10px 0;
  }
  .honour-roll__title {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  .honour-roll__formed {
    font-size: 0.7rem;
  }
  .honour-roll__table {
    font-size: 0.85rem;
    max-width: 99vw;
    width: 99vw;
  }
  .honour-roll__table thead th {
    font-size: 0.9rem;
    padding: 4px 2px;
    letter-spacing: 0.5px;
  }
  .honour-roll__table td {
    font-size: 0.85rem;
    padding: 4px 2px;
    white-space: normal;
    word-break: break-word;
  }
  .honour-roll__crest {
    width: 80px;
    height: 80px;
    margin-top: -18px;
  }
  .honour-roll__crest img {
    width: 68px !important;
    height: 68px !important;
  }
}

/* small polish: gold glow */
.honour-roll__table td, .honour-roll__subheading, .honour-roll__formed {
  text-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 0 6px rgba(221,191,74,0.06);
}
