/*! VYBE Alumni Portal · Studio front-end styles · VYBE Technologies, https://vybetechno.com/ */

/* ------------------------------------------------------------------
 * Variables. They follow the portal colours (set in Alumni Portal →
 * Settings → Branding) so cards match the rest of the site.
 * ---------------------------------------------------------------- */
.vap-loop, .vap-t, .vap-filters, .vap-search, .vap-results, .vap-account, .vap-chips-bar, .vap-profile, .vap-detail {
	--vap-primary: var(--cap-primary, #1e3a8a);
	--vap-accent: var(--cap-accent, #f2a516);
	--vap-border: var(--cap-border, #e1e4e8);
	--vap-bg: var(--cap-bg, #f7f8fa);
	--vap-text: var(--cap-text, #2b2b2b);
	--vap-muted: #6b7280;
	--vap-radius: 10px;
	--vap-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	color: var(--vap-text);
	box-sizing: border-box;
	/* Themes often enlarge their content text; the components size themselves in rem. */
	font-size: var(--vap-font-size, 1rem);
	line-height: 1.55;
}
.vap-loop *, .vap-t *, .vap-filters *, .vap-search *, .vap-results *, .vap-account *, .vap-profile *, .vap-detail * { box-sizing: border-box; }

/* ------------------------------------------------------------------
 * Loops
 * ---------------------------------------------------------------- */
.vap-loop { position: relative; margin: 0 0 1.5rem; }
.vap-loop-items { display: grid; gap: var(--vap-gap, 20px); grid-template-columns: repeat(var(--vap-cols, 3), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.vap-layout-list .vap-loop-items { grid-template-columns: minmax(0, 1fr); gap: calc(var(--vap-gap, 20px) * .6); }
@media (max-width: 1024px) { .vap-layout-grid .vap-loop-items { grid-template-columns: repeat(var(--vap-cols-t, 2), minmax(0, 1fr)); } }
@media (max-width: 640px)  { .vap-layout-grid .vap-loop-items { grid-template-columns: repeat(var(--vap-cols-m, 1), minmax(0, 1fr)); } }
.vap-loop.is-loading .vap-loop-items { opacity: .45; pointer-events: none; transition: opacity .15s; }
.vap-loop-count { margin: 0 0 .75rem; color: var(--vap-muted); font-size: .9rem; }
.vap-loop-empty { padding: 2rem 1rem; text-align: center; color: var(--vap-muted); background: var(--vap-bg); border-radius: var(--vap-radius); margin: 0; }
.vap-loop-empty[hidden] { display: none; }
.vap-loop-pager { margin-top: 1.25rem; text-align: center; }
.vap-loop-pager:empty { display: none; }
.vap-note { margin: 0 0 1rem; padding: .75rem 1rem; background: #fff8e6; border-left: 4px solid var(--vap-accent); border-radius: 4px; font-size: .92rem; }

/* Pagination */
.vap-pagination { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.vap-pagination a, .vap-pagination .vap-page.is-current, .vap-pagination .vap-gap {
	min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px; border: 1px solid var(--vap-border); background: #fff; color: var(--vap-text); text-decoration: none; font-size: .95rem;
}
.vap-pagination a:hover, .vap-pagination a:focus-visible { border-color: var(--vap-primary); color: var(--vap-primary); }
.vap-pagination .is-current { background: var(--vap-primary); border-color: var(--vap-primary); color: #fff; font-weight: 600; }
.vap-pagination .vap-gap { border-color: transparent; background: transparent; min-width: 20px; padding: 0; }

/* Buttons and small bits */
.vap-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2;
	padding: .65rem 1.2rem; border-radius: 8px; border: 1px solid var(--vap-primary); background: var(--vap-primary); color: #fff; text-decoration: none;
}
.vap-btn:hover, .vap-btn:focus-visible { filter: brightness(1.1); color: #fff; }
.vap-btn--ghost, .vap-btn.vap-more { background: #fff; color: var(--vap-primary); }
.vap-btn--ghost:hover, .vap-btn.vap-more:hover { background: var(--vap-bg); color: var(--vap-primary); }
.vap-btn[disabled] { opacity: .55; cursor: wait; }
.vap-muted { color: var(--vap-muted); }
.vap-link { color: var(--vap-primary); text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }

.vap-tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--vap-bg); color: var(--vap-primary); border: 1px solid var(--vap-border); }
.vap-tag--mentor { background: #fff7e0; border-color: #f4d58a; color: #8a5a00; }
.vap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: .5rem 0 0; }
.vap-chip { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; background: var(--vap-bg); border: 1px solid var(--vap-border); color: var(--vap-text); }
.vap-list { margin: 0 0 1rem 1.2rem; padding: 0; }

/* ------------------------------------------------------------------
 * Cards
 * ---------------------------------------------------------------- */
.vap-t { min-width: 0; }
.vap-card {
	height: 100%; display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem; background: #fff;
	border: 1px solid var(--vap-border); border-radius: var(--vap-radius); box-shadow: var(--vap-shadow); transition: box-shadow .15s, transform .15s;
}
.vap-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .1); }
.vap-card__photo a, .vap-row__photo a, .vap-profile__photo a, .vap-card__image, .vap-card__image a { text-decoration: none; }
.vap-card__photo a:hover, .vap-row__photo a:hover { text-decoration: none; }
.vap-card__body { min-width: 0; }
.vap-card__title { margin: 0 0 .25rem; font-size: 1.05rem; line-height: 1.3; }
.vap-card__title a { color: var(--vap-primary); text-decoration: none; }
.vap-card__title a:hover { text-decoration: underline; }
.vap-card__line { margin: 0 0 .15rem; font-weight: 500; }
.vap-card__meta { margin: 0 0 .4rem; color: var(--vap-muted); font-size: .88rem; }
.vap-card p { margin: 0 0 .5rem; }
.vap-card__image { display: block; margin: -1.1rem -1.1rem .2rem; overflow: hidden; border-radius: var(--vap-radius) var(--vap-radius) 0 0; }
.vap-card__image img { display: block; width: 100%; height: 190px; object-fit: cover; }

.vap-alumni-card { align-items: center; text-align: center; }
.vap-alumni-card .vap-card__photo img, .vap-alumni-card .vap-card__photo .cap-photo-placeholder { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto; font-size: 38px; }
.vap-alumni-card .vap-chips { justify-content: center; }
.vap-layout-list .vap-alumni-card { flex-direction: row; align-items: center; text-align: left; }
.vap-layout-list .vap-alumni-card .vap-chips { justify-content: flex-start; }

.vap-event-card { flex-direction: row; align-items: flex-start; }
.vap-date { flex: 0 0 62px; text-align: center; border-radius: 10px; background: var(--vap-primary); color: #fff; padding: .45rem 0; line-height: 1.1; }
.vap-date__day { display: block; font-size: 1.5rem; font-weight: 700; }
.vap-date__month { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }

.vap-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border: 1px solid var(--vap-border); border-radius: 8px; background: #fff; }
.vap-row__photo img, .vap-row__photo .cap-photo-placeholder { width: 44px !important; height: 44px !important; border-radius: 50%; object-fit: cover; font-size: 16px; }
.vap-row__body { display: flex; flex-direction: column; min-width: 0; }
.vap-row__body a { color: var(--vap-primary); text-decoration: none; }
.vap-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }

/* ------------------------------------------------------------------
 * Single pages (alumnus profile, content detail)
 * ---------------------------------------------------------------- */
.vap-profile { max-width: 1040px; margin: 0 auto 2rem; }
.vap-profile__hero { display: flex; gap: 1.5rem; align-items: center; padding: 1.75rem; border-radius: 14px; background: linear-gradient(135deg, var(--vap-primary), #3a5bb8); color: #fff; margin-bottom: 1.5rem; }
.vap-profile__hero a { color: #fff; text-decoration: underline; }
.vap-profile__photo img, .vap-profile__photo .cap-photo-placeholder { width: 128px !important; height: 128px !important; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, .85); font-size: 44px; }
.vap-profile__name { margin: 0 0 .15rem; color: #fff; font-size: 1.9rem; line-height: 1.2; }
.vap-profile__job { margin: 0; font-size: 1.1rem; font-weight: 500; }
.vap-profile__meta { margin: .25rem 0 .6rem; opacity: .9; }
.vap-profile__links { margin: .5rem 0 0; }
.vap-profile__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
.vap-block { background: #fff; border: 1px solid var(--vap-border); border-radius: var(--vap-radius); padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
.vap-block h2 { margin: 0 0 .6rem; font-size: 1.05rem; color: var(--vap-primary); }
.vap-block p:last-child { margin-bottom: 0; }
.vap-facts { margin: 0; }
.vap-facts dt { margin: .7rem 0 0; color: var(--vap-muted); font-size: .85rem; }
.vap-facts dt:first-child { margin-top: 0; }
.vap-facts dd { margin: .1rem 0 0; font-weight: 500; overflow-wrap: break-word; }
.vap-profile__more { margin-top: 1.5rem; }
@media (max-width: 760px) {
	.vap-profile__hero { flex-direction: column; text-align: center; padding: 1.25rem; }
	.vap-profile__grid { grid-template-columns: minmax(0, 1fr); }
}
.vap-detail { max-width: 820px; margin: 0 auto 2rem; }
.vap-detail__title { margin: 0 0 .25rem; color: var(--vap-primary); }
.vap-detail__sub { margin: 0 0 1rem; color: var(--vap-muted); font-size: 1.05rem; }
.vap-detail__image img { width: 100%; height: auto; border-radius: var(--vap-radius); }
.vap-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.vap-gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.vap-file-link::before { content: "⬇ "; }

/* ------------------------------------------------------------------
 * Filters
 * ---------------------------------------------------------------- */
.vap-filters { background: #fff; border: 1px solid var(--vap-border); border-radius: var(--vap-radius); padding: 1rem 1.1rem; margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.vap-filters--inline { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.vap-filter { margin: 0; padding: 0; border: 0; min-width: 0; }
.vap-filter > label:first-child, .vap-filter > legend { display: block; margin: 0 0 .3rem; font-weight: 600; font-size: .88rem; padding: 0; }
.vap-filter input[type="search"], .vap-filter input[type="text"], .vap-filter input[type="number"], .vap-filter select {
	width: 100%; padding: .55rem .7rem; border: 1px solid var(--vap-border); border-radius: 8px; background: #fff; font: inherit; color: inherit;
}
.vap-filter input:focus, .vap-filter select:focus { outline: 2px solid var(--vap-primary); outline-offset: 1px; }
.vap-opt { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; cursor: pointer; font-size: .93rem; }
.vap-opt .vap-count { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--vap-muted); background: var(--vap-bg); border-radius: 999px; padding: 0 .5rem; }
.vap-opt.is-zero { opacity: .5; }
.vap-filter-more { margin-top: .25rem; font-size: .85rem; }
.vap-filter-actions { display: flex; gap: .75rem; align-items: center; }
.vap-filters.is-js[data-apply="auto"] .vap-filter-actions .vap-btn { display: none; }
.vap-switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; font-size: .93rem; }
.vap-chips-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; }
.vap-chips-bar:empty { display: none; }
.vap-chips-bar .vap-chip-x { display: inline-flex; align-items: center; gap: 6px; padding: .25rem .4rem .25rem .8rem; border-radius: 999px; background: #eef2ff; border: 1px solid #c7d2fe; color: var(--vap-primary); font-size: .85rem; cursor: pointer; font-family: inherit; }
.vap-chips-bar .vap-chip-x::after { content: "×"; font-size: 1.1rem; line-height: 1; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(30, 58, 138, .1); }
.vap-chips-bar .vap-chip-x:hover::after { background: rgba(30, 58, 138, .25); }
.vap-with-sidebar { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .vap-with-sidebar { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------
 * Search
 * ---------------------------------------------------------------- */
.vap-search { position: relative; max-width: 640px; }
.vap-search__field { display: flex; gap: 8px; }
.vap-search__input { flex: 1; min-width: 0; padding: .7rem .9rem; font: inherit; border: 1px solid var(--vap-border); border-radius: 8px; background: #fff; }
.vap-search__input:focus { outline: 2px solid var(--vap-primary); outline-offset: 1px; }
.vap-search__panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--vap-border); border-radius: 10px; box-shadow: 0 12px 28px rgba(16, 24, 40, .16); max-height: 420px; overflow: auto; }
.vap-search__panel[hidden] { display: none; }
.vap-search__group { padding: .4rem 0; }
.vap-search__group + .vap-search__group { border-top: 1px solid var(--vap-border); }
.vap-search__heading { margin: 0; padding: .3rem .9rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vap-muted); }
.vap-search__item { display: flex; gap: .7rem; align-items: center; padding: .45rem .9rem; color: var(--vap-text); text-decoration: none; }
.vap-search__item:hover, .vap-search__item[aria-selected="true"] { background: var(--vap-bg); }
.vap-search__item img, .vap-search__item .cap-photo-placeholder { width: 36px !important; height: 36px !important; border-radius: 50%; object-fit: cover; font-size: 14px; flex: none; }
.vap-search__text { display: flex; flex-direction: column; min-width: 0; }
.vap-search__text small { color: var(--vap-muted); }
.vap-search__all, .vap-search__none { display: block; padding: .6rem .9rem; font-size: .9rem; }
.vap-search__all { border-top: 1px solid var(--vap-border); font-weight: 600; color: var(--vap-primary); text-decoration: none; }
.vap-results-group { margin: 0 0 2rem; }
.vap-results-group > h2 { margin: 0 0 .75rem; font-size: 1.15rem; color: var(--vap-primary); }

/* ------------------------------------------------------------------
 * Member account area
 * ---------------------------------------------------------------- */
.vap-account { max-width: 1040px; margin: 0 auto 2rem; }
.vap-account__nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.25rem; padding: 0 0 .6rem; border-bottom: 1px solid var(--vap-border); }
.vap-account__nav a { padding: .5rem 1rem; border-radius: 8px; text-decoration: none; color: var(--vap-text); font-weight: 500; }
.vap-account__nav a:hover { background: var(--vap-bg); }
.vap-account__nav a.is-active { background: var(--vap-primary); color: #fff; }
.vap-account__panel { background: #fff; border: 1px solid var(--vap-border); border-radius: var(--vap-radius); padding: 1.25rem 1.4rem; }
.vap-account__panel > h2 { margin: 0 0 1rem; color: var(--vap-primary); font-size: 1.25rem; }
.vap-account .vap-section { margin: 0 0 1.5rem; }
.vap-account .vap-section > h3 { margin: 0 0 .6rem; font-size: 1rem; padding-bottom: .35rem; border-bottom: 1px solid var(--vap-border); }
.vap-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; }
.vap-form-grid .vap-field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .vap-form-grid { grid-template-columns: minmax(0, 1fr); } }
.vap-form-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; }
.vap-alert { padding: .7rem 1rem; border-radius: 8px; margin: 0 0 1rem; border: 1px solid; }
.vap-alert--ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.vap-alert--error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.vap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 0 0 1.25rem; }
.vap-stat { background: var(--vap-bg); border-radius: 10px; padding: .8rem 1rem; }
.vap-stat strong { display: block; font-size: 1.6rem; color: var(--vap-primary); line-height: 1.1; }
.vap-meter { height: 8px; border-radius: 999px; background: var(--vap-border); overflow: hidden; margin: .3rem 0 .6rem; }
.vap-meter > span { display: block; height: 100%; background: var(--vap-accent); }
.vap-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Account area: form details and "my posts" lists */
.vap-account .cap-row { margin: 0; }
.vap-form-grid > .vap-field-textarea, .vap-form-grid > .vap-field-wysiwyg, .vap-form-grid > .vap-field-repeater,
.vap-form-grid > .vap-field-gallery, .vap-form-grid > .vap-field-checklist, .vap-form-grid > .vap-field-radio,
.vap-form-grid > .vap-field--wide { grid-column: 1 / -1; }
.vap-account .vap-field-label { display: block; font-weight: 600; margin: 0 0 .3rem; font-size: .9rem; }
.vap-account .vap-req { color: #b42318; }
.vap-account .vap-field-help { margin: .3rem 0 0; font-size: .82rem; color: var(--vap-muted); }
.vap-account input[type=text], .vap-account input[type=email], .vap-account input[type=url], .vap-account input[type=tel],
.vap-account input[type=number], .vap-account input[type=date], .vap-account input[type=datetime-local], .vap-account input[type=time],
.vap-account select, .vap-account textarea { width: 100%; max-width: 100%; }
/* Own the look of the controls so they match on every theme (some themes skip tel / date / time inputs). */
.vap-account input[type=text], .vap-account input[type=email], .vap-account input[type=url], .vap-account input[type=tel],
.vap-account input[type=number], .vap-account input[type=date], .vap-account input[type=datetime-local], .vap-account input[type=time],
.vap-account select, .vap-account textarea {
	padding: .55rem .75rem; border: 1px solid #cfd4dc; border-radius: 8px; background-color: #fff; color: var(--vap-text);
	font: inherit; font-size: .95rem; line-height: 1.4; min-height: 2.6rem; box-shadow: none;
}
.vap-account textarea { min-height: 5.5rem; resize: vertical; }
.vap-account input:focus, .vap-account select:focus, .vap-account textarea:focus { outline: 2px solid var(--vap-primary); outline-offset: 1px; border-color: var(--vap-primary); }
.vap-account input::placeholder, .vap-account textarea::placeholder { color: #9aa1ad; }
.vap-account .vap-choices { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.vap-account .vap-choice, .vap-account .vap-check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; }
.vap-account .vap-media-preview:empty { display: none; }
.vap-account .vap-media-preview img { display: block; max-width: 96px; height: auto; border-radius: 8px; margin: 0 0 .5rem; }
.vap-account .vap-remove { margin-top: .45rem; font-size: .85rem; color: #b42318; }
.vap-account__title { margin: 0 0 1rem; color: var(--vap-primary); }
.vap-account__hello { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 600; }
.vap-account__intro { margin: 0 0 1rem; color: var(--vap-muted); }
.vap-account__links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.vap-account__list { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--vap-border); }
.vap-account__entry { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--vap-border); }
.vap-account__entry-actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.vap-account__entry-actions form { margin: 0; }
.vap-account__entry-actions a { text-decoration: underline; }
.vap-danger { color: #b42318; }
.vap-account__register { text-align: center; margin-top: .75rem; }
@media (max-width: 640px) { .vap-account__entry { flex-direction: column; align-items: flex-start; } }

