/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
:root {
    --main-color: #1b1b1b;

}

body {

    color: #dadada;
    font-family: arial, sans-serif;
    font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #dadada;
}

#main,
#wrapper,
#masthead,
#wide-nav,
#main {
    background: var(--main-color) !important;
}

.header-bottom {
    background: transparent;
}

#masthead>.header-inner,
#wide-nav>.container,
#content>.row {
    margin: 0 auto;
    position: relative;
    max-width: 1140px !important;
    border-left: 1px solid #2b2b2b;
    border-right: 1px solid #2b2b2b;
}

#wide-nav>.container {
    border-top: 2px solid #2b2b2b !important;
    border-bottom: 2px solid #2b2b2b !important;
}

#wide-nav>.container>.flex-col,
#wide-nav>.container>.flex-col>ul {
    max-width: 100%;
    width: 100%;
}

#wide-nav>.container>.flex-col>ul {
    justify-content: flex-start !important;
    padding-top: 10px;
    padding-bottom: 10px;
}

#wide-nav>.container>.flex-col>ul>li {
    margin: 0 !important;
}

#wide-nav>.container>.flex-col>ul>li>a {
    text-align: center;
    padding: 5px 10px;
    line-height: 20px;
    margin-right: 5px;
    margin-top: 5px;
    background: #2b2b2b;
    color: #dadada;
    border-radius: 4px;
}

#wide-nav>.container>.flex-col>ul>li.active>a,
#wide-nav>.container>.flex-col>ul>li:hover>a {
    background: rgba(234, 67, 53, 0.6);
    color: rgb(218, 218, 218);
}

.section>.section-content>.row {
    margin: 0 auto;
    position: relative;
    max-width: 1140px !important;
    border-left: 1px solid #2b2b2b;
    border-right: 1px solid #2b2b2b;
}

.ss-search-box>.section-content>.row {
    border-bottom: 2px solid #2b2b2b;
    padding: 15px;
}

.section-title-container {
    margin: 0 !important;
}

.section-title-container>.section-title,
.section-title-normal span {
    border: none !important;
    margin: 0 !important;
}

.section-title-normal span {
    font-size: 16px;
    font-weight: 500;
    margin: 5px;
}

#search-box {
    margin: 5px;
}

#search-box>.search {
    width: 100%;
    max-width: 300px;
    float: right;
    border: 1px solid #2b2b2b;
    display: flex;
    overflow: hidden;
    margin-bottom: 0 !important;
}

span.icon-search {
    display: inline-flex;
    background: #1b1b1b;
    padding: 0.3rem;
    margin-top: 1px;
    color: #dadada;
    opacity: .6;
    position: relative;
}

.search .searchTxt,
.search .searchTxt:focus {
    width: 100%;
    background: #1b1b1b;
    padding: 5px;
    color: #dadada;
    font-size: 14px;
    outline: 0;
    border: 0;
    border-collapse: separate;
    -webkit-appearance: none;
    height: unset !important;
    margin: 0 !important;
    min-height: 26px !important;
    line-height: 1 !important;
}

.search .searchBtn {
    background: none repeat scroll 0 0 rgba(234, 67, 53, .6);
    color: #dadada;
    border-left: 1px solid #2b2b2b !important;
    outline: 0;
    border: 0;
    border-left-width: 0px;
    border-left-style: none;
    border-left-color: currentcolor;
    border-radius: 0;
    float: left;
    font-size: 14px;
    padding: 5px;
    cursor: pointer;
    -webkit-appearance: none;
    margin: 0 !important;
    height: unset !important;
    min-height: 26px !important;
    line-height: 1 !important;
}

#search-box span.icon-search::before {
    content: '';
    background-image: url(/wp-content/themes/flatsome-child/assets/icons/icon-search.svg);
    width: 14px;
    height: 14px;
    background-size: 14px;
    background-repeat: no-repeat;
}

.video-grid {
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.video-grid>.video-item {
    margin-bottom: 20px;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.video-thumbnail>a>img {
    width: calc(100% - 10px);
    height: auto;
    display: block;
    margin-left: 5px;
    border-radius: 4px;
    aspect-ratio: 16 / 12;
    height: 100%;
}
.video-thumbnail{
    position: relative;
}
.video-badges>.badge {
    font-size: .9em;
    position: absolute;
    top: 0;
    border-left: 3px solid #ea4335;
    border-radius: 0 4px 4px 0;
    background: none repeat scroll 0 0 rgba(17, 17, 17, .6);
    padding: 2px 4px;
    margin-top: 2px;
    margin-left: 7px;
    color: #fff;
    width: fit-content;
    height: unset;
}

.video-title>a {
    margin-left: 5px;
    margin-right: 5px;
    font-size: 15px;
    height: 45px;
    max-height: 45px;
    line-height: 1.5;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    white-space: normal;
    -webkit-box-orient: vertical;
    color: #fff;
    text-align: center;
}

/* .video-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-image.lazyloaded {
    opacity: 1;
} */
.ss-list-video>.section-content>.row {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.video-pagination {
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.page-numbers {
    margin-top: 5px;
    border: 1px solid #dadada;
    padding: 5px 15px;
    margin-right: 5px;
    border-radius: 4px;
    display: inline-block;
    color: #dadada
}

.page-numbers.current,
.page-numbers:hover {
    background: #ea4335;
    color: #fff;
}

.search-history a {
    display: inline-block;
    font-size: 14px;
    padding: 5px 10px;
    margin-bottom: 5px;
    margin-left: 5px;
    white-space: nowrap;
    background: #2b2b2b;
    border-radius: 4px;
    color: #dadada !important
}

#content.blog-single {
    padding: 0 !important;
}

.post-categories-list>a {
    margin-bottom: .25rem;
    margin-right: .5rem;
    display: inline-block;
    border-radius: .25rem;
    text-align: center;
    background: #2b2b2b;
    padding: 3px 5px;
    line-height: 20px;
    color: #dadada !important;
}

.post-categories {
    margin-bottom: 10px;
    margin-top: 20px;
}

.related-posts-title {
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid #2b2b2b;
    margin: 5px 0;
}

.related-posts-grid {
    display: grid;
    gap: 16px;
}
.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Post Stats Shortcode Styles */
.post-stats {
    margin: 15px 0;
    padding: 12px 16px;
    background: #2b2b2b;
    border-radius: 8px;
    border: 1px solid #333;
}

.post-stats-title {
    font-size: 14px;
    font-weight: 600;
    color: #dadada;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.post-stats-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-stats-horizontal .post-stats-list {
    justify-content: flex-end;
}

.post-stats-vertical .post-stats-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.post-stats-grid .post-stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.post-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #dadada;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.post-stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.post-stat-icon {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 12px;
    min-width: 14px;
}

.post-stat-value {
    font-weight: 600;
    color: #fff;
}

.post-stat-label {
    font-size: 12px;
    color: #aaa;
}

.post-stats-separator {
    color: #666;
    font-size: 12px;
    margin: 0 4px;
}

/* Specific stat item colors */
.post-stat-likes .post-stat-icon {
    color: #4CAF50;
}

.post-stat-dislikes .post-stat-icon {
    color: #f44336;
}

.post-stat-rate .post-stat-icon {
    color: #FF9800;
}

.post-stat-views .post-stat-icon {
    color: #2196F3;
}

.post-stat-comments .post-stat-icon {
    color: #9C27B0;
}

/* Responsive */
@media (max-width: 768px) {
    .post-stats {
        padding: 10px 12px;
    }
    .related-posts-grid,.video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .post-stats-horizontal .post-stats-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .post-stats-grid .post-stats-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-stats-separator {
        display: none;
    }
    
    .post-stat-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button .play-icon {
        width: 40px;
        height: 40px;
    }
    
    .loading-text {
        font-size: 12px;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-submit-btn {
        justify-content: center;
        border-radius: 0;
    }
    
    .popular-searches {
        justify-content: flex-start;
    }
    
    .search-results-title {
        font-size: 22px;
    }
    
    .search-welcome-content h2 {
        font-size: 26px;
    }
    
    .search-welcome-content p {
        font-size: 16px;
    }
    .header-wrapper {
  border-bottom: 1px solid #2b2b2b;
}
}

@media (max-width: 480px) {
    .lazy-video-wrapper {
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-play-button .play-icon {
        width: 30px;
        height: 30px;
    }
}

/* JavaScript enhancements cho search */
.search-input-wrapper.searching .search-submit-btn {
    background: linear-gradient(45deg, #6c757d, #495057);
    cursor: not-allowed;
}

.search-input-wrapper.searching .search-submit-btn:hover {
    background: linear-gradient(45deg, #6c757d, #495057);
    transform: none;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.search-autocomplete.show {
    display: block;
}

.search-autocomplete-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.active {
    background-color: #f8f9fa;
}

.search-autocomplete-item:last-child {
    border-bottom: none;
}

.search-autocomplete-icon {
    color: #6c757d;
    font-size: 14px;
}

.search-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.search-no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Search history in localStorage */
.search-history-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.search-history-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.search-history-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-history-item {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    padding-right: 30px;
}

.search-history-item:hover {
    background: #e9ecef;
    color: #333;
}

.search-history-item .remove-history {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    font-size: 12px;
    padding: 2px;
}

.search-history-item .remove-history:hover {
    color: #dc3545;
}

/* Quick search improvements */
.search-history a {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-history a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-history a:hover::before {
    left: 100%;
}

/* Enhanced animations */
@keyframes searchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.search-submit-btn:active {
    animation: searchPulse 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-grid .search-result-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.search-results-grid .search-result-item:nth-child(1) { animation-delay: 0.1s; }
.search-results-grid .search-result-item:nth-child(2) { animation-delay: 0.2s; }
.search-results-grid .search-result-item:nth-child(3) { animation-delay: 0.3s; }
.search-results-grid .search-result-item:nth-child(4) { animation-delay: 0.4s; }
.search-results-grid .search-result-item:nth-child(5) { animation-delay: 0.5s; }
.search-results-grid .search-result-item:nth-child(6) { animation-delay: 0.6s; }

.absolute-footer {
    display: none !important;
}
.page-wrapper {
    padding: 0 !important;
}