/* RAW CATEGORY DARK EDITORIAL - BLOCK 14B */

.page-id-290 .raw-category-section {
    background: #fff;
}

.page-id-290 .raw-category-card {
    text-align: center;
}

.page-id-290 .raw-category-image {
    aspect-ratio: 4 / 5;
    background: #292929;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.page-id-290 .raw-category-image::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    pointer-events: none;
}

.page-id-290 .raw-category-image::before {
    content: "RAW";
    font-family: Georgia, serif;
    font-size: clamp(19px, 2.4vw, 34px);
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.28);
}

/* RAW CATEGORY HOVER FIX - BLOCK 14D */
.page-id-290 .raw-category-card:hover .raw-category-image {
    background-color: #353535;
}

.page-id-290 .raw-category-name {
    margin: 19px 0 7px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.page-id-290 .raw-category-link {
    display: inline-block;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 1px solid #999;
    transition: color 0.2s ease;
}

.page-id-290 .raw-category-link:hover {
    color: #111;
}

@media (max-width: 849px) {
    .page-id-290 .raw-category-name {
        font-size: 12px;
        margin-top: 12px;
    }

    .page-id-290 .raw-category-link {
        font-size: 10px;
        letter-spacing: 0.07em;
    }
}

/* RAW CATEGORY CONCEPT IMAGES - BLOCK 14C */

/*
 * Temporary AI concept photography.
 * Scoped to RAW homepage page 290.
 * Preserves Block 14B layout and links.
 */

.page-id-290 .raw-category-image {
    background-color: #292929;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Remove the previous RAW text placeholder. */
.page-id-290 .raw-category-image::before {
    content: none !important;
}

/* Remove the placeholder frame over photographs. */
.page-id-290 .raw-category-image::after {
    content: none !important;
}

/* Four category images, in existing column order. */
.page-id-290 .raw-category-card:nth-child(1)
.raw-category-image {
    background-image:
        url("../images/raw-category/nhan.jpg");
}

.page-id-290 .raw-category-card:nth-child(2)
.raw-category-image {
    background-image:
        url("../images/raw-category/day-chuyen.jpg");
}

.page-id-290 .raw-category-card:nth-child(3)
.raw-category-image {
    background-image:
        url("../images/raw-category/vong-tay.jpg");
}

.page-id-290 .raw-category-card:nth-child(4)
.raw-category-image {
    background-image:
        url("../images/raw-category/bong-tai.jpg");
}

/* Keep photos stable on hover. */
.page-id-290 .raw-category-card:hover
.raw-category-image {
    background-color: #292929;
}


/* RAW CATEGORY HOVER ZOOM - BLOCK 14E */

/*
 * Subtle editorial hover effect.
 * Background images remain visible.
 * No changes to card dimensions or links.
 */

@media (hover: hover) and (pointer: fine) {

    .page-id-290 .raw-category-image {
        background-size: 100% auto;
        transition:
            background-size 0.45s ease,
            background-color 0.35s ease;
    }

    .page-id-290 .raw-category-card:hover
    .raw-category-image {
        background-size: 103% auto;
    }

    .page-id-290 .raw-category-card:hover
    .raw-category-link {
        color: #111;
    }
}

@media (prefers-reduced-motion: reduce) {

    .page-id-290 .raw-category-image {
        transition: none !important;
    }
}

/* RAW CATEGORY MOBILE RESPONSIVE - BLOCK 14F */

/*
 * Scoped to page 290.
 * Preserve existing category grid and photography.
 */

@media (max-width: 849px) {

    .page-id-290 .raw-category-section {
        overflow: hidden;
    }

    .page-id-290 .raw-category-card {
        width: 100%;
        min-width: 0;
        margin-bottom: 20px;
    }

    .page-id-290 .raw-category-image {
        width: 100%;
        aspect-ratio: 4 / 5;
        background-size: cover;
        background-position: center;
    }

    .page-id-290 .raw-category-name {
        font-size: 12px;
        line-height: 1.5;
        letter-spacing: 0.045em;
        margin: 12px 0 5px;
    }

    .page-id-290 .raw-category-link {
        display: inline-block;
        font-size: 10px;
        line-height: 1.6;
        letter-spacing: 0.07em;
        padding: 4px 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {

    .page-id-290 .raw-category-name {
        font-size: 11px;
    }

    .page-id-290 .raw-category-link {
        font-size: 9px;
        letter-spacing: 0.04em;
    }
}
