/* =====================================================================
   Styles for the editable page blocks (loaded after style.css)
   ===================================================================== */

/* Mobile menu button */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; width: 44px; height: 44px; font-size: 18px; color: var(--navy); cursor: pointer; }

/* Section body: plain text, lists and FAQ blocks written in the editor */
.enaru-body > * + * { margin-top: 16px; }
.enaru-body > .cards, .enaru-body > .enaru-list { margin-top: 0; }
.enaru-body p { color: var(--muted); font-size: 16px; max-width: 760px; }
.enaru-body h2 { font-size: 40px; }
.enaru-body h3 { font-size: 28px; }
.enaru-body ul.wp-block-list { list-style: none; }
.enaru-body ul.wp-block-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink); }
.enaru-body ul.wp-block-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px; color: var(--gold); font-size: 13px; }
.enaru-body ol { padding-left: 22px; }
.enaru-body ol li { margin-bottom: 8px; }
.enaru-body .wp-block-image img { border-radius: 8px; }
.enaru-body .wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.enaru-body .wp-block-quote { border-left: 3px solid var(--gold); padding-left: 20px; font-family: var(--serif); font-size: 24px; font-style: italic; color: var(--navy); }
.enaru-body > .enaru-button { margin-top: 24px; }
.sec-center { margin-bottom: 40px; }
.sec-center .sub { margin-left: auto; margin-right: auto; }
.sec-head:empty { display: none; }

/* FAQ: the standard "Details" block */
.enaru-body details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; margin-top: 0; }
.enaru-body details > summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; color: var(--navy); font-size: 15px; }
.enaru-body details > summary::-webkit-details-marker { display: none; }
.enaru-body details > summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: var(--gold); transition: transform .2s; }
.enaru-body details[open] > summary::after { transform: rotate(180deg); }
.enaru-body details > p { padding: 0 22px 20px; margin: 0; font-size: 14px; }

/* Text + image */
.split-single { grid-template-columns: 1fr; }
.split.reverse > :first-child { order: 2; }
.split-image img { width: 100%; max-height: 440px; object-fit: cover; }

/* Programmes */
.programme-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; margin-top: 28px; align-items: center; }
.programme-panel > img { height: 300px; width: 100%; object-fit: cover; }
.programme-panel h3 { font-size: 32px; }
.programme-panel .sub { max-width: none; }
.course-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 22px; }
.course-chips .chip { text-align: center; font-family: var(--serif); font-size: 17px; font-weight: 600; padding: 14px 8px; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.panel-foot .meta-row { margin: 0; }
.tabs .tab { cursor: pointer; }
.tab-panel { margin-top: 32px; }
.event-list { display: grid; gap: 16px; }
.event-row .btn { padding: 10px 18px; }

/* Photos and videos */
.photo-wall { column-count: 3; column-gap: 20px; }
.photo-wall .photo { display: block; break-inside: avoid; margin-bottom: 20px; cursor: zoom-in; }
.photo-wall .photo img { width: 100%; height: auto; display: block; transition: transform .3s; }
.photo-wall .photo:hover img { transform: scale(1.03); }
.video-thumb { position: relative; display: block; overflow: hidden; }
.video-thumb img { height: 200px; width: 100%; object-fit: cover; }
.video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-thumb .play i { width: 54px; height: 54px; border-radius: 50%; background: rgba(8,26,51,.72); color: var(--white); font-size: 18px; display: flex; align-items: center; justify-content: center; padding-left: 3px; }
.pill { font-family: inherit; }

.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(8,26,51,.92); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox figure { max-width: min(1100px, 100%); max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 6px; }
.lightbox p { color: #e7dfcb; margin-top: 12px; font-size: 14px; }
.lightbox button { position: absolute; background: none; border: none; color: var(--white); font-size: 44px; cursor: pointer; line-height: 1; padding: 12px 18px; }
.lightbox .lb-close { top: 12px; right: 18px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Article page */
.article { max-width: 820px; }
.article-image { width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 32px; }
.article .enaru-body p { font-size: 17px; color: var(--ink); max-width: none; }

/* Download rows */
.dl-item .btn { padding: 9px 16px; }

/* Placeholder shown only while editing */
.enaru-placeholder { border: 2px dashed var(--line); border-radius: 8px; padding: 40px; text-align: center; color: var(--muted); }

@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
    .main-nav { display: none; width: 100%; order: 3; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
    .main-nav li { width: 100%; border-top: 1px solid var(--line); }
    .main-nav a { padding: 14px 0; width: 100%; }
    .site-header .container { height: auto; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
}
@media (max-width: 900px) {
    .programme-panel { grid-template-columns: 1fr; }
    .photo-wall { column-count: 2; }
    .event-row { grid-template-columns: 70px 1fr; }
    .event-row > :last-child { grid-column: 1 / -1; }
    .enaru-body h2 { font-size: 32px; }
}
@media (max-width: 600px) {
    .photo-wall { column-count: 1; }
    .tabs .tab { min-width: 120px; flex: 1 1 40%; font-size: 17px; padding: 12px; }
}

/* Feature strip right after an inner-page header: sit below it instead of overlapping the buttons */
.hero:not(.hero-home) + .cards-feature .features-strip { margin-top: 32px; }
