/* ---------------------------------------------------------------------------------------------
 * Inner pages: About, Activities, Events Calendar, Event, Gallery, Album, Contact Us.
 * Loaded after style.css, on these pages only.
 * --------------------------------------------------------------------------------------------- */
:root { --bg-inner: var(--bg); }

.fa-calendar-o::before { content: '\f133'; }
.fa-clock-o::before { content: '\f017'; }
.fa-download::before { content: '\f019'; }
.fa-paper-plane::before { content: '\f1d8'; }
.fa-picture-o::before { content: '\f03e'; }
.fa-print::before { content: '\f02f'; }

.page-inner main { background: var(--bg-inner); }
.page-inner main > .section { padding-block: clamp(24px, 3vw, 40px); }


/* ---- banner: navy under the fixed header, a saffron line under it ---- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(28px, 4vw, 52px)) 0 clamp(30px, 4vw, 52px);
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
  border-bottom: 4px solid var(--saffron-500);
}

.page-hero__inner { display: grid; justify-items: start; gap: 14px; }
.page-hero__title { margin: 0; font-size: clamp(1.35rem, 0.8vw + 1.05rem, 1.65rem); font-weight: 800; line-height: 1.2; color: #fff; }
.page-hero__sub { max-width: 60ch; margin: 0; font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgb(255 255 255 / 85%); }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0; font-size: 0.9rem; list-style: none; color: rgb(255 255 255 / 75%); }
.crumbs li + li::before { content: '\f054'; margin-right: 10px; font: 9px/1 FontAwesome; opacity: 0.7; }
.crumbs a { font-weight: 500; color: #fff; }
.crumbs a:hover { color: var(--saffron-300); }

/* ---- text written in the editor: White box, Address box, Red text ---- */
.entry-content > * + * { margin-top: clamp(24px, 4vw, 40px); }
.entry-content p:empty, .entry-content h2:empty { display: none; }
.entry-content img { max-width: 100%; height: auto; }

.is-style-white-box {
  padding: clamp(18px, 3vw, 36px);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.is-style-white-box::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: var(--grad-brand); }

.is-style-white-box > * { max-width: none !important; }
.is-style-white-box::after { content: ''; display: block; clear: both; }

/* The lotus between two fading lines, under a title */
.entry-content .wp-block-heading::after,
.box-card__title::after {
  content: '';
  display: block;
  width: 200px;
  height: 24px;
  margin-top: 12px;
  background:
    url('../assets/images/lotus.svg') center / 48px 24px no-repeat,
    linear-gradient(90deg, transparent, var(--saffron-600)) left center / 62px 2px no-repeat,
    linear-gradient(90deg, var(--saffron-600), transparent) right center / 62px 2px no-repeat;
  filter: var(--icon-filter);
}

.is-style-address-box {
  clear: both;
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--surface-2);
  border-left: 4px solid var(--saffron-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.is-style-address-box p { margin: 0 0 0.5em; }
.is-style-address-box p:last-of-type { margin-bottom: 0; }
.is-style-address-box strong { color: var(--heading); }

.is-style-red-text { clear: both; font-size: 1.1rem; font-weight: 700; color: var(--warm-text); }

/* About: one plain box of text, without the coloured line */
.entry-content--about .is-style-white-box { padding: clamp(22px, 4vw, 56px); box-shadow: var(--shadow-sm); }
.entry-content--about .is-style-white-box::before { content: none; }
.entry-content--about .is-style-white-box p { margin: 0 0 1.2em; }
.entry-content--about .is-style-white-box p:last-child { margin-bottom: 0; }

/* Columns written in the editor */
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 48px); align-items: center; margin: 0; }
.entry-content .wp-block-column { flex: 1 1 300px; min-width: 0; }
.entry-content .wp-block-image { margin: 0; }
.entry-content .wp-block-column .wp-block-image img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---- activities: the poster beside its text, the Address box and Red text across the box ---- */
.entry-content--activities .wp-block-columns,
.entry-content--activities .wp-block-column { display: contents; }

.entry-content--activities .wp-block-image {
  float: left;
  width: 38%;
  margin: 0 clamp(22px, 4vw, 40px) 18px 0;
}

.entry-content--activities .wp-block-column .wp-block-image img { max-width: 440px; box-shadow: var(--shadow-lg); }
.entry-content--activities .wp-block-heading { overflow: hidden; padding: 8px 0 14px; font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
.entry-content--activities .wp-block-column > p:not(.is-style-red-text) { overflow: hidden; }
.entry-content--activities .activities-past-title { padding-top: 16px; font-size: clamp(1.4rem, 2.8vw, 1.75rem); text-align: center; }
.entry-content--activities .activities-past-title::after { margin-inline: auto; }

@media (max-width: 767.98px) {
  .entry-content--activities .wp-block-image { float: none; width: 100%; margin: 0 0 18px; }
  .entry-content--activities .wp-block-column .wp-block-image img { margin-inline: auto; }
  .entry-content--activities .wp-block-heading { padding-top: 0; }
}

/* ---- calendar ---- */
.cal-box { --tone: var(--blue-500); border-color: color-mix(in srgb, var(--tone) 38%, var(--border)); box-shadow: var(--shadow-md); }
.cal-box__head, .cal-box__foot { background: color-mix(in srgb, var(--tone) 9%, var(--surface)); }
.cal-box__head { padding: 10px 18px; border-bottom: 1px solid color-mix(in srgb, var(--tone) 24%, var(--border)); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.cal-box__body { padding: 18px; }

.cal-box__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid color-mix(in srgb, var(--tone) 24%, var(--border));
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.pager, .tools, .tgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tgroup { gap: 0; }
.tgroup .tbtn:not(:first-child) { margin-left: -1.5px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tgroup .tbtn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.pager__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
}

.pager__title .fa { color: var(--saffron-600); }

.tbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--link);
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--blue-500) 40%, var(--border));
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.tbtn[hidden] { display: none; }
.tbtn--icon { width: 40px; padding: 0; }
.tbtn:hover, .tbtn:focus-visible, .tbtn.is-on { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.tbtn--solid { color: #fff; background: var(--grad-primary); border-color: transparent; box-shadow: 0 10px 24px rgb(217 80 11 / 32%); }
.tbtn--solid:hover, .tbtn--solid:focus-visible { background: var(--grad-primary); border-color: transparent; box-shadow: 0 14px 30px rgb(217 80 11 / 42%); transform: translateY(-2px); }

.tselect {
  min-height: 40px;
  padding: 0 34px 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--link);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233d5f96' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid color-mix(in srgb, var(--blue-500) 40%, var(--border));
  border-radius: var(--radius-pill);
  appearance: none;
  cursor: pointer;
}

.cal-empty { margin: 0; padding: 32px 24px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-sm); }

.agenda { display: grid; gap: 14px 22px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.day { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.day__events { display: grid; grid-auto-rows: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }

.badge {
  --accent: var(--blue-500);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 10px 4px 12px 8px;
  line-height: 1.15;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: inset 4px 0 0 var(--accent);
}

.badge.is-today { --accent: var(--saffron-500); background: color-mix(in srgb, var(--saffron-500) 12%, var(--surface)); border-color: color-mix(in srgb, var(--saffron-500) 40%, var(--border)); }
.badge__month { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.badge__day { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--heading); }
.badge__weekday { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.badge__year { margin-top: 2px; font-size: 0.65rem; letter-spacing: 0.18em; color: var(--muted); }
.badge.is-today .badge__month, .badge.is-today .badge__year { color: var(--warm-text); }
.badge.is-today .badge__year { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 479.98px) {
  .cal-box__body { padding: 12px; }
  .pager__title { padding: 0 12px; font-size: 0.78rem; }
  .day { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .badge { padding: 8px 2px 10px 6px; }
  .badge__day { font-size: 1.5rem; }
}

.tile {
  --accent: var(--blue-500);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'title go' 'meta go';
  align-content: center;
  align-items: center;
  gap: 3px 14px;
  height: 100%;
  padding: 14px 18px 14px 22px;
  color: inherit;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: inset 4px 0 0 var(--accent);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.tile.has-label { grid-template-areas: 'label go' 'title go' 'meta go'; }
.tile:hover, .tile:focus-visible { transform: translateY(-2px); box-shadow: inset 4px 0 0 var(--accent), var(--shadow-md); }
.tile:hover .tile__title { color: var(--link-hover); }
.tile__label { grid-area: label; display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.tile__title { grid-area: title; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--heading); overflow-wrap: anywhere; transition: color 0.2s ease; }
.tile__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 0.88rem; color: var(--muted); }
.tile__venue { display: inline-flex; align-items: center; gap: 6px; }
.tile__venue .fa { color: var(--saffron-600); }
.tile__go { grid-area: go; font-size: 1.1rem; color: var(--link); }

.mgrid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.mgrid th { padding: 12px 4px; font-size: 0.85rem; font-weight: 700; text-align: center; color: #fff; background: var(--grad-hero); }
.mgrid td { position: relative; height: 118px; padding: 6px 8px 8px; vertical-align: top; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.mgrid td:first-child { border-left: 0; }
.mgrid td.is-out { background: var(--surface-2); }
.mgrid td.is-out .num { color: var(--muted); opacity: 0.6; }
.mgrid td.is-today .num { color: #fff; background: var(--grad-primary); }

.num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--heading); border-radius: var(--radius-pill); }
.chips { display: grid; gap: 3px; margin: 4px 0 0; padding: 0; list-style: none; }
.chips > li { min-width: 0; }
.chip { display: block; padding: 3px 8px; overflow: hidden; font-size: 0.74rem; line-height: 1.35; color: #fff; text-overflow: ellipsis; white-space: nowrap; background: var(--blue-600); border-radius: 8px; }
.chip:hover, .chip:focus-visible { color: #fff; background: var(--saffron-600); }
.chip__time { margin-right: 4px; font-weight: 700; opacity: 0.9; }
.pick { display: none; }

.panel { margin-top: 18px; padding: 18px 22px 18px 26px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: inset 4px 0 0 var(--saffron-500); }
.panel__title { margin: 0 0 10px; font-size: 1rem; }
.panel__list { margin: 0; padding: 0; list-style: none; }
.panel__list a { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 9px 0; color: var(--text); border-top: 1px solid var(--border); }
.panel__list li:first-child a { border-top: 0; }
.panel__time { font-weight: 700; color: var(--accent-text); }
.panel__venue { display: block; font-size: 0.85rem; color: var(--muted); }
.panel__empty { margin: 0; color: var(--muted); }

@media (max-width: 767.98px) {
  .mgrid th { padding: 10px 0; font-size: 0.65rem; letter-spacing: 0.04em; }
  .mgrid td { height: 56px; padding: 0; }
  .mgrid td.is-selected { background: color-mix(in srgb, var(--blue-500) 16%, var(--surface)); }
  .num { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); }
  .chips { display: none; }
  .pick { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; width: 100%; padding: 0 0 7px; background: transparent; border: 0; }
  .pick__dots { display: flex; gap: 3px; }
  .pick__dot { width: 6px; height: 6px; background: var(--saffron-600); border-radius: 50%; }
}

/* ---- one event ---- */
.event-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(24px, 4vw, 40px); align-items: start; }
.event-page__facts { display: grid; gap: 14px; margin: 0; padding: clamp(20px, 3vw, 28px); list-style: none; }
.event-page__facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.event-page__facts .fa { margin-top: 5px; color: var(--saffron-600); }
@media (max-width: 1023.98px) { .event-page { grid-template-columns: minmax(0, 1fr); } }

/* ---- gallery ---- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); }
.filter:hover { color: var(--heading); border-color: color-mix(in srgb, var(--blue-500) 50%, var(--border)); }
.filter.is-active { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.filter__count { padding: 1px 8px; font-size: 0.75rem; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-pill); }
.filter.is-active .filter__count { color: var(--blue-700); background: #fff; }

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.albums > li { display: flex; }
.albums > li[hidden] { display: none; }
.album { display: flex; flex: 1; flex-direction: column; overflow: hidden; color: var(--text); }
.album:hover { color: var(--text); }
.album__cover { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.album__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.album:hover .album__cover img { transform: scale(1.07); }
.album__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; font-size: 0.75rem; font-weight: 700; color: #fff; background: rgb(5 13 31 / 66%); border-radius: var(--radius-pill); }
.album__body { display: grid; gap: 4px; padding: 16px 20px 20px; }
.album__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--heading); }
.album__date { font-size: 0.85rem; color: var(--muted); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.photos a { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.photos a:hover img { transform: scale(1.05); }

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; color: #fff; background: rgb(3 8 20 / 92%); border: 0; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 96px); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; color: #fff; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%; }
.lightbox button:hover { background: rgb(255 255 255 / 25%); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 16px; transform: translateY(-50%); }
.lightbox__count { position: absolute; right: 0; bottom: 14px; left: 0; margin: 0; font-size: 0.9rem; text-align: center; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 1023.98px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.box-card { padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 56px); }
.box-card__title { margin-bottom: 18px; }
.contact-map { display: block; width: 100%; height: 380px; margin-top: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }

.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 767.98px) { .contact-form__row { grid-template-columns: minmax(0, 1fr); } }

.form-group { margin-bottom: 18px; }
.form-group > label { display: inline-block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 700; color: var(--heading); }

.form-control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.form-control::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.form-control:hover { border-color: color-mix(in srgb, var(--blue-500) 45%, var(--border)); }
.form-control:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-500) 22%, transparent); }
textarea.form-control { min-height: 130px; resize: vertical; }

.form-error, .wpcf7-not-valid-tip { display: block; margin: 6px 0 0; font-size: 0.85rem; font-weight: 500; color: var(--error-text); }
.wpcf7-response-output { margin: 18px 0 0 !important; padding: 14px 18px !important; border: 1px solid transparent !important; border-radius: 14px; }
.wpcf7 form.sent .wpcf7-response-output { color: #14532d; background: #dcfce7; border-color: #86efac !important; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output { color: #7f1d1d; background: #fee2e2; border-color: #fca5a5 !important; }
.wpcf7-form-control-wrap { display: block; }
