/* ==========================================================================
   WORK PAGE STYLES (css/work.css)
   ========================================================================== */

.work-section {
    padding: 110px 20px 80px 20px;
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    text-align: center;
}

.work-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFDCE8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 230px 230px;
    gap: 16px;
    grid-template-areas: 
        "ruth  aura  mf77"
        "ruth  aura  msr";
}

.ruth-card  { grid-area: ruth;  height: 100%; }
.aura-card  { grid-area: aura;  height: 100%; }
.hope-card  { grid-area: hope;  height: 100%; }
.msr-card   { grid-area: msr;   height: 100%; }
.nitro-card { grid-area: nitro; height: 100%; }
.mf77-card  { grid-area: mf77;  height: 100%; }

.work-item {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    background-color: #2F1F1A;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.work-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(90%);
    opacity: 0.75;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.work-item:hover .work-bg-image {
    filter: grayscale(0%) contrast(100%);
    opacity: 1;
    transform: scale(1.04);
}

.ruth-card .work-bg-image  { background-image: url('../img/ruth_asawa_intro.gif'); }
.hope-card .work-bg-image  { background-image: url('../img/'); }
.msr-card .work-bg-image   { background-image: url('../img/msr_intro.gif'); }
.nitro-card .work-bg-image { background-image: url('../img/'); }
.mf77-card .work-bg-image  { background-image: url('../img/mf77_intro.gif'); }

.work-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 31, 26, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    pointer-events: none;
    transition: background 0.3s ease;
}

.work-item:hover .work-text-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.work-text-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.work-text-overlay .category {
    font-size: 13px;
    color: #F3EBE6;
    margin-bottom: 2px;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.work-text-overlay .year {
    font-size: 12px;
    color: #FFDCE8;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

@media (max-width: 850px) {
    .work-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: none;
        gap: 16px;
    }

    .work-item {
        grid-area: auto !important;
        height: 250px !important;
    }
}