/* Bright Future inner pages. Builds on the tokens and components in home.css. */

/* Header with full page navigation */
@media (min-width: 961px) {
    .bf-nav { gap: 2px; }
    .bf-nav a { padding: 10px 11px; }
}
.bf-nav-cta.is-current { box-shadow: 0 0 0 3px rgba(242, 140, 15, .25); }

/* Utilities */
.bf-paper { background: var(--paper); }
.bf-mt { margin-top: 28px; }
.bf-muted { color: var(--muted); }
.bf-center-action { display: flex; justify-content: center; margin-top: 48px; }
.bf-prose { color: #3d4b61; font-size: 17px; line-height: 1.75; }
.bf-prose > * + * { margin-top: 14px; }
.bf-prose h2, .bf-prose h3, .bf-prose h4 { margin-top: 28px; color: var(--navy); font-family: var(--heading); line-height: 1.3; }
.bf-prose h2 { font-size: 26px; }
.bf-prose h3 { font-size: 21px; }
.bf-prose ul, .bf-prose ol { padding-left: 22px; }
.bf-prose li + li { margin-top: 6px; }
.bf-prose a { color: var(--blue); text-decoration: underline; }
.bf-prose img { height: auto; border-radius: 12px; }
.bf-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bf-prose th, .bf-prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.bf-empty-text { color: var(--muted); }

/* Home tweaks for linked tiles */
.bf-gallery-grid figure > a { display: block; height: 100%; }
.bf-event-tile { color: inherit; }
.bf-notice-row { color: inherit; }
.bf-notice-row > div { flex: 1; min-width: 0; }
.bf-notice-arrow { color: #9aabc4; font-size: 20px; transition: color .2s, transform .2s; }
.bf-notice-row:hover .bf-notice-arrow { color: var(--blue); transform: translateX(3px); }

/* Page hero */
.bf-page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.bf-page-hero-image, .bf-page-hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.bf-page-hero-image { object-fit: cover; }
.bf-page-hero-overlay { background: linear-gradient(100deg, rgba(8, 24, 46, .95) 0%, rgba(8, 24, 46, .82) 50%, rgba(8, 24, 46, .55) 100%); }
.bf-page-hero-overlay::after { content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(242, 140, 15, .12); }
.bf-page-hero-inner { position: relative; padding-block: 72px 84px; animation: bf-rise .7s ease-out both; }
.bf-page-hero h1 { max-width: 860px; margin: 18px 0 0; color: #fff; font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.bf-page-hero p { max-width: 640px; margin-top: 18px; color: #d3dfef; font-size: 19px; }
.bf-page-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.bf-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; color: #a9bcd6; font-size: 14px; font-weight: 600; }
.bf-breadcrumb a:hover { color: #fff; }
.bf-breadcrumb .bf-icon { width: 14px; height: 14px; opacity: .6; }
.bf-breadcrumb span { color: var(--orange-2); }
.bf-page-hero .bf-pill { margin-top: 0; }

/* Meta lists */
.bf-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.bf-meta li { display: inline-flex; align-items: center; gap: 7px; }
.bf-meta .bf-icon { color: var(--orange); }
.bf-meta-light { color: #dbe5f3; font-size: 15px; }
.bf-meta-light .bf-icon { color: var(--orange-2); }

/* Generic cards */
.bf-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.bf-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bf-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: inherit; transition: transform .3s, box-shadow .3s, border-color .3s; }
.bf-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.bf-card[hidden] { display: none; }
.bf-card-image { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--blue-soft); }
.bf-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bf-card:hover .bf-card-image img { transform: scale(1.06); }
.bf-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.bf-card-body h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.bf-card-body p { color: var(--muted); font-size: 15px; }
.bf-card-body .bf-text-link { margin-top: auto; padding-top: 6px; }
.bf-chip { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bf-date-float { position: absolute; top: 14px; right: 14px; background: #fff; box-shadow: var(--shadow-sm); }

/* Filter tabs */
.bf-filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.bf-filter-tabs button, .bf-filter-tabs a { padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 700; transition: background-color .2s, color .2s; }
.bf-filter-tabs button:hover, .bf-filter-tabs a:hover { color: var(--navy); }
.bf-filter-tabs .is-active { background: var(--navy); color: #fff !important; }
.bf-filter-links { display: inline-flex; margin-bottom: 30px; }

/* Stats band */
.bf-stats-band { padding: 0 0 24px; }
.bf-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: hidden; border-radius: 24px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow-lg); }
.bf-stats-grid > div { display: grid; gap: 4px; padding: 36px 30px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .08); }
.bf-stats-grid > div:last-child { border-right: 0; }
.bf-stats-grid strong { font: 800 clamp(34px, 3.4vw, 46px)/1 var(--heading); color: var(--orange-2); }
.bf-stats-grid span { color: #c9d6ea; font-weight: 600; }

/* Mission, values, timeline */
.bf-mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.bf-mission-card { padding: 40px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bf-mission-card:nth-child(even) .bf-feature-icon { background: var(--orange-soft); color: var(--orange); }
.bf-mission-card h3 { margin: 22px 0 12px; font-size: 24px; }
.bf-mission-card p { color: var(--muted); font-size: 17px; }
.bf-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bf-timeline { position: relative; display: grid; gap: 26px; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.bf-timeline::before { content: ''; position: absolute; left: 59px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--orange)); }
.bf-timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; align-items: start; gap: 28px; }
.bf-timeline-year { position: relative; z-index: 1; justify-self: center; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font: 800 15px var(--heading); }
.bf-timeline-card { padding: 24px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.bf-timeline-card h3 { font-size: 19px; }
.bf-timeline-card p { margin-top: 8px; color: var(--muted); }

/* Leadership speeches */
.bf-message-flip .bf-message-card { grid-template-columns: 1fr 400px; }
.bf-message-flip .bf-message-photo { order: 2; }
.bf-speech { margin-top: 18px; }
.bf-message-copy .bf-speech p { font-size: 17px; }

/* Team */
.bf-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.bf-team-card { padding: 22px 22px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .3s, box-shadow .3s; }
.bf-team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bf-team-photo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; margin-bottom: 18px; border-radius: 16px; background: var(--blue-soft); }
.bf-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.bf-avatar-lg { width: 96px; height: 96px; font-size: 38px; }
.bf-team-card h3 { font-size: 18px; }
.bf-team-card small { display: block; margin-top: 4px; color: var(--orange); font-weight: 700; }

/* Downloads */
.bf-download-list { display: grid; gap: 14px; }
.bf-download { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.bf-download > div { flex: 1; min-width: 0; }
.bf-download h3 { font-size: 17px; }
.bf-download small { color: var(--muted); }
.bf-download-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 22px; }
.bf-download-sm { padding: 14px 16px; }
.bf-download-sm .bf-download-icon { width: 42px; height: 42px; font-size: 18px; }

/* Detail pages */
.bf-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 56px; }
.bf-detail-grid-wide { grid-template-columns: minmax(0, 1fr) 380px; }
.bf-detail-main { min-width: 0; }
.bf-detail-image { width: 100%; max-height: 520px; margin-bottom: 32px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-sm); }
.bf-detail-main > .bf-text-link { display: inline-flex; }
.bf-sidebar { position: sticky; top: 110px; display: grid; gap: 24px; }
.bf-side-card { padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bf-side-card > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 20px; }
.bf-side-card > h3 .bf-icon { color: var(--orange); }
.bf-side-card > p { margin-bottom: 20px; color: var(--muted); }
.bf-side-card .bf-button + .bf-button { margin-top: 10px; }
.bf-side-card-dark { background: radial-gradient(circle at 100% 0, rgba(242, 140, 15, .3), transparent 50%), var(--navy); border: 0; color: #fff; }
.bf-side-card-dark > h3 { color: #fff; }
.bf-side-card-dark > p { color: #c3d1e6; }
.bf-side-link { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--navy); font-weight: 700; line-height: 1.35; }
.bf-side-link:first-of-type { border-top: 0; padding-top: 0; }
.bf-side-link img { width: 72px; height: 58px; flex: none; object-fit: cover; border-radius: 10px; }
.bf-side-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 500; }
.bf-side-link:hover { color: var(--blue); }
.bf-facts { display: grid; gap: 16px; margin: 0 0 24px; }
.bf-facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bf-facts dt .bf-icon { color: var(--orange); }
.bf-facts dd { margin: 4px 0 0; color: var(--navy); font-weight: 700; }
.bf-notices-compact { gap: 10px; }
.bf-notices-compact > * { gap: 14px; padding: 12px 14px; }
.bf-notices-compact .bf-date { width: 54px; height: 54px; border-radius: 12px; }
.bf-notices-compact .bf-date strong { font-size: 20px; }
.bf-notices-compact h3 { font-size: 15px; }
.bf-notices-compact div > small { font-size: 11px; }

/* Tabs */
.bf-tab-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.bf-tab-list button { position: relative; padding: 12px 18px; border: 0; background: none; color: var(--muted); font-size: 16px; font-weight: 700; }
.bf-tab-list button.is-active { color: var(--navy); }
.bf-tab-list button.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -7px; height: 3px; border-radius: 3px; background: var(--orange); }

/* Admissions */
.bf-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.bf-process li { position: relative; padding: 34px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bf-process li:not(:last-child)::after { content: ''; position: absolute; top: 62px; right: -25px; width: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 10px); }
.bf-process-icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); font-size: 26px; }
.bf-process-icon b { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font: 800 13px var(--heading); }
.bf-process h3 { margin: 22px 0 8px; font-size: 20px; }
.bf-process p { color: var(--muted); font-size: 15px; }
.bf-split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
.bf-split h2 { margin-bottom: 14px; }
.bf-split-form { grid-template-columns: .9fr 1.1fr; }
.bf-doc-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.bf-doc-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.bf-doc-list .bf-icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #e3f6ec; color: #17924f; stroke-width: 3; }
.bf-grade-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.bf-grade-list > div { display: grid; gap: 2px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.bf-grade-list > div:nth-child(even) { border-left-color: var(--orange); }
.bf-grade-list strong { color: var(--navy); font-family: var(--heading); }
.bf-grade-list span { color: var(--muted); font-size: 14px; }
.bf-faq { display: grid; gap: 12px; margin-top: 26px; }
.bf-faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s; }
.bf-faq details[open] { box-shadow: var(--shadow-sm); }
.bf-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: var(--navy); font: 700 17px/1.4 var(--heading); cursor: pointer; list-style: none; }
.bf-faq summary::-webkit-details-marker { display: none; }
.bf-faq summary span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--blue); transition: transform .25s, background-color .25s, color .25s; }
.bf-faq details[open] summary span { transform: rotate(45deg); background: var(--orange); color: #fff; }
.bf-faq .bf-prose { padding: 0 22px 20px; font-size: 16px; }
.bf-form-card { overflow: hidden; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); }
.bf-form-card .bf-enquiry { padding: 44px; }

/* Facilities */
.bf-feature-rows { display: grid; gap: 96px; }
.bf-feature-row { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.bf-feature-row.is-flipped .bf-feature-row-media { order: 2; }
.bf-feature-row-media { position: relative; }
.bf-feature-row-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.bf-feature-row-num { position: absolute; left: -18px; bottom: -18px; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--orange); color: #fff; font: 800 28px var(--heading); box-shadow: 0 14px 30px rgba(242, 140, 15, .35); }
.bf-feature-row.is-flipped .bf-feature-row-num { left: auto; right: -18px; background: var(--blue); box-shadow: 0 14px 30px rgba(29, 91, 216, .3); }
.bf-feature-row-copy h2 { margin-bottom: 18px; }
.bf-amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bf-amenity { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.bf-amenity .bf-feature-icon { width: 50px; height: 50px; font-size: 22px; }
.bf-amenity:nth-child(even) .bf-feature-icon { background: var(--orange-soft); color: var(--orange); }
.bf-amenity strong { color: var(--navy); font-family: var(--heading); }

/* Albums & gallery */
.bf-album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bf-album-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bf-album { position: relative; display: block; overflow: hidden; aspect-ratio: 4/4.4; border-radius: 22px; background: var(--navy); }
.bf-album img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.bf-album:hover img { transform: scale(1.07); opacity: .85; }
.bf-album-overlay { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 60px 22px 22px; background: linear-gradient(transparent, rgba(8, 24, 46, .92)); color: #fff; }
.bf-album-overlay small { display: inline-flex; justify-self: start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; }
.bf-album-overlay strong { font: 700 20px/1.25 var(--heading); }
.bf-album-overlay > span { color: #c9d6ea; font-size: 14px; }
.bf-masonry { columns: 3 300px; column-gap: 20px; }
.bf-masonry-item { display: block; width: 100%; margin: 0 0 20px; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: var(--paper); break-inside: avoid; cursor: zoom-in; }
.bf-masonry-item img { width: 100%; height: auto; transition: transform .5s; }
.bf-masonry-item:hover img { transform: scale(1.04); }
.bf-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.bf-video { overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.bf-video-thumb { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; aspect-ratio: 16/9; border: 0; background: var(--navy); cursor: pointer; }
.bf-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s, opacity .3s; }
.bf-video-thumb:hover img { transform: scale(1.05); opacity: 1; }
.bf-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 24px; box-shadow: 0 0 0 10px rgba(242, 140, 15, .25); transition: transform .3s; }
.bf-play .bf-icon { margin-left: 3px; fill: currentColor; }
.bf-video-thumb:hover .bf-play { transform: scale(1.1); }
.bf-video-body { padding: 20px 22px 24px; }
.bf-video-body h3 { font-size: 18px; }
.bf-video-body p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Lightbox */
.bf-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 60px 80px; background: rgba(5, 14, 28, .92); backdrop-filter: blur(6px); }
.bf-lightbox[hidden] { display: none; }
.bf-lightbox-stage { display: grid; place-items: center; width: 100%; height: 100%; }
.bf-lightbox-stage img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.bf-lightbox-stage iframe { width: min(1100px, 100%); aspect-ratio: 16/9; border: 0; border-radius: 14px; }
.bf-lightbox-close, .bf-lightbox-nav { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; transition: background-color .2s; }
.bf-lightbox-close:hover, .bf-lightbox-nav:hover { background: var(--orange); }
.bf-lightbox-close { top: 18px; right: 18px; }
.bf-lightbox-nav { top: 50%; margin-top: -25px; }
.bf-lightbox-nav.is-prev { left: 18px; }
.bf-lightbox-nav.is-next { right: 18px; }
.bf-lightbox:not(.is-gallery) .bf-lightbox-nav { display: none; }

/* Events */
.bf-featured-event { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-radius: 28px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.bf-featured-event > img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.bf-featured-event-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 48px; background: radial-gradient(circle at 100% 100%, rgba(29, 91, 216, .45), transparent 55%); }
.bf-featured-event-copy h3 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.bf-featured-event-copy p { color: #c9d6ea; font-size: 17px; }
.bf-featured-event-copy .bf-button { margin-top: 8px; }
.bf-event-card .bf-card-body h3 { font-size: 19px; }

/* Empty state */
.bf-empty { display: grid; justify-items: center; gap: 12px; padding: 64px 24px; border-radius: 24px; background: var(--paper); border: 1px dashed #cdd8ea; text-align: center; }
.bf-empty h3 { font-size: 22px; }
.bf-empty p { max-width: 460px; color: var(--muted); }

/* Pagination */
.bf-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.bf-pagination a, .bf-pagination span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; transition: background-color .2s, color .2s, border-color .2s; }
.bf-pagination a:hover { border-color: var(--blue); color: var(--blue); }
.bf-pagination .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.bf-pagination .is-disabled { opacity: .4; }
.bf-pagination .is-gap { border: 0; background: none; }

/* Notice detail */
.bf-notice-paper { position: relative; overflow: hidden; padding: 48px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bf-notice-paper::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.bf-notice-paper-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px dashed var(--line); }
.bf-notice-paper-head img { height: 52px; width: auto; max-width: 140px; object-fit: contain; }
.bf-notice-paper-head strong, .bf-notice-paper-head small { display: block; }
.bf-notice-paper-head strong { color: var(--navy); font: 800 18px var(--heading); }
.bf-notice-paper-head small { color: var(--muted); }
.bf-notice-paper h2 { margin-bottom: 20px; font-size: 28px; }

/* Contact page */
.bf-contact-quick-section { padding: 0; position: relative; z-index: 2; margin-top: -48px; }
.bf-contact-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bf-contact-quick > * { display: grid; gap: 4px; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); color: inherit; transition: transform .3s; }
.bf-contact-quick > a:hover { transform: translateY(-5px); }
.bf-contact-quick .bf-feature-icon { margin-bottom: 14px; }
.bf-contact-quick > :nth-child(even) .bf-feature-icon { background: var(--orange-soft); color: var(--orange); }
.bf-contact-quick small { color: var(--muted); font-size: 14px; }
.bf-contact-quick strong { color: var(--navy); font-family: var(--heading); overflow-wrap: anywhere; }
.bf-contact-page { background: #fff; }

/* CTA */
.bf-cta-section { padding-top: 0; }
.bf-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 56px 64px; border-radius: 30px; background: radial-gradient(circle at 0 100%, rgba(29, 91, 216, .5), transparent 45%), radial-gradient(circle at 100% 0, rgba(242, 140, 15, .4), transparent 40%), var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.bf-cta h2 { margin: 18px 0 10px; color: #fff; font-size: clamp(26px, 2.8vw, 36px); }
.bf-cta p { max-width: 560px; color: #c9d6ea; font-size: 17px; }
.bf-cta .bf-actions { flex: none; }
.bf-section:not(.bf-paper) + .bf-cta-section { padding-top: 0; }

/* Responsive */
@media (max-width: 1180px) {
    .bf-card-grid, .bf-video-grid { grid-template-columns: repeat(2, 1fr); }
    .bf-values-grid, .bf-team-grid, .bf-album-grid, .bf-amenity-grid { grid-template-columns: repeat(3, 1fr); }
    .bf-process { grid-template-columns: repeat(2, 1fr); }
    .bf-process li::after { display: none; }
    .bf-contact-quick { grid-template-columns: repeat(2, 1fr); }
    .bf-detail-grid, .bf-detail-grid-wide { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
    .bf-message-flip .bf-message-card { grid-template-columns: 1fr 320px; }
}

@media (max-width: 960px) {
    .bf-page-hero-inner { padding-block: 56px 64px; }
    .bf-detail-grid, .bf-detail-grid-wide, .bf-split, .bf-split-form, .bf-feature-row, .bf-featured-event, .bf-mission-grid { grid-template-columns: 1fr; }
    .bf-sidebar { position: static; }
    .bf-feature-rows { gap: 64px; }
    .bf-feature-row { gap: 40px; }
    .bf-feature-row.is-flipped .bf-feature-row-media { order: 0; }
    .bf-featured-event > img { min-height: 260px; max-height: 340px; }
    .bf-message-flip .bf-message-card { grid-template-columns: 1fr; }
    .bf-message-flip .bf-message-photo { order: 0; }
    .bf-values-grid, .bf-team-grid, .bf-album-grid, .bf-amenity-grid, .bf-album-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .bf-cta { flex-direction: column; align-items: flex-start; padding: 44px; }
}

@media (max-width: 600px) {
    .bf-page-hero p { font-size: 17px; }
    .bf-card-grid, .bf-card-grid-2, .bf-video-grid, .bf-values-grid, .bf-process, .bf-contact-quick, .bf-grade-list, .bf-album-grid-3 { grid-template-columns: 1fr; }
    .bf-team-grid, .bf-album-grid, .bf-amenity-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .bf-amenity { flex-direction: column; align-items: flex-start; padding: 18px; }
    .bf-album-overlay { padding: 40px 14px 14px; }
    .bf-album-overlay strong { font-size: 16px; }
    .bf-album-overlay > span { display: none; }
    .bf-team-card { padding: 14px 14px 18px; }
    .bf-team-card h3 { font-size: 16px; }
    .bf-mission-card, .bf-notice-paper, .bf-featured-event-copy { padding: 28px 22px; }
    .bf-form-card .bf-enquiry { padding: 30px 22px; }
    .bf-timeline::before { left: 18px; }
    .bf-timeline li { grid-template-columns: 1fr; gap: 10px; padding-left: 44px; }
    .bf-timeline-year { justify-self: start; }
    .bf-feature-row-num { width: 64px; height: 64px; font-size: 22px; left: 12px; bottom: -14px; }
    .bf-feature-row.is-flipped .bf-feature-row-num { right: 12px; }
    .bf-cta { padding: 34px 24px; border-radius: 24px; }
    .bf-cta .bf-actions .bf-button { flex: 1 1 100%; }
    .bf-filter-tabs { border-radius: 18px; }
    .bf-stats-grid > div { padding: 26px 16px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .bf-lightbox { padding: 70px 12px; }
    .bf-lightbox-nav { top: auto; bottom: 14px; margin: 0; }
    .bf-contact-quick-section { margin-top: -32px; }
}

/* Back-to-back leadership messages share one band */
.bf-message + .bf-message { padding-top: 0; }
