/*
Theme Name: Findme
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/


html { scroll-behavior: smooth; }
b, strong { font-weight: bold !important; }
.color-primary {
  color: var(--fs-color-primary);
}
.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.pb-10 {
    padding-bottom: 10px !important;
}
.pb-20 {
    padding-bottom: 20px !important;
}
.pb-30 {
    padding-bottom: 30px !important;
}
.pb-40 {
    padding-bottom: 40px !important;
}
.fw-500 {
  font-weight: 500 !important;
}
.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}
.order-3 {
  order: 3;
}

.col.full-height > .col-inner {
  height: 100%;
}

.select-resize-ghost, .select2-container .select2-choice, .select2-container .select2-selection, input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
  box-shadow: none;
  outline: none;
  width: 100%;
  padding: 0 15px;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.3s;
  height: 45px;
  line-height: initial;
  color: var(--text);
}
textarea {
  padding: 12px 15px;
}
input[type=email]:focus, input[type=number]:focus, input[type=password]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=text]:focus, select:focus, textarea:focus {
  box-shadow: none;
  border-color: var(--blue);
}
.giaovien-khoahoc-box .course-excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.view-gv-detail.button.is-outline {
    min-height: unset;
    letter-spacing: 0;
    line-height: normal;
    width: 100%;
    border-width: 1px;
    font-weight: 500;
}

/* ===== SMALL (MOBILE) ===== */
@media (max-width: 549px) {
  /* Display */
  .hide-sm { display: none !important; }
  .block-sm { display: block !important; }
  .flex-sm { display: flex !important; }

  /* Spacing */
  .pt-sm-0 { padding-top: 0 !important; }
  .pb-sm-0 { padding-bottom: 0 !important; }
  .mt-sm-0 { margin-top: 0 !important; }
  .mb-sm-0 { margin-bottom: 0 !important; }

  /* Text */
  .text-sm-left { text-align: left !important; }
  .text-sm-center { text-align: center !important; }
  .text-sm-right { text-align: right !important; }
  .order-sm-1 {
    order: 1;
  }
  .order-sm-2 {
    order: 2;
  }
  .order-sm-3 {
    order: 3;
  }
  .py-sm-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .px-sm-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ===== MEDIUM (TABLET) ===== */
@media (min-width: 550px) and (max-width: 849px) {
  .hide-md { display: none !important; }
  .block-md { display: block !important; }
  .flex-md { display: flex !important; }

  .pt-md-0 { padding-top: 0 !important; }
  .pb-md-0 { padding-bottom: 0 !important; }
  .mt-md-0 { margin-top: 0 !important; }
  .mb-md-0 { margin-bottom: 0 !important; }

  .text-md-left { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-right { text-align: right !important; }
  
  .order-md-1 {
    order: 1;
  }
  .order-md-2 {
    order: 2;
  }
  .order-md-3 {
    order: 3;
  }
  .py-md-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .px-md-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ===== LARGE (DESKTOP) ===== */
@media (min-width: 850px) {
  .order-lg-1 {
    order: 1;
  }
  .order-lg-2 {
    order: 2;
  }
  .order-lg-3 {
    order: 3;
  }
  .hide-lg { display: none !important; }
  .block-lg { display: block !important; }
  .flex-lg { display: flex !important; }

  .pt-lg-0 { padding-top: 0 !important; }
  .pb-lg-0 { padding-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  .mb-lg-0 { margin-bottom: 0 !important; } 

  .text-lg-left { text-align: left !important; }
  .text-lg-center { text-align: center !important; }
  .text-lg-right { text-align: right !important; }
  .py-lg-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .px-lg-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.overflow-hidden { overflow: hidden; }
.col, .columns, .gallery-item {
    padding: 0 12px 24px;
}

.doingugiaovien-row1 > .col-inner {
	box-shadow: rgba(0, 0, 0, 0.04) 0px 10px 20px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.04) 0px 0px 1px;
	margin-top: -11%;
}
.gv-wrapper {
    display: flex;
    gap: 48px;
}

.gv-left {
    width: 35%;
    border-right: 1px solid #eee;
    padding: 0 24px 0 0;
}

.gv-right {
    width: 65%;
}

.gv-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gv-item {
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s;
    opacity: .7;
    height: 100%;
}
.gv-item p {
    font-weight: 500;
    line-height: 1.4;
}
.gv-item.active {
    border-color: var(--fs-color-primary);
    background: #fff2f0;
    opacity: 1;
}
.gv-item.active p {
    color: var(--fs-color-primary);
}
.gv-item img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.gv-pagination {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.gv-pagination.hidden { display: none !important; }
.gv-pagination button {
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    margin: 0 !important;
    border: none;
    min-height: unset;
    line-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgb(244, 244, 246);
    font-weight: 400;
    font-size: 13px;
}
.gv-pagination .gv-pages {
    display: flex;
    gap: 8px;
}
.gv-pagination .active {
    background: #ff4d4f;
    color: #fff;
}
.gv-repeater-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}
.gv-repeater-item {
    display: flex;
    gap:  8px;
}
.repeater-item-icon {
    width: 24px;
}
.gv-desc {
    font-size: 14px;
}
.gv-highlight {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--fs-color-primary);
    font-weight: 500;
}
.gv-itemlist {
    margin-top: 14px;
    color: rgb(80, 84, 96)
}
.gv-name {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}
.gv-desc {
    color: rgb(80, 84, 96);
}
.gv-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Video List Layout --- */
.video-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

.video-item {
    cursor: pointer;
    text-align: left;
    overflow: hidden;
}
.video-item.hidden-video {
    display: none;
}

.video-thumbnail-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Tỉ lệ 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Biểu tượng Play */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    margin-left: 5px;
}

.video-item:hover .play-icon {
    background: #ff0000; /* Màu đỏ YouTube */
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3em;
    margin-top: 12px;
}

/* --- Modal/Popup Styles --- */
.video-modal-acf {
    display: none; 
    position: fixed;
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.95);
}

.video-modal-content-acf {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 960px; 
    padding: 0;
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
}

.close-modal-acf {
    color: #fff;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}
.close-modal-acf:hover {
    color: #ccc;
}

.video-iframe-container-acf {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Tỉ lệ 16:9 */
    height: 0;
    background-color: #000;
}

.video-iframe-container-acf iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Kiểu dáng nút "Hiển thị tất cả" */
.video-list-footer {
    text-align: center;
    margin-top: 24px;
}

.show-more-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block; 
}

.show-more-button:hover {
    background-color: #e0e0e0;
    border-color: #aaa;
}
.gv-list-carousel .splide__slide {
    width: 180px;
}
.gv-list-carousel {
    display: none;
}

/* Container lưới 3 cột */
.tt-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cột */
    gap: 24px;
}

/* Style cho từng thẻ học viên */
.tt-item {
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    /* Giả lập style thẻ */
}

/* Phần ảnh đại diện */
.tt-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.tt-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icon góc trên ảnh */
.tt-icon-cert {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Phần thông tin bên dưới */
.tt-info {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tt-name {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.tt-school {
    color: rgb(80, 84, 96);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

/* Phần điểm số */
.tt-score-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tt-point {
    font-size: 40px;
    font-weight: 500;
    color: var(--fs-color-primary);
    line-height: 1;
}

.tt-label {
    color: rgb(122, 134, 154);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
}

/* --- CSS CHO POPUP (MODAL) --- */
.tt-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(196, 196, 196, 0.7); /* Nền đen mờ */
    align-items: center;
    justify-content: center;
}

.tt-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 600px; /* Chiều rộng tối đa popup */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    animation: animatetop 0.4s;
    padding: 12px;
}

@keyframes animatetop {
    from {top: -50px; opacity: 0}
    to {top: 0; opacity: 1}
}

.tt-modal-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 8px 8px; /* Bo góc dưới nếu cần */
}

/* Nút đóng X */
.tt-close {
    color: #333;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(255,255,255,0.8);
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.tt-close:hover,
.tt-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.tt-popup-info {
    margin-top: 12px;
}
.tt-load-more-container {
    margin-top: 24px;
}

/** HOME **/
.home-banner .banner-layer { max-width: 100% !important; }
.home-banner .banner-text ul li { margin: 0; }

.footer-follow-us img {
	height: 26px;
	width: auto
}
.footer-follow-us.size-large img {
	height: 36px;
	width: auto
}
.block-taisaochon__content ul li:before {
	flex-shrink: 0;
}
.phanhoihocvien-slider img {
    object-position: top;
}
@media (max-width: 1024px) {
    .gv-wrapper {
        gap: 24px;
    }
    .gv-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 849px) {
    .doingugiaovien-row1 > .col-inner {
    	box-shadow: rgba(0, 0, 0, 0.04) 0px 10px 20px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.04) 0px 0px 1px;
    	margin-top: 0;
    }
    .section.doingu-section2 {
        padding: 50px 0 !important;
    }
    .tt-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .video-list-container { grid-template-columns: repeat(2, 1fr); }
    .gv-wrapper { flex-direction: column; }
    .gv-wrapper > * { width: 100%; }
    .gv-wrapper .gv-left { order: 1; padding: 0; border: none; }
    .gv-pagination { display: none !important; }
    .gv-list { display: none; }
    .gv-list-carousel { display: block; }
}
@media (max-width: 549px) {
    .gv-item { padding: 8px; }
    .gv-item p { font-size: 14px; }
    .gv-list-carousel .splide__slide { width: 160px; }
    .video-modal-content-acf { padding: 12px; }
    
    .tt-grid-container { grid-template-columns: repeat(1, 1fr); }
}
@media (max-width: 425px) {
    .video-list-container {
        grid-template-columns: repeat(1, 1fr);
    }
    
}