/* ==================================================
   BLOG / RESOURCE CENTRE — Intro Section
   Reworked to match the homepage's split layout style
   (plain eyebrow label, left-aligned copy, CTA button,
   overlapping image pair) rather than the centered
   badge layout used on testimonials/services.
   Uses the site's existing theme variables from :root.
   Link this file on blog.php only.
================================================== */
div.page-header.dark-section.parallaxie.blog-page {
    height: 500px;
    min-height: 350px;
    background-image: url('../images/blog-banner.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* ===== Mobile hero fix (mirrors about.php / services.php) =====
   Same root cause as the other page banners: a tall fixed mobile
   height against a wide banner photo forces background-size: cover
   to crop most of the width away, even though it's centered. Fix:
   size the mobile hero to (roughly) the photo's own aspect ratio
   instead of a fixed height, so cover needs little to no crop.

   1.45/1 is a starting point carried over from the about-page
   banner — it has NOT been verified against blog-banner.webp's
   real dimensions (that file wasn't available here). Check via
   DevTools (hover the element > "Rendered size" tooltip, or the
   Network tab preview) and adjust the aspect-ratio below if this
   banner's ratio differs.

   --hero-focus-x lets the horizontal focal point be nudged without
   touching the ratio, in case 50% doesn't land on the important
   part of the photo once viewed live.
   Scoped to mobile only — desktop is untouched. ===== */
@media (max-width: 767px) {

    div.page-header.dark-section.parallaxie.blog-page {
        --hero-focus-x: 50%;
        height: auto !important;
        aspect-ratio: 1.45 / 1 !important; /* TODO: confirm against blog-banner.webp's real ratio */
        min-height: 220px !important;
        max-height: 340px !important;
        background-size: cover !important;
        background-position: var(--hero-focus-x) center !important;
        background-repeat: no-repeat;
        background-attachment: scroll !important; /* avoid iOS "fixed" bg shift/crop bugs */
    }

    div.page-header.dark-section.parallaxie.blog-page img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: var(--hero-focus-x, 50%) center !important;
    }
}

.blog-intro-section {
    position: relative;
    padding: 60px 0;
    background: var(--secondary-color);
    overflow: hidden;
}

.blog-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

/* ---- Left column: copy ---- */
.blog-intro-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.blog-intro-title {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 22px;
}

.blog-intro-title .text-accent {
    color: var(--accent-color);
}

.blog-intro-text,
.blog-intro-subtext {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--text-color);
    text-align: justify;
    margin-bottom: 18px;
}

.blog-intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-intro-subtext {
    margin-bottom: 30px;
}

.blog-intro-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.blog-intro-cta svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Right column: single image ---- */
.blog-intro-media {
    position: relative;
    width: 100%;
}

.blog-intro-media-main {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(22, 22, 22, 0.35);
}

.blog-intro-media-main img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
}

/* Tablet */
@media (max-width: 991px) {
    .blog-intro-section {
        padding: 46px 0;
    }

    .blog-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-intro-media {
        order: -1;
        max-width: 520px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .blog-intro-section {
        padding: 34px 0;
    }

    .blog-intro-title {
        font-size: 24px;
    }
}

/* ==================================================
   BLOG ARCHIVE UI — isolated final card overrides
================================================== */
.stylux-blog-section {
    padding: clamp(72px, 8vw, 105px) 0;
    background: #f8f4ee;
}

.stylux-blog-section .row.align-items-center {
    margin-bottom: 46px !important;
}

.blog-grid-eyebrow {
    margin-bottom: 12px;
    color: #a84f00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.blog-grid-main-title {
    max-width: 720px;
    color: #172235;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.blog-count-badge {
    color: #172235;
    background: #fff;
    border-color: rgba(23, 34, 53, 0.12);
    box-shadow: 0 8px 24px rgba(23, 34, 53, 0.06);
}

.stylux-blog-card,
.stylux-blog-card:hover {
    height: 100%;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid rgba(23, 34, 53, 0.10);
    border-radius: 20px;
    overflow: hidden;
    filter: none !important;
    opacity: 1 !important;
}

.stylux-blog-card {
    box-shadow: 0 14px 36px rgba(23, 34, 53, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stylux-blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 106, 9, 0.28);
    box-shadow: 0 24px 48px rgba(23, 34, 53, 0.13);
}

.stylux-blog-card::before,
.stylux-blog-card::after,
.stylux-blog-content::before,
.stylux-blog-content::after {
    content: none !important;
    display: none !important;
}

.stylux-blog-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e9e3dc;
}

.stylux-blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 25, 40, 0.02), rgba(15, 25, 40, 0.20));
    pointer-events: none;
}

.stylux-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stylux-blog-category {
    z-index: 2;
    color: #fff;
    background: rgba(23, 34, 53, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(8px);
}

.stylux-blog-content {
    position: relative;
    z-index: 2;
    min-height: 305px;
    padding: 26px 26px 22px;
    background: #fff !important;
    background-image: none !important;
    color: #172235;
    opacity: 1 !important;
}

.stylux-blog-meta {
    margin-bottom: 14px;
    color: #747d8b;
    opacity: 1;
}

.stylux-blog-title {
    margin-bottom: 12px;
    color: #172235;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.stylux-blog-title a {
    color: #172235;
}

.stylux-blog-excerpt {
    color: #5f6978;
    font-size: 14px;
    line-height: 1.7;
    opacity: 1;
}

.stylux-blog-footer {
    margin-top: auto;
    border-color: rgba(23, 34, 53, 0.10);
}

.stylux-readmore {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #a84f00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stylux-readmore svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.stylux-blog-card:hover .stylux-readmore {
    color: #172235;
}

.stylux-blog-card:hover .stylux-readmore svg {
    transform: translateX(4px);
}

.stylux-blog-title a:focus-visible,
.stylux-readmore:focus-visible {
    outline: 3px solid rgba(212, 106, 9, 0.45);
    outline-offset: 4px;
}

@media (max-width: 991px) {
    .stylux-blog-content {
        min-height: 295px;
    }
}

@media (max-width: 767px) {
    .stylux-blog-section {
        padding: 60px 0;
    }

    .stylux-blog-section .row.align-items-center {
        margin-bottom: 32px !important;
    }

    .blog-grid-main-title {
        font-size: 32px;
    }

    .stylux-blog-content {
        min-height: 0;
        padding: 23px 21px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stylux-blog-card,
    .stylux-blog-image img,
    .stylux-readmore svg {
        transition: none;
    }

    .stylux-blog-card:hover,
    .stylux-blog-card:hover .stylux-blog-image img {
        transform: none;
    }
}
/* ==================================================
   BLOG / RESOURCE CENTRE — Resource Categories Grid
   White background, 4x2 grid on desktop with distinct
   icons + numbered badges per category. Uses the site's
   existing theme variables from :root.
================================================== */

.resource-categories-section {
    position: relative;
    padding: 60px 0;
    background: var(--white-color);
}

.resource-categories-section .section-title-center {
    max-width: 620px;
    margin: 0 auto 40px;
    text-align: center;
}

.resource-categories-section .section-title-center .section-sub-title {
    display: inline-block;
    text-align: center;
}

.resource-categories-section .section-title-center h2 {
    text-align: center;
}

.resource-categories-carousel {
    position: relative;
    padding: 0 64px;
}

.resource-categories-viewport {
    overflow: hidden;
}

.resource-categories-track {
    display: flex;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.resource-category-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 0 13px;
    user-select: none;
}

.resource-categories-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    color: var(--primary-color);
    box-shadow: 0 12px 28px -16px rgba(22, 22, 22, 0.25);
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.resource-categories-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-50%) scale(1.06);
}

.resource-categories-arrow-prev { left: 0; }
.resource-categories-arrow-next { right: 0; }

.resource-categories-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.resource-categories-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--divider-color);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}

.resource-categories-dot.is-active {
    width: 22px;
    border-radius: 4px;
    background: var(--accent-color);
}

.resource-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 18px;
    padding: 30px 26px 26px;
    overflow: hidden;
    box-shadow: 0 16px 36px -28px rgba(22, 22, 22, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* thin gold accent that draws in from the center on hover */
.resource-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    transition: width 0.45s ease;
}

.resource-category-card:hover::before {
    width: 100%;
}

.resource-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -22px rgba(22, 22, 22, 0.2);
    border-color: rgba(176, 141, 87, 0.35);
}

.resource-category-num {
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-color);
    opacity: 0.55;
}

.resource-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.16), rgba(176, 141, 87, 0.05));
    border: 1px solid rgba(176, 141, 87, 0.3);
    color: var(--primary-color);
}

.resource-category-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.resource-category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 10px;
    line-height: 1.35;
    text-align: center;
}

.resource-category-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-color);
    text-align: justify;
    margin: 0;
}

/* Tablet */
@media (max-width: 991px) {
    .resource-categories-section {
        padding: 46px 0;
    }

    .resource-categories-carousel {
        padding: 0 54px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .resource-categories-section {
        padding: 34px 0;
    }

    .resource-categories-carousel {
        padding: 0 44px;
    }

    .resource-categories-arrow {
        width: 38px;
        height: 38px;
    }

    .resource-category-slide {
        padding: 0 6px;
    }

    .resource-category-card {
        padding: 24px 20px 22px;
    }
}




/* ==================================================
   BLOG / RESOURCE CENTRE — Featured Resources
   Two-column split list (4 + 4). No interaction needed —
   everything is visible, but splitting into two columns
   halves the vertical space compared to a single-column
   list. Cream section background.
================================================== */

.featured-resources-section {
    position: relative;
    padding: 60px 0;
    background: var(--secondary-color);
}

.featured-resources-section .section-title-center {
    max-width: 620px;
    margin: 0 auto 40px;
    text-align: center;
}

.featured-resources-section .section-title-center .section-sub-title {
    display: inline-block;
    text-align: center;
}

.featured-resources-section .section-title-center h2 {
    text-align: center;
}

.featured-resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.featured-resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    padding: 20px 20px 18px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* thin gold accent that draws in from the left on hover */
.featured-resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0%;
    background: var(--accent-color);
    transition: height 0.35s ease;
}

.featured-resource-card:hover::before {
    height: 100%;
}

.featured-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -24px rgba(22, 22, 22, 0.22);
    border-color: rgba(176, 141, 87, 0.35);
}

.featured-resource-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.featured-resource-num {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-color);
    opacity: 0.55;
}

.featured-resource-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--divider-color);
    color: var(--primary-color);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.featured-resource-arrow svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.featured-resource-card:hover .featured-resource-arrow {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
    transform: translateX(2px) rotate(0deg);
}

.featured-resource-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.featured-resource-card h3 {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-color);
    margin: 0 0 8px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.featured-resource-card:hover h3 {
    color: var(--accent-color);
}

.featured-resource-card p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet */
@media (max-width: 991px) {
    .featured-resources-section {
        padding: 46px 0;
    }

    .featured-resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .featured-resources-section {
        padding: 34px 0;
    }

    .featured-resources-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .featured-resource-card {
        padding: 16px 16px 14px;
        border-radius: 12px;
    }

    .featured-resource-card h3 {
        font-size: 13.5px;
    }

    .featured-resource-card p {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

/* Extra-small mobile: single column */
@media (max-width: 479px) {
    .featured-resources-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   BLOG PAGE — Equalize spacing for the CTA section
   This section is a shared component reused across the
   site, so the override is scoped here (blog.css loads
   on blog.php only) to keep spacing consistent with the
   other blog sections above.
================================================== */

.blog-intro-section ~ section.testimonials-cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (max-width: 991px) {
    .blog-intro-section ~ section.testimonials-cta-section {
        padding-top: 46px;
        padding-bottom: 46px;
    }
}

@media (max-width: 767px) {
    .blog-intro-section ~ section.testimonials-cta-section {
        padding-top: 34px;
        padding-bottom: 34px;
    }
}

/* ==================================================
   BLOG / RESOURCE CENTRE — 3-Column Blog Cards Grid
   Matches the black, cream, white, and warm gold theme.
================================================== */

.stylux-blog-section {
    position: relative;
    padding: 70px 0;
     /* Light cream tone */
}

/* Eyebrow & Title styling */
.blog-grid-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.blog-grid-main-title {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.blog-count-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--white-color);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--divider-color);
}

/* Card Outer Container */
.stylux-blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 30px -20px rgba(22, 22, 22, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Hover lift and subtle gold border highlight */
.stylux-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -20px rgba(22, 22, 22, 0.2);
    border-color: rgba(176, 141, 87, 0.4);
}

/* Top Image Frame & Category Tag */
.stylux-blog-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary-color);
}

.stylux-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.stylux-blog-card:hover .stylux-blog-image img {
    transform: scale(1.07);
}

.stylux-blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(176, 141, 87, 0.3);
    z-index: 2;
}

/* Card Content Area */
.stylux-blog-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px 24px 20px;
}

/* Date & Reading time metadata */
.stylux-blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-color);
    margin-bottom: 12px;
    opacity: 0.85;
}

.stylux-blog-meta i {
    color: var(--accent-color);
    margin-right: 4px;
}

.meta-dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Blog Post Title */
.stylux-blog-title {
    font-size: 17.5px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 10px;
    color: var(--primary-color);
}

.stylux-blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stylux-blog-card:hover .stylux-blog-title a {
    color: var(--accent-color);
}

/* Short Description / Excerpt */
.stylux-blog-excerpt {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-color);
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Footer & Read More Link */
.stylux-blog-footer {
    padding-top: 16px;
    border-top: 1px solid var(--divider-color);
}

.stylux-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.stylux-readmore .arrow {
    display: inline-block;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.stylux-blog-card:hover .stylux-readmore {
    color: var(--accent-color);
}

.stylux-blog-card:hover .stylux-readmore .arrow {
    transform: translate(3px, -3px);
}

/* ==================================================
   Responsive Tweaks
================================================== */
@media (max-width: 991px) {
    .stylux-blog-section {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    .stylux-blog-section {
        padding: 36px 0;
    }
    .stylux-blog-content {
        padding: 20px 18px 18px;
    }
    .stylux-blog-title {
        font-size: 16px;
    }
}

/* Final archive rules: placed last to override the legacy blog stylesheet. */
.stylux-blog-section {
    padding: clamp(72px, 8vw, 105px) 0;
    background: #f8f4ee;
}

.stylux-blog-section .row.align-items-center { margin-bottom: 46px !important; }
.blog-grid-eyebrow { margin-bottom: 12px; color: #a84f00; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.blog-grid-main-title { max-width: 720px; color: #172235; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -.035em; }
.blog-count-badge { color: #172235; background: #fff; border-color: rgba(23,34,53,.12); box-shadow: 0 8px 24px rgba(23,34,53,.06); }

.stylux-blog-card,
.stylux-blog-card:hover {
    height: 100%;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid rgba(23,34,53,.10);
    border-radius: 20px;
    overflow: hidden;
    filter: none !important;
    opacity: 1 !important;
}

.stylux-blog-card { box-shadow: 0 14px 36px rgba(23,34,53,.08); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.stylux-blog-card:hover { transform: translateY(-6px); border-color: rgba(212,106,9,.28); box-shadow: 0 24px 48px rgba(23,34,53,.13); }
.stylux-blog-card::before, .stylux-blog-card::after, .stylux-blog-content::before, .stylux-blog-content::after { content: none !important; display: none !important; }

.stylux-blog-image { position: relative; aspect-ratio: 16 / 10; background: #e9e3dc; }
.stylux-blog-image::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,25,40,.02), rgba(15,25,40,.20)); pointer-events: none; }
.stylux-blog-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stylux-blog-category { z-index: 2; color: #fff; background: rgba(23,34,53,.74); border: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(8px); }

.stylux-blog-content { position: relative; z-index: 2; min-height: 305px; padding: 26px 26px 22px; background: #fff !important; background-image: none !important; color: #172235; opacity: 1 !important; }
.stylux-blog-meta { margin-bottom: 14px; color: #747d8b; opacity: 1; }
.stylux-blog-title { margin-bottom: 12px; color: #172235; font-size: 21px; line-height: 1.35; letter-spacing: -.015em; }
.stylux-blog-title a { color: #172235; }
.stylux-blog-excerpt { color: #5f6978; font-size: 14px; line-height: 1.7; opacity: 1; }
.stylux-blog-footer { margin-top: auto; border-color: rgba(23,34,53,.10); }
.stylux-readmore { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a84f00; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stylux-readmore svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.stylux-blog-card:hover .stylux-readmore { color: #172235; }
.stylux-blog-card:hover .stylux-readmore svg { transform: translateX(4px); }
.stylux-blog-title a:focus-visible, .stylux-readmore:focus-visible { outline: 3px solid rgba(212,106,9,.45); outline-offset: 4px; }

@media (max-width: 991px) {
    .stylux-blog-content { min-height: 295px; }
}

@media (max-width: 767px) {
    .stylux-blog-section { padding: 60px 0; }
    .stylux-blog-section .row.align-items-center { margin-bottom: 32px !important; }
    .blog-grid-main-title { font-size: 32px; }
    .stylux-blog-content { min-height: 0; padding: 23px 21px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .stylux-blog-card, .stylux-blog-image img, .stylux-readmore svg { transition: none; }
    .stylux-blog-card:hover, .stylux-blog-card:hover .stylux-blog-image img { transform: none; }
}