/* Hoopla Hosting Blog - extends the main site's stylesheet (/css/main.min.css) */
:root {
    --hb-navy: #0b2f64;
    --hb-navy-dark: #243353;
    --hb-orange: #f27335;
    --hb-orange-dark: #d95f22;
    --hb-blue: #0254bb;
    --hb-blue-light: #0497eb;
    --hb-bg: #f0f4f8;
    --hb-text: #3f4254;
    --hb-muted: #777989;
    --hb-border: #e1e8f0;
    --hb-shadow: 0 0 50px rgba(6, 65, 122, .09);
    --hb-shadow-hover: 0 18px 50px rgba(6, 65, 122, .16);
}

/* ---------------------------------------------------------------- banner */
.hb-banner .texting { padding-bottom: 10px; }
.hb-banner .texting h3 a { color: inherit; text-decoration: none; opacity: .9; }
.hb-banner .texting h3 a:hover { opacity: 1; text-decoration: underline; }
.hb-banner .texting h1 { font-size: 44px; line-height: 1.2; }
.hb-banner .hb-banner-sub { color: rgba(255,255,255,.85); font-size: 18px; margin: 14px 0 0; max-width: 640px; }
.hb-banner .hb-banner-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: rgba(255,255,255,.85); font-size: 15px; }
.hb-banner .hb-banner-meta .fa { margin-right: 6px; opacity: .8; }
@media (max-width: 991px) { .hb-banner .texting h1 { font-size: 34px; } }
@media (max-width: 575px) { .hb-banner .texting h1 { font-size: 28px; } .hb-banner .hb-banner-sub { font-size: 16px; } }

/* ---------------------------------------------------------------- layout */
.hb-section { position: relative; z-index: 1; margin-top: -3px; background: linear-gradient(180deg, #f2f2f3 0, var(--hb-bg) 240px); padding: 30px 0 90px; }
.hb-blog .ftr-signup { margin-top: 0; }

.hb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.hb-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-filters a {
    display: inline-block; padding: 9px 18px; border-radius: 30px; background: #fff; color: var(--hb-navy);
    font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; box-shadow: 0 2px 10px rgba(6,65,122,.06);
    text-decoration: none; transition: background .2s, color .2s;
}
.hb-filters a:hover { color: var(--hb-orange); text-decoration: none; }
.hb-filters a.active { background: var(--hb-navy); color: #fff; }

.hb-search { position: relative; display: flex; min-width: 260px; }
.hb-search input {
    width: 100%; height: 46px; border: 1px solid var(--hb-border); border-radius: 30px; padding: 0 52px 0 20px;
    font-size: 15px; color: var(--hb-text); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.hb-search input:focus { border-color: var(--hb-blue-light); box-shadow: 0 0 0 3px rgba(4,151,235,.15); }
.hb-search button {
    position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: var(--hb-orange); color: #fff; cursor: pointer;
}
.hb-search button:hover { background: var(--hb-orange-dark); }

/* ---------------------------------------------------------------- cards */
.hb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 991px) { .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .hb-grid { grid-template-columns: 1fr; gap: 22px; } }

.hb-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: var(--hb-shadow); transition: transform .25s, box-shadow .25s;
}
.hb-card:hover { transform: translateY(-4px); box-shadow: var(--hb-shadow-hover); }
.hb-card__media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--hb-blue) 0, var(--hb-blue-light) 100%); overflow: hidden; }
.hb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hb-card:hover .hb-card__media img { transform: scale(1.03); }
.hb-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.hb-card__placeholder img { width: 45% !important; height: auto !important; object-fit: contain !important; opacity: .95; }
.hb-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.hb-card__title { font-family: 'IBM Plex Sans', sans-serif; font-size: 21px; line-height: 1.35; margin: 12px 0 10px; }
.hb-card__title a { color: var(--hb-navy); text-decoration: none; }
.hb-card__title a:hover { color: var(--hb-orange); }
.hb-card__excerpt { color: var(--hb-muted); font-size: 15px; line-height: 1.65; margin: 0 0 18px; }
.hb-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--hb-muted); }
.hb-card__meta .fa { color: var(--hb-orange); margin-right: 4px; }

.hb-chip {
    align-self: flex-start; display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: rgba(242,115,53,.12); color: var(--hb-orange-dark); font-size: 12px; font-weight: 600;
    letter-spacing: .3px; text-transform: uppercase; text-decoration: none;
}
.hb-chip:hover { background: var(--hb-orange); color: #fff; text-decoration: none; }

/* featured (first) card */
.hb-card--feature { grid-column: 1 / -1; flex-direction: row; }
.hb-card--feature .hb-card__media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
.hb-card--feature .hb-card__body { padding: 40px 44px; justify-content: center; }
.hb-card--feature .hb-card__title { font-size: 30px; }
.hb-card--feature .hb-card__excerpt { font-size: 16px; }
.hb-card--feature .hb-card__meta { margin-top: 6px; }
@media (max-width: 991px) {
    .hb-card--feature { flex-direction: column; }
    .hb-card--feature .hb-card__media { aspect-ratio: 16 / 9; min-height: 0; }
    .hb-card--feature .hb-card__body { padding: 26px; }
    .hb-card--feature .hb-card__title { font-size: 24px; }
}

/* ---------------------------------------------------------------- pagination & empty */
.hb-pagination { margin-top: 50px; }
.hb-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hb-pagination a, .hb-pagination span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px;
    border-radius: 30px; background: #fff; color: var(--hb-navy); font-family: 'IBM Plex Sans', sans-serif; text-decoration: none;
    box-shadow: 0 2px 10px rgba(6,65,122,.06);
}
.hb-pagination a:hover { color: var(--hb-orange); text-decoration: none; }
.hb-pagination .current { background: var(--hb-orange); color: #fff; }
.hb-pagination .gap { background: transparent; box-shadow: none; }

.hb-empty { background: #fff; border-radius: 30px; box-shadow: var(--hb-shadow); padding: 60px 30px; text-align: center; max-width: 720px; margin: 0 auto; }
.hb-empty h2 { color: var(--hb-navy); font-family: 'IBM Plex Sans', sans-serif; font-size: 28px; margin-bottom: 12px; }
.hb-empty p { color: var(--hb-muted); font-size: 16px; }
.hb-empty .hb-search { max-width: 420px; margin: 24px auto; }

.hb-btn, .hb-blog .start-btn.hb-btn {
    display: inline-block; height: auto; line-height: 1.2; padding: 14px 26px; border-radius: 4px;
    background: var(--hb-orange); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s;
}
.hb-btn:hover { background: var(--hb-orange-dark); color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------- article */
.hb-preview-bar { background: #fff4ec; border: 1px solid #f6c3a6; color: #8a3b12; padding: 12px 18px; border-radius: 12px; margin-bottom: 24px; font-size: 15px; }
/* Single centred column (no sidebar), capped so lines stay a readable length */
.hb-article-wrap { max-width: 960px; margin: 0 auto; }
.hb-article { background: #fff; border-radius: 30px; box-shadow: var(--hb-shadow); overflow: hidden; margin-bottom: 30px; }
.hb-article__hero { margin: 0; }
.hb-article__hero img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.hb-article__content { padding: 48px 56px 30px; color: var(--hb-text); font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
@media (max-width: 767px) { .hb-article__content { padding: 30px 22px 20px; font-size: 16px; } }

.hb-article__content > *:first-child { margin-top: 0; }
.hb-article__content p { margin: 0 0 1.3em; color: var(--hb-text); font-size: inherit; line-height: inherit; }
.hb-article__content h2, .hb-article__content h3, .hb-article__content h4, .hb-article__content h5, .hb-article__content h6 {
    font-family: 'IBM Plex Sans', sans-serif; color: var(--hb-navy); line-height: 1.3; margin: 1.8em 0 .6em; scroll-margin-top: 30px;
}
.hb-article__content h2 { font-size: 30px; }
.hb-article__content h3 { font-size: 23px; }
.hb-article__content h4 { font-size: 19px; }
.hb-article__content a { color: var(--hb-blue); text-decoration: underline; text-underline-offset: 3px; }
.hb-article__content a:hover { color: var(--hb-orange); }
.hb-article__content ul, .hb-article__content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.hb-article__content ul { list-style: none; padding-left: 0; }
.hb-article__content ul > li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.hb-article__content ul > li::before {
    content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-orange);
}
.hb-article__content ol { list-style: decimal; padding-left: 1.5em; }
.hb-article__content ol > li { display: list-item; list-style: decimal outside; margin-bottom: .5em; padding-left: 4px; }
.hb-article__content ol > li::marker { color: var(--hb-orange); font-weight: 700; }
.hb-article__content li > ul, .hb-article__content li > ol { margin: .5em 0 0; }
.hb-article__content blockquote {
    margin: 1.6em 0; padding: 18px 26px; border-left: 4px solid var(--hb-orange); background: var(--hb-bg);
    border-radius: 0 16px 16px 0; color: var(--hb-navy); font-size: 18px;
}
.hb-article__content blockquote p:last-child { margin-bottom: 0; }
.hb-article__content img { max-width: 100%; height: auto; border-radius: 16px; }
.hb-article__content figure { margin: 1.8em 0; }
.hb-article__content figcaption { text-align: center; color: var(--hb-muted); font-size: 14px; margin-top: 8px; }
.hb-article__content hr { border: 0; border-top: 1px solid var(--hb-border); margin: 2.2em 0; }
.hb-article__content code { background: #eef2f7; color: #b4400e; padding: 2px 6px; border-radius: 5px; font-size: .88em; }
.hb-article__content pre { background: #14213d; color: #e6edf6; padding: 20px 22px; border-radius: 14px; overflow-x: auto; margin: 0 0 1.5em; font-size: 14px; line-height: 1.6; }
.hb-article__content pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.hb-article__content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 15px; }
@media (max-width: 767px) { .hb-article__content table { display: block; overflow-x: auto; } }
.hb-article__content th, .hb-article__content td { border: 1px solid var(--hb-border); padding: 10px 14px; text-align: left; vertical-align: top; }
.hb-article__content th { background: var(--hb-navy); color: #fff; font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; }
.hb-article__content tr:nth-child(even) td { background: #f8fafc; }
.hb-article__content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; }

.hb-article__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 40px; border-top: 1px solid var(--hb-border); margin: 0 56px; }
@media (max-width: 767px) { .hb-article__footer { margin: 0 22px; padding-bottom: 28px; } }
.hb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-tags a { padding: 5px 12px; border-radius: 20px; background: var(--hb-bg); color: var(--hb-navy); font-size: 13px; text-decoration: none; }
.hb-tags a:hover { background: var(--hb-navy); color: #fff; }
.hb-share { display: flex; align-items: center; gap: 8px; }
.hb-share span { color: var(--hb-muted); font-size: 14px; margin-right: 4px; }
.hb-share a {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-bg); color: var(--hb-navy); text-decoration: none; transition: background .2s, color .2s;
}
.hb-share a:hover { background: var(--hb-orange); color: #fff; }

/* ---------------------------------------------------------------- sidebar */
.hb-sidebar { position: sticky; top: 24px; }
@media (max-width: 991px) { .hb-sidebar { position: static; } }
.hb-widget { background: #fff; border-radius: 22px; box-shadow: var(--hb-shadow); padding: 26px 28px; margin-bottom: 26px; }
.hb-widget h4 { font-family: 'IBM Plex Sans', sans-serif; color: var(--hb-navy); font-size: 20px; margin: 0 0 16px; }
.hb-widget .hb-search { min-width: 0; }
.hb-catlist, .hb-recent { list-style: none; margin: 0; padding: 0; }
.hb-catlist li a {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--hb-text);
    border-bottom: 1px solid var(--hb-border); font-size: 15px; text-decoration: none;
}
.hb-catlist li:last-child a { border-bottom: 0; }
.hb-catlist li a:hover { color: var(--hb-orange); }
.hb-catlist span { background: var(--hb-bg); color: var(--hb-navy); border-radius: 20px; padding: 1px 10px; font-size: 12px; }
.hb-recent li { padding: 12px 0; border-bottom: 1px solid var(--hb-border); }
.hb-recent li:first-child { padding-top: 0; }
.hb-recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.hb-recent a { display: block; color: var(--hb-navy); font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; line-height: 1.4; text-decoration: none; }
.hb-recent a:hover { color: var(--hb-orange); }
.hb-recent small { color: var(--hb-muted); font-size: 13px; }
.hb-cta { background: linear-gradient(135deg, var(--hb-blue) 0, var(--hb-blue-light) 100%); color: #fff; }
.hb-cta h4 { color: #fff; }
.hb-cta p { color: rgba(255,255,255,.9); font-size: 15px; margin-bottom: 20px; }

/* ---------------------------------------------------------------- related */
.hb-related { margin: 40px auto 0; max-width: 960px; } /* same width as .hb-article-wrap so the edges line up */
/* Compact cards: sized for 4 per row on desktop, with a shorter image and tighter text */
@media (min-width: 992px) { .hb-related .hb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.hb-related .hb-card { border-radius: 18px; }
.hb-related .hb-card__media { aspect-ratio: 2 / 1; }
.hb-related .hb-card__body { padding: 16px 18px 18px; }
.hb-related .hb-card__title { font-size: 17px; margin: 6px 0; }
.hb-related .hb-card__excerpt { font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
.hb-related .hb-card__meta { font-size: 12px; gap: 4px 14px; }
.hb-related > h2 { font-family: 'IBM Plex Sans', sans-serif; color: var(--hb-navy); font-size: 30px; text-align: center; margin-bottom: 30px; }

/* Screen-reader-only text (not in the trimmed Bootstrap build) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
