/*
Theme Name: Toby VIP
Theme URI: https: //t.me/@toby2302
Author: Toby2302
Author URI: https: //t.me/@toby2302
Description: Giao diện thiết kế bởi TOBY hỗ trợ làm website, blog,...
Version: 1.0.1
Text Domain: tobyvip
Tags: blog, xổ số, soi cầu, thống kê
*/


/* =============== TOBY VIP DEMO CSS =============== */


:root {
    --toby-primary-color: #e89a35;
    --toby-secondary-color: #179334;
    --toby-tertiary-color: #9a0001;
    --toby-white-color: #fff;
    --toby-black-color: #333;
    --toby-text-color: #333;
    --toby-link-color: #dd9933;

    --toby-popular-color: #f0f8ff;
    --toby-new-color: #ed1c24;
    --toby-hot-color: #ed1c24;

    --toby-active-color: #ed1c24;
    --toby-hover-color: #ed1c24;

}

*,
button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
    background-color: #eeeeee;
}

a:active,
a:focus,
a:hover {
    text-decoration: none;
    color: var(--toby-hover-color);
    text-shadow: 0 0 3px #cfcfcf;
}

* {
    box-sizing: border-box;
}

a {
    color: #333;
    text-decoration: none;
}

h1 {
    font-weight: 500;
    margin: 0;
}

h1 {
    font-size: 24px;
    line-height: initial;
}

button {
    border: none;
    padding: 0;
    background: 0 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mg0 {
    margin: 0 !important;
}

.pd0 {
    padding: 0 !important;
}

.pd10 {
    padding: 10px !important;
}

.pdt-0 {
    padding-top: 0 !important;
}

.border0 {
    border: none !important;
}

.left {
    text-align: left !important;
}

.right {
    text-align: right !important;
}

.center {
    text-align: center !important;
}

/* Boxed Layout */
.layout-boxed {
    max-width: 1152px !important;
    margin: auto;
}

/* Fullwidth Layout */
.layout-fullwidth {
    width: 100%;
}

/* Wrapper */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: #ddd;
    padding: 20px 0;
    text-align: center;
}

/* Main (Content + Sidebar) */
.site-main {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.site-main.two-column {
    display: flex;
    gap: 10px;
}

.site-main.one-column {
    display: block;
}

/* Content Area */
.content-area {
    flex: 0 0 calc(70% - 5px);
}

/* Sidebar Area */
.sidebar-area {
    flex: 0 0 calc(30% - 5px);
}

/* Footer */
.widget-footer {
    padding-top: 10px;
    border-bottom: 1px dashed #d5d5d5;
    list-style: none;
    text-align: justify;
}

.site-footer {
    text-align: center;
}

.toby-box {
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.toby-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed #ccc;
}

.title.related-posts-title h2,
.title.related-posts-title h2 a {
    font-weight: 900;
    font-size: 28px;
    color: var(--toby-secondary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .site-main {
        flex-direction: column;
    }

    .content-area,
    .sidebar-area {
        flex: 0 0 100%;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.back-to-top.ct-show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.back-to-top .ct-icon {
    width: 40px;
    height: 40px;
    fill: var(--toby-primary-color);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.back-to-top:hover .ct-icon {
    animation: bounce 0.6s infinite;
}




/* POST */
.toby-post {
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.toby-post .content {
    line-height: 1.5;
    text-align: justify;
}

.toby-post .content ul {
    list-style: disc;
    margin: 10px;
}

.toby-post .content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.toby-post .edit-number-form label {
    display: block;
    font-weight: bold;
    text-align: left !important;
}

.toby-post h1 {
    color: var(--toby-primary-color);
    font-weight: 700;
    text-align: center;
}

img.title-img {
    margin: auto;
    display: block;
}

.post-meta-box {
    font-size: 14px;
    color: #777;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.post-meta-box a {
    color: var(--toby-link-color);
    text-decoration: none;
}

.post-meta-box i {
    margin-right: 4px;
    color: var(--toby-primary-color);
}

/* Share Button */
.share-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    font-size: 14px;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

.share-button i {
    font-size: 16px;
}

.share-button:hover {
    opacity: 0.85;
}

@media (max-width: 600px) {
    .share-button {
        padding: 10px;
        font-size: 0;
        gap: 0;
    }

    .share-button i {
        font-size: 18px;
    }

    .share-button::after {
        content: '';
    }
}

.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #000;
}

/* X (Twitter) */
.zalo {
    background-color: #0180c7;
}

.telegram {
    background-color: #0088cc;
}

.linkedin {
    background-color: #0077b5;
}

.copy {
    background-color: #555;
}

.pinterest {
    background-color: #bd081c;
}

.reddit {
    background-color: #ff4500;
}

.whatsapp {
    background-color: #25d366;
}

.copy-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    top: 100px;
}

/* Author box */
.about-author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #fafafa;
    margin-top: 20px;
    flex-direction: row;
}

.author-avatar img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid var(--toby-primary-color);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 20px;
    margin-bottom: 10px;
}

.author-name a {
    color: var(--toby-hot-color);
}

.author-bio {
    color: var(--toby-text-color);
    margin-bottom: 5px;
}

@media (max-width: 480px) {
    .about-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 0;
    }

    .author-avatar img {
        width: 100px;
        height: 100px;
    }

    .author-info {
        width: 100%;
    }
}

/* Next/Prev */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-weight: 500;
    font-size: 16px;
    gap: 10px;
}

.post-navigation a {
    color: var(--toby-link-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.post-navigation a:hover {
    color: var(--toby-hover-color);
}

/* Post tags */
.post-tags {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    padding: 10px;
}

.post-tags a.tag-link {
    display: inline-block;
    background-color: #f1f1f1;
    color: #333;
    padding: 6px 12px;
    margin: 4px 4px 0 0;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s ease;
}

.post-tags a.tag-link:hover {
    background-color: var(--toby-primary-color);
    color: var(--toby-white-color, #fff);
}

.header-menu {
    background: 0;
    padding: 0;
    border-left: 0;
}

.toby-box .title,
.toby-post .title,
.toby-box .header-menu {
    font-size: 22px;
    font-weight: 700;
    color: var(--toby-secondary-color);
    border-bottom: 3px double var(--toby-primary-color);
    padding-bottom: 2px;
    margin-bottom: 5px;
}

/* grid post */
.related-posts-img {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: start;
}

.related-item.tie-standard {
    background: #fff;
    border: none;
    padding: 0;
    text-align: left;
}

.related-item .post-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px;
}

.related-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item .post-thumb:hover img {
    transform: scale(1.05);
}

.related-item .post-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    margin-top: 10px;
}

.related-item .post-title a {
    color: var(--toby-link-color);
    text-decoration: none;
}

.related-item .post-title a:hover {
    color: var(--toby-hover-color);
}

/* Mobile: 2 cột */
@media (max-width: 767px) {
    .related-posts-img {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* List post */

.list-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px dashed #ccc;
    padding: 5px 0;
}

.list-post-item.last {
    border-bottom: none;
}

.list-post-thumb {
    flex-shrink: 0;
    /* Giữ nguyên kích thước ảnh */
}

.list-post-thumb img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
}

.list-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-post-title {
    font-size: 14px;
    font-weight: bold;
}

.list-post-title a {
    color: var(--toby-link-color);
    text-decoration: none;
}

.list-post-title a:hover {
    color: var(--toby-hover-color);
}

.list-post-excerpt {
    font-size: 14px;
    color: var(--toby-black-color);
    overflow: hidden;
    line-height: 18px;
    max-height: 36px;
}

/* Post card */
.post-card {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.post-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    color: var(--toby-link-color);
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
}

.post-card-title a:hover {
    
}

.post-card-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.post-card-meta span {
    margin-right: 15px;
}

.post-card-cat a {
    color: #777;
    text-decoration: none;
}   

.post-card-thumb {
    margin-bottom: 15px;
}

.post-card-thumb img {
    width: 100%;
    max-height: 350px;
    display: block;
    border-radius: 6px;
}

.post-card-excerpt {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}


/* Phân trang */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px auto;
    font-size: 15px;
    border: none;
}

nav.navigation {
    background: none;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--toby-black-color);
    background-color: var(--toby-white-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--toby-hover-color);
    background-color: var(--toby-hover-color);
    color: var(--toby-white-color);
}

.pagination .page-numbers.current {
    background-color: var(--toby-popular-color);
    color: var(--toby-white-color);
    font-weight: bold;
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Luôn hiển thị prev, next */
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    display: inline-flex;
}

/* Luôn hiển thị current */
.pagination .page-numbers.current {
    display: inline-flex;
}

/* Hiện current - 1 */
.pagination .page-numbers.current~.page-numbers {
    display: inline-flex;
}

.pagination .page-numbers.dots {
    display: none !important;
}

span.page-numbers.dots {
    display: none !important;
}


/* Search */
.search-count {
    font-size: 15px;
    color: #333;
    margin: 10px 0 10px;
    padding: 10px 15px;
    background: #f0f0f0;
    border-left: 4px solid var(--toby-primary-color);
    font-style: italic;
}

.loadmore {
    text-align: center;
    margin-bottom: 5px;
    padding: 5px;
    background: rgb(255, 255, 255);
}

.loadmore a {
    color: var(--toby-white-color);
    display: inline-block;
    padding: 4px 8px;
    background: var(--toby-primary-color);
    margin: 1px;
    border-radius: 4px;
}



/* HEADER */
