.pres,
.news {
    width: 100%;
    padding: 5rem;
    margin-bottom: 2rem;
}

.intro {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 0 3rem 6rem;
}

.text-intro {
    width: 50%;
    text-align: left;
}

.intro .text-intro h2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

#dynamic-text {
    position: relative;
    display: inline-block;
    color: var(--white);
}

.intro .text-intro h3 {
    font-weight: normal;
    max-width: 55ch;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-subtle);
    text-wrap: balance;
}

.intro .image-intro {
    display: flex;
    justify-content: center;
    width: 45%;
}

.intro .image-intro > img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
}

.pres {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pres h2 {
    margin-bottom: 3rem;
    font-size: 3rem;
    color: var(--white);
    text-align: center;
    text-wrap: balance;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
}

.box-pres {
    --border-radius: 1rem;
    position: relative;
    height: 100%;
    padding: 2px;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, var(--grey), black);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-pres::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: var(--border-radius);
    background: var(--purple);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.box-content-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: calc(var(--border-radius) - 2px);
    background: var(--bg-dark);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.box-icon-wrapper {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.6);
}

.box-icon {
    font-size: 28px;
    color: var(--purple);
}

.box-header h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.box-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.box-info > p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-subtle);
}

.box-info ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding: 0;
    list-style: none;
}

.box-info li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--white);
}

.checkbox-icon {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: var(--purple);
}

.news {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.news-header h2 {
    flex: 1;
    margin: 0;
    font-size: 3rem;
    color: var(--white);
    text-align: left;
    text-wrap: balance;
}

.news-header .news-card.featured {
    flex: 2;
    aspect-ratio: 7 / 2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.news-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    background-color: hsl(270, 8%, 10%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, transparent 100%);
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-top-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.card-tag {
    flex-shrink: 0;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background-color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px var(--purple);
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s ease;
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-subtle);
}

@media (hover: none), (pointer: coarse) {
    .news-card img {
        filter: brightness(0.8);
    }
    .news-card .card-content {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 40%, transparent 100%);
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: hover) and (pointer: fine) {
    .box-pres:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
    .box-pres:hover::before {
        opacity: 1;
    }
    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 20px rgba(118, 75, 162, 0.4);
    }
    .news-card:hover img {
        transform: scale(1.05);
        filter: brightness(0.5);
    }
    .news-card:hover .card-content {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .pres,
    .news {
        padding: 3rem 1rem;
        margin-bottom: 10rem;
    }
    .news {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .intro {
        flex-direction: column-reverse;
        gap: 0;
        margin-bottom: 10rem;
        padding: 0 1rem 3rem;
        text-align: center;
    }
    .text-intro {
        width: 100%;
        text-align: center;
    }
    .intro .text-intro h2 {
        font-size: 5rem;
    }
    .intro .text-intro h3 {
        font-size: 1.5rem;
        margin: 5rem auto 0 auto;
    }
    .intro .image-intro > img {
        width: 180%;
        max-width: 800px;
    }

    .pres h2 {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 3rem;
        font-size: 5rem;
    }
    .hyphen {
        display: none;
    }
    .box-container {
        max-width: 80%;
        grid-template-columns: 1fr;
    }
    .box-content-inner {
        padding: 1.25rem;
    }
    .box-header {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    .box-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    .box-icon {
        font-size: 24px;
    }
    .box-header h4 {
        font-size: 2rem;
    }
    .box-info > p {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    .box-info li {
        font-size: 1.5rem;
    }
    .box-info ul {
        gap: 1rem;
    }
    .checkbox-icon {
        font-size: 1.7rem;
    }

    .news-header {
        flex-direction: column;
    }
    .news-header h2 {
        margin-bottom: 1rem;
        font-size: 5rem;
        text-align: center;
    }
    .news-card,
    .news-header .news-card.featured {
        aspect-ratio: 16 / 9;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .card-title {
        font-size: 2rem;
    }
    .card-subtitle {
        font-size: 1.5rem;
    }
    .card-tag {
        font-size: 1rem;
    }
}