/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */




/* Css cho trang bài blog*/
.blog .ct-container > section{
    padding-top: 48px;
}

/* Nếu .ct-related-posts-container NẰM TRONG .site-main */

.single .site-main .ct-related-posts-container {  
    margin-left: -182px;
    margin-right: -182px;
    padding-left: 0;
    padding-right: 0;
}

.single .entry-header .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.single .entry-header .view__post {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* CSS cho page title trong single post */
.single .entry-header .page-title {
    text-transform: uppercase;
}

.single .entry-meta-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.single .entry-meta-wrapper .entry-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.single .entry-meta-wrapper .view__post {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #757575;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
}

.single .entry-meta-wrapper .entry-meta > *{
    margin: 0 !important;
}

.single .entry-meta-wrapper .entry-meta > * > a,
.single .entry-meta-wrapper .entry-meta  .meta-updated-date > time {
    color: #757575;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
}

.single .entry-meta-wrapper .entry-meta > * > svg{
    width: 24px;
    height: 24px;
}

.single .entry-meta-wrapper .entry-meta .meta-author::after,
.single .entry-meta-wrapper .entry-meta .meta-updated-date::after{
    content: "|";
    margin-left: 24px;
    color: #EEEEEE;
}


.single .entry-meta-wrapper .entry-meta .meta-categories > a{
    text-transform: none;
}

.blog .entry-content{
    margin-top: 48px;

}


/* Đổi chỗ ct-share-box và author-box */
.single article {
    display: flex;
    flex-direction: column;
}

.single .ct-share-box {
    order: 2;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.single .ct-share-box > span{
    margin: 0;
    align-items: center;
}

.single .ct-share-box .ct-icon-container{
    padding: 0px;
}

.single .author-box {
    order: 1;
    margin-top: 24px;
    margin-bottom: 24px;
}

.single .author-box .author-box-name::before {
    content: "Tác giả";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    display: block;
    margin-bottom: 4px;
}

.single .ct-comments{
    order: 3;
    margin-top:72px;
    padding-top: 0px;
    border-top: none;

}

.single .post-navigation {
    order: 4;
}


/* CSS cho mục lục tự động ez-toc */
.ez-toc-custom{
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
}

.ez-toc-list{ 
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* CSS cho các thẻ tag */
.single .entry-tags{
    margin-top: 24px;
}

.single .entry-tags .entry-tags-items > a {
    background-color: #FFFFFF;
    padding: 6px 12px;
    gap: 4px;
    border: 1px solid #F5F5F5;
    color: #616161;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
}

.single .entry-tags .entry-tags-items > a > span {
    font-size: 12px;
}

.single .ct-featured-image {
    padding: 0;
    margin-bottom: 24px;
}

.single .post-navigation{
    margin-top: 72px;
    margin-bottom: 72px;
}

.single .post-navigation figure {
    flex: 0px;
    height: 72px;
    max-width: 96px;
}

.single .post-navigation .nav-item-prev figure{
    margin-inline-end: 12px;
}

.single .post-navigation .nav-item-next figure{
    margin-inline-start: 12px;
}

.single .post-navigation .item-content{
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single .post-navigation::after{
    background: #EEEEEE;
}

.related-post-excerpt{
    color: #757575;
}

.single .ct-related-posts h3{
    margin-bottom: 48px;
}

.single .ct-comments-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #212121;
}

/* Comment form styling */
.single .comment-respond {
    margin-bottom: 32px;
}

.single .comment-respond .comment-reply-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.single .comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #EEEEEE;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.single .comment-form .form-submit button {
    background-color: #00897b;
    color: #FFFFFF;
    padding: 8px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* Comment list styling */
.single .ct-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single .ct-comment-list > li {
    margin-bottom: 16px;
}

/* Comment item */
.single .ct-comment-inner {
    padding: 0px;
    border: none;
    
}

/* Comment header/meta */
.single .ct-comment-meta {
    margin: 0;
    width: 32px !important;
    height: 32px !important;
    padding: 0;
}

.single .ct-comment-meta figure {
    flex-shrink: 0;
    margin: 0;
}


.single .ct-comment-meta > div {
    flex: 1;
}

.single .ct-comment-author {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.single .ct-comment-author cite {
    font-style: normal;
}

.single .ct-comment-author a {
    color: #212121;
    text-decoration: none;
}

/* Comment content */
.single .ct-comment-content {
    margin: 0px;
    padding: 0px;
    width: 100%;
}

.single .ct-comment-content p {
    color: #424242;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Comment meta data (actions) */
.single .ct-comment-meta-data {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #757575;
}

.single .ct-comment-meta-data a {
    color: #757575;
    text-transform: none;    
    font-size: 12px;
}

.single .ct-comment-meta-data time {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #BDBDBD;
}

/* Nested comments (replies) */
.single .ct-comment-list .children {
    list-style: none;
    margin-top: 16px;
}

.single .ct-comment-list .children > li {
    margin-bottom: 16px;
}


.toggle-replies {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--theme-link-color);
    cursor: pointer;
}

.toggle-replies:hover {
    text-decoration: underline;
}

/* Comment form toggle */
#respond {
    display: none;
}

.single .comment-toggle-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.single .comment-toggle-btn {
    background: #0a7c7b;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.single .comment-toggle-btn:hover {
    opacity: 0.9;
}

.single .ct-comments-title-wrapper{
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
}

.single .ct-comment-inner{
    display: flex;
    flex-direction: row;
    gap:12px;
}

.single .ct-comment-meta-data {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #757575;
    flex-direction: row-reverse;
}


.single .comment-reply-link{
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #757575;
}

.ct-comment-meta-data .comment-like{
  display:inline-flex;align-items:center;gap:6px;
}

.ct-comment-meta-data .comment-like-btn{
    width: 24px;
    height: 24px;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;border:0;padding:0;margin:0;
  cursor:pointer;line-height:0;
  display:inline-flex;align-items:center;
}

.ct-comment-meta-data .comment-like-btn:disabled{
  opacity:1; /* vẫn rõ */
}

.ct-comment-meta-data .comment-like-icon{
  display:inline-block;
    width:18.06px;
    height:17.50px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("/wp-content/themes/blocksy-child/assets/icons/like.svg");
}

/* Khi đã like: đổi icon (màu) */
.ct-comment-meta-data .comment-like-btn.is-liked .comment-like-icon{
  background-image:url("/wp-content/themes/blocksy-child/assets/icons/liked.svg");
}

.ct-comment-meta-data .comment-like-count{
  line-height:1;
}

.single .comment-reply-like-wrapper{
    display: flex;
    flex-direction: row;
    gap: 48px;
}

/* ========================================
   TOGGLE REPLIES BUTTON
   ======================================== */
.comment-toggle-replies {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: none;
  color: #9E9E9E;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-toggle-replies:hover {
  color: #616161;
}

.comment-toggle-replies .toggle-icon {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.comment-toggle-replies[aria-expanded="false"] .toggle-icon {
}

.comment-toggle-replies .toggle-text {
  font-weight: 400;
  color: inherit;
}

/* Children comments spacing */
.ct-comment-list .children {
    padding-left: 16px;
    margin-left: 24px;
  border-left: 2px solid #F5F5F5;
}

.custom-button{
    min-height: 24px !important;
    
}

.custom-slider-category{
    position: sticky !important;
    top: 80px;
    z-index: 100;
    background-color: #FFFFFF;
}

/* Khi đăng nhập admin */
.admin-bar .custom-slider-category{
    top: 112px; /* 80px + 32px */
}


/* Active state cho slider button */
.custom-slider-category .swiper-slide-tab-active .gspb-buttonbox,
.custom-slider-category .swiper-slide.tab-active .gspb-buttonbox {
    background-color: #067A7E !important;
    color: #FFFFFF !important;
}

.custom-slider-category .swiper-slide.tab-active .gspb-buttonbox-title {
    color: #FFFFFF !important;
}


.single-tuyen_dung .ct-comments-container {
    /* Tùy chỉnh hoặc ẩn */
}

.single-tuyen_dung .ct-comments-container .ct-container {
    padding: 0;
}

.td-cards { 
    display: grid; gap: 16px; 
    padding: 48px;
    gap: 48px;

}

.td-card { 
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    
}
.td-card__content{
    display: flex;
    flex-direction: column;
    width: 100% ;
}
.td-card__footer{
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.td-card__logo{
    display: flex;
    width: auto;
    justify-content: center;
    align-items: center;
    object-fit: contain;  
    max-width: 120px            ;
}

.td-card__title { color: #212121;  }
.td-card__badges { display: flex; flex-wrap: wrap; gap: 16px; }
.td-card__deadline { display: flex; gap: 6px; color: #555; }

.outer-line {
    width: 100%;
    height: 1px;
    background-color: #000000;
    opacity: 5%;
}

/* Ẩn đường line cuối cùng (không cần sau item cuối) */
.td-cards .outer-line:last-child {
    display: none;
}


.td-card__deadline-date{
    color: #067A7E;
}

.custom-tuyendung-title{
    font-weight: 700;
    font-size: 32px;
    color: #212121;
    text-transform: uppercase;
    line-height: 1.25;
    margin-top: 6px;
    margin-bottom: 8px;
}
.custom-breadcrumb{
    text-transform: capitalize;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}
.td-card__badges .td-badge{
    display: flex;
    gap: 4px;
}

.td-card__badges img{
    max-width: 16px;
}

.td-pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.td-pagination .page-numbers{
    padding:8px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9E9E;
}

.td-pagination .current{
    border: 1px solid #212121;
    color: #212121;
}



/* Container chính */
.td-single-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Phần top chứa badges và deadline */
.td-single-info__top {
    display: flex;
    justify-content: space-between;
}

/* Container badges */
.td-single-info__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* Mỗi badge */
.td-single-info .td-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #00a19a;
    font-size: 14px;
}

/* Icon trong badge */
.td-single-info .td-badge img {
    width: 16px;
    height: 16px;
}

/* Hạn nộp */
.td-single-info__deadline {
    color: #757575;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.td-single-info__deadline span {
    color: #067A7E;
}

/* Logo công ty */
.td-single-info__logo {
    max-width: 150px;
}

.td-single-info__logo img {
    max-width: 100%;
    height: auto;
}





/* Responsive */
@media (max-width: 768px) {


    .site-main {  
        padding-top: 0px ;
    }

    .td-single-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .td-single-info__logo {
        order: -1;
    }

    .custom-tuyendung-title{
        font-weight: 700;
        font-size: 26px;
        color: #212121;
        text-transform: uppercase;
        line-height: 1.5;
    }
    .custom-breadcrumb{
        text-transform: capitalize;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.45;
    }
       
    .td-cards { 
        display: grid; gap: 16px; 
        padding: 15px;
        gap: 14px;

    }

    .td-card { 
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 14px;
        
    }
    .td-card__content{
        display: flex;
        flex-direction: column;
        width: 100% ;
    }
    .td-card__footer{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 12px;
    }

    .td-card__logo{
        display: flex;
        width: auto;
        justify-content: center;
        align-items: center;
        object-fit: contain;  
        max-width: 120px            ;
    }

    .td-card__title { color: #212121;  }
    .td-card__badges { display: flex; flex-wrap: wrap; gap: 16px; }
    .td-card__deadline { display: flex; gap: 6px; color: #555; }

    .outer-line {
        width: 100%;
        height: 1px;
        background-color: #000000;
        opacity: 5%;
    }

    /* Ẩn đường line cuối cùng (không cần sau item cuối) */
    .td-cards .outer-line:last-child {
        display: none;
    }

    .td-card__deadline-date{
        color: #067A7E;
    }

    .custom-tuyendung-title{
        font-weight: 700;
        font-size: 32px;
        color: #212121;
        text-transform: uppercase;
        line-height: 1.25;
        margin-top: 6px;
        margin-bottom: 8px;
    }
    .custom-breadcrumb{
        text-transform: capitalize;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.45;
    }
    .td-card__badges .td-badge{
        display: flex;
        gap: 4px;
    }
    .td-card__badges .td-badge > span{
        font-size: 14p;
    }

    .td-card__badges img{
        max-width: 16px;
    }
    .custom-slider-category{
        position: sticky !important;
        top: 80px;
        z-index: 100;
        background-color: #FFFFFF;
    }

    /* Khi đăng nhập admin */
    .admin-bar .custom-slider-category{
        top: 80px; /* 80px + 32px */
    }

}

@media (max-width: 480px) {

    .single .site-main{
        padding: 0px 15px 48px 15px ;
    }
 
    .site-main {  
        padding-top: 0px;
    }

    .single .entry-meta-wrapper {
        gap: 5px;
    }

    .single .entry-meta-wrapper .entry-meta  .meta-author .ct-media-container-static > img{
        width: 20px;
        height: 20px !important;
    }

    .single .entry-meta-wrapper .entry-meta .meta-author::after,
    .single .entry-meta-wrapper .entry-meta .meta-updated-date::after {
        display: none;
    }

    .single .entry-meta-wrapper .entry-meta > * > a,
    .single .entry-meta-wrapper .entry-meta .meta-updated-date > time,
    .single .entry-meta-wrapper .view__post {
        font-size: 12px;
    }

    .single .entry-meta-wrapper .entry-meta > * > svg {
        width: 16px;
        height: 16px;
    }

    .single .entry-meta-wrapper .view__post {
        width: 100%;
        justify-content: flex-start;
    }

    .reverse-container .gspb_row__content{
        flex-direction: column-reverse;
    }
    .blog .ct-container > section{
        padding-top: 0px;
    }

    .custom-tuyendung-title{
        font-weight: 700;
        font-size: 26px;
        color: #212121;
        text-transform: uppercase;
        line-height: 1.5;
    }
    .custom-breadcrumb{
        text-transform: capitalize;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.45;
    }
    .custom-slider-category{
        position: sticky !important;
        top: 80px;
        z-index: 100;
        background-color: #FFFFFF;
    }

    /* Khi đăng nhập admin */
    .admin-bar .custom-slider-category{
        top: 80px; /* 80px + 32px */
    }
        
    .td-cards { 
        display: grid; gap: 16px; 
        padding: 15px;
        gap: 14px;

    }

    .td-card { 
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 14px;
        
    }
    .td-card__content{
        display: flex;
        flex-direction: column;
        width: 100% ;
    }
    .td-card__footer{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 12px;
    }

    .td-card__logo{
        display: flex;
        width: auto;
        justify-content: center;
        align-items: center;
        object-fit: contain;  
        max-width: 120px            ;
    }

    .td-card__title { color: #212121;  }
    .td-card__badges { display: flex; flex-wrap: wrap; gap: 16px; }
    .td-card__deadline { display: flex; gap: 6px; color: #555; }

    .outer-line {
        width: 100%;
        height: 1px;
        background-color: #000000;
        opacity: 5%;
    }

    /* Ẩn đường line cuối cùng (không cần sau item cuối) */
    .td-cards .outer-line:last-child {
        display: none;
    }

    .td-card__deadline-date{
        color: #067A7E;
    }

    .custom-tuyendung-title{
        font-weight: 700;
        font-size: 32px;
        color: #212121;
        text-transform: uppercase;
        line-height: 1.25;
        margin-top: 6px;
        margin-bottom: 8px;
    }
    .custom-breadcrumb{
        text-transform: capitalize;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.45;
    }
    .td-card__badges .td-badge{
        display: flex;
        gap: 4px;
    }
    .td-card__badges .td-badge > span{
        font-size: 14p;
    }

    .td-card__badges img{
        max-width: 16px;
    }



}/* Thêm vào style.css */
