/* Hebeexterior dynamic blog and admin editor */
.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 78px;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 84% 20%, rgba(109,109,109,.22), transparent 28%),
        linear-gradient(125deg, #000000 0%, #000000 56%, #000000 100%);
}
.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000000, transparent 82%);
}
.blog-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 72px;
    align-items: end;
}
.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    color: #6D6D6D;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.blog-eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: currentColor;
}
.blog-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(44px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -.055em;
}
.blog-hero p {
    max-width: 700px;
    margin: 26px 0 0;
    color: rgba(230,240,239,.72);
    font-size: 18px;
    line-height: 1.72;
}
.blog-search {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 24px;
    background: rgba(255,255,255,.07);
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.blog-search label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.blog-search > div {
    display: grid;
    grid-template-columns: 1fr auto;
    border-radius: 14px;
    overflow: hidden;
    background: #FFFFFF;
}
.blog-search input {
    min-width: 0;
    padding: 15px 16px;
    border: 0;
    outline: 0;
    color: #000000;
    font: inherit;
}
.blog-search button {
    padding: 0 20px;
    border: 0;
    cursor: pointer;
    color: #FFFFFF;
    background: #fe0202;
    font-weight: 800;
}
.blog-page { padding-top: 54px; padding-bottom: 80px; }
.blog-filter-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 10px;
    scrollbar-width: thin;
}
.blog-filter-row a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border: 1px solid #ECECEC;
    border-radius: 999px;
    color: #6D6D6D;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 760;
}
.blog-filter-row a span {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: #ECECEC;
    font-size: 11px;
}
.blog-filter-row a:hover,
.blog-filter-row a.active {
    border-color: #000000;
    color: #FFFFFF;
    background: #000000;
}
.blog-filter-row a.active span { color: #000000; background: #FFFFFF; }
.blog-results-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin: 45px 0 28px;
}
.blog-results-head > div > span {
    display: block;
    margin-bottom: 8px;
    color: #fe0202;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.blog-results-head h2 {
    margin: 0;
    color: #000000;
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -.045em;
}
.blog-results-head p {
    max-width: 650px;
    margin: 12px 0 0;
    color: #6D6D6D;
    line-height: 1.65;
}
.blog-results-head > a {
    flex: 0 0 auto;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: #fe0202;
    font-weight: 800;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ECECEC;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 16px 46px rgba(0,0,0,.07);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.blog-card:hover {
    transform: translateY(-7px);
    border-color: rgba(254,2,2,.25);
    box-shadow: 0 26px 64px rgba(0,0,0,.13);
}
.blog-card-image {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: #ECECEC;
}
.blog-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.22));
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.8,.2,1);
}
.blog-card:hover .blog-card-image img { transform: scale(1.045); }
.blog-card-image > span {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #FFFFFF;
    background: rgba(254,2,2,.94);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.blog-card-body { padding: 23px; }
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    color: #6D6D6D;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.blog-card-meta > span { color: #fe0202; }
.blog-card h3 {
    margin: 0 0 12px;
    color: #000000;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -.025em;
}
.blog-card h3 a { color: inherit; }
.blog-card-body > p {
    min-height: 68px;
    margin: 0;
    color: #6D6D6D;
    font-size: 14px;
    line-height: 1.62;
}
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid #ECECEC;
    color: #6D6D6D;
    font-size: 12px;
}
.blog-card-footer a { color: #000000; font-weight: 820; }
.blog-card-footer b { color: #fe0202; }
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
    margin-top: 44px;
}
.blog-pagination a,
.blog-pagination span {
    padding: 11px 16px;
    border: 1px solid #ECECEC;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 760;
}
.blog-pagination a:hover { color: #FFFFFF; background: #000000; }
.blog-empty,
.blog-not-found {
    margin: 50px auto 80px;
    padding: 70px 30px;
    border: 1px dashed #ECECEC;
    border-radius: 30px;
    text-align: center;
    background: #FFFFFF;
}
.blog-empty > span,
.blog-not-found > span { color: #fe0202; font-size: 52px; font-weight: 900; }
.blog-empty h2,
.blog-not-found h1 { margin: 12px 0 8px; }
.blog-empty p,
.blog-not-found p { margin: 0 0 24px; color: #6D6D6D; }

/* Article page */
.blog-preview-banner {
    padding: 12px 5%;
    color: #000000;
    background: #FEFBD6;
    text-align: center;
    font-weight: 760;
}
.blog-preview-banner a { text-decoration: underline; }
.blog-article { padding: 58px 0 90px; }
.blog-article-header { max-width: 960px; }
.blog-back-link {
    display: inline-block;
    margin-bottom: 36px;
    color: #6D6D6D;
    font-size: 13px;
    font-weight: 780;
}
.blog-article-kicker {
    display: flex;
    gap: 18px;
    align-items: center;
    color: #6D6D6D;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.blog-article-kicker span { color: #fe0202; }
.blog-article-header h1 {
    margin: 18px 0;
    color: #000000;
    font-size: clamp(43px, 6vw, 76px);
    line-height: 1.01;
    letter-spacing: -.055em;
}
.blog-article-excerpt {
    max-width: 820px;
    margin: 0;
    color: #6D6D6D;
    font-size: 20px;
    line-height: 1.66;
}
.blog-author-row {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 28px;
}
.blog-author-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: linear-gradient(145deg, #000000, #fe0202);
    font-weight: 900;
}
.blog-author-row strong,
.blog-author-row span { display: block; }
.blog-author-row span { margin-top: 4px; color: #6D6D6D; font-size: 12px; }
.blog-featured-image {
    margin-top: 44px;
    max-width: 1180px;
}
.blog-featured-image img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(0,0,0,.16);
}
.blog-article-layout {
    display: grid;
    grid-template-columns: 150px minmax(0, 760px);
    justify-content: center;
    gap: 56px;
    margin-top: 64px;
}
.blog-share-panel {
    position: sticky;
    top: 110px;
    align-self: start;
    display: grid;
    gap: 10px;
}
.blog-share-panel > span {
    margin-bottom: 3px;
    color: #6D6D6D;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.blog-share-panel a,
.blog-share-panel button {
    padding: 10px 12px;
    border: 1px solid #ECECEC;
    border-radius: 10px;
    color: #0D6B68;
    background: #FFFFFF;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 760;
    text-align: left;
}
.blog-share-panel a:hover,
.blog-share-panel button:hover { border-color: #000000; }
.blog-article-content {
    color: #0D6B68;
    font-size: 18px;
    line-height: 1.84;
}
.blog-article-content p { margin: 0 0 26px; }
.blog-article-content h2 {
    margin: 54px 0 18px;
    color: #000000;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -.035em;
}
.blog-article-content h3 {
    margin: 38px 0 14px;
    color: #000000;
    font-size: 25px;
    letter-spacing: -.02em;
}
.blog-article-content ul,
.blog-article-content ol { margin: 0 0 28px; padding-left: 25px; }
.blog-article-content li { margin: 9px 0; padding-left: 6px; }
.blog-article-content blockquote {
    margin: 36px 0;
    padding: 25px 28px;
    border-left: 4px solid #fe0202;
    border-radius: 0 16px 16px 0;
    color: #000000;
    background: #ECECEC;
    font-size: 21px;
    font-weight: 680;
    line-height: 1.55;
}
.blog-article-content a { color: #fe0202; text-decoration: underline; }
.related-posts-section { padding: 70px 0 90px; background: #ECECEC; }
.related-posts-section .blog-results-head { margin-top: 0; }
.related-grid .blog-card-image { height: 205px; }

/* Homepage blog */
.home-blog-section { padding: 80px 0 88px; background: #ECECEC; }
.home-blog-head { margin-top: 0; }
.home-blog-head h2 { max-width: 700px; }
.home-blog-grid .blog-card-image { height: 230px; }

/* Blog admin */
.blog-admin-layout { align-items: start; }
.admin-page-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
}
.admin-page-head h1 { margin: 0; }
.admin-page-head p { margin: 8px 0 0; color: #6D6D6D; }
.blog-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.blog-admin-stats a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #ECECEC;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.blog-admin-stats span { color: #6D6D6D; font-size: 13px; font-weight: 750; }
.blog-admin-stats strong { color: #000000; font-size: 28px; }
.blog-admin-filter {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 180px auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}
.blog-admin-filter input,
.blog-admin-filter select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #ECECEC;
    border-radius: 12px;
    background: #FFFFFF;
    font: inherit;
}
.blog-admin-filter > a { color: #fe0202; font-size: 13px; font-weight: 780; }
.blog-admin-table table { min-width: 900px; }
.blog-admin-title-cell { display: flex; gap: 13px; align-items: center; min-width: 260px; }
.blog-admin-title-cell img { width: 72px !important; height: 54px !important; object-fit: cover; border-radius: 10px; }
.blog-admin-title-cell strong,
.blog-admin-title-cell span { display: block; }
.blog-admin-title-cell span { margin-top: 4px; color: #6D6D6D; font-size: 12px; }
.blog-status {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 830;
}
.blog-status.published { color: #0D6B68; background: #E6F0EF; }
.blog-status.draft { color: #6D6D6D; background: #FEFBD6; }
.blog-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blog-admin-actions a,
.blog-admin-actions button {
    padding: 7px 9px;
    border: 1px solid #ECECEC;
    border-radius: 8px;
    color: #0D6B68;
    background: #FFFFFF;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 780;
}
.blog-admin-actions form { margin: 0; }
.blog-admin-actions button { color: #fe0202; }
.blog-admin-empty { padding: 55px 20px; text-align: center; }
.blog-editor-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}
.blog-editor-main,
.blog-editor-side { display: grid; gap: 20px; }
.blog-editor-side { position: sticky; top: 96px; }
.blog-editor-card {
    padding: 24px;
    border: 1px solid #ECECEC;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 14px 40px rgba(0,0,0,.055);
}
.blog-editor-card h2 { margin: 0 0 18px; font-size: 19px; }
.blog-editor-card .form-group:last-child { margin-bottom: 0; }
.blog-editor-card label small { color: #6D6D6D; font-weight: 500; }
.blog-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid #ECECEC;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #FFFFFF;
}
.blog-editor-toolbar button {
    padding: 7px 9px;
    border: 1px solid #ECECEC;
    border-radius: 7px;
    background: #FFFFFF;
    cursor: pointer;
    font-size: 11px;
    font-weight: 760;
}
.blog-content-field textarea {
    border-radius: 0 0 12px 12px !important;
    min-height: 540px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.65;
}
.blog-check {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 12px 0;
    color: #6D6D6D;
    font-size: 13px;
    font-weight: 720;
}
.blog-check input { width: auto; }
.danger-check { color: #fe0202; }
.blog-save-button { width: 100%; margin-top: 8px; }
.blog-preview-link { display: block; margin-top: 14px; color: #fe0202; text-align: center; font-size: 13px; font-weight: 780; }
.blog-editor-image-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; border-radius: 14px; }
.blog-search-preview {
    padding: 18px;
    border: 1px solid #ECECEC;
    border-radius: 14px;
    background: #FFFFFF;
}
.blog-search-preview small,
.blog-search-preview strong,
.blog-search-preview span,
.blog-search-preview p { display: block; }
.blog-search-preview small { margin-bottom: 12px; color: #6D6D6D; }
.blog-search-preview strong { color: #0D6B68; font-size: 18px; font-weight: 560; }
.blog-search-preview span { margin-top: 4px; color: #0D6B68; font-size: 12px; }
.blog-search-preview p { margin: 8px 0 0; color: #6D6D6D; font-size: 13px; line-height: 1.45; }
.stats-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-editor-form { grid-template-columns: 1fr; }
    .blog-editor-side { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .blog-hero-grid { grid-template-columns: 1fr; gap: 38px; }
    .blog-hero { padding: 65px 0; }
    .blog-article-layout { grid-template-columns: 1fr; gap: 24px; }
    .blog-share-panel { position: static; display: flex; flex-wrap: wrap; align-items: center; }
    .blog-share-panel > span { width: 100%; }
    .blog-editor-side { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card-image { height: 230px; }
    .blog-results-head,
    .admin-page-head { align-items: flex-start; flex-direction: column; }
    .blog-admin-stats { grid-template-columns: 1fr; }
    .blog-admin-filter { grid-template-columns: 1fr; }
    .blog-article { padding-top: 38px; }
    .blog-featured-image { margin-top: 30px; }
    .blog-featured-image img { border-radius: 20px; }
    .blog-article-layout { margin-top: 38px; }
    .blog-article-content { font-size: 16px; line-height: 1.75; }
    .blog-article-content h2 { font-size: 29px; }
    .blog-article-excerpt { font-size: 17px; }
    .home-blog-section { padding: 58px 0; }
}
@media (max-width: 520px) {
    .blog-hero h1 { font-size: 42px; }
    .blog-hero p { font-size: 16px; }
    .blog-search { padding: 16px; border-radius: 18px; }
    .blog-search > div { grid-template-columns: 1fr; }
    .blog-search button { min-height: 46px; }
    .blog-card { border-radius: 19px; }
    .blog-card-body { padding: 19px; }
    .blog-card h3 { font-size: 20px; }
    .blog-results-head h2 { font-size: 34px; }
    .blog-article-header h1 { font-size: 40px; }
    .blog-article-kicker { align-items: flex-start; flex-direction: column; gap: 7px; }
    .blog-editor-card { padding: 18px; border-radius: 18px; }
    .stats-four { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-image img { transition: none; }
    .blog-card:hover { transform: none; }
}
/* 2026 premium Hebeexterior blog redesign */
.blog-hero {
    padding: clamp(86px, 9vw, 132px) 0 82px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 52%, rgba(0,0,0,.38) 100%),
        url("../images/blog/facade-systems.jpg") center 52% / cover no-repeat;
}
.blog-hero::before { opacity: .12; }
.blog-eyebrow,
.blog-results-head > div > span,
.blog-results-head > a,
.blog-card-meta span,
.blog-card-footer a,
.blog-back-link { color: #6D6D6D; }
.blog-search {
    border-radius: 0;
    border-color: rgba(255,255,255,.2);
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(14px);
}
.blog-search > div,
.blog-search input { border-radius: 0; }
.blog-search button { background: #fe0202; }
.blog-search button:hover { background: #fe0202; }
.blog-filter-row a { border-radius: 0; }
.blog-filter-row a:hover,
.blog-filter-row a.active { border-color: #fe0202; background: #fe0202; }
.blog-filter-row a.active span { color: #fe0202; }
.blog-card {
    border-radius: 0;
    border-color: rgba(254,2,2,.12);
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}
.blog-card:hover { transform: translateY(-7px); box-shadow: 0 28px 65px rgba(0,0,0,.14); }
.blog-card-image { aspect-ratio: 3 / 2; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image > span { background: #fe0202; }
.blog-featured-image img { max-height: 720px; object-fit: cover; }
.blog-pagination a:hover { background: #fe0202; }
