/* Keep the exported header/footer and the original gallery's navy/gold palette. */
#container .events-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  align-self: center;
  padding: 40px 120px;
  color: #282c75;
  font-family: "Montserrat:Regular", sans-serif;
}
.events-intro { margin-bottom: 32px; }
.events-intro h1 {
  margin: 0 0 16px;
  font-family: "Montserrat:SemiBold", sans-serif;
  font-size: 32px;
  line-height: 1.2;
}
.events-intro p {
  max-width: 660px;
  margin: 0;
  color: rgba(0, 3, 48, .9);
  font-size: 16px;
  line-height: 1.4;
}
.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
}
.event-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #282c75;
  opacity: .55;
  font-family: "Montserrat:SemiBold", sans-serif;
  font-size: 16px;
  line-height: 21px;
  cursor: pointer;
  text-align: left;
}
.event-tab-date { font-size: 13px; white-space: nowrap; }
.event-tab[aria-selected="true"] { opacity: 1; border-bottom-color: #ffb706; }
.event-tab:hover { opacity: 1; }
.event-tab:focus-visible, .event-card--apply:focus-visible, .event-panel:focus-visible {
  outline: 2px solid #282c75;
  outline-offset: 4px;
}
.event-panel[hidden] { display: none; }
.event-panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.event-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.event-card { display: block; flex: 1 1 calc((100% - 32px) / 3); min-width: 0; height: 508px; border-radius: 8px; overflow: hidden; }
.event-card:last-child:nth-child(3n + 1) { flex-grow: 0; }
.event-card:nth-child(6n + 4), .event-card:nth-child(6n + 5), .event-card:nth-child(6n + 6) { height: 315px; }
.event-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-card--apply { background: #fff; }
.event-card--apply img { object-fit: contain; }
@media (min-width: 1280px) {
  .event-panel[data-event="dekk-nisan"] .event-card:nth-last-child(-n + 2) { height: 315px; }
}
@media (min-width: 800px) and (max-width: 1279px) {
  #container .events-page { max-width: 800px; padding: 40px 80px; }
  .events-intro h1 { font-size: 28px; }
}
@media (max-width: 1279px) {
  .event-card:nth-child(n) { flex-basis: calc((100% - 16px) / 2); height: 400px; }
  .event-card:last-child { flex-grow: 1; }
  .event-card:last-child:nth-child(2n + 1) { flex-grow: 0; }
  .event-card:nth-child(4n + 3), .event-card:nth-child(4n + 4) { height: 315px; }
}
@media (max-width: 799px) {
  #container .events-page { padding: 32px 20px; }
  .events-intro h1 { font-size: 24px; line-height: 26px; }
  .events-intro p { font-size: 15px; line-height: 20px; }
  .event-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: 12px; padding: 4px; margin: -4px -4px 24px; }
  .event-tab { flex-shrink: 0; font-size: 14px; line-height: 20px; }
  .event-tab-date { font-size: 12px; }
  .event-grid { gap: 12px; }
  .event-card:nth-child(n) { flex-basis: calc((100% - 12px) / 2); height: clamp(180px, 61.333vw, 400px); }
  .event-card:nth-child(4n + 3), .event-card:nth-child(4n + 4) { height: clamp(130px, 39.2vw, 315px); }
}
@media (max-width: 360px) {
  #container header .css-5612uf { font-size: 12px; }
}
