/* =========================================================
   PLO site styles
   Layout pieces of the old (2023) site, unscoped from its Vue
   components, plus a few new components drawn in the same
   hand-sketched style. Base theme lives in theme.css.
========================================================= */

a,
div,
p,
span,
li,
td,
th {
  font-size: 1.3rem;
}
h1 {
  font-size: 4rem;
  text-align: center;
}
main {
  padding-top: 20px;
  padding-bottom: 60px;
}
.page-section {
  padding: 20px 0;
  text-align: justify;
}
.page-section h1 {
  font-size: 3.5rem;
  padding-bottom: 20px;
}
.page-section h2,
.page-section h3 {
  text-align: center;
  margin: 30px 0 15px;
}
.lead-center {
  text-align: center;
}

/* ---------- Navbar ---------- */
.navbar {
  margin: 10px 0 20px;
}
.navbar-brand img {
  height: 40px;
}
.navbar .nav-link {
  font-size: 1.3rem;
}
.navbar .active > .nav-link {
  text-decoration: underline;
}

/* Organised by - visible on top bar on mobile and right side on desktop */
.organised-by {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.organised-by small,
.organised-by span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.organised-by img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
@media (min-width: 992px) {
  .organised-by {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid #ddd;
  }
}
@media (max-width: 991.98px) {
  .organised-by img {
    height: 34px;
  }
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
  }
}
@media (max-width: 440px) {
  .organised-by small,
  .organised-by span {
    display: none;
  }
  .organised-by img {
    height: 30px;
  }
}

/* ---------- Announcement banner ---------- */
.announce {
  border: 2px solid #333;
  border-radius: 255px 25px 225px 25px/25px 225px 25px 255px;
  background: #faf884;
  padding: 10px 25px;
  margin: 0 auto 25px;
  text-align: center;
}
.announce a {
  font-weight: 700;
  margin-left: 8px;
}

/* ---------- Highlighted words ---------- */
.text-highlight {
  padding: 0 4px;
}
.text-highlight.yellow {
  background-color: #faf884;
}
.text-highlight.red {
  background-color: #ff8c8c;
}
.text-highlight.blue {
  background-color: #84faea;
}
.text-highlight.green {
  background-color: #dafa84;
}
.text-highlight.pink {
  background-color: #f084fa;
}
.continued {
  text-align: right;
  font-style: italic;
}

/* ---------- Old zig-zag timeline ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 30px auto;
}
.timeline-event {
  position: relative;
  width: 70%;
  padding: 20px 40px;
  border: 3px solid #7fffd4;
  text-align: center;
}
.timeline-event.left {
  margin-right: auto;
  border-right: none;
  border-radius: 20px 0 0 20px;
  margin-left: 8%;
}
.timeline-event.right {
  margin-left: auto;
  border-left: none;
  border-radius: 0 20px 20px 0;
  margin-right: 8%;
}
.timeline-event + .timeline-event {
  margin-top: -3px;
}
.timeline-event:first-child {
  border-top-color: transparent;
}
.timeline-event:last-child {
  border-bottom-color: transparent;
}
.timeline-event .circle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  line-height: 46px;
  border-radius: 50%;
  background-color: #7fffd4;
  font-size: 1.2rem;
  text-align: center;
}
.timeline-event.left .circle {
  left: -23px;
}
.timeline-event.right .circle {
  right: -23px;
}
.timeline-event h4 {
  margin-bottom: 4px;
}
.timeline-event .when {
  font-style: italic;
  font-weight: 700;
}
.timeline-event.done {
  opacity: 0.55;
}
.timeline-event.now .circle {
  background-color: #68da46;
  border: 2px solid #000;
}
@media (max-width: 767px) {
  .timeline-event {
    width: 90%;
  }
  .timeline-event.left,
  .timeline-event.right {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Carousel (Bootstrap) in a sketched frame ---------- */
.sketch-frame {
  border: 2px solid #333;
  border-radius: 25px 5px 25px 5px/5px 25px 5px 25px;
  overflow: hidden;
  margin: 20px auto 40px;
  max-width: 900px;
}
.sketch-frame .carousel-item img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
@media (max-width: 767px) {
  .sketch-frame .carousel-item img {
    height: 240px;
  }
}
.sketch-img {
  max-width: 100%;
  border: 2px solid #333;
  border-radius: 25px 5px 25px 5px/5px 25px 5px 25px;
}
figure.sketch {
  text-align: center;
  margin: 20px auto 30px;
}
figure.sketch figcaption {
  font-size: 1rem;
  color: #868e96;
}

/* ---------- Floating social buttons ---------- */
.social {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}
.social div {
  height: 50px;
  width: 50px;
  margin: 16px;
  text-align: center;
}
.social div a i {
  font-size: 3.4rem;
  opacity: 0.5;
  transition: all 1s ease;
}
.social div a i:hover {
  opacity: 1;
}
#social-facebook a i {
  color: #3b5998;
}
#social-instagram a i {
  color: #c13584;
}
#social-email a i {
  color: #dd4b39;
}
#social-linkedin a i {
  color: #0a66c2;
}
.social .x-logo {
  width: 44px;
  height: 44px;
  margin-top: 4px;
  fill: #000;
  opacity: 0.5;
  transition: all 1s ease;
}
.social .x-logo:hover {
  opacity: 1;
}
@media (max-width: 767px) {
  .social {
    display: none;
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 2px solid #333;
  border-radius: 255px 25px 0 25px/25px 225px 25px 0;
  padding: 25px 10px 40px;
  text-align: center;
}
footer.site-footer p,
footer.site-footer a {
  font-size: 1.1rem;
}

/* ---------- Tables ---------- */
table.table {
  text-align: center;
}
table.table tbody tr td,
table.table th {
  padding: 10px;
  vertical-align: middle;
}
.gold,
.gold > td {
  background-color: gold;
}
.silver,
.silver > td {
  background-color: #adacac;
}
.bronze,
.bronze > td {
  background-color: #e7ab6f;
}
.sky,
.sky > td {
  background-color: #e7f5fe;
}
.saffron,
.saffron > td,
.saffron > th {
  background-color: #ffc081;
}
.green,
.green > td,
.green > th {
  background-color: #8fe78f;
}
.badge.medal {
  font-size: 1rem;
  border: 2px solid #333;
  margin: 2px 6px;
  color: #212529;
}
.badge.medal.gold {
  background-color: gold;
}
.badge.medal.silver {
  background-color: #adacac;
}
.badge.medal.bronze {
  background-color: #e7ab6f;
}
.badge.medal.hm {
  background-color: #e7f5fe;
}
.badge.medal.solution {
  background-color: #84faea;
}
.leader-row td {
  font-style: italic;
}

/* ---------- "In the Past" year tabs (old purple pills) ---------- */
ul.nav-pill-primary li a {
  color: #639;
  text-decoration: none;
  transition: all 1s ease;
}
ul.nav-pill-primary li a.active {
  background-color: #639;
  color: #fff;
}
.year-panel,
.result-panel {
  display: none;
}
.year-panel.show,
.result-panel.show {
  display: block;
}

/* ---------- Resources page (copied from the old site) ----------
   Row colours come from .level-color-00 … .level-color-10 in theme.css. */
form.form-inline {
  margin: 25px;
}
.level-color {
  text-align: center;
}
.pad-vertical {
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}
.pad-vertical h1 {
  width: 100%;
}

/* ---------- Cards / FAQ ---------- */
.card {
  margin-bottom: 25px;
}
.card-header button {
  font-size: 1.4rem;
  text-decoration: none;
  color: #333;
  width: 100%;
  text-align: left;
}
.fee {
  font-size: 2.2rem;
  font-family: "Cabin Sketch", cursive;
}
.fee-note {
  color: #555;
}

/* ---------- Sample problem ---------- */
#hint {
  display: none;
}
#hint.show {
  display: block;
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
}
.team-card h5 {
  margin-bottom: 2px;
}
.team-card p {
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Hall ticket / results notices (shown by site.js when the portal opens them) ---------- */
.portal-callout {
  border: 2px solid #333;
  border-radius: 255px 25px 225px 25px/25px 225px 25px 255px;
  padding: 10px 20px;
  margin: 10px auto 25px;
  max-width: 760px;
  font-size: 1.4rem;
}
.portal-callout a {
  font-weight: 700;
  margin-left: 6px;
}

/* Navbar "Sign in" tab (shown by site.js once the hall ticket & results portal is set up) */
.signin-tab {
  margin-right: 14px;
  font-size: 1.1rem;
}

/* ---------- "Switch to old version" button in navbar ---------- */
.version-switch-btn {
  display: inline-block;
  margin-right: 12px;
  padding: 4px 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  border: 1.5px solid #6c757d;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.version-switch-btn:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
  text-decoration: none;
}

/* =========================================================
   PLO 2027 WEBINAR SERIES
   Added for the homepage announcement.
   ========================================================= */
.plo-webinar-home {
  margin: 0 0 60px;
  padding: 36px 28px;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.plo-webinar-home-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}
.plo-webinar-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.plo-webinar-home h2 {
  margin: 0 0 14px;
  color: #7f1d1d;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
}
.plo-webinar-home p {
  max-width: 720px;
  margin: 0 auto 20px;
  color: #475569;
  line-height: 1.75;
}
.plo-webinar-home-details {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 24px;
}
.plo-webinar-home-details span {
  color: #334155;
  font-weight: 650;
}
.plo-webinar-home-details i {
  margin-right: 7px;
  color: #dc2626;
}
.plo-webinar-home-button,
.plo-webinar-join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 0;
  border-radius: 9px;
  background: #b91c1c;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.plo-webinar-home-button:hover,
.plo-webinar-join-button:hover {
  background: #7f1d1d;
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .plo-webinar-home {
    padding: 28px 18px;
  }
  .plo-webinar-home-details {
    flex-direction: column;
    gap: 12px;
  }
}

/* =========================================================
   Examination Centre Allocation Notice (registration page)
   ========================================================= */
.plo-2027-centre-notice {
  margin: 28px 0;
  padding: 24px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 5px solid #ea580c;
  border-radius: 12px;
  text-align: center;
}
.plo-2027-centre-notice h2 {
  color: #9a3412;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.centre-notice-item {
  margin-bottom: 16px;
}
.centre-notice-item:last-child {
  margin-bottom: 0;
}
.centre-notice-item strong {
  color: #7c2d12;
  display: block;
  margin-bottom: 6px;
}
.centre-notice-item p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 600px) {
  .plo-2027-centre-notice {
    padding: 18px;
  }
}
