/* ==========================================================================
   Content pages (about, messages, committee, featured alumni, gallery, directory, contact, privacy).
   Builds on css/theme.css (fx-* components + tokens). Everything here is prefixed cx-.
   ========================================================================== */

.cx-page { padding: 72px 0 88px; background: var(--fx-bg-soft); }
.cx-page--white { background: #fff; }
.cx-page p, .cx-page li { text-align: left; letter-spacing: normal; }
.cx-page h2, .cx-page h3, .cx-page h4 { margin-top: 0; }

/* ---------- Long-form prose ---------- */
.cx-prose { font-size: 17px; line-height: 1.85; color: #3a4556; }
.cx-prose p { margin: 0 0 1.15em; font-size: inherit; line-height: inherit; color: inherit; }
.cx-prose a { color: var(--fx-accent) !important; font-weight: 500; }
.cx-prose a:hover { color: var(--fx-accent-2) !important; text-decoration: underline; }
.cx-prose h2 { font: 700 clamp(22px, 2.2vw, 28px)/1.3 var(--fx-serif); color: var(--fx-navy); margin: 2.2em 0 .7em; }
.cx-prose h3 { font: 700 17px/1.4 var(--fx-sans); color: var(--fx-navy); margin: 1.6em 0 .4em; letter-spacing: 0; }
.cx-prose ul { padding-left: 1.2em; margin: 0 0 1.15em; }
.cx-prose li { margin-bottom: .35em; }
.cx-prose > :first-child { margin-top: 0; }

.cx-card { background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); box-shadow: var(--fx-shadow); }
.cx-card--pad { padding: clamp(24px, 4vw, 48px); }

.cx-signoff { margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--fx-line); }
.cx-signoff p { margin: 0; }
.cx-signoff strong, .cx-signoff b { display: block; font: 700 20px/1.3 var(--fx-serif); color: var(--fx-navy); }
.cx-signoff span { display: block; margin-top: 4px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-muted); font-weight: 600; }

/* ---------- Article + sidebar layout ---------- */
.cx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.cx-aside { display: grid; gap: 24px; position: sticky; top: 140px; }
.cx-aside__title { font: 700 13px var(--fx-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-muted); margin: 0 0 16px; }
.cx-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cx-facts li { display: flex; gap: 14px; align-items: baseline; margin: 0; }
.cx-facts strong { font: 700 26px/1 var(--fx-serif); color: var(--fx-navy); min-width: 92px; }
.cx-facts span { font-size: 14px; color: var(--fx-muted); line-height: 1.45; }
.cx-links { list-style: none; margin: 0; padding: 0; }
.cx-links li { border-top: 1px solid var(--fx-line); margin: 0; }
.cx-links li:first-child { border-top: 0; }
.cx-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; font-weight: 600; color: var(--fx-navy) !important; }
.cx-links a .fa { color: var(--fx-accent); transition: transform .2s ease; }
.cx-links a:hover { color: var(--fx-accent) !important; }
.cx-links a:hover .fa { transform: translateX(4px); }
.cx-aside--navy { background: var(--fx-navy); border-color: var(--fx-navy); color: #c9d4e5; }
.cx-aside--navy .cx-aside__title { color: var(--fx-gold); }
@media (max-width: 991px) {
    .cx-layout { grid-template-columns: 1fr; }
    .cx-aside { position: static; }
}

/* ---------- Leadership messages (patron / president) ---------- */
.cx-message { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; }
.cx-portrait { position: sticky; top: 140px; }
.cx-portrait__frame { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--fx-shadow-lg); background: linear-gradient(180deg, #eef2f8, #dde5f0); aspect-ratio: 4 / 4.6; }
.cx-portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cx-portrait__caption { background: #fff; border-radius: var(--fx-radius); box-shadow: var(--fx-shadow); padding: 20px 22px; margin: -40px 18px 0; position: relative; border-top: 3px solid var(--fx-accent); }
.cx-portrait__name { font: 700 21px/1.3 var(--fx-serif); color: var(--fx-navy); margin: 0 0 4px; }
.cx-portrait__role { font-size: 14px; color: var(--fx-muted); margin: 0; }
.cx-message__body { position: relative; padding-top: 8px; }
.cx-message__body::before {
    content: "\201C"; position: absolute; top: -40px; right: 0; font: 700 200px/1 var(--fx-serif);
    color: rgba(242, 107, 29, .1); pointer-events: none;
}
.cx-message__title { font: 700 clamp(28px, 3.2vw, 40px)/1.2 var(--fx-serif); color: var(--fx-navy); margin: 0 0 24px; }
.cx-message .cx-prose > p:first-of-type { font-size: 19px; color: var(--fx-ink); }
.cx-pullquote {
    margin: 1.6em 0 !important; padding: 22px 26px; border-left: 4px solid var(--fx-accent); background: var(--fx-bg-warm);
    border-radius: 0 var(--fx-radius-sm) var(--fx-radius-sm) 0; font: italic 600 clamp(19px, 2vw, 23px)/1.5 var(--fx-serif) !important; color: var(--fx-navy) !important;
}
@media (max-width: 991px) {
    .cx-message { grid-template-columns: 1fr; gap: 36px; }
    .cx-portrait { position: static; max-width: 340px; width: 100%; margin: 0 auto; }
    .cx-message__body::before { font-size: 140px; top: -30px; }
}

/* ---------- People grids (committee / featured alumni) ---------- */
.cx-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; }
.cx-people + .cx-people { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--fx-line); }
.cx-people > .fx-person { flex: 0 1 calc((100% - 4 * 24px) / 5); display: flex; flex-direction: column; }
.cx-people--4 > .fx-person { flex-basis: calc((100% - 3 * 24px) / 4); }
.cx-people .fx-person__body { flex: 1; display: flex; flex-direction: column; }
.cx-people .fx-person__name { font-size: 16px; }
.cx-people .fx-person__role { font-size: 13.5px; line-height: 1.45; }
.cx-person__cta { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--fx-navy-3); display: inline-flex; align-items: center; gap: 6px; }
.fx-person:hover .cx-person__cta { color: var(--fx-accent); }
.cx-person__cta .fa-linkedin-square { color: #0a66c2; font-size: 16px; }
@media (max-width: 1099px) {
    .cx-people > .fx-person, .cx-people--4 > .fx-person { flex-basis: calc((100% - 2 * 24px) / 3); }
}
@media (max-width: 767px) {
    .cx-people { gap: 18px 14px; }
    .cx-people > .fx-person, .cx-people--4 > .fx-person { flex-basis: calc((100% - 14px) / 2); }
    .cx-people .fx-person__body { padding: 14px 14px 16px; }
    .cx-people .fx-person__name { font-size: 15px; }
    .cx-people .fx-person__role { font-size: 12.5px; }
}
.cx-empty { text-align: center; padding: 48px 24px; color: var(--fx-muted); }
.cx-empty h3 { font: 700 22px/1.3 var(--fx-serif); color: var(--fx-navy); margin: 0 0 8px; }
.cx-empty .fa { font-size: 34px; color: var(--fx-accent); margin-bottom: 14px; display: block; }

/* ---------- Profile (committee member / featured alumnus) ---------- */
.cx-profile { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.cx-profile__card { position: sticky; top: 140px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--fx-shadow-lg); }
.cx-profile__photo { aspect-ratio: 4 / 4.4; background: linear-gradient(180deg, #eef2f8, #dde5f0); }
.cx-profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cx-profile__id { padding: 22px 24px 26px; border-top: 3px solid var(--fx-accent); }
.cx-profile__name { font: 700 24px/1.25 var(--fx-serif); color: var(--fx-navy); margin: 0 0 6px; }
.cx-profile__role { font-size: 15px; color: var(--fx-muted); margin: 0; }
.cx-profile__org { font-size: 14px; color: var(--fx-accent); font-weight: 600; margin: 4px 0 0; }
.cx-profile__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.cx-profile__main { min-width: 0; }
.cx-profile__main .cx-prose { overflow-wrap: anywhere; }
.cx-profile__main .cx-prose img { height: auto; border-radius: var(--fx-radius-sm); }
.cx-profile__main .cx-prose table { max-width: 100%; }
.cx-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(29, 78, 137, .08); color: var(--fx-navy); font: 600 14px/1.3 var(--fx-sans); margin: 8px 0 0; }
.cx-chip .fa { color: var(--fx-accent); }
.cx-back { margin-top: 28px; }
@media (max-width: 991px) {
    .cx-profile { grid-template-columns: 1fr; gap: 32px; }
    .cx-profile__card { position: static; max-width: 380px; width: 100%; margin: 0 auto; }
}

/* ---------- Gallery: album cards ---------- */
.cx-albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cx-album { display: flex; flex-direction: column; background: #fff; border-radius: var(--fx-radius); overflow: hidden; box-shadow: var(--fx-shadow); color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.cx-album:hover { transform: translateY(-5px); box-shadow: var(--fx-shadow-lg); color: inherit; }
.cx-album__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #eef2f8, #dde5f0); }
.cx-album__media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.cx-album:hover .cx-album__media > img { transform: scale(1.05); }
.cx-album__media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(11, 37, 69, .55)); pointer-events: none; }
.cx-album__thumbs { position: absolute; right: 14px; bottom: 14px; display: flex; z-index: 1; }
.cx-album__thumbs img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); margin-left: -12px; background: #fff; }
.cx-album__badge { position: absolute; left: 14px; bottom: 14px; z-index: 1; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.cx-album__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cx-album__title { font: 700 18px/1.35 var(--fx-sans); color: var(--fx-navy); margin: 0; }
.cx-album__body .fx-link-arrow { margin-top: auto; font-size: 14px; }
.cx-album:hover .fx-link-arrow { color: var(--fx-accent); gap: 12px; }
@media (max-width: 991px) { .cx-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 575px) { .cx-albums { grid-template-columns: 1fr; } }

/* ---------- Album / event photo grids (lightGallery containers) ---------- */
.cx-photos { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 0 !important; }
.cx-photos::before, .cx-photos::after { content: none !important; display: none !important; }
.cx-photos > * { margin: 0; padding: 0; cursor: zoom-in; }
.cx-photos a { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--fx-radius); overflow: hidden; background: #e7ecf3; box-shadow: 0 4px 14px rgba(11, 37, 69, .08); }
.cx-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.cx-photos a::after { content: "\f00e"; font-family: FontAwesome; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; background: rgba(11, 37, 69, .45); opacity: 0; transition: opacity .3s ease; }
.cx-photos a:hover img { transform: scale(1.06); }
.cx-photos a:hover::after { opacity: 1; }
@media (max-width: 575px) { .cx-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cx-photos a { border-radius: 10px; } }
.cx-count { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border: 1px solid var(--fx-line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fx-navy); }
.cx-count .fa { color: var(--fx-accent); }
.cx-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Members directory ---------- */
.cx-download { display: grid; gap: 12px; }
.cx-download .fx-btn { justify-content: center; }
.cx-download__icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(242, 107, 29, .12); color: var(--fx-accent); font-size: 26px; margin-bottom: 14px; }
.cx-download h3 { font: 700 22px/1.3 var(--fx-serif); color: var(--fx-navy); margin: 0; }
.cx-download p { font-size: 14.5px; line-height: 1.6; color: var(--fx-muted); margin: 0 0 6px; }
.cx-note { font-size: 13.5px !important; color: var(--fx-muted) !important; margin: 6px 0 0 !important; }
.cx-address { font-style: normal; font-size: 15px; line-height: 1.75; }
.cx-address strong { color: #fff; display: block; margin-bottom: 4px; }
.cx-address a { color: #fff !important; }
.cx-disclaimer { margin-top: 48px; padding: 24px 28px; border-radius: var(--fx-radius); background: #fff; border: 1px solid var(--fx-line); }
.cx-disclaimer strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-muted); margin-bottom: 8px; }
.cx-disclaimer p { font-size: 13px !important; line-height: 1.7 !important; color: var(--fx-muted) !important; margin: 0; }

/* ---------- Contact ---------- */
.cx-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0 0 40px; padding: 0; }
.cx-info { background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; margin: 0; transition: transform .25s ease, box-shadow .25s ease; }
.cx-info:hover { transform: translateY(-3px); box-shadow: var(--fx-shadow); }
.cx-info__icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(242, 107, 29, .1); color: var(--fx-accent); font-size: 21px; margin-bottom: 10px; }
.cx-info__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-muted); }
.cx-info__value, .cx-info__value a { font-size: 15.5px; font-weight: 600; color: var(--fx-navy) !important; line-height: 1.5; overflow-wrap: anywhere; }
.cx-info__value a:hover { color: var(--fx-accent) !important; }
.cx-contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.cx-form-card { padding: clamp(24px, 4vw, 44px); }
.cx-form-card .section-title { font: 700 clamp(26px, 3vw, 34px)/1.2 var(--fx-serif); color: var(--fx-navy); margin: 0 0 8px; }
#contact-msg { display: block; color: var(--fx-muted); font-size: 16px; }
.cx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.cx-form-grid .cx-span { grid-column: 1 / -1; }
.cx-form-card .form-group { margin-bottom: 18px; }
.cx-form-card label { margin-bottom: 6px; }
.cx-form-card small { display: block; margin-top: 6px; color: var(--fx-muted); font-size: 12.5px; }
.cx-captcha { background: var(--fx-bg-soft); border: 1px dashed #cfd7e3; border-radius: 12px; padding: 18px; }
.cx-captcha__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.cx-captcha #captchaimg { max-width: 100%; height: auto; border-radius: 8px; background: #fff; border: 1px solid var(--fx-line); }
.cx-captcha__refresh { font-size: 13.5px; color: var(--fx-muted); line-height: 1.5; }
.cx-captcha__refresh a { color: var(--fx-navy-3) !important; font-weight: 600; text-decoration: underline; }
.cx-captcha .input-group { width: 100%; }
.contact-form-btn { border: 0; }
.cx-map { border-radius: var(--fx-radius); overflow: hidden; box-shadow: var(--fx-shadow); background: #e7ecf3; min-height: 380px; display: flex; flex-direction: column; }
.cx-map .rd-google-map, .cx-map #googleMap { flex: 1 1 auto; display: flex; flex-direction: column; }
.cx-map iframe { flex: 1 1 auto; width: 100%; height: auto; min-height: 380px; border: 0; display: block; }
@media (max-width: 1099px) { .cx-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) { .cx-contact { grid-template-columns: 1fr; } }
@media (max-width: 575px) {
    .cx-info-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
    .cx-info { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
    .cx-info__icon { margin: 0; flex: 0 0 44px; width: 44px; height: 44px; }
    .cx-form-grid { grid-template-columns: 1fr; }
    .cx-map, .cx-map iframe { min-height: 280px; }
}

/* ---------- Privacy policy ---------- */
.cx-toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.cx-toc li { counter-increment: toc; margin: 0; }
.cx-toc a { display: flex; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--fx-ink) !important; line-height: 1.4; }
.cx-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--fx-accent); font-weight: 700; font-size: 12.5px; padding-top: 2px; }
.cx-toc a:hover { color: var(--fx-accent) !important; }
.cx-policy .cx-prose h2 { scroll-margin-top: 140px; padding-top: 1.6em; border-top: 1px solid var(--fx-line); }
.cx-policy .cx-prose h2:first-of-type { border-top: 0; padding-top: 0; }
.cx-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--fx-muted); font-size: 14px; margin-bottom: 28px; }

@media (max-width: 767px) {
    .cx-page { padding: 44px 0 60px; }
    .cx-prose { font-size: 16px; line-height: 1.8; }
}
@media (max-width: 991px) {
    .cx-policy .cx-aside { order: -1; }
    .cx-policy .cx-aside--navy { display: none; }
}
