﻿.row-coach {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

#top1 {
    justify-content: space-between;
}

#tab-area {
    text-align: left;
}

#tab-selected .tab-title-text > a.border-line {
    height: 45px;
    padding-top: 12px;
    vertical-align: top;
    font-family: "Krungsri-condensed-bold";
    font-size: 16px;
    line-height: 24px;
    color: #5A5A5A;
}

#tab-selected .tab-title-text > a.border-line.active {
    color: #222222;
}

#tab-selected .tab-title-text > a.border-line:hover {
    color: #222222;
}

.tab-title-text {
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tab-title-text > a.border-line {
    font-family: Krungsri-Condensed-Medium;
    font-size: 20px;
    color: #5a5a5a;
    line-height: 30px;
    height: 78px;
    display: table-cell;
    vertical-align: middle;
}

.tab-title-text > a.border-line.active {
    font-family: Krungsri-Condensed-Bold;
    font-size: 20px;
    margin-right: 48px;
    margin-top: 24px;
    margin-bottom: 24px;
    color: #222;
    line-height: 30px;
    height: 78px;
    display: table-cell;
    vertical-align: middle;
}

.tab-title-text:hover > a:after {
    transform: translate3d(100%,0,0);
}

.tab-title-text > a.active:after {
    transform: translate3d(100%,0,0);
}

.tab-title-text > a {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.tab-title-text > a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: #ffd400;
    transition: .3s cubic-bezier(.445,.05,.55,.95);
}

.tab-title-text > a:hover {
    background: transparent;
}

@media(max-width: 1199px) {
    .tab-title-text:first-child {
        padding-left: 24px;
    }

    .tab-title-text:last-child {
        padding-right: 24px;
    }
}

.tab-title-text {
    position: relative;
}

.tab-title-text > a.active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: #ffd400;
}

.tab-title-text:nth-child(2) .tab-scoll,
.tab-title-text:nth-child(3) .tab-scoll,
.tab-title-text:nth-child(4) .tab-scoll,
.tab-title-text:nth-child(5) .tab-scoll,
.tab-title-text:nth-child(6) .tab-scoll {
    cursor: default;
}

.pm-004 {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

@media screen and (max-width: 768px) {
    .pm-004 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .pm-004 .swiper .tab-title-text {
        padding: 0;
        white-space: nowrap;
        margin:0;
    }

    .pm-004 .swiper-slide {
        width: auto !important;
    }

    .pm-004 .swiper-wrapper .swiper-slide:last-child {
        margin-right: 0 !important;
    }

    .pm-004 #tab-selected .tab-title-text > a.border-line {
        font-family: Krungsri-Condensed-Medium;
        line-height: 30px;
        display: table-cell;
        vertical-align: middle;
    }

    .pm-004 #tab-selected .tab-title-text > a.border-line.active {
        font-family: Krungsri-Condensed-Bold;
        color: #222222;
    }
}
