/* =========================
   DEPARTMENTS
========================= */

.departments-intro {
    padding: calc(var(--section-padding) + 3rem) 0 4rem;
}

/* =========================
   DEPARTMENTS GRID (LOCKED)
========================= */

.departments-list {
    padding-bottom: var(--section-padding);
}

/* OBS:
   departments-inner är den som låser bredden
   (via layout.css – samma som projects-grid, services-grid osv)
*/
.departments-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 900px) {
    .departments-inner {
        grid-template-columns: 1fr;
    }
}

/* =========================
   DEPARTMENT CARD
========================= */

.department-row {
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;

    background: #000;

    transition:
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.department-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

/* =========================
   IMAGE
========================= */

.department-row img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1.05);
    transition: transform 0.8s ease;
}

.department-row:hover img {
    transform: scale(1.12);
}

/* =========================
   OVERLAY
========================= */

.department-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.55) 45%,
            rgba(0,0,0,0.85) 100%
    );
    transition: background 0.4s ease;
}

.department-row:hover .department-overlay {
    background: linear-gradient(
            180deg,
            rgba(0,0,0,0.1) 0%,
            rgba(0,0,0,0.45) 45%,
            rgba(0,0,0,0.8) 100%
    );
}

/* =========================
   CONTENT
========================= */

.department-content {
    position: absolute;
    left: 2.4rem;
    right: 2.4rem;
    bottom: 2.4rem;
    z-index: 2;
}

.department-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

/* Accent line */
.department-line {
    width: 32px;
    height: 2px;
    background: var(--color-accent);
    margin-bottom: 1.2rem;
    transition: width 0.4s ease;
}

.department-row:hover .department-line {
    width: 64px;
}

.department-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    max-width: 44ch;
    margin-bottom: 1.6rem;
}

/* CTA */
.department-content a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
}

.department-content a::after {
    content: "→";
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
}

.department-row:hover a::after {
    transform: translateX(4px);
}
/* =========================
   CINEMATIC GRAIN
========================= */

.department-row::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image: url("/assets/images/noise.png");
    background-size: 200px 200px;
    opacity: 0.06;
    mix-blend-mode: overlay;
}

/* =========================
   WORKSHOPS
========================= */

.workshops-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem var(--section-padding);
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

@media (max-width: 900px) {
    .workshops-grid {
        grid-template-columns: 1fr;
    }
}

/* workshop card */
.workshop-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;

    transition:
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.workshop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

.workshop-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1.04);
    transition: transform 0.8s ease;
}

.workshop-card:hover img {
    transform: scale(1.1);
}

.workshop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.8)
    );
}

.workshop-content {
    position: absolute;
    left: 2.4rem;
    right: 2.4rem;
    bottom: 2.4rem;
    z-index: 2;
}

.workshop-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.workshop-content p {
    color: rgba(255,255,255,0.85);
    max-width: 36ch;
    margin-bottom: 1.2rem;
}

.workshop-content a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
}

.workshop-content a::after {
    content: "→";
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
}

.workshop-card:hover a::after {
    transform: translateX(4px);
}
/* =========================
   WORKSHOP CINEMATIC GRAIN
========================= */

.workshop-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image: url("/assets/images/noise.png");
    background-size: 200px 200px;
    opacity: 0.06;
    mix-blend-mode: overlay;
}
