/* ======================================================
   Taj777 Blog — taj777-blog.css
   Three-block architecture — prefix: .t7-
   1. SHARED   — archive AND single
   2. ARCHIVE  — home.php / archive.php only
   3. SINGLE   — single.php only
====================================================== */

/* ======================================================
   BLOCK 1: SHARED
====================================================== */

/* Page Hero */
.t7-page-hero {
    position: relative;
    padding: 50px 0 40px;
    background: var(--t7-dk-900);
    overflow: hidden;
}
@media (min-width: 640px) {
    .t7-page-hero { padding: 70px 0 50px; }
}
.t7-page-hero::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: var(--t7-yellow);
    border-radius: 50%; opacity: .06;
}
.t7-page-hero::after {
    content: '';
    position: absolute; bottom: -40px; left: -40px;
    width: 200px; height: 200px;
    background: var(--t7-green);
    border-radius: 50%; opacity: .06;
}
.t7-page-hero .t7-container { position: relative; z-index: 2; }
.t7-page-hero h1 {
    font-size: 30px; font-weight: 800; color: #fff;
    line-height: 1.2; margin-bottom: 10px;
}
@media (min-width: 640px) { .t7-page-hero h1 { font-size: 42px; } }
.t7-page-hero h1 .hl { color: var(--t7-yellow); }
.t7-page-hero p {
    font-size: 14px; color: var(--t7-gray-400);
    max-width: 560px; line-height: 1.7;
}
@media (min-width: 640px) { .t7-page-hero p { font-size: 16px; } }

/* Breadcrumb */
.t7-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 16px; font-size: 12px; flex-wrap: wrap;
}
.t7-breadcrumb a { color: var(--t7-gray-400); transition: color .2s; }
.t7-breadcrumb a:hover { color: var(--t7-yellow); }
.t7-breadcrumb .sep { color: var(--t7-gray-600); }
.t7-breadcrumb .current { color: var(--t7-yellow); font-weight: 600; }

/* Section wrapper */
.t7-blog-section { padding: 32px 0 48px; }
@media (min-width: 768px) { .t7-blog-section { padding: 40px 0 64px; } }

/* Two-column layout */
.t7-blog-layout { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) {
    .t7-blog-layout { flex-direction: row; align-items: flex-start; }
}

/* Sidebar */
.t7-blog-sidebar {
    width: 100%; display: flex; flex-direction: column; gap: 20px;
}
@media (min-width: 1024px) {
    .t7-blog-sidebar {
        width: 300px; flex-shrink: 0;
        overflow-y: auto; scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.15) transparent;
    }
    .t7-blog-sidebar::-webkit-scrollbar { width: 4px; }
    .t7-blog-sidebar::-webkit-scrollbar-track { background: transparent; }
    .t7-blog-sidebar::-webkit-scrollbar-thumb { background: var(--t7-gray-300); border-radius: 4px; }
}

/* Widget card */
.t7-widget {
    background: #fff;
    border: 1px solid var(--t7-gray-100);
    border-radius: 14px;
    padding: 20px;
    overflow: hidden;
}
.t7-widget-title {
    font-size: 15px; font-weight: 700; color: var(--t7-dk-800);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.t7-widget-title .iconify { color: var(--t7-yellow); font-size: 18px; }

/* Search box */
.t7-search-box {
    display: flex; align-items: center;
    background: var(--t7-gray-50); border: 1px solid var(--t7-gray-200);
    border-radius: 8px; padding: 0 12px; transition: border-color .2s;
}
.t7-search-box:focus-within { border-color: var(--t7-yellow); }
.t7-search-box .iconify { font-size: 18px; color: var(--t7-gray-400); flex-shrink: 0; }
.t7-search-box input {
    flex: 1; border: none; background: transparent;
    padding: 10px 8px; font-size: 13px; color: var(--t7-dk-800);
    outline: none; font-family: inherit;
}

/* Popular posts */
.t7-popular-post {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--t7-gray-100);
    transition: opacity .2s; text-decoration: none;
}
.t7-popular-post:last-of-type { border-bottom: none; }
.t7-popular-post:hover { opacity: .75; }
.t7-popular-post img {
    width: 60px; height: 60px;
    border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.t7-popular-post-info { display: flex; flex-direction: column; justify-content: center; }
.t7-popular-post-info h4 {
    font-size: 13px; font-weight: 600; color: var(--t7-dk-800); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px;
}
.t7-popular-post-info span { font-size: 11px; color: var(--t7-gray-400); }

/* Newsletter widget */
.t7-widget-newsletter {
    background: linear-gradient(135deg, var(--t7-dk-800), var(--t7-dk-900));
    border: none;
}
.t7-widget-newsletter .t7-widget-title { color: #fff; }
.t7-widget-newsletter p { font-size: 13px; color: var(--t7-gray-400); line-height: 1.7; margin-bottom: 16px; }
.t7-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.t7-newsletter-form input {
    padding: 10px 14px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    color: #fff; font-size: 13px; outline: none;
    font-family: inherit; transition: border-color .2s;
}
.t7-newsletter-form input::placeholder { color: var(--t7-gray-500); }
.t7-newsletter-form input:focus { border-color: var(--t7-yellow); }
.t7-newsletter-form button {
    padding: 10px; text-align: center; font-size: 13px; font-weight: 700;
    border-radius: 8px; background: var(--t7-yellow); color: var(--t7-dk-900);
    transition: background .2s; cursor: pointer; border: none; font-family: inherit;
}
.t7-newsletter-form button:hover { background: #fde047; }

/* Scroll-reveal animation */
.t7-fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.t7-fade-up.visible { opacity: 1; transform: translateY(0); }


/* Sidebar LEFT — visually reorder sidebar before main on desktop */
@media (min-width: 1024px) {
    .t7-blog-layout.t7-sidebar-left .t7-blog-sidebar,
    .t7-blog-layout.t7-sidebar-left .t7-blog-sidebar { order: -1; }
}

/* ======================================================
   BLOCK 2: ARCHIVE ONLY
====================================================== */

/* Category filter pills */
.t7-cat-filters {
    display: flex; gap: 8px; overflow-x: auto;
    padding-bottom: 16px; margin-bottom: 8px; scrollbar-width: none;
}
.t7-cat-filters::-webkit-scrollbar { display: none; }
.t7-cat-pill {
    padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--t7-gray-200); background: #fff; color: var(--t7-gray-600);
    transition: all .2s; white-space: nowrap; text-decoration: none; display: inline-block;
}
.t7-cat-pill:hover,
.t7-cat-pill.active {
    background: var(--t7-yellow); color: var(--t7-dk-900); border-color: var(--t7-yellow);
}

/* Blog main column */
.t7-blog-main { flex: 1; min-width: 0; }

/* Blog grid — default 2-col on tablet+ */
.t7-blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .t7-blog-grid { grid-template-columns: repeat(2, 1fr); } }

/* Column overrides (Customizer setting) */
.t7-blog-grid.t7-cols-1 { grid-template-columns: 1fr !important; }
.t7-blog-grid.t7-cols-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .t7-blog-grid.t7-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .t7-blog-grid.t7-cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* Blog card */
.t7-blog-card {
    background: #fff; border: 1px solid var(--t7-gray-100);
    border-radius: 14px; overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.t7-blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.t7-blog-card-img { position: relative; overflow: hidden; }
.t7-blog-card-img img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    transition: transform .4s; display: block;
}
.t7-blog-card-img-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--t7-gray-100); }
.t7-blog-card:hover .t7-blog-card-img img { transform: scale(1.05); }
.t7-blog-card-cat {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: 6px; font-size: 10px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff;
}

/* Category badge colors — used in both archive card + single hero */
.t7-cat-cricket  { background: #22c55e; }
.t7-cat-casino   { background: #a855f7; }
.t7-cat-tips     { background: #f97316; }
.t7-cat-updates  { background: #3b82f6; }
.t7-cat-crypto   { background: #14b8a6; }

.t7-blog-card-body { padding: 16px 20px 20px; }
.t7-blog-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.t7-blog-card-meta img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.t7-blog-card-meta span { font-size: 11px; color: var(--t7-gray-400); }
.t7-blog-card-meta .sep { color: var(--t7-gray-300); }
.t7-blog-card-title {
    font-size: 16px; font-weight: 700; color: var(--t7-dk-800);
    line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.t7-blog-card-title a { color: inherit; text-decoration: none; }
.t7-blog-card-title a:hover { color: var(--t7-yellow); }
.t7-blog-card-excerpt {
    font-size: 13px; color: var(--t7-gray-600); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px;
}
.t7-read-more {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: var(--t7-yellow);
    text-decoration: none; transition: gap .2s;
}
.t7-blog-card:hover .t7-read-more { gap: 8px; }

/* WP pagination */
.t7-pagination { margin-top: 32px; }
.t7-pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.t7-pagination .page-numbers {
    min-width: 36px; height: 36px; border-radius: 8px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--t7-gray-600);
    background: #fff; border: 1px solid var(--t7-gray-200);
    text-decoration: none; transition: all .2s;
}
.t7-pagination .page-numbers:hover,
.t7-pagination .page-numbers.current {
    background: var(--t7-yellow); color: var(--t7-dk-900); border-color: var(--t7-yellow);
}
.t7-pagination .page-numbers.dots { border: none; background: none; cursor: default; }

/* Categories list (sidebar, archive) */
.t7-cat-list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--t7-gray-100);
}
.t7-cat-list li:last-child { border-bottom: none; }
.t7-cat-list a {
    font-size: 13px; font-weight: 500; color: var(--t7-gray-600);
    text-decoration: none; transition: color .2s;
    display: flex; align-items: center; gap: 8px;
}
.t7-cat-list a:hover { color: var(--t7-yellow); }
.t7-cat-list a .iconify { font-size: 16px; }
.t7-cat-list .count {
    font-size: 12px; font-weight: 600; color: var(--t7-gray-400);
    background: var(--t7-gray-100); padding: 2px 8px; border-radius: 99px;
}

/* Social grid (sidebar, archive) */
.t7-social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.t7-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
    color: #fff; text-decoration: none; transition: opacity .2s;
}
.t7-social-btn:hover { opacity: .85; }
.t7-social-btn.fb { background: #1877f2; }
.t7-social-btn.tg { background: #0088cc; }
.t7-social-btn.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.t7-social-btn.yt { background: #ff0000; }

/* No results */
.t7-no-results { text-align: center; padding: 48px 20px; }
.t7-no-results .iconify { font-size: 48px; color: var(--t7-gray-300); margin-bottom: 16px; display: block; }
.t7-no-results h3 { font-size: 18px; font-weight: 700; color: var(--t7-dk-800); margin-bottom: 8px; }
.t7-no-results p { font-size: 14px; color: var(--t7-gray-500); }


/* ======================================================
   BLOCK 3: SINGLE ONLY
====================================================== */

/* Article main column */
.t7-article-main { flex: 1; min-width: 0; }

.t7-article-card {
    background: #fff; border: 1px solid var(--t7-gray-100);
    border-radius: 16px; overflow: hidden;
}

/* Featured image */
.t7-article-featured { position: relative; }
.t7-article-featured img {
    width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block;
}
@media (min-width: 768px) { .t7-article-featured img { aspect-ratio: 16/7; } }
.t7-cat-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 5px 12px; border-radius: 6px; font-size: 11px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff;
}

/* Article body */
.t7-article-body { padding: 24px 20px 32px; }
@media (min-width: 640px) { .t7-article-body { padding: 32px 28px 40px; } }
@media (min-width: 768px) { .t7-article-body { padding: 36px 40px 48px; } }

/* Article meta */
.t7-article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--t7-gray-100);
}
.t7-author-chip { display: flex; align-items: center; gap: 8px; }
.t7-author-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.t7-author-chip-info .name { font-size: 14px; font-weight: 600; color: var(--t7-dk-800); }
.t7-author-chip-info .role { font-size: 11px; color: var(--t7-gray-400); }
.t7-meta-items { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.t7-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--t7-gray-400); }
.t7-meta-item .iconify { font-size: 15px; }

/* Article title */
.t7-article-title { font-size: 26px; font-weight: 800; color: var(--t7-dk-800); line-height: 1.25; margin-bottom: 20px; }
@media (min-width: 640px) { .t7-article-title { font-size: 32px; } }
@media (min-width: 768px) { .t7-article-title { font-size: 38px; } }

/* Article content typography */
.t7-article-content { font-size: 15px; color: #475569; line-height: 1.85; }
@media (min-width: 640px) { .t7-article-content { font-size: 16px; } }
.t7-article-content p { margin-bottom: 18px; }
.t7-article-content h2 {
    font-size: 22px; font-weight: 700; color: var(--t7-dk-800);
    margin: 36px 0 14px; padding-left: 16px;
    border-left: 4px solid var(--t7-yellow); line-height: 1.3;
}
@media (min-width: 640px) { .t7-article-content h2 { font-size: 24px; } }
.t7-article-content h3 { font-size: 18px; font-weight: 700; color: var(--t7-dk-800); margin: 28px 0 10px; }
.t7-article-content strong { color: var(--t7-dk-800); font-weight: 600; }
.t7-article-content a { color: var(--t7-yellow); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.t7-article-content a:hover { color: #f97316; }
.t7-article-content ul,
.t7-article-content ol { margin: 0 0 18px 20px; }
.t7-article-content li { margin-bottom: 8px; padding-left: 4px; }
.t7-article-content ul li { list-style: disc; }
.t7-article-content ol li { list-style: decimal; }
.t7-article-content blockquote {
    margin: 24px 0; padding: 20px 24px;
    background: var(--t7-gray-50); border-left: 4px solid var(--t7-yellow);
    border-radius: 0 10px 10px 0; font-style: italic; color: var(--t7-gray-500);
}
.t7-article-content .img-wrap { margin: 28px 0; border-radius: 12px; overflow: hidden; }
.t7-article-content .img-wrap img { width: 100%; object-fit: cover; display: block; }
.t7-article-content .img-caption {
    text-align: center; font-size: 12px; color: var(--t7-gray-400);
    margin-top: 8px; font-style: italic;
}
.t7-article-content .tip-box {
    background: linear-gradient(135deg, var(--t7-dk-800), var(--t7-dk-900));
    border-radius: 12px; padding: 20px 24px; margin: 28px 0;
}
.t7-article-content .tip-box h4 {
    font-size: 15px; font-weight: 700; color: var(--t7-yellow);
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.t7-article-content .tip-box p { color: #d1d5db; font-size: 14px; line-height: 1.7; margin-bottom: 0; }

/* Tags row */
.t7-article-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px;
    padding-top: 24px; border-top: 1px solid var(--t7-gray-100); align-items: center;
}
.t7-article-tags > span { font-size: 13px; font-weight: 600; color: var(--t7-gray-500); margin-right: 4px; }
.t7-tag {
    padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 500;
    background: var(--t7-gray-50); color: var(--t7-gray-600);
    border: 1px solid var(--t7-gray-100); transition: all .2s;
    text-decoration: none; display: inline-block;
}
.t7-tag:hover { background: var(--t7-yellow); color: var(--t7-dk-900); border-color: var(--t7-yellow); }

/* Share bar */
.t7-share-bar { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.t7-share-bar > span { font-size: 13px; font-weight: 600; color: var(--t7-gray-500); }
.t7-share-btn {
    width: 36px; height: 36px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; transition: opacity .2s;
    text-decoration: none; border: none; cursor: pointer; flex-shrink: 0;
}
.t7-share-btn:hover { opacity: .8; }
.t7-share-btn.fb { background: #1877f2; }
.t7-share-btn.tw { background: #1da1f2; }
.t7-share-btn.tg { background: #0088cc; }
.t7-share-btn.wa { background: #22c55e; }
.t7-share-btn.cp { background: #64748b; }

/* Author bio box */
.t7-author-bio {
    display: flex; gap: 16px; margin-top: 28px; padding: 24px;
    background: var(--t7-gray-50); border-radius: 14px; align-items: center;
}
.t7-author-bio img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.t7-author-bio-info h4 { font-size: 16px; font-weight: 700; color: var(--t7-dk-800); margin-bottom: 4px; }
.t7-author-bio-info p { font-size: 13px; color: var(--t7-gray-500); line-height: 1.7; }

/* Related posts */
.t7-related-section { margin-top: 32px; }
.t7-related-section h3 {
    font-size: 20px; font-weight: 700; color: var(--t7-dk-800);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.t7-related-section h3 .iconify { color: var(--t7-yellow); }
.t7-related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .t7-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .t7-related-grid { grid-template-columns: repeat(3, 1fr); } }
.t7-related-card {
    background: #fff; border: 1px solid var(--t7-gray-100);
    border-radius: 12px; overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    text-decoration: none; display: block;
}
.t7-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.t7-related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.t7-related-card-body { padding: 12px 14px 16px; }
.t7-related-card-body h4 {
    font-size: 14px; font-weight: 600; color: var(--t7-dk-800); line-height: 1.4; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.t7-related-card-body span { font-size: 11px; color: var(--t7-gray-400); }

/* TOC list (sidebar) */
.t7-toc-list li { margin-bottom: 4px; }
.t7-toc-list a {
    display: block; padding: 8px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 500; color: var(--t7-gray-500);
    transition: all .2s; border-left: 3px solid transparent; text-decoration: none;
}
.t7-toc-list a:hover { background: var(--t7-gray-50); color: var(--t7-dk-800); }
.t7-toc-list a.active {
    background: rgba(251,191,36,.1); color: var(--t7-dk-800);
    border-left-color: var(--t7-yellow); font-weight: 600;
}

/* CTA widget (single sidebar) */
.t7-widget-cta {
    background: linear-gradient(135deg, var(--t7-dk-800), var(--t7-dk-900));
    border: none; text-align: center;
}
.t7-widget-cta .t7-widget-title { color: #fff; justify-content: center; }
.t7-widget-cta p { font-size: 13px; color: var(--t7-gray-400); line-height: 1.7; margin-bottom: 16px; }
.t7-widget-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; font-size: 14px; font-weight: 700;
    border-radius: 10px; background: var(--t7-yellow); color: var(--t7-dk-900);
    transition: background .2s; text-decoration: none; width: 100%;
}
.t7-widget-cta-btn:hover { background: #fde047; }
.t7-widget-cta-btn .iconify { font-size: 18px; }
.t7-widget-cta-wa {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; font-size: 14px; font-weight: 700;
    border-radius: 10px; background: var(--t7-green); color: #fff;
    transition: background .2s; text-decoration: none; width: 100%; margin-top: 8px;
}
.t7-widget-cta-wa:hover { background: var(--t7-green-dark); }
