/*
Theme Name: Asad Akash Turbo
Theme URI: https://example.com/asad-akash-turbo
Author: Asad Akash
Author URI: https://youtube.com/@asadakashforex
Description: A fast, SEO-friendly, mobile-first WordPress theme with Dark Mode and social media integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asad-akash-turbo
Tags: blog, two-columns, custom-colors, custom-logo, custom-menu, dark-mode, rtl-language-support
*/

/* CSS Variables (Light/Dark) */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #111827;
  --text-muted: #4b5563;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --card: #ffffff;
  --border: #e5e7eb;
}

/* Primary Navigation */
.primary-nav { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.primary-nav .menu { overflow-x: auto; }
.menu-list { display: flex; gap: 8px; list-style: none; padding: 8px 0; margin: 0; }
.menu-list li { list-style: none; }
.menu-list a { display: inline-block; padding: 6px 10px; border-radius: 8px; color: var(--text); white-space: nowrap; }
.menu-list a:hover, .menu-list .current-menu-item > a { background: var(--bg-soft); color: var(--primary); }

.dark {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --card: #0f172a;
  --border: #1f2937;
}

/* Base Styles */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: none !important;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.site-brand { display: flex; align-items: center; gap: 10px; }
.site-title { margin: 0; font-size: 20px; font-weight: 700; }
.site-description { margin: 0; font-size: 12px; color: var(--text-muted); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn .btn-ico { font-size: 14px; line-height: 1; }
.icon-btn .btn-text { white-space: nowrap; }
.dark-toggle { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

/* Header layout improvements */
@media (max-width: 680px){
  .site-header .inner { display: flex; flex-direction: column; align-items: stretch; }
  .site-brand { margin-bottom: 6px; }
  .nav-actions { margin-top: 0; }
  .site-brand { display: flex; align-items: center; gap: 10px; }
  .site-title { margin: 0; font-size: 18px; line-height: 1.2; }
  .site-description { margin: 0; font-size: 12px; color: var(--text-muted); }
  .nav-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; justify-content: center; width: 100%; }
  .nav-actions .icon-btn { padding: 6px 8px; font-size: 13px; line-height: 1; border-radius: 8px; }
  .nav-actions .icon-btn .btn-ico { margin-right: 6px; }
  .dark-toggle { width: 34px; height: 34px; }
  /* Larger logo and matching left padding so title remains centered */
  .site-brand{ padding-left: 88px; }
  .site-brand img.custom-logo{ max-height: 68px; }
}
@media (min-width: 681px){
  .site-header .inner { display: flex; align-items: center; justify-content: space-between; }
}

/* Ensure logo fully shows */
.site-brand img.custom-logo { max-height: 44px; height: auto; width: auto; display: block; }

/* Keep header buttons consistent size */
.nav-actions .icon-btn { padding: 6px 10px; font-size: 14px; }
.nav-actions .icon-btn .btn-ico { margin-right: 6px; }

/* Hamburger (mobile) */
.hamburger { display: inline-flex; flex-direction: column; gap: 3px; width: 36px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--card); border-radius: 8px; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); }

/* Off-canvas mobile nav */
.mobile-nav { position: fixed; top: 0; left: 0; height: 100vh; width: 280px; background: var(--card); color: var(--text); border-right: 1px solid var(--border); transform: translateX(-100%); transition: transform .25s ease; z-index: 120; display: flex; flex-direction: column; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__header { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid var(--border); }
.mobile-nav__body { padding: 8px 12px; overflow-y: auto; }
.mobile-menu-list, .mobile-menu-list li { list-style: none; margin: 0; padding: 0; }
.mobile-menu-list a { display: block; padding: 10px 8px; border-radius: 8px; color: var(--text); }
.mobile-menu-list a:hover { background: var(--bg-soft); }
.mobile-nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 110; display: none; }
.mobile-nav-backdrop.show { display: block; }
.mobile-nav__close { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

@media (min-width: 900px) {
  .hamburger { display: none; }
}

/* Compact header button labels on small screens to avoid overflow */
@media (max-width: 480px) {
  .icon-btn .btn-text { display: none; }
}

/* Category strip (AllForex style) */
.cat-strip { border-top: none !important; border-bottom: none !important; background: var(--bg); }
.chips-row { display: flex; gap: 8px; padding: 8px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chips-row .chip { white-space: nowrap; }

/* Search form */
.search-form { display: flex; align-items: center; gap: 6px; }
.search-field { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); }
.search-field::placeholder { color: var(--text-muted); }

/* Social icons row */
.social-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.social-row a:hover { border-color: var(--primary); color: var(--primary); }
.social-row .icon { font-size: 12px; line-height: 1; }
.social-row .social-count { display: none; }

@media (min-width: 900px) {
  .social-row { gap: 6px; }
  .social-row a { width: 28px; height: 28px; padding: 0; border-radius: 999px; }
}

/* Simplify header on single posts to prioritize content */
.single .cat-strip { display: none; }
.single .site-header .social-row { display: none; }
.single .site-header { position: static; }
.page .site-header { position: static; }
.single .site-header .inner { padding: 12px 0; }
.single .nav-actions .icon-btn { display: inline-flex; }
.single .nav-actions { display: flex; }
.single .site-description { display: block; }
.single .site-title { display: block; }
.site-brand img.custom-logo { max-height: 36px; height: auto; width: auto; }
.single .site-brand img.custom-logo { max-height: 28px; }
/* Show logo on home/front */
.home .site-brand img.custom-logo,
.front-page .site-brand img.custom-logo { display: inline-block; }
.single .hamburger { display: inline-flex; }
.single .dark-toggle { display: inline-flex; }
.single .site-header { border-bottom: 1px solid var(--border); }

/* Content spacing */
.main { padding: 16px 0; }
.single .main { padding: 16px 0; }

/* Dark mode toggle */
.dark-toggle { cursor: pointer; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.dark-toggle:hover { border-color: var(--primary); }

/* Layout */
.main { padding: 20px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .content-grid { grid-template-columns: 2fr 1fr; }
}

/* Root-cause fix for the recurring "ad breaks the footer/layout" bug:
   ad size arrays include desktop sizes (728x90, 970x90, 970x250 etc.)
   with no responsive size-mapping, so GPT can serve an oversized
   creative on a narrow mobile screen — the resulting iframe was wider
   than its container and overflowed, squeezing/breaking whatever came
   after it (like the footer). This clamps every ad slot and its iframe
   to the container's actual width on every screen size. */
.aat-ad-slot, [id^="div-gpt-ad-"] {
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}
.aat-ad-slot iframe, [id^="div-gpt-ad-"] iframe {
  max-width: 100% !important;
}

/* NOTE: sidebar ka apna Sidebarrr ad ab remove ho chuka hai (naya AdX set
   is post ke andar hi 6 ads de raha hai — top/intro/middle/terms/final/
   bottom), is liye .sidebar ab sirf dynamic_sidebar('primary') widgets
   dikhata hai (agar active hon). Isi wajah se "2 ads ek sath" wala mobile
   spacing fix bhi hata diya — ab wahan koi doosra ad nahi ke sath chipke. */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card-body { padding: 12px; }
.card-title { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.card-meta { font-size: 12px; color: var(--text-muted); }

/* Home/archive post card styling */
.post-list .post-item .post-title { margin: 6px 0 4px; font-size: 16px; line-height: 1.25; font-weight: 800; }
.post-list .post-item .post-title a { position: relative; color: #1e3a8a; text-decoration: none; font-weight: 800; }
.post-list .post-item .post-title a:hover { color: #172554; }
.post-list .post-item .post-title a {
  padding: 4px 0; border-top: 1px solid #1e3a8a33; border-bottom: 1px solid #1e3a8a33;
}
.post-list .post-item .post-excerpt { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

@media (min-width: 900px){
  .post-list .post-item .post-title { font-size: 20px; }
}

/* Post list (mobile-first like allforexbonus style) */
.post-list { display: grid; gap: 12px; }
.post-item { display: grid; grid-template-columns: 106px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.post-thumb { width: 106px; height: 80px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--border); }
.post-info { display: flex; flex-direction: column; gap: 6px; }
.post-title { font-size: 16px; margin: 0; }
.post-excerpt { margin: 0; color: var(--text-muted); font-size: 13px; }
.post-meta { display: flex; gap: 10px; color: var(--text-muted); font-size: 12px; }

/* Actions row under excerpt */
.post-list .post-item .post-actions { margin-top: 6px; }

/* Read/Learn more button */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  background: var(--card);
}
.btn-more .ico { transition: transform .15s ease; }
.btn-more:hover { border-color: #1e3a8a; background: var(--bg-soft); }
.btn-more:hover .ico { transform: translateX(2px); }

/* Chips / Badges for categories */
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  font-size: 12px;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }

/* Category color variants */
.chip-cat { font-weight: 600; }
.chip-cat--no-deposit-bonus-2025 { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.dark .chip-cat--no-deposit-bonus-2025 { background: #064e3b; border-color: #10b981; color: #d1fae5; }

.chip-cat--deposit-bonus-forex-tading-2025 { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.dark .chip-cat--deposit-bonus-forex-tading-2025 { background: #1e3a8a; border-color: #60a5fa; color: #dbeafe; }

.chip-cat--forex-broker-reviewes { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.dark .chip-cat--forex-broker-reviewes { background: #7c2d12; border-color: #fb923c; color: #ffedd5; }

.chip-cat--forex-premium-analaysis-signals { background: #f5f3ff; border-color: #ddd6fe; color: #4c1d95; }
.dark .chip-cat--forex-premium-analaysis-signals { background: #3730a3; border-color: #a78bfa; color: #ede9fe; }

.chip-cat--forex-informetion-daily-news-analysis { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.dark .chip-cat--forex-informetion-daily-news-analysis { background: #312e81; border-color: #818cf8; color: #e0e7ff; }

.chip-cat--crypto-loot-offer-new-exchangs-bonus { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.dark .chip-cat--crypto-loot-offer-new-exchangs-bonus { background: #14532d; border-color: #86efac; color: #dcfce7; }

.chip-cat--funded-account-forex { background: #fdf2f8; border-color: #fbcfe8; color: #831843; }
.dark .chip-cat--funded-account-forex { background: #831843; border-color: #f472b6; color: #fce7f3; }

@media (min-width: 600px) {
  .post-item { grid-template-columns: 160px 1fr; }
  .post-thumb { width: 160px; height: 100px; }
}

/* Force remove any leftover yellow underline on listing titles */
.post-list .post-item .post-title a::after { content: none !important; display: none !important; background: transparent !important; height: 0 !important; }
.post-list .post-item .post-title a:hover::after { animation: none !important; }

/* Remove yellow underline on category/archive titles too */
.category .post-title a::after,
.archive .post-title a::after,
.post-title a::after { content: none !important; display: none !important; background: transparent !important; height: 0 !important; }
.category .post-title a:hover::after,
.archive .post-title a:hover::after,
.post-title a:hover::after { animation: none !important; }

/* Remove lines from titles and category/archive titles */
.post-list .post-item .post-title a,
.category .post-title a,
.archive .post-title a{
  border: none !important;
  padding: 0 !important;
}
.post-list .post-item .post-title a::after,
.category .post-title a::after,
.archive .post-title a::after{ content: none !important; display: none !important; }

/* Keep thin neutral lines ONLY on Home listings (not blue) */
.home .post-list .post-item .post-title a{
  padding: 4px 0 !important;
  border-top: 1px solid var(--border) !important; /* neutral gray */
  border-bottom: 1px solid var(--border) !important;
}

/* Post title lines (single post and category pages) */
.single .entry-title,
.category .entry-title,
.archive .entry-title,
.search .entry-title {
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0.8em 0 1.2em;
  display: inline-block;
  width: 100%;
}

/* Remove lines from other titles (like widget titles) */
.widget .widget-title,
.sidebar .widget-title,
.comments-title,
.comment-reply-title,
.page-title {
  border: none !important;
  padding: 0 !important;
}

/* Safer defaults for inline images in content */
.entry-content img { height: auto; max-width: 100%; display: block; }

/* Sidebar */
.sidebar .widget { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.sidebar .widget + .widget { margin-top: 12px; }
.widget-title { margin-top: 0; font-size: 16px; }

/* Footer */
.site-footer { margin-top: 20px; padding: 20px 0; border-top: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 14px; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }

/* Buttons, forms */
.button, button, input[type=submit] { background: var(--primary); color: #fff; border: none; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.button:hover, button:hover, input[type=submit]:hover { background: var(--primary-dark); }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); }

/* Accessibility */
.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; }

/* AI Modal */
.ai-modal { position: fixed; inset: 0; display: none; z-index: 100; }
.ai-modal[aria-hidden="false"] { display: block; }
.ai-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.ai-modal__dialog { position: relative; max-width: 720px; margin: 10vh auto; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; z-index: 101; }
.ai-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ai-modal__body { padding: 12px; }
.ai-modal__result { margin-top: 12px; padding: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; white-space: pre-wrap; }
.ai-modal__close { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.ai-modal__actions { margin-top: 8px; display: flex; justify-content: flex-end; }

/* Stories strip */
.stories-strip { margin-bottom: 12px; }
.stories-row { display: grid; grid-auto-flow: column; grid-auto-columns: 120px; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.story-item { display: flex; flex-direction: column; gap: 6px; width: 120px; color: var(--text); }
.story-thumb-wrap { width: 120px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); }
.story-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-title { font-size: 12px; line-height: 1.3; }

/* Story hero */
.story-hero { aspect-ratio: 1200 / 628; background: var(--bg-soft); }
.story-hero-img { width: 100%; height: auto; display: block; }

/* Language button + menu (footer translate widget) */
.translate-widget { position: relative; }
.lang-button { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; cursor: pointer; color: var(--text); font-size: 14px; }
.lang-button:hover { border-color: var(--primary); }
.lang-menu { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); z-index: 1001; max-height: 60vh; width: min(92vw, 520px); overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: none; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.lang-menu.open { display: block; }
.lang-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; background: transparent; color: var(--text); border-radius: 8px; cursor: pointer; font-size: 14px; }
.lang-item:hover { background: var(--bg-soft); }
.lang-item.is-active { background: rgba(30,58,138,0.08); font-weight: 600; }

/* Backdrop for language menu */
.lang-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(1px); z-index: 1000; display: none; }
.lang-backdrop.open { display: block; }

@media (max-width: 680px){
  .lang-menu { top: 10vh; width: 94vw; max-height: 70vh; }
}

/* Accessibility helper */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* FINAL OVERRIDE: remove all link underlines everywhere */
body a,
body a:link,
body a:visited,
body a:hover,
body a:focus,
body a:active,
.site-header a,
.site-footer a,
.sidebar a,
.widget a,
.entry-content a,
.post-list a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Neutral link color in widgets/footer */
.sidebar .widget a,
.site-footer a,
.footer a,
.footer-menu a { color: var(--text) !important; }
.sidebar .widget a:hover,
.site-footer a:hover,
.footer a:hover,
.footer-menu a:hover { color: var(--primary) !important; }

/* Remove bullets from widget/footer lists (and their markers) */
.sidebar .widget ul,
.sidebar .widget ol,
.site-footer ul,
.site-footer ol { list-style: none !important; padding-left: 0 !important; margin: 0; }
.sidebar .widget li::marker,
.site-footer li::marker { content: '' !important; }
.sidebar .widget li,
.site-footer li { margin: 6px 0; }

/* Global link reset: no blue underline anywhere */
a { text-decoration: none; }
a:hover, a:focus { text-decoration: none; }

/* Header brand/title link */
.site-header a, .site-title a, .brand a, .logo a { text-decoration: none !important; color: inherit; border: 0 !important; }

/* Category chips and nav filters */
.chips a, .chip a, .category-list a, .cat-links a, .tags a { text-decoration: none !important; }

/* Footer link lists */
.footer a, .site-footer a, .footer-menu a, .widget a { text-decoration: none !important; }

/* Remove all link underlines globally */
a, a:link, a:visited, a:hover, a:focus, a:active {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Ensure no underlines/blue in header, footer, widgets */
.site-header a,
.site-header .site-title a,
.site-footer a,
.footer a,
.footer-menu a,
.widget a,
.post-title a,
.chips a,
.chip a {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Widget links color tidy */
.widget a { color: var(--text); }
.widget a:hover { color: var(--primary); }

/* Remove bullets from widget lists */
.widget ul,
.widget ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.widget ul li,
.widget ol li { margin: 6px 0; }

/* Header: remove any lines under Site Title link */
.site-header .site-title a {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* Header category strip: remove top/bottom divider lines */
.cat-strip {
  border-top: none !important;
  border-bottom: none !important;
}

/* Category chips in header: remove borders/lines on pills */
.chips-row .chip,
.chip {
  border: none !important;
  box-shadow: none !important;
}

/* Ensure chip links themselves never get underlines */
.chips-row .chip,
.chips-row .chip:link,
.chips-row .chip:visited,
.chips-row .chip:hover,
.chips-row .chip:focus,
.chips-row .chip:active {
  text-decoration: none !important;
}

/* Header: never show underline on any links */
.site-header a,
.site-header .site-title a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Pages (not single posts): remove underlines from sidebar/footer links */
body:not(.single) .sidebar a,
body:not(.single) .widget a,
body:not(.single) .site-footer a,
body:not(.single) .footer a,
body:not(.single) .footer-menu a {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Pages (not single): remove bullets from sidebar/footer lists */
body:not(.single) .sidebar .widget ul,
body:not(.single) .sidebar .widget ol,
body:not(.single) .site-footer ul,
body:not(.single) .site-footer ol,
body:not(.single) .widget ul,
body:not(.single) .widget ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
body:not(.single) .sidebar .widget li::marker,
body:not(.single) .site-footer li::marker,
body:not(.single) .widget li::marker { content: '' !important; }
body:not(.single) .sidebar .widget li,
body:not(.single) .site-footer li,
body:not(.single) .widget li { margin: 6px 0; }

/* Header category strip: no borders */
.cat-strip { border-top: none !important; border-bottom: none !important; }

/* Header chips: no borders/underline */
.chips-row .chip,
.chips-row .chip:link,
.chips-row .chip:visited,
.chips-row .chip:hover,
.chips-row .chip:focus,
.chips-row .chip:active {
  border: none !important;
  text-decoration: none !important;
}

/* Remove thin line under header */
.site-header {
  border-bottom: none !important;
}

/* Header title + all header links: inherit color, no underline */
.site-header .site-title a,
.site-header a {
  color: inherit !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Strong override: widget/sidebar links on pages (not single posts) */
body:not(.single) .sidebar .widget a,
body:not(.single) .widget a {
  color: var(--text) !important;
  text-decoration: none !important;
  border: 0 !important;
}

/* Strong fix: remove any line/underline from website title in header */
.site-header .site-title a,
.site-header .site-title a:link,
.site-header .site-title a:visited,
.site-header .site-title a:hover,
.site-header .site-title a:focus,
.site-header .site-title a:active {
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  color: #111 !important; /* neutral title color */
}
.site-header .site-title a::before,
.site-header .site-title a::after { content: none !important; display: none !important; }

/* Header title: force no-underline and neutral color */
.site-header .site-title a,
.site-header .site-title a:link,
.site-header .site-title a:visited,
.site-header .site-title a:hover,
.site-header .site-title a:focus,
.site-header .site-title a:active {
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #111 !important;
}
.site-header .site-title a::before,
.site-header .site-title a::after { content: none !important; display: none !important; }

/* Sidebar widgets: Latest Posts block links (remove underline + blue) */
.widget_block .wp-block-latest-posts__post-title,
.widget_block .wp-block-latest-posts__post-title:link,
.widget_block .wp-block-latest-posts__post-title:visited,
.widget_block .wp-block-latest-posts__post-title:hover,
.widget_block .wp-block-latest-posts__post-title:focus,
.widget_block .wp-block-latest-posts__post-title:active {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text) !important;
}

/* Sidebar widgets: Pages list block links (remove underline + blue) */
.widget_block .wp-block-pages-list__item__link,
.widget_block .wp-block-pages-list__item__link:link,
.widget_block .wp-block-pages-list__item__link:visited,
.widget_block .wp-block-pages-list__item__link:hover,
.widget_block .wp-block-pages-list__item__link:focus,
.widget_block .wp-block-pages-list__item__link:active {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text) !important;
}

/* In case themes add pseudo underlines on widget links */
.widget_block a::after { content: none !important; display: none !important; }

/* Keep hover simple */
.widget_block a:hover { color: var(--primary) !important; }

/* ===== HARD KILL BLUE LINES (HEADER + WIDGETS + PAGINATION) ===== */
/* Header site title */
.site-header .site-title a,
.site-header .site-title a:link,
.site-header .site-title a:visited,
.site-header .site-title a:hover,
.site-header .site-title a:focus,
.site-header .site-title a:active {
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #111 !important;
}
.site-header .site-title a::before,
.site-header .site-title a::after { content: none !important; display: none !important; }

/* Pagination links */
a.page-numbers,
.nav-links a.page-numbers,
.pagination a,
.pagination .page-numbers {
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
a.page-numbers:hover,
.nav-links a.page-numbers:hover,
.pagination a:hover,
.pagination .page-numbers:hover { color: var(--primary) !important; }

/* Latest Posts widget (WP block) */
.wp-block-latest-posts__list a,
.wp-block-latest-posts__post-title,
.wp-block-latest-posts__post-title:link,
.wp-block-latest-posts__post-title:visited,
.wp-block-latest-posts__post-title:hover,
.wp-block-latest-posts__post-title:focus,
.wp-block-latest-posts__post-title:active {
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text) !important;
}

/* Pages list widget (WP block) */
.wp-block-pages-list__item__link,
.wp-block-pages-list__item__link:link,
.wp-block-pages-list__item__link:visited,
.wp-block-pages-list__item__link:hover,
.wp-block-pages-list__item__link:focus,
.wp-block-pages-list__item__link:active {
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
/* Remove bullets from Pages list */
.wp-block-pages-list__item { list-style: none !important; }

/* Email links in widgets/footer */
.widget a[href^="mailto:"],
.site-footer a[href^="mailto:"] {
  text-decoration: none !important;
  border: 0 !important;
  color: var(--text) !important;
}
/* ===== /HARD KILL BLUE LINES ===== */

/* ===== ULTRA FINAL OVERRIDE: remove any blue lines/underlines everywhere mentioned ===== */
/* Header title + links + buttons */
.site-header .site-title a,
.site-header a,
.site-header .button.icon-btn,
.site-header .button.icon-btn .btn-text,
.site-header .button.icon-btn .btn-ico,
/* Footer and widgets */
.site-footer a,
.widget a,
/* Widgets (Latest Posts, Pages list) */
.wp-block-latest-posts__list a,
.wp-block-latest-posts__post-title,
.wp-block-pages-list__item__link,
/* Pagination */
.pagination a,
.nav-links a.page-numbers,
.page-numbers,
/* Post titles and general anchors */
.post-title a,
.site-title a,
body a,
body a:link,
body a:visited,
body a:hover,
body a:focus,
body a:active {
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* Neutralize colors where WordPress/core may force link blue */
.site-header a,
.site-footer a,
.widget a,
.wp-block-latest-posts__post-title,
.wp-block-pages-list__item__link,
.pagination a,
.page-numbers {
  color: var(--text) !important;
}

/* Kill any decorative pseudo-element lines that some blocks add */
.site-header a::after,
.site-header a::before,
.site-title a::after,
.site-title a::before,
.post-title a::after,
.post-title a::before,
.wp-block-latest-posts__post-title::after,
.wp-block-pages-list__item__link::after,
.pagination a::after,
.page-numbers::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Optional: remove focus outlines on these specific UI links (accessibility trade-off) */
.site-header a:focus,
.site-footer a:focus,
.widget a:focus,
.pagination a:focus,
.page-numbers:focus {
  outline: none !important;
}
/* ===== /ULTRA FINAL OVERRIDE ===== */

/* ===== Pagination: larger, touch-friendly pills ===== */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.pagination .page-numbers,
.pagination a,
.nav-links a.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text) !important;
  font-size: 15px;
  font-weight: 700;
}
.pagination .page-numbers:hover,
.pagination a:hover { border-color: var(--primary); color: var(--primary) !important; }
.pagination .current { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.pagination .prev, .pagination .next { font-weight: 800; }
@media (min-width: 900px){
  .pagination .page-numbers, .pagination a { min-width: 44px; height: 44px; font-size: 16px; }
}
/* ===== /Pagination ===== */

/* ===== Page Loader (lightweight, LCP-friendly) ===== */
.aat-loader { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 9999; background: rgba(0,0,0,.45); }
.aat-loading .aat-loader { display: flex; }
.aat-spinner { --dot:#38bdf8; --dim: rgba(255,255,255,.25); position: relative; width: 56px; height: 56px; border-radius: 50%; animation: aatRotate 0.9s linear infinite; }
.aat-spinner::before, .aat-spinner::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
/* Dim dotted ring */
.aat-spinner::before { box-shadow:
  0 -24px 0 0 var(--dim),
  12px -21px 0 0 var(--dim),
  21px -12px 0 0 var(--dim),
  24px 0 0 0 var(--dim),
  21px 12px 0 0 var(--dim),
  12px 21px 0 0 var(--dim),
  0 24px 0 0 var(--dim),
  -12px 21px 0 0 var(--dim),
  -21px 12px 0 0 var(--dim),
  -24px 0 0 0 var(--dim),
  -21px -12px 0 0 var(--dim),
  -12px -21px 0 0 var(--dim);
}
/* Bright moving dot at top */
.aat-spinner::after { box-shadow: 0 -24px 0 0 var(--dot); }
@keyframes aatRotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .aat-spinner { animation: none; } }
/* ===== /Page Loader ===== */

/* ===== Title styling: elegant accent underline ===== */
.page .entry-title,
.single .entry-title,
.archive .page-title,
.search .page-title,
.blog .page-title,
.home .page-title {
  position: relative;
  display: inline-block;
  margin: 8px 0 14px;
  padding-bottom: 8px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .2px;
  color: var(--text);
  text-decoration: none !important;
}
.page .entry-title::after,
.single .entry-title::after,
.archive .page-title::after,
.search .page-title::after,
.blog .page-title::after,
.home .page-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 4px; width: 56%;
  background: linear-gradient(90deg, var(--primary), rgba(56,189,248,0.15));
  border-radius: 999px;
}
@media (min-width: 768px){
  .page .entry-title,
  .single .entry-title { font-size: 32px; }
  .archive .page-title,
  .search .page-title { font-size: 28px; }
}
@media (max-width: 767.98px){
  .page .entry-title,
  .single .entry-title { font-size: 26px; }
  .archive .page-title,
  .search .page-title { font-size: 24px; }
}
/* ===== /Title styling ===== */

/* ===== Ad centering fix (v-fix): banner left par chipakta tha =====
   header_top slot container ke bahar (full width) print hota hai, aur
   GPT/img ads inline-block hone ki wajah se text-align:center ke bawajood
   left par reh jate the. Ab wrapper flex hai, ad hamesha beech mein. */
.aat-ad {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  padding: 0 16px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.aat-ad > * { margin-left: auto !important; margin-right: auto !important; max-width: 100%; }
.aat-ad img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; height: auto; }
.aat-ad ins, .aat-ad iframe { display: block; margin-left: auto; margin-right: auto; max-width: 100%; }
[id^="div-gpt-ad-"], [id^="google_ads_iframe_"][id$="__container__"] { display: flex; justify-content: center; }

/* =====================================================================
   GOLD FRAME — sirf HOME page ke liye (body.home)
   Light aur Dark dono mode mein frame ek jaisa golden rehta hai,
   andar ka rang mode ke hisaab se badalta hai.
   Hataana ho to poora block delete kar do — theme par koi asar nahi.
   ===================================================================== */
html body.home{
  --sv: linear-gradient(135deg,#fff4c6 0%,#e8b94a 16%,#fff0b0 34%,#b8860b 56%,#f7d978 76%,#c9972b 100%);
  --sv-plate: linear-gradient(180deg,#fdeeb0 0%,#e3b444 55%,#b98a1f 100%);
  --sv-inner:#fff9ea;
  --sv-card:#fffdf6;
  --sv-text:#2a1f05;
}
html.dark body.home{
  --sv-inner:#15110a;
  --sv-card:#1b1710;
  --sv-text:#f6ecd0;
}

/* 1) Logo */
html body.home .site-brand img.custom-logo{
  padding:3px;
  border-radius:9px;
  background:linear-gradient(var(--sv-inner),var(--sv-inner)) content-box, var(--sv) border-box;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}

/* 2) Header buttons (AI Forex, News, Calculator, Search, Dark toggle) */
html body.home .nav-actions .icon-btn,
html body.home .nav-actions .dark-toggle{
  background:var(--sv-plate) padding-box, var(--sv) border-box !important;
  border:2px solid transparent !important;
  color:#3a2a05 !important;
  border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,246,200,.85), 0 2px 6px rgba(0,0,0,.35);
}
html body.home .nav-actions .icon-btn:hover,
html body.home .nav-actions .dark-toggle:hover{ filter:brightness(1.07); }

/* 3) Category chips */
html body.home .chips-row a.chip{
  background:linear-gradient(var(--sv-inner),var(--sv-inner)) padding-box, var(--sv) border-box !important;
  border:2px solid transparent !important;
  color:var(--sv-text) !important;
  border-radius:999px;
  box-shadow:0 2px 6px rgba(0,0,0,.22) !important;
}

/* 4) TradingView ticker (bahar ka frame; andar ke cards TradingView ke apne hain) */
html body.home iframe[src*="ticker-tape"]{
  border-radius:10px;
  margin:4px 3px;
  box-shadow:0 0 0 2px #f6dc8a, 0 0 0 3px #a67c1a, 0 4px 10px rgba(0,0,0,.30);
}

/* 5) Neeche wali 4 images (How to Start Forex strip) */
html body.home .aat-forex-link{
  padding:3px;
  border-radius:12px;
  background:var(--sv) !important;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
html body.home .aat-forex-link .aat-forex-img{ border-radius:9px; }

/* 6) Latest Posts cards */
html body.home article.aat-post-item{
  border:2px solid transparent !important;
  background:linear-gradient(var(--sv-card),var(--sv-card)) padding-box, var(--sv) border-box !important;
}

/* 7) Neeche anchor ad (Exness) */
html body.home #exn-anchor{
  background:var(--sv) !important;
  padding:5px 8px !important;
  box-shadow:0 -3px 12px rgba(0,0,0,.40) !important;
}
html body.home #exn-anchor img{ border-radius:8px; }
