/* PTE Upcoming Events - Front-end */
.pte-events-wrap{ max-width: 1200px; margin: 0 auto; font-family: inherit; }
.pte-monthbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin: 10px 0 18px; }
.pte-monthbar-label{ font-weight:700; letter-spacing:.04em; font-size:12px; color:#000; }
.pte-monthbar-controls{ display:flex; align-items:center; gap:10px; }
.pte-monthbtn{ width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center;
    border-radius: 999px; background:#000; color:#fff; text-decoration:none; font-weight:700; line-height:1; }
.pte-monthbtn:hover{ opacity:.9; }
.pte-monthname{ font-weight:800; letter-spacing:.02em; font-size:18px; }
.pte-monthheader{ font-weight:900; letter-spacing:.01em; font-size:48px; margin: 8px 0 8px; text-transform:uppercase; }
.pte-divider{ height:2px; background:#111; opacity:.25; margin-bottom: 18px; }
.pte-empty{ padding: 18px 0; font-weight:600; }

.pte-list{ display:flex; flex-direction:column; gap:32px; }

.pte-item{ display:grid; grid-template-columns: 84px 320px 1fr; gap: 22px; align-items:start; }
@media (max-width: 900px){
  .pte-item{ grid-template-columns: 84px 1fr; }
  .pte-image{ grid-column: 2 / -1; }
  .pte-content{ grid-column: 2 / -1; }
}
@media (max-width: 520px){
  .pte-item{ grid-template-columns: 1fr; }
  .pte-datebox{ width: 90px; }
  .pte-image, .pte-content{ grid-column: auto; }
}

.pte-datebox{ background:#000; color:#fff; width:84px; height:84px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius: 2px; }
.pte-datebox-month{ font-weight:900; font-size:18px; line-height:1; }
.pte-datebox-day{ font-weight:900; font-size:34px; line-height:1; margin-top:6px; }

.pte-thumb{ width:100%; height:auto; display:block; border-radius: 2px; }
.pte-thumb--placeholder{ width:100%; aspect-ratio: 3/4; background: #eee; border: 1px solid rgba(0,0,0,.08); }

.pte-title{ margin: 0; font-size: 34px; font-weight: 900; text-transform:uppercase; }
.pte-datetime{ margin-top:6px; font-weight:800; text-transform:uppercase; letter-spacing:.02em; }
.pte-badge{ display:inline-block; margin-top:8px; background:#000; color:#fff; font-weight:800; font-size:12px;
  padding: 4px 10px; border-radius: 999px; text-transform:uppercase; letter-spacing:.03em; }
.pte-label{ margin-top: 16px; font-weight:900; text-transform:uppercase; font-size: 13px; }
.pte-text{ margin-top: 4px; line-height:1.55; max-width: 72ch; }

.pte-actions{ margin-top: 16px; }
.pte-register{ display:inline-flex; align-items:center; justify-content:center; padding: 10px 18px; border-radius: 999px;
  background:#000; color:#fff; text-decoration:none; font-weight:900; text-transform:uppercase; letter-spacing:.02em; }
.pte-register:hover{ opacity:.9; }
.pte-noreg{ font-weight:800; }


/* Month arrow buttons (black circle, white arrow) */
.pte-monthbtn {
  background: #000 !important;
  color: #fff !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
  text-decoration: none;
}
.pte-monthbtn:focus,
.pte-monthbtn:active {
  outline: none !important;
  box-shadow: none !important;
}


/* View + Download buttons */
.pte-view-controls { display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap; margin: 12px 0 6px; }
.pte-viewbtn, .pte-downloadbtn {
  background:#000;
  color:#fff;
  border:1px solid #000;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor:pointer;
  text-decoration:none;
  line-height: 1;
}
.pte-viewbtn--active { opacity: .85; }
.pte-viewbtn:focus, .pte-downloadbtn:focus { outline:none; box-shadow:none; }

/* Calendar view */
.pte-calendar-view { display:none; margin-top: 18px; }
.pte-cal { width:100%; border-collapse: collapse; background:#fff; }
.pte-cal th, .pte-cal td { border:1px solid rgba(0,0,0,.12); vertical-align: top; padding:10px; height:110px; }
.pte-cal th { background:#f6f6f6; text-align:left; font-weight:800; text-transform:uppercase; font-size:12px; letter-spacing:.04em; }
.pte-cal-daynum { font-weight:900; margin-bottom:6px; }
.pte-cal-item {
  display:block;
  width:100%;
  background:#000;
  color:#fff;
  border-radius: 10px;
  padding:6px 8px;
  margin:6px 0;
  font-size:12px;
  font-weight:700;
  border:none;
  cursor:pointer;
  text-align:left;
}
.pte-cal-item:focus { outline:none; box-shadow:none; }
.pte-cal-note { margin-top:10px; font-size:12px; opacity:.8; }

/* Modal */
.pte-modal-open { overflow: hidden; }
.pte-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.pte-modal {
  width: 100%;
  max-width: 920px;
  background: #fff;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  max-height: 88vh;
  overflow: auto;
}
.pte-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}
.pte-modal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 22px;
}
.pte-modal-datebox {
  width: 100%;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
}
.pte-db-month { font-weight: 900; letter-spacing: .08em; }
.pte-db-day { font-size: 42px; font-weight: 900; line-height: 1; margin-top: 4px; }
.pte-modal-imagewrap img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.pte-modal-title { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
.pte-modal-datetime { font-weight: 800; margin-bottom: 10px; }
.pte-modal-desc { opacity: .9; margin-bottom: 14px; white-space: pre-wrap; }
.pte-modal-row { margin: 12px 0; }
@media (max-width: 720px) {
  .pte-modal-body { grid-template-columns: 1fr; }
}


/* Calendar: keep cells fixed and truncate long titles */
.pte-cal { table-layout: fixed !important; }
.pte-cal th, .pte-cal td { overflow: hidden !important; }
.pte-cal td.pte-cal-cell { height: 110px !important; max-height: 110px !important; }
.pte-cal-item {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* Add to Google Calendar link */
.pte-add-gcal-row { margin-top: 10px; }
.pte-add-gcal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #000;
  text-decoration: none;
  opacity: .85;
}
.pte-add-gcal:hover { opacity: 1; text-decoration: underline; }
.pte-gcal-icon { font-size: 14px; line-height: 1; }

/* Google Calendar SVG icon */
.pte-gcal-icon svg {
  display: block;
}


/* Month arrows: remove theme focus/active blue box */
.pte-events-wrap .pte-monthbar-controls .pte-monthbtn,
.pte-events-wrap .pte-monthbar-controls .pte-monthbtn:focus,
.pte-events-wrap .pte-monthbar-controls .pte-monthbtn:active,
.pte-events-wrap .pte-monthbar-controls .pte-monthbtn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

/* Ensure pure black circle + white arrow */
.pte-events-wrap .pte-monthbar-controls .pte-monthbtn {
  background: #000 !important;
  color: #fff !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}


/* SVG month arrows (avoid emoji-style glyphs) */
.pte-monthbtn { font-size: 0 !important; color: #fff !important; }
.pte-monthbtn .pte-arrow { display:block; }
