/* ABOUT SECTION */

.about-section-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    
    width: 100%;
    padding: 16px;
}

.about-section_group_context {
    width: 100%;
    padding: 0 8px;
    align-items: center;
}

.about-section__group-title {
    font-size: 20px;
    color: var(--color-brand-primary);
    margin-bottom: 16px;
    text-align: center;
}

.about-section__group-text {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-secondary);
    text-align: center;
}

.about-section__first-group-items-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    column-gap: 24px;
    row-gap: 32px;
    width: 100%;
    
    margin-top: 8px;
    margin-bottom: 24px;
    
/*    margin-top: 36px;*/
}

.about-section__first-group-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
    width: 100%;
    max-width: 120px;
    text-align: center;
}

.about-section__first-group-item-icon {
    height: 40px;
    object-fit: contain;
}

.about-section__first-group-item p {
    gap: 8px;
    font-size: 14px;
    text-align: center;
    color: var(--color-text-primary);
}

.about-section-first {
    position: relative;
    overflow: visible;

    background-color: #F5FAFF;
    border: 1px solid #C9E1FB;
    border-radius: 16px;

    margin-bottom: 60px;
}

.about-section-first::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -79px;
    transform: translateX(-50%);

    width: 260px;
    height: 80px;

    background-image: url("../images/triangle-light.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    z-index: 3;
    pointer-events: none;
}

.about-section-center {
    position: relative;
    width: 100%;
    height: 5px;
    overflow: visible;
}

.about-section-center::before {
    content: "";
    position: absolute;

    width: 300px;
    height: 185px;

    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background-image: url("../images/Mobile/about-section__network-hub.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    z-index: 20;
    pointer-events: none;
}

.about-section-second {
    position: relative;
    overflow: visible;

    background-color: #F5F7FF;
    border: 1px solid #C9E1FB;
    border-radius: 16px;

    margin-top: 58px;
}

.about-section-second::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -79px;
    transform: translateX(-50%) scaleY(-1);
    transform-origin: center;

    width: 260px;
    height: 80px;

    background-image: url("../images/triangle-dark.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    z-index: 3;
    pointer-events: none;
}

.about-section__second-group-items-wrapper {
    gap: 16px;
}

.about-section__second-group-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    
    gap: 16px;
}

.about-section__second-group-item-icon {
    height: 32px;
}

.about-section__second-group-item > p {
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-primary);
}

/* MEDIA */
@media (max-width: 743px) {
    /*
     Mobile layout: 3 columns.
     Keep the last item in the third column, as in the design.
     */
    .about-section__first-group-item:nth-child(8) {
        grid-column: 3;
    }
}

@media (min-width: 744px) {
    /* Tablet/Desktop layout: 4 columns. */
    .about-section__first-group-items-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 16px;
    }
    
    .about-section__first-group-item:nth-child(8) {
        grid-column: auto;
    }
    
    .about-section {
        align-items: center;
    }
    
    .about-section-first {
        margin-bottom: 50px;
    }
    
    .about-section-second {
        margin-top: 53px;
    }
}

@media (min-width: 1024px) {
    .about-section {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        gap: 0;
    }

    .about-section > .section-title {
        flex: 0 0 100%;
        margin-bottom: 56px;
    }
    
    .about-section__first-group-items-wrapper {
        margin-top: 26px;
    }
    
    .about-section-group {
        padding: 24px;
        justify-content: start;
    }
    
    .about-section_group_context {
        align-items: start;
    }
    
    .about-section__group-text {
        text-align: left;
    }

    .about-section-first,
    .about-section-second {
        flex: 0 0 418px;
        width: 418px;
        margin: 0;
    }

    .about-section-center {
        flex: 0 0 140px;
        width: 140px;
        height: auto;
        align-self: stretch;
    }

    .about-section-first::after {
        width: 250px;
        height: 72px;
        
        left: auto;
        right: -160px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg);
    }

    .about-section-second::after {
        width: 250px;
        height: 72px;
        
        left: -160px;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
    }

    .about-section-center::before {
        width: 232px;
        height: 312px;
        
        background-image: url("../images/Tablet/about-section__network-hub.svg");
    }
}

@media (min-width: 1200px) {
    .about-section-first,
    .about-section-second {
        flex: 0 0 476px;
        width: 476px;
    }
    
    .about-section-center {
        flex: 0 0 200px;
        width: 200px;
        height: auto;
        align-self: stretch;
    }
    
    .about-section-first::after {
        width: 250px;
        height: 102px;
        
        right: -175px;
    }

    .about-section-second::after {
        width: 250px;
        height: 102px;
        
        left: -175px;
    }
}
