/* Site-wide fixes and blog styles — Bedfordshire Accommodation Bureau (Dec 2026) */

/* Keep the 7-item main menu on one line (the theme pads the <li>, and sets the logo to 280px) */
@media (min-width: 992px) {
    .main-header .navbar .navbar-nav li a { white-space: nowrap; }
    .main-header .navbar .btn { white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .main-header .navbar-expand-lg .navbar-nav .nav-item { padding: 8px 10px; }
    .main-header .navbar img.nav-logo { width: 210px; }
    .main-header .navbar .navbar-nav li a { font-size: 14.5px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-header .navbar-expand-lg .navbar-nav .nav-item { padding: 6px 7px; }
    .main-header .navbar img.nav-logo { width: 140px; }
    .main-header .navbar .navbar-nav li a { font-size: 12.5px; }
    .main-header .navbar .btn { display: none; }
}

/* Breadcrumbs on white backgrounds (the theme styles them for dark banners) */
.article-breadcrumb .breadcrumb-item.active { color: #6b7676; }
.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #9aa5a5; }

/* Visually hidden but readable by search engines and screen readers */
.visually-hidden-seo { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Blog listing ---------- */
.blog-intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.blog-filter button { border: 1px solid #077165; background: #fff; color: #077165; border-radius: 20px; padding: 6px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.blog-filter button.active, .blog-filter button:hover { background: #077165; color: #ffee07; }
.blog-card { background: #fff; border: 1px solid #e3e8e8; border-radius: 10px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.blog-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e6e6e6; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h2, .blog-card-body h3 { font-size: 19px; line-height: 1.35; margin: 8px 0 10px; }
.blog-card-body h2 a, .blog-card-body h3 a { color: #1a1a1a; }
.blog-card-body h2 a:hover, .blog-card-body h3 a:hover { color: #077165; }
.blog-card-body p { font-size: 15px; margin-bottom: 14px; flex: 1; }
.blog-meta { font-size: 13px; color: #6b7676; }
.blog-cat { display: inline-block; background: #077165; color: #ffee07; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 20px; letter-spacing: .02em; }
.blog-readmore { color: #077165; font-weight: 600; font-size: 15px; }

/* ---------- Single article ---------- */
.article-wrap { max-width: 800px; }
.article-header h1 { font-size: 34px; line-height: 1.25; margin: 12px 0 14px; color: #1a1a1a; }
@media (max-width: 767.98px) { .article-header h1 { font-size: 26px; } }
.article-hero { margin: 26px 0 30px; border-radius: 10px; overflow: hidden; }
.article-hero img { width: 100%; height: auto; display: block; }
.article-body { font-size: 17px; line-height: 1.75; color: #333; }
.article-body h2 { font-size: 26px; color: #077165; margin: 40px 0 14px; line-height: 1.3; }
.article-body h3 { font-size: 20px; margin: 28px 0 10px; color: #1a1a1a; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: #077165; text-decoration: underline; text-underline-offset: 2px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 15.5px; }
.article-body th, .article-body td { border: 1px solid #dfe5e5; padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th { background: #f1f5f5; }
.article-body .table-scroll { overflow-x: auto; }
.key-points { background: #f1f7f6; border-left: 4px solid #077165; border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 0 0 28px; }
.key-points h2 { font-size: 18px !important; margin: 0 0 10px !important; color: #077165; }
.key-points ul { margin: 0; }
.article-toc { background: #fafafa; border: 1px solid #e3e8e8; border-radius: 8px; padding: 18px 22px; margin-bottom: 30px; }
.article-toc strong { display: block; margin-bottom: 8px; }
.article-toc ol { margin: 0; padding-left: 22px; font-size: 15.5px; list-style: decimal; }
.article-toc ol li { display: list-item; list-style: decimal; }
.article-body ol { list-style: decimal; }
.article-body ol > li { display: list-item; list-style: decimal; }
.article-body ul { list-style: disc; }
.article-body ul > li { display: list-item; list-style: disc; }
.article-toc a { color: #077165; text-decoration: none; }
.callout { background: #fff8c4; border-radius: 8px; padding: 16px 20px; margin: 24px 0; }
.article-faq details { border: 1px solid #e3e8e8; border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.article-faq summary { font-weight: 700; cursor: pointer; color: #1a1a1a; }
.article-faq details p { margin: 10px 0 0; }
.article-cta { background: #077165; color: #fff; border-radius: 10px; padding: 28px 30px; margin: 40px 0 10px; }
.article-cta h2 { color: #ffee07 !important; margin-top: 0 !important; font-size: 22px !important; }
.article-cta p { color: #fff; }
.article-cta a.btn { background: #ffee07; color: #077165 !important; text-decoration: none !important; font-weight: 700; border-radius: 6px; padding: 10px 22px; margin: 4px 8px 4px 0; display: inline-block; }
.article-sources, .article-author { border: 1px solid #e3e8e8; border-radius: 10px; padding: 20px 24px; margin: 34px 0 0; background: #fafafa; }
.article-sources h2, .article-author h2 { font-size: 20px !important; margin: 0 0 10px !important; color: #1a1a1a !important; }
.article-sources p, .article-author p { font-size: 15.5px; margin-bottom: 10px; }
.article-sources ul, .article-author ul { font-size: 15px; margin-bottom: 0; }
.article-sources li { word-break: break-word; }
.article-disclaimer { font-size: 14px; color: #6b7676; border-top: 1px solid #e3e8e8; padding-top: 16px; margin-top: 30px; }
.article-sidebar { position: sticky; top: 100px; }
.article-sidebar .side-box { background: #fff; border: 1px solid #e3e8e8; border-radius: 10px; padding: 20px 22px; margin-bottom: 24px; }
.article-sidebar .side-box h2 { font-size: 18px; margin-bottom: 12px; }
.article-sidebar ul { list-style: none; padding: 0; margin: 0; }
.article-sidebar li { padding: 8px 0; border-bottom: 1px solid #eef1f1; font-size: 15px; line-height: 1.4; }
.article-sidebar li:last-child { border-bottom: 0; }
.article-sidebar li a { color: #1a1a1a; }
.article-sidebar li a:hover { color: #077165; }
.side-cta { background: #077165 !important; color: #fff; border: 0 !important; }
.side-cta h2 { color: #ffee07; }
.side-cta p { color: #fff; font-size: 15px; }
.side-cta a { color: #ffee07; font-weight: 700; }
