/*
Theme Name: Toby Soi Cầu
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.3
Text Domain: tobyvip
Tags: blog, xổ số, soi cầu, thống kê
Template: tobyvip
*/

/* ================ TOBY VIP - BASE LAYOUT ================== */



:root {
    --toby-primary-color: #2aaad1;
    --toby-secondary-color: #6ae0d5;
    --toby-tertiary-color: #9a0001;
    --toby-white-color: #fff;
    --toby-black-color: #333;
    --toby-text-color: #333;
    --toby-link-color: #239eb1;

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

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

}

/* Reset */

*,
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: #f3f3f3;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 7px 22px;
}

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

.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;
}


.toby-ads.toby-ads-home {
    background: #EFFAFF;
    font-size: 9pt;
    padding: 5px;
    text-align: justify;
}

.toby-ads.toby-ads-header {
    background: #fcffd3;
    padding: 5px;
    border: 1px dashed #da7519;
    text-align: justify;
    margin-bottom: 10px;
}

.toby-ads.toby-ads-header-2 {
    background: #EFFAFF;
    padding: 1px;
    border: 1px dashed #2baad1;
    text-align: justify;
    margin-bottom: 0px;
}

.toby-ads.toby-ads-footer {
    padding: 5px 10px;
    margin: 5px 0;
    color: #dddddd;
    font-size: 14px;
    text-align: justify;
    border-top: 1px dashed #ccc;
}

.thongbao {
    background: #fcffd3;
    border: 1px dashed #e40000;
    font-size: 15px;
    margin: 0px auto;
    padding: 5px 10px;
}

.hotbox {
    padding: 10px;
    text-align: center;
    /* list-style: none; */
    border-left: 4px solid #43bfc7;
    border-right: 4px solid #43bfc7;
    border-top: 1px solid #43bfc7;
    border-bottom: 1px solid #43bfc7;
    background: #f0f8ff;
    word-wrap: break-word;
    background-image: url(assets/images/bg-1.png);
    margin-bottom: -1px;
}

.hot-title {
    color: #ed1c24;
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(to right, #52b788, #3a86ff);
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-animation 5s linear infinite;
}

.list {
    background-color: #fff;
    margin-bottom: 1px;
    padding: 10px;
    border-bottom: 1px dashed #d5d5d5;
    list-style: none;
    text-align: justify;
}


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

.toby-box {}

.toby-box .title {
    background: linear-gradient(45deg, var(--toby-primary-color) 50%, var(--toby-secondary-color) 100%);
    color: var(--toby-white-color);
    padding: 7px 10px;
    font-weight: 700;
    font-size: 16px;
    border-left: 5px solid var(--toby-tertiary-color);
}

.toby-box .title a {
    color: var(--toby-white-color);
    font-size: 16px;
    font-weight: 700;
}

.toby-box .title a:hover {
    color: var(--toby-active-color);
    font-weight: 700;
}

.box-toby-list {
    padding: 10px;
}

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

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

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

.url-list-item a :hover {
    color: var(--toby-hover-color);
    text-decoration: none;
}

.loadmore {
    padding: 5px;
    background: #fff;
    text-align: center;
    margin-bottom: 5px;
}

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

.loadmore a:hover {
    background: var(--toby-hover-color);
    color: var(--toby-white-color);
}

/* Category */

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--toby-white-color);
    line-height: 1.4;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 10px;
    background: var(--toby-primary-color);
}

.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;
}

.category-description {
    margin-top: 10px;
    border-top: 2px dashed #ccc;
}

/* 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%;
    }
}

/* Gird 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;
    /* 👈 Căn giữa nội dung bên trong nếu cần */
}

.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;
}


/* 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);
}

/* Post meta */

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

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

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

.post-meta-box a:hover {
    text-decoration: underline;
}

/* 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;
}


/* 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;
}




/* Boxed Layout */
.layout-boxed {
    /* background: #e5e5e5; */
    max-width: 1024px;
    margin: auto;
}

.layout-boxed .site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    color: #666;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

/* Fullwidth Layout */
.layout-fullwidth .site-wrapper {
    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;
}

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

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

/* Content Area */
.content-area {
    flex: 0 0 calc(70% - 5px);
    background: #fff;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

/* Sidebar Area */
.sidebar-area {
    flex: 0 0 calc(30% - 5px);
    background: #fff;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

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

.site-footer {
    background: #706f6f;
    color: #dddddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    margin-top: 10px;
    text-align: center;
}



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

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



/* TOBY */

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

.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;
}

/* NAV */





h1 {
    font-family: "Arial, Tahoma, Helvetica", sans-serif;
    padding: 0;
}

button,
nav li:hover {
    position: relative;
}

img {
    outline: 0;
}

.arr-d,
a,
button {
    cursor: pointer;
}

* {
    box-sizing: border-box;
}

a {
    color: blue;
    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;
}

.fl {
    float: left;
}

.clearfix::after {
    display: block;
    content: "";
    clear: both;
}

.pad5 {
    padding: 6px;
}

.in-block {
    display: inline-block;
}

nav li:hover .menu-c2 {
    display: block;
}

.ic {
    background: url(assets/images/icons.png) left 0 no-repeat;
}

.arr-d {
    background-position: -90px -1252px;
    width: 36px;
    height: 36px;
    transform: rotate(0);
    transition: transform .2s linear;
}

.arr-d.active {
    transform: rotate(180deg);
}

nav li>a {
    font-size: 14px;
    white-space: nowrap;
}

nav li>a {
    display: block;
    text-transform: uppercase;
}

.taskbar {
    border-bottom: 1px solid #f3f3f3;
    background: #fbfbfb;
    font-weight: 700;
    font-size: 12px;
    padding: 5px;
}

.top-info {
    background: radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .15) 30%, rgba(255, 255, 255, .3) 32%, rgba(255, 255, 255, 0) 33%) 0 0, radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .1) 11%, rgba(255, 255, 255, .3) 13%, rgba(255, 255, 255, 0) 14%) 0 0, radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .2) 17%, rgba(255, 255, 255, .43) 19%, rgba(255, 255, 255, 0) 20%) 0 127px, radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .2) 11%, rgba(255, 255, 255, .4) 13%, rgba(255, 255, 255, 0) 14%) -113px -157px, radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .2) 11%, rgba(255, 255, 255, .4) 13%, rgba(255, 255, 255, 0) 12%) 116px 439px, radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .1) 11%, rgba(255, 255, 255, .2) 13%, rgba(255, 255, 255, 0) 14%) 0 0, linear-gradient(45deg, var(--toby-primary-color) 20%, var(--toby-secondary-color) 100%);
    background-size: 100px 100px, 470px 470px, 210px 210px, 310px 310px, 230px 230px, 530px 530px, 100% 100%;
}

.logo {
    text-align: left;
    font-weight: 700;
}

.logo img {
    width: 500px;
    max-width: 100%;
}

.nav-mobi li {
    text-align: center;
}

.txtlogo {
    color: #f60;
    display: inline-block;
    font-family: "Times New Roman", Times, serif;
    font-size: 36px;
    line-height: 36px;
}

nav {
    background: linear-gradient(45deg, var(--toby-primary-color) 50%, var(--toby-secondary-color) 100%);
    border-bottom: 3px solid var(--toby-active-color);
}

nav li>a {
    font-weight: 700;
    padding: 0 9px;
    line-height: 36px;
}

nav li.active a,
nav li:hover a {
    color: var(--toby-white-color);
    background: var(--toby-active-color);
}

@media (max-width: 1023px) {
    .logo img {
        max-height: 205px;
        max-width: 100%;
    }

    .dsp-mobile {
        display: block;
    }

    .taskbar {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    .top-info {
        text-align: center;
    }

    .logo {
        display: inline-block;
    }

    .txtlogo {
        font-size: 24px;
        color: #f60;
        padding: 0;
        line-height: initial;
    }

    .navbar-toggle {
        float: left;
        padding: 6px;
        position: absolute;
        margin-top: 13px;
        left: 0;
        -webkit-border-radius: 3px;
    }

    .navbar-toggle .icon-bar {
        border-radius: 1px;
        -moz-border-radius: 1px;
        -webkit-border-radius: 1px;
        display: block;
        height: 2px;
        width: 22px;
        background: #000;
    }

    .navbar-toggle .icon-bar+.icon-bar {
        margin-top: 3px;
    }

    html.menu-active .nav-pc {
        visibility: visible;
        transform: translate(0);
        -webkit-transform: translate(0);
        -ms-transform: translate(0);
        transition: transform 0.4s ease;
    }
}

@media (min-width: 1024px) {

    .arr-d,
    .dsp-mobile,
    .nav-mobi {
        display: none;
    }

    .logo {
        /* float: left; */
        text-align: center;
    }

    nav li>a {
        color: #fff;
    }

    .menu-c2 {
        position: absolute;
        top: 36px;
        min-width: 200px;
        background: #fff;
        border: 1px solid #d9d3cb;
        padding: 10px;
        display: none;
        z-index: 9999;
    }
}

.nav-mobi li {
    width: 20%;
}

.menu-c2 {
    display: none;
    clear: both;
}

.menu-c2 li {
    padding: 0 5px 0 20px;
}

.menu-c2 li:not(:last-child) {
    border-bottom: 1px dashed #f3f3f3;
}

.menu-c2 li a {
    text-transform: none;
}

.menu-c2 li:not(.active) a {
    color: #333;
    padding: 0;
    background: 0;
}

li.fl.clearfix.sub-active a {
    color: #e43f26;
}

@media (max-width: 1023px) {

    .nav-horizontal li .arr-d,
    .nav-horizontal li.active .menu-c2,
    .nav-horizontal li:hover .menu-c2,
    .nav-mobi {
        display: block;
    }

    .nav-mobi a {
        color: #fff;
        padding: 0;
    }

    .nav-pc {
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        width: 85vw;
        max-width: 320px;
        background: #fff;
        overflow-y: scroll;
        -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, .5);
        box-shadow: 0 0 20px rgba(0, 0, 0, .5);
        -webkit-transition: .4s;
        transition: .4s;
        -webkit-transform: translate(-100%);
        -ms-transform: translate(-100%);
        transform: translate(-100%);
    }

    .nav-horizontal {
        position: absolute;
        z-index: 9999;
        width: 100%;
    }

    .nav-horizontal.main {
        margin-bottom: 80px;
    }

    .nav-horizontal li {
        float: none;
        background: #fff;
    }

    .nav-horizontal li:not(:last-child) {
        border-bottom: 1px solid #f3f3f3;
    }

    .nav-horizontal li.active,
    .nav-horizontal li:hover {
        background: #fb9b34;
    }

    .nav-horizontal li a {
        color: #000;
    }

    .nav-horizontal li.active>a,
    .nav-horizontal li:hover>a {
        background: #fb9b34;
        color: #fff;
    }

    .nav-horizontal li.menu-header {
        background: #e0342a;
        padding: .5rem 0;
        color: #fff;
        border-bottom: none;
    }

    .nav-horizontal li.menu-header .close-button {
        display: table;
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 40px;
    }

    .nav-horizontal li.menu-header .close-button img {
        display: block;
        margin: auto;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

.main {
    padding-top: 5px;
}

@media (min-width: 1024px) and (max-width: 1189px) {
    nav li>a {
        padding: 0 6px;
    }
}

@media (min-width: 1024px) {
    .menu-c2 li {
        padding: 0 5px 0 10px;
    }
}


@media (max-width: 320px) {
    nav li>a {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .fr1 {
        float: right;
    }
}

nav li:hover .menu-c2 {
    display: block;
}

.fl {
    text-align: left;
}