@charset "UTF-8";

.top-box {
    margin-bottom: 9rem;
    
    @media screen and (max-width: 767px) {
      margin-bottom: 6rem;
    }

    .top-desc {
        line-height: 1.8;
    }
}

.contacts-tabs {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 10rem;

    @media screen and (max-width: 767px) {
      margin-bottom: 8rem;
      flex-direction: column;
    }

    .tab {
        flex: 1;
        color: var(--primary-color);
        border: 1px solid currentColor;
        border-radius: 10px;
        background-color: #fff;
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer;
        padding: 3rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all .3s;

        @media screen and (max-width: 767px) {
          font-size: 1.6rem;
          padding: 1.5rem 2rem;
        }

        &:hover {
            opacity: .7;
        }

        &.active {
            background-color: var(--primary-color);
            color: #fff;
        }
    }
}

.sec-contacts {

    .content-box {

        .content-item {
            display: flex;
            flex-direction: column;
            gap: 6rem;

            .item-box {

                & h3 {
                    margin-bottom: 3rem;
                    line-height: 1.5;
                }

                .contact-details {

                    .detail-table {

                        & td {

                            & a {
                                text-decoration: underline;
                                color: var(--primary-color);
                                position: relative;

                                
                                &[target="_blank"] {
                                    @media screen and (max-width: 767px) {
                                      padding-right: 1rem;
                                    }

                                }

                                &[target="_blank"]::after {
                                    position: absolute;
                                    content: '';
                                    top: 0;
                                    right: -3rem;
                                    width: 2.5rem;
                                    height: 2.5rem;
                                    background-size: contain;
                                    background-repeat: no-repeat;
                                    background-image: url(../../common/img/icon_external_arrow.svg);

                                    @media screen and (max-width: 767px) {
                                      width: 2rem;
                                      height: 2rem;
                                      top: 0;
                                      right: -1rem;
                                    }

                                }
                            }
                        }

                        & th, & td {
                        @media screen and (max-width: 767px) {
                            width: 100% !important;
                            display: block !important;
                        }
                    }

                    & th {
                        @media screen and (max-width: 767px) {
                            padding: 1rem 2rem;
                        }
                    }
                    }
                }
            }
        }
    }
}