/* Bootstrap grid is used for responsive columns */

/* Video styling for trainer items */
.trainer-thumb .kato-team-video {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: opacity 0.4s ease-in-out;
    background-color: transparent; /* Ensure background is transparent */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Ensure video is above the background but below the overlay */
}

/* Ensure the trainer-thumb has proper positioning for the video */
.trainer-item .trainer-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* maintain portrait aspect ratio */
}

/* Ensure the trainer-overlay is above the video */
.trainer-thumb .trainer-overlay {
    z-index: 2;
}

/* Contact button styling */
.trainer-thumb .share-area .social-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .trainer-thumb .kato-team-video { animation: none; }
}

.trainer-item {
    transition: all 0.5s;
}
.trainer-item:hover {
    transform: translateY(-30px) !important;
}
@media only screen and (max-width: 991px) {
    .trainer-item:hover {
        transform: translateY(-15px) !important;
    }
}
.trainer-item:hover .trainer-thumb::before {
    opacity: 1;
    visibility: visible;
}
.trainer-item:hover .trainer-content {
    transform: translateY(-7px);
}
.trainer-item:hover .trainer-thumb {
    border-radius: 0;
}
.trainer-item:hover .trainer-thumb::before {
    border-radius: 0;
}
.trainer-item:hover .trainer-thumb .trainer-overlay {
    border-radius: 0;
}

.trainer-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    transition: border-radius 0.5s ease;
}
.trainer-thumb img {
    width: 100%;
    overflow: hidden;
    transition: all 0.5s;
}
.trainer-thumb::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #e80000;
    border-radius: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s, border-radius 0.5s ease;
}
.trainer-thumb .trainer-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    border-radius: 40px;
    transition: all 0.5s, border-radius 0.5s ease;
    height: 100%;
    width: 100%;
    align-items: flex-start;
    justify-content: flex-end;
}
.trainer-thumb .trainer-overlay .share-area:hover .social-list {
    opacity: 1;
    visibility: visible;
    height: auto;
}
.trainer-thumb .trainer-overlay .share-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    background-color: #e80000;
    color: white;
    border-radius: 50%;
    cursor: pointer;
}
.trainer-thumb .trainer-overlay .social-list {
    position: absolute;
    top: 0;
    opacity: 0;
    visibility: hidden;
    height: 0;
    transition: all 0.5s;
}
.trainer-thumb .trainer-overlay .social-list li a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    background-color: white;
    color: #e80000;
    border-radius: 50%;
    transition: all 0.3s;
}
.trainer-thumb .trainer-overlay .social-list li a:hover {
    background-color: #e80000;
    color: white;
}
.trainer-thumb .trainer-overlay .social-list li + li {
    margin-top: 5px;
}

@media only screen and (max-width: 991px) {
    .all-btn {
        margin-top: 40px;
    }
}

.trainer-content {
    padding-top: 25px;
    text-align: center;
    transition: all 0.5s;
}
@media only screen and (max-width: 991px) {
    .trainer-content {
        opacity: 1;
        visibility: visible;
    }
}
.trainer-content .title {
    color: black !important;
    font-weight: 700;
    font-style: italic;
}
.trainer-content .title a {
    transition: all 0.5s;
}
.trainer-content .title a:hover {
    color: #e80000;
}
.trainer-content .sub-title {
    /*color: white;*/
}

.trainer-slider {
    overflow: hidden;
}

.custom-pagination {
    width: 80% !important;
    margin: 0 auto;
    height: 1px !important;
    overflow: hidden;
    position: relative;
    margin-top: 60px;
    background: white;
}
@media only screen and (max-width: 767px) {
    .custom-pagination {
        width: 100% !important;
    }
}

.custom-pagination .swiper-pagination-progressbar-fill {
    background: #e80000 !important;
}

.trainer-section-two {
    position: relative;
}
.trainer-section-two .trainer-element-one {
    position: absolute;
    top: 0;
    right: 0;
}
.trainer-section-two .trainer-element-two {
    position: absolute;
    bottom: 0;
    left: 0;
}
.trainer-section-two .slider-next, .trainer-section-two .slider-prev {
    position: absolute;
    bottom: -25px;
}
.trainer-section-two .slider-next:hover, .trainer-section-two .slider-prev:hover {
    background-color: #e80000;
    color: white;
}
@media only screen and (max-width: 767px) {
    .trainer-section-two .slider-next, .trainer-section-two .slider-prev {
        display: none;
    }
}
.trainer-section-two .slider-next {
    right: 0;
}
.trainer-section-two .trainer-thumb {
    border-radius: 0;
}
.trainer-section-two .trainer-thumb::before {
    border: 20px solid #e80000;
    border-radius: 0;
    z-index: 2;
}
.trainer-section-two .trainer-thumb::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}
.trainer-section-two .trainer-thumb .trainer-overlay {
    z-index: 9;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: end;
    padding: 80px 20px;
    width: 100%;
    height: 100%;
}
@media only screen and (max-width: 991px) {
    .trainer-section-two .trainer-thumb .trainer-overlay .trainer-content {
        opacity: 0;
        visibility: hidden;
    }
}
.trainer-section-two .trainer-thumb .trainer-overlay .trainer-content .title {
    font-size: 22px;
}
.trainer-section-two .trainer-thumb .trainer-overlay .trainer-content .sub-title {
    font-size: 14px;
}
.trainer-section-two .trainer-item:hover {
    transform: none !important;
}
.trainer-section-two .trainer-item:hover .trainer-thumb img {
    transform: scale(1.2);
}
.trainer-section-two .trainer-item:hover .trainer-thumb::after {
    opacity: 0.7;
    visibility: visible;
}
.trainer-section-two .trainer-item:hover .trainer-content {
    opacity: 1;
    visibility: visible;
}
@media only screen and (max-width: 991px) {
    .trainer-section-two .trainer-item:hover .trainer-content {
        opacity: 1;
        visibility: visible;
    }
}
.trainer-section-two .trainer-content {
    opacity: 0;
    visibility: hidden;
}
.trainer-section-two .custom-btn {
    position: relative;
    padding-right: 30px;
    transition: all 0.3s;
}
.trainer-section-two .custom-btn::after {
    position: absolute;
    content: '';
    top: 10px;
    right: 0;
    width: 20px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}
.trainer-section-two .custom-btn:hover {
    color: #e80000;
}
.trainer-section-two .custom-btn:hover::after {
    background-color: #e80000;
}

.trainer-section--style div[class*="col"]:nth-of-type(4n + 2) .trainer-item {
    margin-top: 0;
}
.trainer-section--style div[class*="col"]:nth-of-type(4n + 4) .trainer-item {
    margin-top: 0;
}
.trainer-section--style .trainer-item:hover {
    transform: translateY(-30px) !important;
}
.trainer-section--style .trainer-content {
    opacity: 1;
    visibility: visible;
}
.trainer-section--style .all-btn {
    margin-top: 60px;
}

.trainer-section--style-two .trainer-content .title {
    color: black;
}
.trainer-section--style-two .trainer-content .sub-title {
    color: black;
    font-weight: 500;
}

.trainer-section--style-three {
    background-color: #F8F9FF;
}
.trainer-section--style-three .trainer-slider-two {
    overflow: hidden;
}
.trainer-section--style-three .trainer-item:hover {
    transform: none !important;
}

.trainer-details-section {
    position: relative;
}
.trainer-details-section .trainer-details-element-one {
    position: absolute;
    top: 30%;
    left: 0;
    width: 20%;
}
@media only screen and (max-width: 1199px) {
    .trainer-details-section .trainer-details-element-one {
        display: none;
    }
}
.trainer-details-section .trainer-details-element-two {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20%;
}
@media only screen and (max-width: 1199px) {
    .trainer-details-section .trainer-details-element-two {
        display: none;
    }
}
.trainer-details-section .about-thumb img {
    width: 100%;
}
.trainer-details-section .trainer-about-header .title {
    font-weight: 700;
    font-style: italic;
}
.trainer-details-section .trainer-about-header .sub-title {
    color: #e80000;
    font-weight: 500;
}
.trainer-details-section .trainer-about-header .ratings {
    margin-top: 15px;
}
.trainer-details-section .trainer-about-header .ratings i {
    color: #e80000;
    margin-right: 5px;
}
.trainer-details-section .trainer-about-body {
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-top: 1px dashed rgba(232, 0, 0, 0.2);
    border-bottom: 1px dashed rgba(232, 0, 0, 0.2);
}
.trainer-details-section .trainer-about-list li {
    font-size: 20px;
    font-weight: 500;
    font-family: "Kanit", sans-serif;
    color: black;
    padding-bottom: 25px;
}
@media only screen and (max-width: 991px) {
    .trainer-details-section .trainer-about-list li {
        font-size: 16px;
    }
}
.trainer-details-section .trainer-about-list li span {
    padding-left: 15px;
}
.trainer-details-section .trainer-about-social-area {
    border-top: 1px dashed rgba(232, 0, 0, 0.2);
    padding-top: 20px;
}
.trainer-details-section .trainer-about-social li {
    display: inline-block;
}
.trainer-details-section .trainer-about-social li a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    display: inline-block;
    text-align: center;
    border: 1px solid #8A8A8A;
    border-radius: 50%;
    color: #8A8A8A;
    transition: all 0.3s;
}
.trainer-details-section .trainer-about-social li a:hover {
    background-color: #e80000;
    border: 1px solid #e80000;
    color: white;
}
.trainer-details-section .trainer-about-social li + li {
    margin-left: 5px;
}
.trainer-details-section .widget-title {
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 700;
}
.trainer-details-section .widget-title span {
    color: #e80000;
}
.trainer-details-section .about-widget-area {
    margin-top: 60px;
}
.trainer-details-section .about-widget-area .about-widget-thumb {
    position: relative;
    margin-top: 30px;
}
.trainer-details-section .about-widget-area .about-widget-thumb .about-widget-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.trainer-details-section .skill-widget-area {
    margin-top: 60px;
}
.trainer-details-section .skill-widget-area .choose-item {
    background-color: white;
    border: 2px solid rgba(232, 0, 0, 0.2);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.5s;
}
.trainer-details-section .skill-widget-area .choose-item::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 15px 30px rgba(232, 0, 0, 0.15);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}
.trainer-details-section .skill-widget-area .choose-item:hover {
    border: 2px solid white;
}
.trainer-details-section .skill-widget-area .choose-item:hover::before {
    opacity: 1;
    visibility: visible;
}
.trainer-details-section .skill-widget-area .choose-item .chart::before {
    display: none;
}
.trainer-details-section .skill-widget-area .choose-item .chart span {
    color: black;
}
.trainer-details-section .skill-widget-area .choose-item .title {
    color: black;
    font-style: normal;
    color: #e80000;
    font-weight: 700;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
}
.trainer-details-section .experience-widget-area {
    margin-top: 60px;
}
.trainer-details-section .experience-widget-area .statistics-area {
    margin-top: 30px;
}
.trainer-details-section .experience-widget-area .statistics-area .odo-title {
    color: #e80000;
    font-size: 40px;
}
.trainer-details-section .experience-widget-area .statistics-area .statistics-item::after {
    bottom: 15px;
    height: 50%;
    border-right: 1px dashed #858585;
}
@media only screen and (max-width: 991px) {
    .trainer-details-section .experience-widget-area .statistics-area .statistics-item::after {
        border-right: none;
        border-bottom: 1px dashed #858585;
        bottom: -22px;
    }
}
@media only screen and (max-width: 1199px) {
    .trainer-details-section .experience-widget-area div[class*="col"]:nth-of-type(4n + 2) .statistics-item::after {
        display: none;
    }
}
@media only screen and (max-width: 991px) {
    .trainer-details-section .experience-widget-area div[class*="col"]:nth-of-type(4n + 2) .statistics-item::after {
        display: block;
    }
}
.trainer-details-section .experience-widget-area div[class*="col"]:nth-of-type(4n + 3) .statistics-item::after {
    display: block;
}
@media only screen and (max-width: 991px) {
    .trainer-details-section .experience-widget-area div[class*="col"]:nth-of-type(4n + 3) .statistics-item::after {
        display: none;
    }
}
@media only screen and (max-width: 575px) {
    .trainer-details-section .experience-widget-area div[class*="col"]:nth-of-type(4n + 3) .statistics-item::after {
        display: block;
    }
}
.trainer-details-section .experience-widget-area div[class*="col"]:nth-of-type(4n + 4) .statistics-item::after {
    display: none;
}
