* {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

:root {
    --max-width-container: 1040px;
}
  
html, body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #3E3E3E;
}

img, svg {
    user-select: none;
}

.header {
    position: relative;
    width: 100%;
    height: 456px;
    /* padding: 32px 0 0 0; */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header > * {
    position: relative;
    z-index: 1;
}

.header:before {
    content: ' ';
    position: absolute;
    background: linear-gradient(134.71deg, rgba(0, 176, 255, 0.977355) -0.5%, #861FFC 76.33%, #861FFC 98.45%);
    top: -96px;
    bottom: 0;
    left: 0;
    right: 0;
}

.header .inner {
    width: 100%;
    height: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    .right {
        height: 100%;

        .poster {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
    }
}

.header .inner .left h1 {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 45px;
    line-height: 61px;
    color: #ffffff;
    position: relative;
    margin: 0 0 48px 0;
}

.header .left h1:after {
    content: ' ';
    position: absolute;
    width: 48px;
    height: 5px;
    left: 0;
    background-color: #ffffff;   
    border-radius: 2px;
    bottom: -16px;
}

.header .inner .left h2 {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-size: 20px;
    line-height: 27px;
    color: #FFFFFF;
    max-width: 432px;
}


.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow-x: hidden;

    &::before, &::after {
        content: '';
        position: absolute;
        width: 200px;
        height: 100%;
        z-index: 2;
    }

    &::before {
        left: 0;
        background: linear-gradient(-90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    }

    &::after {
        right: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    }
}

.content > .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    max-width: 1340px;
}

.content > .inner .button.outline {
    align-self: center;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 8px;
    box-sizing: border-box;
    text-decoration: none;
    color: #169FF2;
    padding: 14px 64px;
    font-weight: 600;
    border: 1px solid #fff;
    transition: background .25s, color .25s, opacity 1s, transform .35s ease-out;
    background: transparent;
    border: 1px solid #169FF2;
    margin: 50px 0;
}

.content > .inner .button.outline:hover {
    background-color: #169FF2;
    color: #fff;
}

.content > .inner > h1 {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    text-align: center;
    color: #3E3E3E;
    margin: 60px 0;
    max-width: 992px;
    max-width: 600px;
    position: relative;
    margin-top: 120px;
}

.content:not(.tutorial) > .inner h1:after {
    content: ' ';
    position: absolute;
    width: 48px;
    height: 5px;
    left: 50%;
    margin-left: -24px;
    background-color: #169FF2;
    border-radius: 2px;
    bottom: -16px;
}

.content > .inner > p {
    width: 100%;
    max-width: 780px;
    color: #3E3E3E;
    font-size: 17px;
    font-family: Open Sans;
    font-weight: 400;
    font-style: normal;
    line-height: 23px;
    text-align: center;
}

.category-videos {    
    display: flex;
    align-items: start;

    position: relative;
}

.category-videos::after {
    /* thumbnail */
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 75%, rgba(255,255,255,1) 100%);
}

.category-videos h3 {
    color: #3E3E3E;
    font-size: 17px;
    font-family: "Open Sans";
    font-weight: 700;
}

.category-videos p {
    color: #3E3E3E;
    font-size: 17px;
    text-align: left;
    margin-bottom: 0;
}

.category-videos h3 span {
    color: #169FF2;
}

.content .inner > p.last {
    margin-bottom: 40px;
}

.content .inner .share {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 0 60px 0;
}

.content .inner .share p {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 17px;
    line-height: 23px;
    text-align: center;
    color: #3E3E3E;
}

.content .share .socials > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.content .share .socials > div .button {
    width: 32px;
    height: 32px;
    background: #169FF2;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 8px;
}

.content .share .socials > div .button.wa {
    display: none;
}

.content .share .socials > div .button svg {
    width: 16px;
}

.tutorial.overview-button {
    margin: 50px 0;
}

.overview-button {
    height: 44px;
    display: flex;
    flex-direction: revert;
    justify-content: center;
    border: 1px solid;
    align-items: center;
    text-decoration: none;
    padding: 0 60px;
    border-radius: 8px;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: #169FF2;
    border: 1px solid #169FF2;
    margin-bottom: 80px;
    transition: color .25s, background .25s ease-out;
}

.overview-button:hover {
    background: #169FF2;
    color: #fff;
}

.search-container {
    width: 100%;
    height: 50px;
    margin: 70px 0 0 0;

    display: flex;
    align-items: center;
    justify-content: end;
}

.search-container aside {
    display: none;
}

.search-container span {
    height: 100%;
    width: 40%;

    position: relative;
    display: flex;
    align-items: center;
}

.search-container span::after {
    content: url(../assets/icons/search-icon.svg);
    position: absolute;
    right: 15px;
}

input:focus {
    outline: none;
}

.search-container input {
    background-color: rgba(235, 236, 237, 0.75);
    border-radius: 7px;
    border: none;
    padding: 12px;
    height: 100%;
    width: 100%;
}

.search-container input::placeholder {
    color: rgba(61, 61, 61, 0.5);
}

.search-container input::placeholder,
.search-container input {
    font-size: 18px;
}

.categories-container {
    width: 100%;
    max-width: var(--max-width-container);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.category-wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.category-wrapper:not(:last-child) {
    border-bottom: .5px solid rgba(0, 0, 0, 0.1);
}

.category-wrapper:last-of-type .category-header h2  {
    margin: 50px 0 70px 0;
}

.category-wrapper .category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 320px;
}

.category-header.close > svg {
    transition: transform 100ms ease-in-out;
    transform: rotate(-90deg);
}

.category-header.open > svg {
    transition: transform 100ms ease-in-out;
    transform: rotate(0deg);
}

.category-wrapper svg, .category-wrapper h2 {
    cursor: pointer;
}

.category-wrapper h2,
.categories-container h2 {
    font-size: 30px;
    margin: 50px 0;
}

.swiper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: visible;
    transition: all 100ms ease-in-out;
} 

.category-wrapper .swiper-button-prev,
.category-wrapper .swiper-button-next {
    overflow: visible;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    -webkit-box-shadow: 0px 0px 80px 2px rgba(255,255,255,1);
    -moz-box-shadow: 0px 0px 80px 2px rgba(255,255,255,1);
    box-shadow: 0px 0px 80px 2px rgb(255, 255, 255);
    
    opacity: 0;
    transition: opacity 150ms ease-in-out;
    transition-delay: 300ms;
}

.category-content.open .swiper-button-next,
.category-content.open .swiper-button-prev {
    opacity: 1;
}

.category-wrapper i.swiper-button-prev::after,
.category-wrapper i.swiper-button-next::after {
    content: '';
    background-color: white;
    position: absolute;
    border-radius: 50%;
    top: 3px;
    bottom: 3px;
    left: 3px;
    right: 3px;
}

.category-wrapper i.swiper-button-prev {
    background: linear-gradient(-45deg, rgba(0, 176, 255, 0.977355) -0.5%, #861FFC 76.33%, #861FFC 98.45%);
    top: 100px;
    left: -74px;
}

.category-wrapper .swiper-button-next {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.977355) -0.5%, #861FFC 76.33%, #861FFC 98.45%);
    top: 100px;
    right: -74px;
}

.category-wrapper i.swiper-button-prev.swiper-button-disabled,
.category-wrapper i.swiper-button-next.swiper-button-disabled {
    opacity: 0;
    display: none;
    transition: all 200ms linear;
}

.category-wrapper .swiper-button-prev > img {
    margin-right: 6px;
}

.category-wrapper .swiper-button-next > img {
    margin-left: 6px;
}

.category-wrapper .swiper-button-prev > img,
.category-wrapper .swiper-button-next > img {
    z-index: 10;
}

.category-wrapper .swiper-slide.not-active {
    opacity: .2;
    box-sizing: border-box;
    transform: scale(.8);
    transition: opacity .5s, transform .4s ease
}

.category-wrapper .swiper-slide.active {
    opacity: 1;
    transform: scale(1);
}

.category-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: height 1s ease-in-out;

    a.cover {
        margin-bottom: 0;
        height: 100%;
    }
}

.category-content.open {
    height: 520px;
}

.category-content.close {
    height: 0px;
    overflow: hidden;
}

.tutorials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px 20px;
    width: 100%;
}

.tutorials-list a.cover {
    margin-bottom: 0;
}

.tutorials-list a.cover .thumbnail {
    margin-bottom: 24px;
}

a.button.outline.category {
    margin: 60px;
}

a.button.outline.mobile {
    display: none;
}

a.button.outline.desktop {
    display: inline-flex;
}

.header .inner .right .poster {
    /* margin: 36px 0 48px 0; */
}

@media only screen and (max-width: 1200px) {
    
    .content > .inner {
        padding: 0 32px 0 32px;
    }
}

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

    h2 {
        font-size: 24px;
    }

    .header .inner {
        flex-direction: column;
        gap: 32px;

        .left {
            padding-bottom: 16px;

            h1 {
                margin: 25px 0 48px 0;
                font-weight: 700;
                font-size: 35px;
                line-height: 48px;
            }
        }

        img {
            width: 100%;
        }
    }

   .content > .inner h1 {
        color: #3E3E3E;
        font-size: 24px;
        font-family: Open Sans;
        font-weight: 700;
        text-align: left;
        margin-top: 60px;
        margin-bottom: 40px;
   }

   .content > .inner h1::after {
        width: 32px;
        height: 4px;
        left: 20px;
        bottom: -16px;
    }

    .content > .inner p {
        color: #3E3E3E;
        font-size: 17px;
        font-family: Open Sans;
        font-weight: 300;
    }

    .content > .inner p.last {
        margin-bottom: 40px;
    }

    .content > .inner .grid {    
        grid-template-columns: 1fr;
    }

    .content > .inner .share {
        margin-top: 0;
    }


    /* CARDS */
    .category-wrapper {
        padding: 0;
    }

    .swiper-button-prev, .swiper-button-next {
        opacity: 0;
        display: none;
    }

    .category-content {
        a.cover {
            height: max-content;
    
            .thumbnail {
                margin: 0;
            }
        }
    }
    
}

@media only screen and (max-width: 1040px) {
    .header .inner,
    .category-wrapper {
        padding: 0 32px 0 32px;
    }
}

@media only screen and (max-width: 800px) {
    * {
        padding: 0;
        margin: 0;
    }

    .content > .inner .button.outline {
        margin: 20px 0;
    }

    a.button.outline.mobile {
        display: inline-flex;
        margin: 20px 0;
    }
    
    a.button.outline.desktop {
        display: none;
    }    

    .content {
        overflow: visible;
    }

    .header .inner {
        justify-content: center;
    }

    .header .inner .left h1, 
    .header .inner .left h2 {
        text-align: center;
    }

    .header .inner .left h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .categories-container {
        height: auto;
        z-index: 0;
    }

    .search-container {
        height: auto;
        width: 100%;
        align-items: start;
        padding: 38px 0;
        margin: 0;
        border-bottom: 1px solid #e7e7e7;
        gap: 20px;
        background-color: white;
        position: sticky;
        top: 60px;
        z-index: 1;
    }

    .search-container aside {
        display: flex;
        width: 100%;
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 88px;
        z-index: 1;
        background-color: #ffffff;
    }

    .search-container aside.anchors .inner {
        width: 100%;
        height: auto;
        background-color: #EAF6FE;
        overflow: hidden;
        border-radius: 4px;
        flex: 0 0 auto;
    }

    .search-container aside.anchors ul {
        box-sizing: border-box;
        padding: 10px 32px 0px 32px;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.5s ease-out;
    }

    .search-container aside.anchors.show ul {
        padding-bottom: 14px;
    }

    .search-container aside.anchors ul li {
        text-decoration: none;
        width: 100%;
        height: 34px;
        line-height: 30px;
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .search-container aside.anchors ul li:first-of-type:before {
        top: 4px;
        border-radius: 2px 2px 0 0;
    }

    .search-container aside.anchors ul li:last-of-type:before {
        bottom: 4px;
        border-radius: 0 0 2px 2px ;
    }

    .search-container aside.anchors ul li::before {
        content: '';
        width: 4px;
        position: absolute;
        background-color: #169FF233;
        top: 0;
        left: 0;
        bottom: 0;
    }

    .search-container aside.anchors ul li a {
        padding: 0 16px;
        font-weight: 400;
        font-size: 16px;
        color: #8c8c8c;
        text-decoration: none;
        box-sizing: border-box;
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .search-container aside.anchors h3 {
        font-weight: 600;
        font-size: 17px;
        line-height: 24px;
        color: rgb(22, 159, 242);
        text-transform: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        margin: 12px 0 0 0;
    }

    .search-container aside.anchors ul li.active a {
        color: #2b2b2b;
        font-weight: 400;
    }

    .search-container aside.anchors ul li.active a::before {
        display: block;
    }

    .search-container aside.anchors ul li a::before {
        content: ' ';
        width: 4px;
        position: absolute;
        background-color: #169FF2;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1;
        border-radius: 2px;
        display: none;
    }

    .search-container aside.anchors.show i {
        transform: rotate(90deg);
    }

    .search-container aside.anchors.show ul {
        grid-template-rows: 1fr;
    }

    .search-container span {
        height: 50px;
        width: 50px;
    }

    .search-container span input {
        display: none;
    }

    .category-content.open .swiper-button-next, .category-content.open .swiper-button-prev {
        opacity: 0;
        display: none;
    }

    .category-content {
        overflow: hidden;
        transition: all 600ms ease-in-out;
    }

    .category-content.open,
    .category-content.close {
        display: grid;
        justify-items: center;
        height: auto;
    }

    .category-content.close > .button.outline {
        display: none;
    }

    .category-content.open {
        padding-bottom: 40px;
        grid-template-rows: 2fr;
    }

    .category-content.close {
        grid-template-rows: 0fr;    
        padding: 0;
        margin: 0;
    }

    .swiper {
        overflow: hidden;
    }

    .tutorials-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .category-videos {
        display: flex;
        flex-direction: column;
        gap: 30px;
        /* margin-bottom: 50px; */
        height: auto;
    }

    .category-wrapper {
        padding: 1em;
    }

    .category-wrapper h2 {
        font-size: clamp(24px, 2vw + 16px, 30px);
        margin: 30px 0;
    }

    .category-wrapper .category-header {
        gap: 20px;
        width: auto;
    }

    .category-header > svg {
        width: 16px;
    }

    a.cover {
        height: auto;
        overflow: hidden;
        opacity: 1;
        transform: translateX(0px);
        transition: opacity 500ms ease-in-out, transform 500ms ease-in-out, height 500ms ease-in-out;
    }
    
    a.cover.tutorial-view-more {
        height: 0;
        min-height: 0;
        opacity: 0;
        transform: translateX(-100%);
        pointer-events: none;
    }
    
    .next-videos {
        display: flex;
        flex-direction: column;
    }
}

/* BUTTONS NEXT AND PREV */
@media only screen and (min-width: 801px) and (max-width: 999px) {
    .category-content.open .swiper-button-next, .category-content.open .swiper-button-prev {
        top: clamp(5rem, 10.05vw - 0.031rem, 6.25rem);

        width: clamp(3.25rem, 1.002vw + 2.749rem, 3.625rem);
        height: clamp(3.25rem, 1.002vw + 2.749rem, 3.625rem);
        aspect-ratio: 1 / 1;
    }

    .category-content.open .swiper-button-next {
        right: -70px;
    }

    .category-content.open .swiper-button-prev {
        left: -70px;
    }
}

@media only screen and (min-width: 1000px) and (max-width: 1400px) {
    .category-content.open .swiper-button-next, .category-content.open .swiper-button-prev {
        top: clamp(4.375rem, 11.765vw - 2.978rem, 6.875rem);
        width: clamp(3.125rem, 2.353vw + 1.654rem, 3.625rem);
        height: clamp(3.125rem, 2.353vw + 1.654rem, 3.625rem);
    }

    .category-content.open .swiper-button-next img, .category-content.open .swiper-button-prev img {
        width: clamp(1rem, 0.588vw + 0.632rem, 1.125rem);
    }

    .category-content.open .swiper-button-next {
        right: -68px;
    }

    .category-content.open .swiper-button-prev {
        left: -68px;
    }
}
  
/* GRADIENTS SIDES */
@media only screen and (max-width: 1300px) {
    .content {
        &::before, &::after {
            content: none;
        }
    }   
}