/* BeeFixPro Blog v16 — restrained editorial system.
   Gold is reserved for emphasis; the dominant surfaces are ivory, white and graphite. */

body.blog-page {
    --blog-ink: #26231f;
    --blog-copy: #665f56;
    --blog-muted: #81786d;
    --blog-gold: #efa812;
    --blog-gold-deep: #9a6200;
    --blog-line: #e5e1d9;
    --blog-surface: #ffffff;
    --blog-canvas: #f4f5f4;
    --blog-shadow: 0 24px 64px rgba(36, 32, 25, .10);
    color: var(--blog-copy);
    background: var(--blog-canvas);
}

/* Hero */
body.blog-page .editorial-hero {
    min-height: 0;
    padding: 154px 0 78px;
    border-bottom: 1px solid var(--blog-line);
    background:
        radial-gradient(circle at 13% 12%, rgba(239, 168, 18, .08), transparent 23%),
        linear-gradient(180deg, #fbfbfa 0%, #f1f2f1 100%) !important;
    box-shadow: none;
}

body.blog-page .editorial-hero::before,
body.blog-page .editorial-hero::after {
    display: none;
}

.blog-hero__shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(73, 66, 56, .12);
    border-radius: 34px;
    background: #fff;
    box-shadow: var(--blog-shadow);
}

.blog-hero__shell::before {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 34%;
    height: 3px;
    background: linear-gradient(90deg, var(--blog-gold), rgba(239, 168, 18, 0));
    content: "";
}

body.blog-page .editorial-hero__content {
    display: flex;
    max-width: none;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px 50px;
}

body.blog-page .editorial-kicker {
    margin-bottom: 20px;
    color: var(--blog-gold-deep);
}

body.blog-page .editorial-hero h1 {
    max-width: 660px;
    color: var(--blog-ink) !important;
    font-size: clamp(52px, 5.3vw, 78px);
    line-height: .94;
    text-shadow: none;
}

body.blog-page .editorial-hero h1 em {
    color: var(--blog-gold-deep) !important;
}

body.blog-page .editorial-hero__lead {
    max-width: 610px;
    margin-top: 25px;
    color: var(--blog-copy) !important;
    font-size: 17px;
    line-height: 1.7;
}

body.blog-page .editorial-hero__actions {
    margin-top: 28px;
}

body.blog-page .editorial-button {
    min-height: 52px;
    border-radius: 14px;
}

body.blog-page .editorial-button--gold {
    background: linear-gradient(135deg, #ffc951 0%, #efa812 100%);
    box-shadow: 0 13px 28px rgba(167, 105, 0, .17);
}

body.blog-page .editorial-button--dark {
    border-color: #d9d5cd;
    background: #fff;
    box-shadow: 0 10px 24px rgba(32, 29, 24, .06);
    color: var(--blog-ink);
}

body.blog-page .editorial-hero__facts {
    gap: 8px;
    margin-top: 27px;
}

body.blog-page .editorial-hero__facts li {
    padding: 9px 12px;
    border-color: #e3dfd6;
    background: #f8f8f6;
    box-shadow: none;
    color: #5b554d;
    font-size: 12px;
}

.blog-hero__media {
    position: relative;
    min-height: 610px;
    margin: 0;
    overflow: hidden;
    background: #dedbd4;
}

.blog-hero__media::before {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 18%;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    pointer-events: none;
}

.blog-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 610px;
    object-fit: cover;
    object-position: 62% center;
}

.blog-hero__note {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    max-width: 330px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 18px 45px rgba(24, 21, 17, .16);
    color: var(--blog-copy);
}

.blog-hero__note-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #fff2ce;
    color: var(--blog-gold-deep);
}

.blog-hero__note strong,
.blog-hero__note small {
    display: block;
}

.blog-hero__note strong {
    margin-bottom: 2px;
    color: var(--blog-ink);
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    line-height: 1.2;
}

.blog-hero__note small {
    color: #756d62;
    font-size: 11px;
    line-height: 1.45;
}

/* Directory */
body.blog-page .blog-directory {
    padding: 86px 0 104px;
    background: var(--blog-canvas);
}

body.blog-page .blog-directory::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(88%, 1240px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 168, 18, .65), transparent);
    content: "";
    transform: translateX(-50%);
}

body.blog-page .blog-directory__tools {
    align-items: center;
    margin-bottom: 34px;
}

body.blog-page .blog-directory__tools h2 {
    color: var(--blog-ink);
    font-size: clamp(38px, 4vw, 56px);
}

body.blog-page .blog-search input {
    min-height: 56px;
    border-color: #dedad2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 28, 22, .05);
}

/* Four compact editorial highlights */
body.blog-page .blog-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 38px;
}

body.blog-page .blog-featured-card {
    min-height: 258px;
    align-items: end;
    padding: 127px 20px 20px;
    border: 1px solid #dfdcd5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(34, 30, 24, .075);
    color: var(--blog-ink);
}

body.blog-page .blog-featured-card::before {
    z-index: 0;
    inset: 13px 13px auto;
    height: 99px;
    border-radius: 15px;
    background-position: center;
    filter: saturate(.72) contrast(.94);
}

body.blog-page .blog-featured-card::after {
    z-index: 1;
    inset: 13px 13px auto;
    height: 99px;
    border-radius: 15px;
    background: linear-gradient(180deg, transparent 42%, rgba(28, 25, 21, .26));
}

body.blog-page .blog-featured-card > span {
    position: relative;
    z-index: 2;
}

body.blog-page .blog-featured-card:hover {
    border-color: rgba(194, 129, 15, .48);
    box-shadow: 0 18px 40px rgba(34, 30, 24, .11);
    color: var(--blog-ink);
    transform: translateY(-3px);
}

body.blog-page .blog-featured-card__category {
    margin-bottom: 8px;
    padding: 6px 9px;
    background: #fff2cf;
    color: #8b5900;
    font-size: 9px;
}

body.blog-page .blog-featured-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--blog-ink);
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.08;
    text-shadow: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.blog-page .blog-featured-card__more {
    margin-top: 12px;
    color: var(--blog-gold-deep);
    font-size: 11px;
}

/* Calm, alternating category surfaces */
body.blog-page .blog-category,
body.blog-page .blog-category:nth-of-type(2n),
body.blog-page .blog-category:nth-of-type(3n) {
    margin-top: 20px;
    padding: 30px;
    border-color: #e2dfd8;
    background: #fff;
    box-shadow: 0 12px 32px rgba(32, 29, 24, .055);
}

body.blog-page .blog-category:nth-of-type(2n) {
    background: #f8f8f6;
}

body.blog-page #category-7 {
    border-color: rgba(211, 145, 26, .34);
    background:
        linear-gradient(90deg, rgba(239, 168, 18, .08), transparent 24%),
        #fff;
}

body.blog-page .blog-category__heading h2 {
    color: var(--blog-ink);
}

body.blog-page .blog-category__count {
    background: #f1f0ec;
    color: #665e53;
}

body.blog-page #category-7 .blog-category__count {
    background: #fff1ca;
    color: #8f5b00;
}

body.blog-page .blog-card {
    min-height: 112px;
    border-color: #e6e3dd;
    background: #fff;
    box-shadow: none;
}

body.blog-page .blog-card:hover {
    border-color: rgba(211, 145, 26, .45);
    box-shadow: 0 12px 28px rgba(32, 29, 24, .08);
}

body.blog-page .blog-card__icon {
    border-color: #e6ddc9;
    background: #faf4e7;
    color: var(--blog-gold-deep);
}

/* Match index.html footer exactly instead of extending the gold canvas. */
body.blog-page .site-footer.premium-footer {
    border-top-color: #e0e4eb;
    background: #eef1f7;
}

body.blog-page .premium-footer__bottom {
    border-top-color: #dce1e9;
}

body.blog-page .premium-footer__column h3 {
    color: #071b3a;
}

@media (max-width: 1199px) {
    .blog-hero__shell {
        grid-template-columns: minmax(0, .96fr) minmax(410px, 1.04fr);
    }

    body.blog-page .editorial-hero__content {
        padding: 44px 34px;
    }

    body.blog-page .editorial-hero h1 {
        font-size: clamp(48px, 5.8vw, 68px);
    }

    .blog-hero__media,
    .blog-hero__media img {
        min-height: 560px;
    }

    body.blog-page .blog-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.blog-page .editorial-hero {
        padding: 124px 0 62px;
    }

    .blog-hero__shell {
        grid-template-columns: 1fr;
    }

    .blog-hero__media {
        order: -1;
        min-height: 390px;
    }

    .blog-hero__media img {
        min-height: 390px;
        object-position: 58% center;
    }

    .blog-hero__media::before {
        inset: auto 0 0;
        width: 100%;
        height: 18%;
        background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    }
}

@media (max-width: 767px) {
    body.blog-page .editorial-hero {
        padding: 104px 0 46px;
    }

    .blog-hero__shell {
        border-radius: 25px;
    }

    .blog-hero__media,
    .blog-hero__media img {
        min-height: 300px;
    }

    .blog-hero__media img {
        object-position: 64% center;
    }

    .blog-hero__note {
        right: 14px;
        bottom: 14px;
        left: 14px;
        max-width: none;
    }

    body.blog-page .editorial-hero__content {
        padding: 34px 22px 30px;
    }

    body.blog-page .editorial-hero h1 {
        font-size: clamp(42px, 12.4vw, 58px);
        text-align: left;
    }

    body.blog-page .editorial-hero__lead {
        font-size: 16px;
    }

    body.blog-page .editorial-hero__actions .editorial-button {
        width: 100%;
    }

    body.blog-page .editorial-hero__facts {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.blog-page .blog-directory {
        padding: 68px 0 78px;
    }

    body.blog-page .blog-featured {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.blog-page .blog-featured-card {
        display: flex;
        min-height: 154px;
        align-items: center;
        padding: 16px 17px 16px 132px;
        border-radius: 19px;
    }

    body.blog-page .blog-featured-card::before,
    body.blog-page .blog-featured-card::after {
        inset: 12px auto 12px 12px;
        width: 104px;
        height: auto;
        border-radius: 13px;
    }

    body.blog-page .blog-featured-card h3 {
        font-size: 19px;
    }

    body.blog-page .blog-category,
    body.blog-page .blog-category:nth-of-type(2n),
    body.blog-page .blog-category:nth-of-type(3n) {
        padding: 22px 17px;
    }
}

@media (max-width: 430px) {
    .blog-hero__media,
    .blog-hero__media img {
        min-height: 265px;
    }

    .blog-hero__note {
        grid-template-columns: 36px 1fr;
        padding: 12px 13px;
    }

    .blog-hero__note-icon {
        width: 36px;
        height: 36px;
    }

    body.blog-page .blog-featured-card {
        min-height: 146px;
        padding-left: 118px;
    }

    body.blog-page .blog-featured-card::before,
    body.blog-page .blog-featured-card::after {
        width: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.blog-page .blog-featured-card,
    body.blog-page .blog-featured-card::before,
    body.blog-page .blog-card {
        transition: none;
    }
}
