/* HubOnline Home — live homepage sections */
:root {
	--hh-navy: #0B2038;
	--hh-blue: #1D63C8;
	--hh-teal: #0EA5A0;
	--hh-orange: #E8720C;
	--hh-grey: #5B6B7A;
	--hh-line: #DCE3EA;
	--hh-radius: 10px;
}
.hub-home-admin-note { background: #FFF4E5; border: 1px dashed var(--hh-orange); padding: 12px 16px; border-radius: 8px; font-size: 13px; color: #7A3E00; }
.hub-home-empty-line { color: var(--hh-grey); font-size: 14px; }

/* Shared bits */
.hub-home-badge { display: inline-block; background: var(--hh-navy); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; line-height: 1.2; }
.hub-home-badge--orange { background: var(--hh-orange); }
.hub-home-badge--teal { background: var(--hh-teal); }
.hub-home-label { display: block; color: var(--hh-teal); font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin: 0 0 8px; }
.hub-home-label--teal { color: var(--hh-teal); }
.hub-home-label--orange { color: var(--hh-orange); }
.hub-home-link { color: var(--hh-blue); font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; }
.hub-home-link--teal { color: var(--hh-teal); }
.hub-home-link--orange { color: var(--hh-orange); }
.hub-home-link--white { color: #fff; }
.hub-home-small-link { color: var(--hh-blue); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.hub-home-card-meta { display: block; color: var(--hh-grey); font-size: 12px; }
.hub-home-pill-btn { flex: 0 0 auto; border: 1px solid var(--hh-line); border-radius: 999px; padding: 7px 16px; color: var(--hh-navy); font-size: 11px; font-weight: 800; text-transform: uppercase; text-decoration: none; }
.hub-home-pill-btn:hover { border-color: var(--hh-blue); color: var(--hh-blue); }
.hub-home-white-btn, .hub-home-navy-btn { display: inline-block; border-radius: 999px; padding: 11px 24px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; }
.hub-home-white-btn { background: #fff; color: var(--hh-navy); }
.hub-home-navy-btn { background: var(--hh-navy); color: #fff; }
.hub-home-play { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--hh-blue); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.hub-home-play--orange { background: var(--hh-orange); color: #fff; }
.hub-home-play--lg { width: 60px; height: 60px; }

/* Cards */
.hub-home-card { background: #fff; border: 1px solid var(--hh-line); border-radius: var(--hh-radius); overflow: hidden; display: flex; flex-direction: column; }
.hub-home-card-img { position: relative; display: block; aspect-ratio: 16 / 10; background: #E9EEF3; overflow: hidden; }
.hub-home-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hub-home-card:hover .hub-home-card-img img { transform: scale(1.04); }
.hub-home-card-img .hub-home-badge { position: absolute; top: 12px; left: 12px; }
.hub-home-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.hub-home-card-body h4 { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; padding: 0; }
.hub-home-card-body h4 a { color: var(--hh-navy); text-decoration: none; }
.hub-home-excerpt { color: var(--hh-grey); font-size: 13px; line-height: 1.5; margin: 0 0 18px; padding: 0; }
.hub-home-card-body time, .hub-home-card-body .hub-home-link { margin-top: auto; }

/* Feature (overlay) cards */
.hub-home-feature-card { position: relative; border-radius: 12px; overflow: hidden; min-height: 400px; background: var(--hh-navy) center / cover no-repeat; display: flex; align-items: flex-end; }
.hub-home-feature-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,32,56,0) 30%, rgba(11,32,56,.92) 100%); }
.hub-home-feature-inner { position: relative; padding: 26px; color: #fff; width: 100%; }
.hub-home-feature-inner h3 { font-size: 26px; font-weight: 800; margin: 10px 0 4px; padding: 0; line-height: 1.2; }
.hub-home-feature-inner h3 a { color: #fff; text-decoration: none; }
.hub-home-feature-inner p { color: rgba(255,255,255,.85); font-size: 13px; margin: 0 0 16px; padding: 0; }

/* Churches */
.hub-home-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.hub-home-near-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.hub-home-near-head h3 { color: var(--hh-navy); font-size: 21px; font-weight: 800; margin: 0; padding: 0; }
.hub-home-locate { background: none; border: 0; padding: 0; color: var(--hh-grey); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.hub-home-near-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--hh-line); border-radius: var(--hh-radius); padding: 12px 16px 12px 12px; margin-bottom: 12px; }
.hub-home-near-thumb { flex: 0 0 96px; height: 64px; border-radius: 6px; overflow: hidden; background: #E9EEF3; }
.hub-home-near-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-home-near-body { flex: 1; min-width: 0; }
.hub-home-near-name { display: block; color: var(--hh-navy); font-size: 15px; font-weight: 800; text-decoration: none; }
.hub-home-near-meta { display: block; color: var(--hh-grey); font-size: 12px; }
.hub-home-near-time { display: block; color: var(--hh-blue); font-size: 12px; font-weight: 700; }
.hub-home-near-list.is-loading { opacity: .5; }
.hub-home-near-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.hub-home-near-links a { color: var(--hh-blue); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; }
.hub-home-near-links span { color: var(--hh-line); }

/* Businesses */
.hub-home-businesses { grid-template-columns: 2fr 1fr; }
.hub-home-biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub-home-biz-grid h4 { font-size: 16px; }
.hub-home-biz-empty { display: grid; grid-template-columns: 3fr 2fr; background: #fff; border: 1px solid var(--hh-line); border-radius: 12px; overflow: hidden; }
.hub-home-biz-empty > div:first-child { padding: 36px 40px; }
.hub-home-biz-empty h3 { color: var(--hh-navy); font-size: 24px; font-weight: 800; margin: 12px 0 10px; padding: 0; }
.hub-home-biz-empty p { color: var(--hh-grey); font-size: 15px; margin: 0 0 20px; padding: 0; }
.hub-home-biz-empty-img { min-height: 240px; background: linear-gradient(135deg, var(--hh-teal), var(--hh-blue)) center / cover no-repeat; }

/* News */
.hub-home-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hub-home-news-grid > [hidden] { display: none; }
.hub-home-news--dark .hub-home-card { background: #13314F; border-color: rgba(255,255,255,.08); }
.hub-home-news--dark .hub-home-card-body h4 a { color: #fff; }
.hub-home-news--dark .hub-home-label { color: #4FC3F7; }
.hub-home-news--dark .hub-home-excerpt, .hub-home-news--dark .hub-home-card-meta { color: #9FB0C3; }
.hub-home-pager { margin-top: 26px; display: flex; gap: 10px; }
.hub-home-pager button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hh-line); background: transparent; color: var(--hh-navy); font-size: 16px; cursor: pointer; }
.hub-home-pager button:disabled { opacity: .35; cursor: default; }
.hub-home-news--dark .hub-home-pager button { border-color: rgba(255,255,255,.5); color: #fff; }
.hub-home-pager.is-single { display: none; }

/* Videos */
.hub-home-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hub-home-tabs button { background: #fff; color: var(--hh-navy); border: 1px solid var(--hh-line); border-radius: 999px; padding: 8px 18px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
.hub-home-tabs button.is-active { background: var(--hh-blue); border-color: var(--hh-blue); color: #fff; }
.hub-home-video-grid { display: grid; grid-template-columns: 3fr 1fr 1fr; grid-auto-rows: auto; gap: 16px; }
.hub-home-video { background: #fff; border: 1px solid var(--hh-line); border-radius: var(--hh-radius); overflow: hidden; }
.hub-home-video[hidden] { display: none; }
.hub-home-video-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--hh-navy); }
.hub-home-video-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-home-video-img .hub-home-play { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; }
.hub-home-video-body { padding: 14px; }
.hub-home-video-body h4 { font-size: 14px; font-weight: 800; line-height: 1.3; margin: 0 0 12px; padding: 0; }
.hub-home-video-body h4 a { color: var(--hh-navy); text-decoration: none; }
.hub-home-feat-only { display: none; }
.hub-home-video.is-featured { grid-column: 1; grid-row: 1 / span 2; position: relative; border: 0; min-height: 420px; }
.hub-home-video.is-featured .hub-home-video-img { position: absolute; inset: 0; aspect-ratio: auto; }
.hub-home-video.is-featured .hub-home-video-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,32,56,.1) 40%, rgba(11,32,56,.95) 100%); }
.hub-home-video.is-featured .hub-home-play { top: 26px; left: 26px; width: 58px; height: 58px; z-index: 1; }
.hub-home-video.is-featured .hub-home-video-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; pointer-events: none; }
.hub-home-video.is-featured .hub-home-video-body a { pointer-events: auto; }
.hub-home-video.is-featured .hub-home-feat-only { display: block; }
.hub-home-video.is-featured .hub-home-link { display: inline-block; margin-top: 12px; }
.hub-home-video.is-featured h4 { font-size: 26px; margin: 0 0 6px; }
.hub-home-video.is-featured h4 a { color: #fff; }
.hub-home-video.is-featured .hub-home-card-meta { color: rgba(255,255,255,.8); }

/* Worship & Music */
.hub-home-music { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.hub-home-music-feature { position: relative; border-radius: 12px; overflow: hidden; min-height: 400px; background: #081626 center / cover no-repeat; display: flex; align-items: flex-end; }
.hub-home-music-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,38,.1) 40%, rgba(8,22,38,.95) 100%); }
.hub-home-music-feature > .hub-home-yt { position: absolute; top: 26px; left: 26px; z-index: 1; }
.hub-home-track { display: flex; gap: 16px; align-items: center; background: #11253D; border: 1px solid rgba(255,255,255,.08); border-radius: var(--hh-radius); padding: 12px; margin-bottom: 14px; }
.hub-home-track-thumb { position: relative; flex: 0 0 128px; height: 80px; border-radius: 6px; overflow: hidden; display: block; }
.hub-home-track-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-home-track-thumb .hub-home-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; }
.hub-home-track-name { display: block; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; }
.hub-home-track .hub-home-card-meta { color: #9FB0C3; margin-bottom: 6px; }
.hub-home-genres { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.hub-home-genres a { color: #9FB0C3; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; }
.hub-home-genres a:hover { color: #fff; }

/* Events */
.hub-home-ev-head { margin-bottom: 10px; }
.hub-home-events .hub-home-tabs button[style]:not(.is-active):hover { border-color: var(--hh-c); color: var(--hh-c); }
.hub-home-events .hub-home-tabs button.is-active[style] { background: var(--hh-c); border-color: var(--hh-c); }
.hub-home-ev-sub { color: var(--hh-grey); font-size: 13px; margin: -4px 0 16px; padding: 0; }
.hub-home-ev-sub:empty { display: none; }
.hub-home-ev-body-wrap.is-loading, [data-hub-ev-list].is-loading { opacity: .5; transition: opacity .2s; }
.hub-home-ev-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 28px; align-items: start; }
.hub-home-ev-feature { --hh-c: var(--hh-teal); position: relative; border-radius: 12px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end;
	background: linear-gradient(135deg, var(--hh-navy) 0%, color-mix(in srgb, var(--hh-c) 70%, var(--hh-navy)) 60%, var(--hh-c) 100%) center / cover no-repeat; }
.hub-home-ev-feature[style*="background-image"] { background-size: cover; background-position: center; }
.hub-home-ev-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,32,56,0) 25%, rgba(11,32,56,.92) 100%); }
.hub-home-ev-feature > .hub-home-date { position: absolute; top: 20px; left: 20px; z-index: 1; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.hub-home-ev-feature .hub-home-feature-inner p { line-height: 1.6; }
.hub-home-date { --hh-c: var(--hh-teal); flex: 0 0 58px; width: 58px; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--hh-line); line-height: 1; display: inline-block; }
.hub-home-date b { display: block; background: var(--hh-c); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 6px 0 5px; }
.hub-home-date i { display: block; font-style: normal; color: var(--hh-navy); font-size: 24px; font-weight: 800; padding: 7px 0 8px; }
.hub-home-ev-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--hh-line); border-radius: var(--hh-radius); padding: 14px 16px; margin-bottom: 12px; }
.hub-home-ev-body { flex: 1; min-width: 0; }
.hub-home-ev-body .hub-home-label { margin-bottom: 4px; }
.hub-home-ev-body .hub-home-near-name { line-height: 1.3; margin-bottom: 3px; }
.hub-home-ev-divider { display: flex; align-items: center; gap: 10px; color: var(--hh-grey); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; margin: 18px 0 10px; padding: 0; }
.hub-home-ev-divider::after { content: ""; flex: 1; height: 1px; background: var(--hh-line); }
.hub-home-ev-empty { background: #fff; border: 1px dashed var(--hh-line); border-radius: var(--hh-radius); padding: 22px; color: var(--hh-grey); }
.hub-home-ev-empty p { margin: 0 0 10px; padding: 0; }
.hub-home-ev-empty--inline { padding: 14px 16px; }
.hub-home-ev-empty:empty { display: none; }

/* YouTube modal */
.hub-home-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(5,12,22,.85); display: flex; align-items: center; justify-content: center; padding: 24px; }
.hub-home-modal-box { position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; }
.hub-home-modal-box iframe { width: 100%; height: 100%; border: 0; }
.hub-home-modal-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }

/* Newsletter band — Gravity Forms field + button on one pill */
.hub-home-subscribe .gform_wrapper.gravity-theme form,
.hub-home-subscribe .gform_wrapper form { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px; margin: 0; }
.hub-home-subscribe .gform_wrapper .gform_body { flex: 1; min-width: 0; }
.hub-home-subscribe .gform_wrapper .gform_fields { display: block !important; }
.hub-home-subscribe .gform_wrapper .gfield { margin: 0 !important; padding: 0 !important; }
.hub-home-subscribe .gform_wrapper .gfield_label,
.hub-home-subscribe .gform_wrapper .gfield_description:not(.validation_message),
.hub-home-subscribe .gform_wrapper .gform_heading { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hub-home-subscribe .gform_wrapper input[type="email"],
.hub-home-subscribe .gform_wrapper input[type="text"] { width: 100% !important; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 8px 0 !important; font-size: 14px; color: var(--hh-navy); }
.hub-home-subscribe .gform_wrapper .gform_footer { margin: 0 !important; padding: 0 !important; flex: 0 0 auto; }
.hub-home-subscribe .gform_wrapper .gform_footer input[type="submit"],
.hub-home-subscribe .gform_wrapper .gform_footer button { background: var(--hh-orange) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 13px 34px !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
.hub-home-subscribe .gform_wrapper .validation_message,
.hub-home-subscribe .gform_wrapper .gform_validation_errors { color: #fff !important; background: none !important; border: 0 !important; box-shadow: none !important; font-size: 13px; padding: 6px 0 0 !important; }
.hub-home-subscribe .gform_confirmation_message { background: rgba(255,255,255,.15); color: #fff; border-radius: 12px; padding: 16px 20px; font-weight: 700; }
.hub-home-subscribe-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hub-home-subscribe-tags li { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 0; }
.hub-home-subscribe-tags li::before { content: "\2713"; margin-right: 6px; }

/* Responsive */
@media (max-width: 1080px) {
	.hub-home-news-grid { grid-template-columns: repeat(2, 1fr); }
	.hub-home-video-grid { grid-template-columns: 1fr 1fr; }
	.hub-home-video.is-featured { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
	.hub-home-businesses { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.hub-home-dir, .hub-home-music, .hub-home-biz-empty, .hub-home-ev-grid { grid-template-columns: 1fr; }
	.hub-home-ev-feature { min-height: 320px; }
	.hub-home-feature-card, .hub-home-music-feature { min-height: 320px; }
	.hub-home-biz-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.hub-home-news-grid, .hub-home-biz-grid, .hub-home-video-grid { grid-template-columns: 1fr; }
	.hub-home-near-thumb { flex-basis: 72px; height: 52px; }
	.hub-home-near-item .hub-home-pill-btn { display: none; }
	.hub-home-subscribe .gform_wrapper form { flex-direction: column; border-radius: 16px; padding: 10px; gap: 8px; }
	.hub-home-subscribe .gform_wrapper .gform_footer { width: 100%; }
	.hub-home-subscribe .gform_wrapper .gform_footer input[type="submit"], .hub-home-subscribe .gform_wrapper .gform_footer button { width: 100%; }
	.hub-home-biz-empty > div:first-child { padding: 26px; }
}
