/* The7 Alumni — alumni styles (loaded in classic, Elementor and block modes). */

/* The alumni brand colours come from Alumni Portal › Settings (printed as
   --cap-primary / --cap-accent). Fallbacks keep the theme usable without it. */
:root {
	--the7a-primary: var(--cap-primary, #7a1f2b);
	--the7a-accent: var(--cap-accent, #d4a017);
	--the7a-ink: #222;
	--the7a-muted: #666;
	--the7a-line: #e6e2dc;
	--the7a-soft: #faf7f2;
	--the7a-radius: 12px;
}

/* ---------- Member bar ---------- */
.the7a-bar { background: var(--the7a-primary); color: #fff; font-size: 13.5px; line-height: 1.3; position: relative; z-index: 100; }
.the7a-bar-inner { max-width: 1300px; margin: 0 auto; padding: 7px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.the7a-bar a { color: #fff; text-decoration: none; }
.the7a-bar a:hover { text-decoration: underline; color: #fff; }
.the7a-bar-brand { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.the7a-bar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--the7a-accent); display: inline-block; }
.the7a-bar-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.the7a-bar-hello { opacity: .85; }
.the7a-bar-strong { font-weight: 600; }
.the7a-bar .the7a-bar-donate { background: var(--the7a-accent); color: #2b1a00; padding: 4px 12px; border-radius: 20px; font-weight: 700; }
.the7a-bar .the7a-bar-donate:hover { color: #2b1a00; text-decoration: none; filter: brightness(1.05); }
@media (max-width: 600px) {
	.the7a-bar-inner { justify-content: center; padding: 6px 12px; }
	.the7a-bar-brand, .the7a-bar-hello { display: none; }
	.the7a-bar-links { gap: 12px; }
}

/* ---------- Buttons ---------- */
.the7a-btn, a.the7a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 8px; background: var(--the7a-primary); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--the7a-primary); cursor: pointer; line-height: 1.2; font-size: 15px; transition: filter .15s, background .15s, color .15s; }
.the7a-btn:hover { filter: brightness(.92); color: #fff; }
.the7a-btn-outline, a.the7a-btn-outline { background: transparent; color: var(--the7a-primary); }
.the7a-btn-outline:hover { background: var(--the7a-primary); color: #fff; filter: none; }
.the7a-btn-ghost, a.the7a-btn-ghost { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.the7a-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.the7a-btn-light, a.the7a-btn-light { background: #fff; border-color: #fff; color: var(--the7a-primary); }
.the7a-btn-light:hover { color: var(--the7a-primary); }

/* ---------- Alumni Home ---------- */
.the7a-home #main { padding-top: 0; }
.the7a-home-content { padding-bottom: 20px; }
.the7a-hero {
	box-sizing: border-box; position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-bottom: 0;
	min-height: 460px; display: flex; align-items: center; color: #fff; overflow: hidden;
	background: radial-gradient(circle at 85% 20%, rgba(212,160,23,.35), transparent 45%), linear-gradient(135deg, var(--the7a-primary), #3d0d14);
}
.the7a-hero.has-image { background: linear-gradient(90deg, rgba(40,8,14,.88) 0%, rgba(40,8,14,.55) 55%, rgba(40,8,14,.2) 100%), var(--the7a-hero) center / cover no-repeat; }
.the7a-hero-inner { max-width: 1300px; width: 100%; margin: 0 auto; padding: 70px 24px; }
.the7a-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 600; color: var(--the7a-accent); margin: 0 0 12px; }
.the7a-hero-title { color: #fff !important; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 16px; max-width: 760px; }
.the7a-hero-text { font-size: 18px; line-height: 1.6; max-width: 620px; opacity: .92; margin: 0 0 28px; }
.the7a-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.the7a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--the7a-line); border: 1px solid var(--the7a-line); border-radius: var(--the7a-radius); overflow: hidden; margin: -48px auto 10px; position: relative; z-index: 2; max-width: 1100px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.the7a-stat { background: #fff; padding: 22px 14px; text-align: center; }
.the7a-stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--the7a-primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.the7a-stat-label { display: block; font-size: 13px; color: var(--the7a-muted); margin-top: 4px; }

.the7a-section { margin: 56px 0; }
.the7a-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--the7a-accent); padding-bottom: 8px; }
.the7a-section-head h2 { margin: 0; font-size: 26px; }
.the7a-section-head a { font-size: 14px; font-weight: 600; color: var(--the7a-primary); text-decoration: none; white-space: nowrap; }
.the7a-two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.the7a-muted { color: var(--the7a-muted); }
.the7a-center { text-align: center; margin-top: 24px; }

.the7a-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.the7a-link-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--the7a-line); border-radius: var(--the7a-radius); background: #fff; color: var(--the7a-ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.the7a-link-card:hover { border-color: var(--the7a-primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); color: var(--the7a-ink); }
.the7a-link-icon { font-size: 26px; }
.the7a-link-card strong { color: var(--the7a-primary); font-size: 16px; }
.the7a-link-card span:last-child { font-size: 13.5px; color: var(--the7a-muted); }

.the7a-event { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--the7a-line); text-decoration: none; color: var(--the7a-ink); }
.the7a-event:hover strong { color: var(--the7a-primary); }
.the7a-date { flex: none; width: 62px; text-align: center; background: var(--the7a-primary); color: #fff; border-radius: 10px; padding: 8px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; }
.the7a-date b { display: block; font-size: 24px; letter-spacing: 0; }
.the7a-date-lg { width: 96px; padding: 14px 6px; font-size: 13px; }
.the7a-date-lg b { font-size: 38px; }
.the7a-event-body { display: flex; flex-direction: column; gap: 3px; }
.the7a-event-body strong { font-size: 16px; }
.the7a-event-body span { font-size: 13.5px; color: var(--the7a-muted); }
.the7a-news { list-style: none; margin: 0; padding: 0; }
.the7a-news li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--the7a-line); }
.the7a-news li span { color: var(--the7a-muted); font-size: 13px; white-space: nowrap; }
.the7a-news a { text-decoration: none; font-weight: 600; }

.the7a-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.the7a-card { display: flex; flex-direction: column; border: 1px solid var(--the7a-line); border-radius: var(--the7a-radius); overflow: hidden; background: #fff; text-decoration: none; color: var(--the7a-ink); transition: box-shadow .15s, transform .15s; }
.the7a-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--the7a-ink); }
.the7a-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--the7a-soft); }
.the7a-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.the7a-card-ph { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 46px; color: var(--the7a-accent); background: linear-gradient(135deg, var(--the7a-soft), #efe6d4); }
.the7a-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.the7a-card-body em { font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--the7a-accent); }
.the7a-card-body strong { font-size: 17px; color: var(--the7a-primary); line-height: 1.3; }
.the7a-card-body span { font-size: 14px; color: var(--the7a-muted); line-height: 1.5; }

.the7a-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.the7a-job { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--the7a-line); border-left: 4px solid var(--the7a-accent); border-radius: 10px; text-decoration: none; color: var(--the7a-ink); background: #fff; }
.the7a-job:hover { border-color: var(--the7a-primary); color: var(--the7a-ink); }
.the7a-job strong { color: var(--the7a-primary); }
.the7a-job span { font-size: 13.5px; color: var(--the7a-muted); }
.the7a-job em { font-style: normal; font-size: 12px; align-self: flex-start; background: var(--the7a-soft); border: 1px solid var(--the7a-line); padding: 2px 8px; border-radius: 12px; margin-top: 4px; }

.the7a-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; gap: 8px; }
.the7a-mosaic a:first-child { grid-row: span 2; }
.the7a-mosaic a { display: block; height: 100%; }
.the7a-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

.the7a-give { box-sizing: border-box; width: 100vw; margin: 56px 0 0 calc(50% - 50vw); background: linear-gradient(120deg, var(--the7a-primary), #4a1019); color: #fff; padding: 48px max(24px, calc(50vw - 640px)); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.the7a-give h2 { color: #fff !important; margin: 0 0 8px; }
.the7a-give p { margin: 0; max-width: 620px; opacity: .9; }
.the7a-give-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Single layouts ---------- */
.the7a-back { font-size: 14px; margin-bottom: 18px; }
.the7a-back a { text-decoration: none; font-weight: 600; color: var(--the7a-primary); }
.the7a-feature-img { margin: 0 0 24px; }
.the7a-feature-img img { width: 100%; height: auto; border-radius: var(--the7a-radius); }
.the7a-event-hero { display: flex; gap: 22px; align-items: flex-start; background: var(--the7a-soft); border: 1px solid var(--the7a-line); border-radius: var(--the7a-radius); padding: 22px; margin-bottom: 26px; }
.the7a-event-facts { display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; flex: 1; }
.the7a-event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.the7a-event-actions .the7a-btn { padding: 10px 16px; font-size: 14px; }
.the7a-pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 12px; border-radius: 14px; background: var(--the7a-primary); color: #fff; text-decoration: none; margin: 0 6px 6px 0; }
a.the7a-pill:hover { color: #fff; filter: brightness(.92); }
.the7a-pill-muted { background: #eee; color: #555; align-self: flex-start; }
.the7a-story-head { margin-bottom: 20px; }
.the7a-story-person { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.the7a-story-person span { color: var(--the7a-muted); font-size: 14px; }
.the7a-story-body { font-size: 17px; line-height: 1.75; }
.the7a-callout { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--the7a-soft); border: 1px dashed var(--the7a-accent); border-radius: var(--the7a-radius); padding: 18px 22px; margin: 30px 0; }
.the7a-album-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--the7a-muted); margin-bottom: 16px; }
.the7a-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 20px 0; }
.the7a-album-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.the7a-album-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.the7a-album-grid a:hover img { transform: scale(1.05); }
.the7a-docs { list-style: none; padding: 0; }
.the7a-docs li { padding: 8px 0; border-bottom: 1px solid var(--the7a-line); }

/* Lightbox */
.the7a-lightbox { position: fixed; inset: 0; background: rgba(10,6,6,.94); z-index: 100000; display: none; align-items: center; justify-content: center; }
.the7a-lightbox.is-open { display: flex; }
.the7a-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.the7a-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.the7a-lightbox figcaption { color: #ddd; font-size: 14px; margin-top: 10px; }
.the7a-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 34px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.the7a-lightbox button:hover, .the7a-lightbox button:focus-visible { background: rgba(255,255,255,.25); outline: 2px solid var(--the7a-accent); }
.the7a-lb-close { top: 16px; right: 16px; }
.the7a-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.the7a-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
html.the7a-lb-lock { overflow: hidden; }

/* ---------- Portal pages inside The7 ---------- */
.the7a-portal-page .content > .cap-form-wrap,
.the7a-portal-page .content > .cap-directory-wrap { margin-top: 0; }
.the7a-portal-page .cap-btn { border-radius: 8px; }

/* ---------- Mobile bottom navigation ---------- */
.the7a-bottom-nav { display: none; }
@media (max-width: 768px) {
	.the7a-has-bottom-nav .the7a-bottom-nav {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
		background: #fff; border-top: 1px solid var(--the7a-line); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	}
	.the7a-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #777; text-decoration: none; padding: 4px 0; }
	.the7a-bottom-nav a.is-active { color: var(--the7a-primary); font-weight: 700; }
	.the7a-has-bottom-nav { padding-bottom: 64px; }
	.the7a-has-bottom-nav .scroll-top { bottom: 80px !important; }

	.the7a-hero { min-height: 380px; }
	.the7a-hero-inner { padding: 48px 20px 80px; }
	.the7a-hero-text { font-size: 16px; }
	.the7a-stats { margin: -40px 12px 10px; grid-template-columns: repeat(2, 1fr); }
	.the7a-stat-num { font-size: 26px; }
	.the7a-two-col { grid-template-columns: 1fr; gap: 20px; }
	.the7a-section { margin: 40px 0; }
	.the7a-section-head h2 { font-size: 21px; }
	.the7a-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
	.the7a-event-hero { flex-direction: column; }
}

@media print {
	.the7a-bar, .the7a-bottom-nav { display: none !important; }
}

/* ---------- Block (FSE) mode wrapper ---------- */
.the7a-home-main .the7a-home-sections { overflow-x: clip; }
.the7a-home-main .the7a-section,
.the7a-home-main .the7a-stats { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.the7a-home-main .the7a-stats { padding: 0; }
@media (max-width: 1280px) { .the7a-home-main .the7a-stats { margin-left: 16px; margin-right: 16px; } }
.the7a-home-main .the7a-hero, .the7a-home-main .the7a-give { width: 100%; margin-left: 0; }

/* ---------- Fix: The7's default block footer overflows narrow phones ---------- */
@media (max-width: 781px) {
	footer.wp-block-template-part .wp-block-group,
	footer.wp-block-template-part .wp-block-columns { flex-wrap: wrap; min-width: 0; max-width: 100%; }
	footer.wp-block-template-part .wp-block-column { flex-basis: 100% !important; min-width: 0; }
	footer.wp-block-template-part .wp-block-search,
	footer.wp-block-template-part .wp-block-search__inside-wrapper { width: 100% !important; max-width: 100%; }
	footer.wp-block-template-part .wp-block-social-links { flex-wrap: wrap; }
}
@media (max-width: 768px) { .the7a-stat:last-child:nth-child(odd) { grid-column: span 2; } }

/* ---------- Alumni Home keeps its own light canvas ----------
   so it reads well whatever background The7's options use. The
   box-shadow/clip-path pair paints the background edge to edge. */
.the7a-home-sections { background: #fff; color: var(--the7a-ink); box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
.the7a-home-sections .the7a-section-head h2,
.the7a-home-sections h2, .the7a-home-sections h3 { color: var(--the7a-ink); }
.the7a-home-sections .the7a-hero h1, .the7a-home-sections .the7a-give h2 { color: #fff; }
.the7a-home-sections .the7a-event strong, .the7a-home-sections .the7a-news a { color: var(--the7a-ink); }
.the7a-home-sections .the7a-news a:hover, .the7a-home-sections .the7a-event:hover strong { color: var(--the7a-primary); }
.the7a-home-sections .the7a-map-summary, .the7a-home-sections .cap-map-summary { color: var(--the7a-primary); }
