/*
 * Balme Library, University of Ghana - brand layer for Helix Ultimate
 * -------------------------------------------------------------------
 * Helix loads this file automatically after its own styles.
 * Palette from the University of Ghana / UG Library System logo:
 *   UG navy #153D6E   deep navy #0A2140   UG gold #B99D64   tint #F3F7FF
 * Home page sections use the "bl-" classes below (SP Page Builder text blocks).
 */

:root {
    --ug-navy: #153d6e;
    --ug-navy-dark: #0d2a4f;
    --ug-navy-deep: #0a2140;
    --ug-gold: #b99d64;
    --ug-gold-dark: #8f7543;
    --ug-gold-light: #e9dcc0;
    --ug-tint: #f3f7ff;
    --ug-ink: #1e2a3a;
    --ug-muted: #556172;
    --ug-line: #dfe5ee;
    --ug-radius: 12px;
}

/* ---------- Base ---------------------------------------------------------- */

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ug-ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; color: var(--ug-navy); letter-spacing: -0.01em; }
a { color: var(--ug-navy); }
a:hover, a:focus { color: var(--ug-gold-dark); }
::selection { background: var(--ug-gold-light); color: var(--ug-navy-deep); }
:focus-visible { outline: 3px solid var(--ug-gold); outline-offset: 2px; }

.btn-primary, .sppb-btn-primary {
    background-color: var(--ug-navy) !important;
    border-color: var(--ug-navy) !important;
}
.btn-primary:hover, .sppb-btn-primary:hover { background-color: var(--ug-navy-dark) !important; border-color: var(--ug-navy-dark) !important; }

/* ---------- Top bar ------------------------------------------------------- */

#sp-top-bar {
    background: var(--ug-navy-deep) !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 13px;
    padding: 7px 0;
}
#sp-top-bar a { color: rgba(255, 255, 255, .85); }
#sp-top-bar a:hover { color: var(--ug-gold); }
#sp-top-bar .sp-contact-info { margin: 0; }
#sp-top-bar .sp-contact-info li { color: rgba(255, 255, 255, .8); }
#sp-top-bar .sp-contact-info li i,
#sp-top-bar .sp-contact-info li span[class*="fa"] { color: var(--ug-gold); }

.bl-toplinks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bl-toplinks li { margin: 0; }
.bl-toplinks a { font-weight: 500; text-decoration: none; }

/* ---------- Header, logo, menu ------------------------------------------- */

#sp-header {
    background: #fff !important;
    border-top: 3px solid var(--ug-gold);
    box-shadow: 0 1px 0 var(--ug-line), 0 6px 18px rgba(10, 33, 64, .06);
    height: 92px;
}
#sp-header .logo { height: 92px; display: flex; align-items: center; }
#sp-header .logo img.logo-image { height: 58px !important; width: auto; max-height: none; }
#sp-header.header-sticky { height: 76px; }
#sp-header.header-sticky .logo { height: 76px; }
#sp-header.header-sticky .logo img.logo-image { height: 48px !important; }

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
    color: var(--ug-ink) !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 92px !important;
    padding: 0 14px !important;
    position: relative;
}
#sp-header.header-sticky .sp-megamenu-parent > li > a { line-height: 76px !important; }
.sp-megamenu-parent > li > a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 24px;
    height: 2px;
    background: var(--ug-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.sp-megamenu-parent > li:hover > a::after,
.sp-megamenu-parent > li.active > a::after { transform: scaleX(1); }
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a { color: var(--ug-navy) !important; }

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
    background: #fff;
    border-top: 3px solid var(--ug-navy);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 30px rgba(10, 33, 64, .14);
    padding: 10px 0;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    color: var(--ug-ink) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px !important;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
    color: var(--ug-navy) !important;
    background: var(--ug-tint);
}
.sp-megamenu-parent .sp-dropdown { width: 270px !important; }

/* "Ask a Librarian" as a button at the end of the menu */
.sp-megamenu-parent > li.bl-menu-cta > a,
.sp-megamenu-parent > li > a.bl-menu-cta {
    line-height: 1 !important;
    margin: 27px 0 0 10px;
    padding: 12px 18px !important;
    background: var(--ug-navy);
    color: #fff !important;
    border-radius: 999px;
}
.sp-megamenu-parent > li.bl-menu-cta > a:hover,
.sp-megamenu-parent > li > a.bl-menu-cta:hover { background: var(--ug-gold); color: var(--ug-navy-deep) !important; }
.sp-megamenu-parent > li.bl-menu-cta > a::after,
.sp-megamenu-parent > li > a.bl-menu-cta::after { display: none; }
#sp-header.header-sticky .sp-megamenu-parent > li.bl-menu-cta > a,
#sp-header.header-sticky .sp-megamenu-parent > li > a.bl-menu-cta { margin-top: 19px; line-height: 1 !important; }

#offcanvas-toggler .burger-icon > span,
.offcanvas-toggler-right .burger-icon > span { background-color: var(--ug-navy) !important; }

/* off-canvas (phone) menu */
.offcanvas-menu { background: var(--ug-navy-deep) !important; }
.offcanvas-menu .offcanvas-inner .menu > li > a,
.offcanvas-menu .offcanvas-inner .menu > li > span,
.offcanvas-menu .offcanvas-inner .menu .menu-child li a { color: rgba(255, 255, 255, .9) !important; }
.offcanvas-menu .offcanvas-inner .menu > li.active > a,
.offcanvas-menu .offcanvas-inner .menu li a:hover { color: var(--ug-gold) !important; }
.offcanvas-menu .close-offcanvas .burger-icon > span { background: #fff !important; }
.offcanvas-menu .offcanvas-inner .sp-contact-info li,
.offcanvas-menu .offcanvas-inner .sp-contact-info li a { color: rgba(255, 255, 255, .75); white-space: normal; line-height: 1.5; }
.offcanvas-menu .offcanvas-inner .sp-contact-info { padding-right: 16px; }

/* hide the empty demo page-title band on SP Page Builder pages */
.com-sppagebuilder #sp-page-title:empty { display: none; }
.com-sppagebuilder #sp-main-body { padding: 0; }

/* ---------- Footer -------------------------------------------------------- */

#sp-bottom {
    background: var(--ug-navy-deep) !important;
    color: rgba(255, 255, 255, .78) !important;
    border-top: 4px solid var(--ug-gold);
    padding: 64px 0 40px;
    font-size: 15px;
}
#sp-bottom .sp-module .sp-module-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 20px;
}
#sp-bottom .sp-module .sp-module-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 10px;
    background: var(--ug-gold);
}
#sp-bottom a { color: rgba(255, 255, 255, .85) !important; }
#sp-bottom a:hover { color: var(--ug-gold) !important; }
#sp-bottom ul.menu, #sp-bottom .bl-footer-list { list-style: none; padding: 0; margin: 0; }
#sp-bottom ul.menu li, #sp-bottom .bl-footer-list li { margin: 0 0 10px; padding: 0; border: 0; }
#sp-bottom ul.menu li a { padding: 0; }
#sp-bottom ul.menu li a::before { display: none; }
.bl-footer-logo { display: inline-block; background: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 16px; }
.bl-footer-logo img { height: 44px; width: auto; display: block; }
.bl-footer-hours { margin: 0; }
.bl-footer-hours dt { color: #fff; font-weight: 600; margin-top: 10px; }
.bl-footer-hours dt:first-child { margin-top: 0; }
.bl-footer-hours dd { margin: 0; color: rgba(255, 255, 255, .75); }

#sp-footer {
    background: #071a33 !important;
    color: rgba(255, 255, 255, .6) !important;
    font-size: 13px;
    padding: 18px 0;
}
#sp-footer a { color: rgba(255, 255, 255, .8) !important; }
#sp-footer a:hover { color: var(--ug-gold) !important; }

.sp-scroll-up { background: var(--ug-navy) !important; color: #fff !important; }

/* =========================================================================
   Home page sections (SP Page Builder text blocks)
   ========================================================================= */

.sppb-addon-text-block .sppb-addon-content > .bl-hero,
.sppb-addon-text-block .sppb-addon-content > .bl-section,
.sppb-addon-text-block .sppb-addon-content > .bl-cta { margin: 0; }

.bl-hero, .bl-section, .bl-cta,
.bl-hero h1, .bl-hero h2, .bl-hero h3,
.bl-section h2, .bl-section h3, .bl-cta h2 { font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif !important; }

/* Helix shows a second menu toggle next to the logo; the full menu is visible on desktop */
@media (min-width: 992px) { .offcanvas-toggler-secondary { display: none !important; } }

.bl-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.bl-kicker {
    color: var(--ug-gold-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.bl-eyebrow {
    display: inline-block;
    color: var(--ug-gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding-left: 12px;
    border-left: 3px solid var(--ug-gold);
    margin: 0 0 14px;
}

/* ---------- Hero ---------- */

.bl-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: var(--ug-deep, #0A2140) url("../../../images/balme/hero-1.jpg") 70% 32% / cover no-repeat;
    padding: 72px 0 64px;
}
/* navy wash over the photos so the text stays readable */
.bl-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(10, 33, 64, .96) 0%, rgba(13, 42, 79, .9) 42%, rgba(21, 61, 110, .55) 72%, rgba(21, 61, 110, .25) 100%);
    pointer-events: none;
}
.bl-hero > .bl-hero__inner { position: relative; z-index: 2; }

/* Photo carousel: 6 photos, 7s each, crossfading with a slow zoom (CSS only) */
.bl-hero__slides { position: absolute; inset: 0; z-index: 0; }
.bl-hero__slides span {
    position: absolute; inset: 0;
    background: center 32% / cover no-repeat;
    opacity: 0;
    animation: bl-hero-fade 42s linear infinite;
    will-change: opacity, transform;
}
.bl-hero__slides span:nth-child(1) { background-image: url("../../../images/balme/hero-1.jpg"); background-position: 70% 32%; animation-delay: 0s; }
.bl-hero__slides span:nth-child(2) { background-image: url("../../../images/balme/hero-2.jpg"); animation-delay: 7s; }
.bl-hero__slides span:nth-child(3) { background-image: url("../../../images/balme/hero-3.jpg"); background-position: 60% 45%; animation-delay: 14s; }
.bl-hero__slides span:nth-child(4) { background-image: url("../../../images/balme/hero-4.jpg"); animation-delay: 21s; }
.bl-hero__slides span:nth-child(5) { background-image: url("../../../images/balme/hero-5.jpg"); background-position: center 40%; animation-delay: 28s; }
.bl-hero__slides span:nth-child(6) { background-image: url("../../../images/balme/hero-6.jpg"); background-position: center 55%; animation-delay: 35s; }
@keyframes bl-hero-fade {
    0%    { opacity: 0; transform: scale(1.08); }
    3.5%  { opacity: 1; }
    16.7% { opacity: 1; }
    20%   { opacity: 0; transform: scale(1); }
    100%  { opacity: 0; transform: scale(1); }
}
/* the photo credit changes with the photo */
.bl-hero__credit { z-index: 2; min-width: 320px; height: 16px; text-align: right; }
.bl-hero__credit span {
    position: absolute; right: 0; bottom: 0; white-space: nowrap;
    opacity: 0;
    animation: bl-hero-credit 42s linear infinite;
}
.bl-hero__credit span:nth-child(1) { animation-delay: 0s; }
.bl-hero__credit span:nth-child(2) { animation-delay: 7s; }
.bl-hero__credit span:nth-child(3) { animation-delay: 14s; }
.bl-hero__credit span:nth-child(4) { animation-delay: 21s; }
.bl-hero__credit span:nth-child(5) { animation-delay: 28s; }
.bl-hero__credit span:nth-child(6) { animation-delay: 35s; }
@keyframes bl-hero-credit {
    0%, 2% { opacity: 0; } 4%, 16.7% { opacity: 1; } 18%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-hero__slides span, .bl-hero__credit span { animation: none; }
    .bl-hero__slides span:first-child, .bl-hero__credit span:first-child { opacity: 1; }
}
.bl-hero__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: end;
}
.bl-hero__title {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.bl-hero__lead { color: rgba(255, 255, 255, .86); font-size: 1.1rem; line-height: 1.6; max-width: 46ch; margin: 0 0 28px; }
.bl-hero__credit { position: absolute; right: 16px; bottom: 6px; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .55); }
.bl-hero__credit a { color: rgba(255, 255, 255, .7); }

/* search card with CSS-only tabs */
.bl-search {
    background: #fff;
    border-radius: var(--ug-radius);
    border-bottom: 4px solid var(--ug-gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    padding: 6px 20px 18px;
    color: var(--ug-ink);
    max-width: 760px;
}
.bl-search > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.bl-search__tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ug-line); margin: 0 -4px 16px; scrollbar-width: none; }
.bl-search__tabs::-webkit-scrollbar { display: none; }
.bl-search__tabs label {
    cursor: pointer;
    margin: 0;
    padding: 12px 14px 11px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ug-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.bl-search__tabs label:hover { color: var(--ug-navy); }
#bl-tab-all:checked ~ .bl-search__tabs label[for="bl-tab-all"],
#bl-tab-cat:checked ~ .bl-search__tabs label[for="bl-tab-cat"],
#bl-tab-space:checked ~ .bl-search__tabs label[for="bl-tab-space"],
#bl-tab-guides:checked ~ .bl-search__tabs label[for="bl-tab-guides"] { color: var(--ug-navy); border-bottom-color: var(--ug-gold); }
#bl-tab-all:focus-visible ~ .bl-search__tabs label[for="bl-tab-all"],
#bl-tab-cat:focus-visible ~ .bl-search__tabs label[for="bl-tab-cat"],
#bl-tab-space:focus-visible ~ .bl-search__tabs label[for="bl-tab-space"],
#bl-tab-guides:focus-visible ~ .bl-search__tabs label[for="bl-tab-guides"] { outline: 3px solid var(--ug-gold); outline-offset: -3px; }

.bl-search__panel { display: none; gap: 8px; margin: 0; }
#bl-tab-all:checked ~ .bl-search__panel--all,
#bl-tab-cat:checked ~ .bl-search__panel--cat,
#bl-tab-space:checked ~ .bl-search__panel--space,
#bl-tab-guides:checked ~ .bl-search__panel--guides { display: flex; }
.bl-search__panel select,
.bl-search__panel input[type="search"] {
    height: 50px;
    border: 1px solid var(--ug-line);
    border-radius: 8px;
    font-size: 16px;
    color: var(--ug-ink);
    background: #fff;
    padding: 0 14px;
    margin: 0;
}
.bl-search__panel select { flex: 0 0 120px; padding-right: 8px; }
.bl-search__panel input[type="search"] { flex: 1 1 auto; min-width: 0; }
.bl-search__panel input[type="search"]:focus,
.bl-search__panel select:focus { border-color: var(--ug-gold); box-shadow: 0 0 0 3px rgba(185, 157, 100, .25); outline: none; }
.bl-search__panel button {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 8px;
    background: var(--ug-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.bl-search__panel button:hover { background: var(--ug-navy-dark); }
.bl-search__popular { margin: 14px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bl-search__popular span { color: var(--ug-muted); font-weight: 600; }
.bl-search__popular a { color: var(--ug-navy); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(185, 157, 100, .6); text-underline-offset: 3px; }

/* opening hours card */
.bl-hours {
    background: rgba(10, 33, 64, .78);
    border: 1px solid rgba(233, 220, 192, .35);
    border-top: 3px solid var(--ug-gold);
    border-radius: var(--ug-radius);
    padding: 20px 22px;
    backdrop-filter: blur(4px);
}
.bl-hours__title { color: #fff; font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.bl-hours__title i { color: var(--ug-gold); margin-right: 6px; }
.bl-hours dl { margin: 0 0 14px; }
.bl-hours dt { color: var(--ug-gold-light); font-size: 13px; font-weight: 500; margin-top: 10px; }
.bl-hours dt:first-child { margin-top: 0; }
.bl-hours dd { color: #fff; font-size: 17px; font-weight: 700; margin: 0; }
.bl-hours a { color: var(--ug-gold-light); font-size: 13px; font-weight: 600; }
.bl-hours a:hover { color: #fff; }

/* ---------- Sections ---------- */

.bl-section { padding: 80px 0; background: #fff; }
.bl-section--tint { background: var(--ug-tint); }
.bl-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.bl-section__title { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.15; margin: 0; color: var(--ug-navy); }
.bl-section__intro { color: var(--ug-muted); font-size: 1.05rem; max-width: 60ch; margin: 12px 0 0; }
.bl-more { flex: 0 0 auto; font-weight: 600; color: var(--ug-navy); text-decoration: none; white-space: nowrap; }
.bl-more:hover { color: var(--ug-gold-dark); }

/* featured "search everything" bar */
.bl-feature {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    margin-bottom: 20px;
    border-radius: var(--ug-radius);
    background: linear-gradient(100deg, var(--ug-navy-deep), var(--ug-navy));
    color: #fff;
    text-decoration: none;
    border-left: 5px solid var(--ug-gold);
    transition: transform .15s ease, box-shadow .15s ease;
}
.bl-feature:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 33, 64, .25); }
.bl-feature__icon { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--ug-gold); color: var(--ug-navy-deep); display: grid; place-items: center; font-size: 22px; }
.bl-feature__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.bl-feature__body strong { font-size: 1.25rem; color: #fff; }
.bl-feature__body span { color: rgba(255, 255, 255, .82); }
.bl-feature__go { flex: 0 0 auto; font-weight: 700; color: var(--ug-gold-light); white-space: nowrap; }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bl-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--ug-line);
    border-radius: var(--ug-radius);
    color: var(--ug-ink);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.bl-card:hover { color: var(--ug-ink); transform: translateY(-3px); border-color: var(--ug-gold); box-shadow: 0 12px 26px rgba(10, 33, 64, .10); }
.bl-card__icon { width: 46px; height: 46px; border-radius: 10px; background: var(--ug-tint); color: var(--ug-navy); display: grid; place-items: center; font-size: 19px; margin-bottom: 6px; transition: background .15s, color .15s; }
.bl-section--tint .bl-card__icon { background: #e6edfa; }
.bl-card:hover .bl-card__icon { background: var(--ug-navy); color: #fff; }
.bl-card strong { font-size: 1.08rem; color: var(--ug-navy); }
.bl-card span:last-child { color: var(--ug-muted); font-size: .95rem; line-height: 1.55; }

/* spaces */
.bl-spaces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bl-spaces li { margin: 0; }
.bl-spaces a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 22px 24px 22px 28px;
    border-radius: var(--ug-radius);
    background: var(--ug-tint);
    border-left: 4px solid var(--ug-navy);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.bl-spaces a:hover { border-left-color: var(--ug-gold); background: #e8eefb; }
.bl-spaces strong { color: var(--ug-navy); font-size: 1.05rem; }
.bl-spaces span { color: var(--ug-muted); font-size: .95rem; }

/* about + hours */
.bl-about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.bl-about__text p { color: var(--ug-ink); font-size: 1.05rem; line-height: 1.7; }
.bl-about__text p.bl-kicker { color: var(--ug-gold-dark); font-size: 13px; line-height: 1.4; }
.bl-about__text .bl-section__title { margin-bottom: 18px; }
.bl-about__hours { background: #fff; border-radius: var(--ug-radius); border-top: 4px solid var(--ug-navy); padding: 26px 28px; box-shadow: 0 10px 28px rgba(10, 33, 64, .08); }
.bl-about__hours h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 14px; }
.bl-about__hours table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bl-about__hours th, .bl-about__hours td { padding: 11px 8px; border-bottom: 1px solid var(--ug-line); text-align: left; vertical-align: top; }
.bl-about__hours thead th { color: var(--ug-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.bl-about__hours tbody th { font-weight: 600; color: var(--ug-ink); width: 48%; }
.bl-about__hours td { color: var(--ug-navy); font-weight: 600; white-space: nowrap; }
.bl-small { color: var(--ug-muted); font-size: 13px; margin: 14px 0 0; }

/* buttons */
.bl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--ug-navy);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--ug-navy);
    transition: background .15s, color .15s, border-color .15s;
}
.bl-btn:hover { background: var(--ug-navy-dark); border-color: var(--ug-navy-dark); color: #fff !important; }
.bl-btn--ghost { background: transparent; color: var(--ug-navy) !important; }
.bl-btn--ghost:hover { background: var(--ug-navy); color: #fff !important; }
.bl-btn--gold { background: var(--ug-gold); border-color: var(--ug-gold); color: var(--ug-navy-deep) !important; }
.bl-btn--gold:hover { background: #cbb386; border-color: #cbb386; color: var(--ug-navy-deep) !important; }
.bl-btn--light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff !important; }
.bl-btn--light:hover { background: #fff; border-color: #fff; color: var(--ug-navy) !important; }

/* help band */
.bl-cta { background: linear-gradient(100deg, var(--ug-navy-deep), var(--ug-navy)); padding: 64px 0; color: #fff; }
.bl-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.bl-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: 0 0 10px; }
.bl-cta p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 60ch; font-size: 1.05rem; }
.bl-cta .bl-actions { margin: 0; flex: 0 0 auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    .sp-megamenu-parent > li > a { padding: 0 10px !important; font-size: 14px; }
    .bl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    #sp-header, #sp-header .logo { height: 76px; }
    #sp-header .logo img.logo-image { height: 46px !important; }
    .bl-hero { padding: 48px 0 56px; }
    .bl-hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .bl-hours { max-width: 760px; }
    .bl-grid, .bl-spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-about { grid-template-columns: 1fr; gap: 32px; }
    .bl-cta__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 767.98px) {
    #sp-top-bar { display: none; }
    #sp-header, #sp-header .logo { height: 68px; }
    #sp-header .logo img.logo-image { height: 40px !important; }
    .bl-hero { background-position: 62% 30%; padding: 36px 0 48px; }
    .bl-hero__slides span:nth-child(1) { background-position: 62% 30%; }
    .bl-hero__lead { font-size: 1rem; }
    .bl-search { padding: 4px 14px 16px; }
    .bl-search__tabs { overflow-x: auto; }
    .bl-search__tabs label { padding: 11px 10px 10px; white-space: nowrap; }
    .bl-search__panel { flex-wrap: wrap; }
    .bl-search__panel select { flex: 1 1 100%; }
    .bl-search__panel button { flex: 1 1 100%; }
    .bl-section { padding: 56px 0; }
    .bl-section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .bl-feature { flex-wrap: wrap; padding: 22px; }
    .bl-feature__go { width: 100%; }
    .bl-grid, .bl-grid--4, .bl-spaces { grid-template-columns: 1fr; }
    .bl-about__hours { padding: 20px; }
    .bl-about__hours td { white-space: normal; }
    .bl-hero__credit { position: relative; right: auto; bottom: auto; min-width: 0; height: 30px; margin: 18px 16px 0; text-align: left; }
    .bl-hero__credit span { left: 0; right: auto; white-space: normal; }
    .bl-container, .bl-hero__inner { padding: 0 16px; }
}

/* =========================================================================
   Inner pages (Joomla articles)
   ========================================================================= */

/* page-title band (Helix "Page Title" set on each menu item) */
#sp-page-title .sp-page-title {
    background: linear-gradient(100deg, var(--ug-navy-deep) 0%, var(--ug-navy) 70%, #1f4f87 100%) !important;
    border-bottom: 4px solid var(--ug-gold);
    padding: 56px 0 44px;
    text-align: left;
}
#sp-page-title .sp-page-title .container { max-width: 1240px; padding: 0 24px; }
#sp-page-title .sp-page-title-heading {
    color: #fff;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 10px;
}
#sp-page-title .sp-page-title-sub-heading {
    color: var(--ug-gold-light);
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 16px;
}
#sp-page-title .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 14px; }
#sp-page-title .breadcrumb-item, #sp-page-title .breadcrumb-item a { color: rgba(255, 255, 255, .75); }
#sp-page-title .breadcrumb-item a:hover { color: var(--ug-gold); }
#sp-page-title .breadcrumb-item.active { color: #fff; }
#sp-page-title .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }

.com-content.view-article #sp-main-body { padding: 56px 0 80px; }

/* article body */
.bl-article {
    max-width: 860px;
    color: var(--ug-ink);
    font-size: 1.05rem;
    line-height: 1.75;
}
.bl-article p { margin: 0 0 1.1em; }
.bl-article .bl-lead { font-size: 1.2rem; line-height: 1.6; color: var(--ug-navy); font-weight: 500; margin-bottom: 1.4em; }
.bl-article h2 {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ug-navy);
    margin: 2em 0 .8em;
    padding-bottom: .5em;
    position: relative;
}
.bl-article h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--ug-gold); border-radius: 2px; }
.bl-article > h2:first-child { margin-top: 0; }
.bl-article h3 { font-size: 1.15rem; font-weight: 700; color: var(--ug-navy); margin: 1.6em 0 .6em; }
.bl-article ul, .bl-article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.bl-article li { margin: 0 0 .45em; }
.bl-article li::marker { color: var(--ug-gold-dark); }
.bl-article a { color: var(--ug-navy); text-decoration: underline; text-decoration-color: rgba(185, 157, 100, .7); text-underline-offset: 3px; }
.bl-article a:hover { color: var(--ug-gold-dark); }
.bl-article strong { color: var(--ug-ink); }

.bl-article .bl-linklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bl-article .bl-linklist li { margin: 0; }
.bl-article .bl-linklist a {
    display: block;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--ug-tint);
    border-left: 4px solid var(--ug-navy);
    text-decoration: none;
    font-weight: 600;
}
.bl-article .bl-linklist a:hover { border-left-color: var(--ug-gold); background: #e8eefb; }

.bl-article table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .97rem; }
.bl-article th, .bl-article td { padding: 12px 10px; border-bottom: 1px solid var(--ug-line); text-align: left; vertical-align: top; }
.bl-article thead th { background: var(--ug-navy); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.bl-article tbody th { font-weight: 600; }
.bl-article tbody td { color: var(--ug-navy); font-weight: 600; white-space: nowrap; }

.bl-article .bl-actions { margin: 1.6em 0; }
.bl-article .bl-btn { text-decoration: none; }
.bl-article .bl-source { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--ug-line); font-size: 13px; color: var(--ug-muted); }
.bl-article .bl-spaces { margin: 0 0 1.4em; }
.bl-article .bl-spaces a { text-decoration: none; }

.bl-inline-search { display: flex; gap: 8px; margin: 1.4em 0; max-width: 620px; }
.bl-inline-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 50px; border: 1px solid var(--ug-line); border-radius: 8px; padding: 0 14px; font-size: 16px; }
.bl-inline-search input[type="search"]:focus { border-color: var(--ug-gold); box-shadow: 0 0 0 3px rgba(185, 157, 100, .25); outline: none; }
.bl-inline-search button { height: 50px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--ug-navy); color: #fff; font-weight: 600; cursor: pointer; }
.bl-inline-search button:hover { background: var(--ug-navy-dark); }

/* embedded videos */
.bl-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 1.5em 0; }
.bl-article .bl-videos { max-width: none; }
.bl-video { margin: 0; }
.bl-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--ug-navy-deep); box-shadow: 0 8px 22px rgba(10, 33, 64, .12); }
.bl-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bl-video figcaption { font-size: .95rem; line-height: 1.55; color: var(--ug-muted); margin-top: 10px; }
.bl-video figcaption strong { color: var(--ug-navy); }

/* hide Joomla's own article title/info (the page-title band shows it) */
.com-content.view-article .article-details > .article-header,
.com-content.view-article .article-details > .article-info,
.com-content.view-article .article-ratings-social-share,
.com-content.view-article .article-ratings { display: none !important; }

@media (max-width: 767.98px) {
    #sp-page-title .sp-page-title { padding: 36px 0 30px; }
    #sp-page-title .sp-page-title .container { padding: 0 16px; }
    .com-content.view-article #sp-main-body { padding: 36px 0 56px; }
    .bl-article { font-size: 1rem; }
    .bl-article .bl-linklist, .bl-videos { grid-template-columns: 1fr; }
    .bl-article tbody td { white-space: normal; }
    .bl-inline-search { flex-wrap: wrap; }
    .bl-inline-search button { flex: 1 1 100%; }
}
