/* Original Grid Setup grid.layoutit.com?id=RjN5c9R */

body,
html {
    overflow-x: hidden;
}

.box-area {
    position: relative;
    margin: 20px 0;
    width: 100%;
    /* height: calc(100dvh - 100px); */
    height: calc(100dvh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-area::before {
    content: "";
    position: absolute;
    top: -15%;
    right: -15%;
    width: 100dvh;
    height: 100dvh;
    background-image: radial-gradient(circle, rgba(244, 117, 181, 1), rgba(251, 169, 142, 1), rgba(0, 0, 0, 0));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
}

.box-container {
    width: 100%;
    height: 100%;
    margin: 20px;
    display: grid;
    grid-template-columns: 0.7fr 0.7fr 0.7fr 0.3fr 0.3fr 2.7fr;
    grid-template-rows: 0.1fr 1.5fr 1.5fr;
    gap: 20px 20px;
    grid-auto-flow: row;
    grid-template-areas:
        "info1 info1 info2 info2 info2 info3"
        "box1 box1 box1 box1 box1 box2"
        "box4 box5 box6 box3 box3 box3";
}

.info1 {
    grid-area: info1;
    width: 75%;
}

.info2 {
    grid-area: info2;
    width: 75%;
}

.info3 {
    grid-area: info3;
    width: 50%;
}

.box-i a {
    text-decoration: none;
    color: var(--primary-color);
}

.info1,
.info2,
.info3 {
    display: inline-block;
}

.box-i {
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.box-i p {
    font-family: var(--accent-font);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    width: auto;
    position: relative;
    display: block;
    white-space: nowrap;
}

.box-i .line {
    position: absolute;
    height: 2px;
    background-color: var(--primary-color);
    top: 25%;
    right: 0;
    z-index: 1;
}

.line1 {
    width: 65%;
}

.line2 {
    width: 45%;
}

.line3 {
    width: 25%;
}

.box-i br {
    display: block;
    content: ' ';
    line-height: 0;
}

.box-container a {
    text-decoration: none;
}

.box1 {
    grid-area: box1;
}

.box2 {
    grid-area: box2;
}

.box3 {
    grid-area: box3;
}

.box4 {
    grid-area: box4;
}

.box5 {
    grid-area: box5;
}

.box6 {
    grid-area: box6;
}

.box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--secondary-color);

    background-position: center;
    background-size: cover;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.tag {
    margin-bottom: auto;
    color: rgba(242, 241, 238, 1);
    background-color: rgba(32, 33, 36, 0.75);
    padding: 2.5px 10px;
    border-radius: var(--border-radius-medium);
    font-family: var(--accent-font-2);
    font-size: 0.8rem;
    width: fit-content;
}

.box:hover {
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease-in-out;
}

.box-l::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, var(--primary-color-50), rgba(0, 0, 0, 0));
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.box-s {
    /* background-position: left !important; */
}

.box-s::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, var(--primary-color-50), rgba(0, 0, 0, 0));
    opacity: 0;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.box-s:hover::before {
    opacity: 1;
}

.box1 h2,
.box2 h2,
.box3 h2 {
    position: relative;
    width: 50%;
    font-size: 2rem;
    line-height: 2.25rem;
    margin: 0;
}

.box4 h2,
.box5 h2,
.box6 h2 {
    position: relative;
    left: -10px;
    opacity: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 2rem;
    line-height: 2.25rem;
    margin: 0;
    transition: all 0.3s ease-in-out;
    max-height: 0;
}


.box4 button,
.box5 button,
.box6 button {
    display: none;
}

.box4:hover h2,
.box5:hover h2,
.box6:hover h2 {
    left: 0px;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.box-container button {
    position: relative;
    width: 200px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

button {
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

button:hover {
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 800px) {

    .box-area {
        height: auto;
    }

    /* .box-container {
        margin-top: 40px;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto) repeat(6, 800px);
        grid-template-areas:
            "info1"
            "info2"
            "info3"
            "box1"
            "box2"
            "box3"
            "box4"
            "box5"
            "box6"
        ;
    } */

    .box-container {
        margin-top: 40px;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto) repeat(3, 400px);
        grid-template-areas:
            "info1"
            "info2"
            "info3"
            "box1"
            "box2"
            "box3"
        ;
    }

    .box-s {
        display: none;
    }

    .box button {
        width: 100%;
    }

    .box4 button,
    .box5 button,
    .box6 button {
        display: block;
    }

    .box1 h2,
    .box2 h2,
    .box3 h2 {
        width: 100%;
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .box4 h2,
    .box5 h2,
    .box6 h2 {
        position: relative;
        left: 0;
        opacity: 1;
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        font-size: 1.5rem;
        line-height: 2rem;
        max-height: 100%;
    }

    .box-s::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(to top, var(--primary-color-50), rgba(0, 0, 0, 0));
        opacity: 1;
        border-radius: 25px;
        transition: all 0.3s ease-in-out;
    }

    .info1,
    .info2,
    .info3 {
        /* display: none; */
        width: 100%;
        padding: 0;
    }
}