/*
Theme Name:  VYDToday
Theme URI:   https://vydtoday.com
Author:      VYDToday
Author URI:  https://vydtoday.com
Description: Ultra-fast WordPress news theme with A+ Core Web Vitals. Minimum DB queries, self-hosted fonts, no jQuery dependency.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-theme-ultra
Tags:        news, magazine, fast, minimal, blog, two-columns
*/

/* ============================================
   News Theme Ultra — Ultra Fast News Theme
   Minimal, Editorial, SEO-Optimized
   No @import — Fonts loaded via functions.php
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --clr-black:   #0a0a0a;
  --clr-dark:    #1a1a1a;
  --clr-mid:     #444444;
  --clr-muted:   #888888;
  --clr-border:  #e5e5e5;
  --clr-bg:      #ffffff;
  --clr-bg2:     #f7f7f5;
  --clr-accent:  #cc0000;
  --clr-accent2: #e63030;

  --ff-heading: 'Lora', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.35rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;

  --radius:  4px;
  --shadow:  0 2px 12px rgba(0,0,0,0.08);
  --max-w:   1200px;
  --gap:     1.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-dark);
  background: var(--clr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---------- Utilities ---------- */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.badge       { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clr-accent); }
.divider     { border: none; border-top: 2px solid var(--clr-black); margin: 0; }
.divider-sm  { border: none; border-top: 1px solid var(--clr-border); margin: 0; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--clr-black);
  color: #ccc;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  padding: .45rem 0;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar__date { color: #aaa; }
.topbar__links a { color: #ccc; margin-left: 1rem; transition: color .2s; }
.topbar__links a:hover { color: #fff; }

/* ---------- HEADER ---------- */
.site-header { padding: 1.5rem 0 1rem; border-bottom: 3px solid var(--clr-black); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-black);
  letter-spacing: -.02em;
  line-height: 1;
}
.site-logo span { color: var(--clr-accent); }
.header-search {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--clr-black); }
.header-search input {
  padding: .5rem .85rem;
  border: none;
  outline: none;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--clr-dark);
  width: 200px;
  background: transparent;
}
.header-search button {
  padding: .5rem .85rem;
  background: var(--clr-black);
  color: #fff;
  font-size: var(--fs-sm);
  transition: background .2s;
}
.header-search button:hover { background: var(--clr-accent); }

/* ---------- NAV ---------- */
.main-nav { background: var(--clr-bg); border-bottom: 1px solid var(--clr-border); position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.main-nav { position: static !important; top: auto !important; }
.main-nav__inner {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0;
  flex-wrap: nowrap;
  position: relative;
}
.main-nav__items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 1;
}
/* WordPress nav menu override */
.main-nav__items ul,
.main-nav .menu {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a,
.main-nav .menu a {
  display: block;
  padding: .75rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--clr-dark);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current-cat > a { color: var(--clr-accent); border-bottom-color: var(--clr-accent); }
.nav-toggle {
  display: none;
  padding: .6rem;
  margin-left: auto;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle .icon-open  { display: block; }
.nav-toggle.is-open .icon-close { display: block; }
.nav-toggle.is-open .icon-open  { display: none; }

/* ---------- BREAKING NEWS TICKER ---------- */
.breaking-bar {
  background: var(--clr-accent);
  color: #fff;
  padding: .5rem 0;
  overflow: hidden;
}
.breaking-bar__inner { display: flex; align-items: center; gap: 1rem; }
.breaking-label {
  background: var(--clr-black);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-items {
  display: flex;
  gap: 3rem;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker-items a { font-size: var(--fs-sm); color: #fff; font-weight: 500; }
.ticker-items a:hover { text-decoration: underline; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- CARD COMPONENTS ---------- */
/* Featured / Hero Card */
.card-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clr-black);
}
.card-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  opacity: .75;
  transition: opacity .3s;
}
.card-hero:hover img { opacity: .85; }
.card-hero__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
  color: #fff;
}
.card-hero__body .badge { color: #ffaaaa; margin-bottom: .5rem; }
.card-hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .6rem;
}
.card-hero__meta { font-size: var(--fs-xs); color: rgba(255,255,255,.7); }

/* Standard Card */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-bg);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__thumb { overflow: hidden; aspect-ratio: 16/10; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__thumb img { transform: scale(1.04); }
.card__body { padding: 1rem 0.5rem .5rem; flex: 1; display: flex; flex-direction: column; }
.card__badge { margin-bottom: .4rem; }
.card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .5rem;
  color: var(--clr-black);
  transition: color .2s;
}
.card:hover .card__title { color: var(--clr-accent); }
.card__excerpt { font-size: var(--fs-sm); color: var(--clr-mid); line-height: 1.55; margin-bottom: .75rem; flex: 1; }
.card__meta { font-size: var(--fs-xs); color: var(--clr-muted); display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.card__meta-dot { width: 3px; height: 3px; background: var(--clr-muted); border-radius: 50%; }

/* List Card (sidebar / horizontal) */
.card-list {
  display: flex;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.card-list:last-child { border-bottom: none; }
.card-list__thumb { flex-shrink: 0; width: 90px; height: 68px; overflow: hidden; border-radius: var(--radius); }
.card-list__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-list:hover .card-list__thumb img { transform: scale(1.06); }
.card-list__body { flex: 1; }
.card-list__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-black);
  margin-bottom: .35rem;
  transition: color .2s;
}
.card-list:hover .card-list__title { color: var(--clr-accent); }
.card-list__meta { font-size: var(--fs-xs); color: var(--clr-muted); }

/* ---------- SECTION HEADER ---------- */
.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--clr-black);
}
.section-hdr__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  position: relative;
}
.section-hdr__title::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0; bottom: 0;
  width: 4px;
  background: var(--clr-accent);
  border-radius: 2px;
}
.section-hdr__link {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--clr-accent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.section-hdr__link:hover { border-bottom-color: var(--clr-accent); }

/* ---------- GRIDS ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-main-aside {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
}

/* ---------- SIDEBAR ---------- */
.widget { margin-bottom: 2rem; }
.widget-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--clr-black);
  margin-bottom: 1rem;
  letter-spacing: .01em;
}

/* Tags Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.ntu-tag {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--clr-mid);
  transition: all .2s;
}
.ntu-tag:hover { background: var(--clr-black); color: #fff; border-color: var(--clr-black); }

/* WordPress Tag Cloud override */
.widget_tag_cloud .tag-cloud-link {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 100px;
  font-size: var(--fs-xs) !important;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--clr-mid);
  transition: all .2s;
  margin: .25rem;
}
.widget_tag_cloud .tag-cloud-link:hover { background: var(--clr-black); color: #fff; border-color: var(--clr-black); }

/* ---------- PAGINATION ---------- */
.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 2rem 0;
}
.page-btn,
.nav-links .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-dark);
  transition: all .2s;
}
.page-btn:hover,
.page-btn.active,
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current { background: var(--clr-black); color: #fff; border-color: var(--clr-black); }

/* ---------- SINGLE POST ---------- */
.post-header { padding: 0rem 0 2rem; border-bottom: 1px solid var(--clr-border); margin-bottom: 2rem; }
.post-category { margin-bottom: .75rem; }
.post-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-black);
  margin-bottom: 1rem;
  max-width: 780px;
}
.post-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-mid);
  line-height: 1.5;
  max-width: 700px;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.post-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--clr-muted); }
.post-meta__author { font-weight: 600; color: var(--clr-dark); }
.post-featured-img { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.post-featured-img img { width: 100%; max-height: 520px; object-fit: cover; }
.post-featured-img figcaption { font-size: var(--fs-xs); color: var(--clr-muted); padding: .5rem 0; text-align: center; }

/* Post Content Typography */
.post-content {
  font-family: var(--ff-heading);
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--clr-dark);
  max-width: 720px;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 { font-size: var(--fs-xl); margin: 2rem 0 1rem; font-weight: 700; color: var(--clr-black); line-height: 1.3; }
.post-content h3 { font-size: var(--fs-lg); margin: 1.75rem 0 .75rem; font-weight: 700; line-height: 1.3; }
.post-content blockquote {
  border-left: 4px solid var(--clr-accent);
  margin: 2rem 0;
  padding: .75rem 1.5rem;
  background: var(--clr-bg2);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--clr-mid);
}
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; list-style: revert; }
.post-content li { margin-bottom: .4rem; }
.post-content a { color: var(--clr-accent); text-decoration: underline; }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* WordPress Block Editor alignment */
.post-content .alignwide { margin-left: -2rem; margin-right: -2rem; }
.post-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.post-content .alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.post-content .alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

/* Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin: 2rem 0;
  flex-wrap: wrap;
}
.share-bar span { font-size: var(--fs-sm); font-weight: 600; color: var(--clr-mid); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff;
  transition: opacity .2s;
  cursor: pointer;
}
.share-btn:hover { opacity: .85; }
.share-btn--fb   { background: #1877f2; }
.share-btn--tw   { background: #000; }
.share-btn--wa   { background: #25d366; }
.share-btn--copy { background: var(--clr-mid); }

/* Author Box */
.author-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--clr-bg2);
  border-radius: var(--radius);
  margin: 2rem 0;
  border: 1px solid var(--clr-border);
}
.author-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: var(--fs-base); margin-bottom: .25rem; }
.author-bio { font-size: var(--fs-sm); color: var(--clr-mid); line-height: 1.5; }
/* Author Box — Social Icons */
.author-content {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
    min-width: 0;
}

.author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .5rem;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--clr-mid);
    background: transparent;
    border: 1px solid var(--clr-border);
    transition: color .18s ease, background .18s ease, border-color .18s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.author-social-link svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Platform hover colors */
.author-social--twitter:hover   { background: #000;     border-color: #000;     color: #fff; }
.author-social--facebook:hover  { background: #1877F2;  border-color: #1877F2;  color: #fff; }
.author-social--instagram:hover { background: #E1306C;  border-color: #E1306C;  color: #fff; }
.author-social--linkedin:hover  { background: #0A66C2;  border-color: #0A66C2;  color: #fff; }
.author-social--youtube:hover   { background: #FF0000;  border-color: #FF0000;  color: #fff; }
.author-social--url:hover       { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }

/* ---------- CATEGORY PAGE ---------- */
.cat-header {
  background: var(--clr-black);
  color: #fff;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2.5rem;
  margin-top: 0;
}
.cat-header__label { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: .5rem; font-weight: 600; }
.cat-header__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: .5rem;
}
.cat-header__desc { color: #aaa; font-size: var(--fs-md); max-width: 560px; }

/* ---------- SEARCH PAGE ---------- */
.search-hero {
  background: var(--clr-bg2);
  padding: 3rem 0;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.search-form-big {
  display: flex;
  gap: 0;
  max-width: 600px;
  border: 2px solid var(--clr-black);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-form-big input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: none;
  outline: none;
  font-size: var(--fs-md);
  font-family: var(--ff-body);
  background: #fff;
}
.search-form-big button {
  padding: .85rem 1.5rem;
  background: var(--clr-black);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .2s;
  cursor: pointer;
}
.search-form-big button:hover { background: var(--clr-accent); }
.search-results-info {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
}
.search-results-info strong { color: var(--clr-dark); }

/* ---------- 404 PAGE ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.error-number {
  font-family: var(--ff-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  color: var(--clr-border);
  line-height: 1;
  margin-bottom: -1rem;
  user-select: none;
}
.error-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: .75rem;
}
.error-desc { font-size: var(--fs-md); color: var(--clr-mid); margin-bottom: 2rem; }
.btn-primary {
  display: inline-block;
  padding: .75rem 2rem;
  background: var(--clr-black);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background .2s;
}
.btn-primary:hover { background: var(--clr-accent); }

/* ---------- STATIC PAGE ---------- */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 2px solid var(--clr-black);
  margin-bottom: 2.5rem;
}
.page-header__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--clr-black);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--clr-black);
  color: #ccc;
  padding: 3rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #333;
}
.footer-about__logo {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}
.footer-about__logo span { color: var(--clr-accent); }
.footer-about p { font-size: var(--fs-sm); color: #888; line-height: 1.6; }
.footer-col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: var(--fs-sm); color: #888; transition: color .2s; }
.footer-links a:hover { color: var(--clr-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: var(--fs-xs);
  color: #555;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: #555; transition: color .2s; }
.footer-bottom a:hover { color: #ccc; }

/* ------ Also Read Single Post Link Style ------ */
.also-read {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.75rem 0;
  padding: .9rem 1.25rem;
  background: var(--clr-bg2);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--ff-body);
}

.also-read__label {
  flex-shrink: 0;
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--clr-accent);
  padding: .25rem .7rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.also-read__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-black);
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.also-read__link:hover {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}

/* ---------- RSS BUTTON ---------- */
.rss-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  background: #f26522;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: opacity .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.rss-btn:hover { opacity: .85; }

/* ---------- HEADER ACTIONS ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ---------- TRENDING WIDGET ---------- */
.trending-list { list-style: none; padding: 0; margin: 0; }
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-border);
  line-height: 1.2;
  min-width: 28px;
  flex-shrink: 0;
}
.trending-item:nth-child(1) .trending-num { color: var(--clr-accent); }
.trending-item:nth-child(2) .trending-num { color: #cc6600; }
.trending-item:nth-child(3) .trending-num { color: #888; }
.trending-link { flex: 1; }
.trending-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-black);
  line-height: 1.35;
  margin-bottom: .2rem;
  transition: color .2s;
}
.trending-item:hover .trending-title { color: var(--clr-accent); }
.trending-meta { font-size: var(--fs-xs); color: var(--clr-muted); }


/* ============================================================
   COMMENTS SECTION
   Paste this block at the END of your style.css file.
   Matches the HTML template's comment section exactly.
   ============================================================ */

/* ---------- Comments Section Wrapper ---------- */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--clr-black);
}

.comments-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-black);
  margin-bottom: 2rem;
}

/* ---------- Comments List ---------- */
.comments-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

/* ---------- Single Comment ---------- */
.comment {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.comment:last-child { border-bottom: none; }

.comment__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* ---------- Avatar ---------- */
.comment__avatar {
  flex-shrink: 0;
}
.comment__avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* WordPress gravatar override */
.comment__avatar img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  box-shadow: none;
}

/* ---------- Comment Body ---------- */
.comment__body {
  flex: 1;
  min-width: 0;
}

.comment__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.comment__author {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-black);
}

.comment__date {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
}

/* "Post author" badge */
.comment .bypostauthor .comment__author::after,
.bypostauthor > .comment__inner .comment__author::after {
  content: ' ✦';
  color: var(--clr-accent);
  font-size: var(--fs-xs);
}

.comment__text {
  font-size: var(--fs-sm);
  color: var(--clr-dark);
  line-height: 1.65;
}
.comment__text p {
  margin: 0 0 .5rem;
}
.comment__text p:last-child { margin-bottom: 0; }

.comment__actions {
  margin-top: .6rem;
}

.comment-reply-link {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-accent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  cursor: pointer;
}
.comment-reply-link:hover { border-bottom-color: var(--clr-accent); }

/* ---------- Nested / Child Comments ---------- */
.comment__children {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 3.5rem; /* indent child comments */
  border-left: 3px solid var(--clr-border);
  padding-left: 1.25rem;
}

.comment--child {
  border-bottom: none;
  padding: .85rem 0;
}
.comment--child:last-child { padding-bottom: 0; }

/* WordPress nested .children class */
.comments-list .children {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 3.5rem;
  border-left: 3px solid var(--clr-border);
  padding-left: 1.25rem;
}
.comments-list .children .comment {
  border-bottom: none;
  padding: .85rem 0;
}

/* ---------- Leave a Reply Form ---------- */
.comment-respond {
  background: var(--clr-bg2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.comment-respond__title,
#reply-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-black);
  margin-bottom: .75rem;
}

/* "Cancel reply" line */
.comment-respond__cancel,
#cancel-comment-reply-link {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  margin-bottom: .75rem;
}

.cancel-reply-link,
#cancel-comment-reply-link a {
  color: var(--clr-accent);
  text-decoration: underline;
  cursor: pointer;
}

.comment-respond__note,
.comment-notes {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  margin-bottom: 1.25rem;
}

.required {
  color: var(--clr-accent);
}

/* ---------- Comment Form Fields ---------- */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comment-form__field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.comment-form__field--full {
  grid-column: 1 / -1;
}

.comment-form__field label,
.comment-form label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-dark);
}

.comment-form__field input,
.comment-form__field textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--clr-dark);
  background: var(--clr-bg);
  transition: border-color .2s;
  outline: none;
  appearance: none;
}

.comment-form__field input:focus,
.comment-form__field textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--clr-black);
}

.comment-form__field textarea,
.comment-form textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* ---------- Cookie Checkbox ---------- */
.comment-form__cookie,
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.comment-form__cookie input[type="checkbox"],
.comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--clr-accent);
  cursor: pointer;
}

.comment-form__cookie label,
.comment-form-cookies-consent label {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
}

/* ---------- Submit Button ---------- */
.comment-submit-btn,
.comment-form input[type="submit"],
#submit {
  align-self: flex-start;
  padding: .7rem 2rem;
  background: var(--clr-black);
  color: #fff;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
}

.comment-submit-btn:hover,
.comment-form input[type="submit"]:hover,
#submit:hover {
  background: var(--clr-accent);
}

/* ---------- WordPress "must log in" notice ---------- */
.must-log-in,
.logged-in-as {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  margin-bottom: 1rem;
}
.logged-in-as a { color: var(--clr-accent); }

/* ---------- Responsive ---------- */

/* ---------- WORDPRESS ADMIN BAR FIX ---------- */
.admin-bar .main-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .main-nav { top: 46px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-main-aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --fs-2xl: 1.75rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-header__inner { flex-direction: column; align-items: center; gap: .75rem; }
  .site-header__inner .header-search { width: 100%; max-width: 320px; }
  .site-header__inner .header-search input { width: 100%; flex: 1; }
  .site-header__inner .rss-btn { width: auto; }
  .header-search input { width: 160px; }
  .main-nav__items,
  .main-nav .menu { display: none; flex-direction: column; width: 100%; background: var(--clr-bg); border-top: 1px solid var(--clr-border); position: absolute; top: 100%; left: 0; right: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 998; }
  .main-nav__items.open,
  .main-nav .menu.open { display: flex; }
  .main-nav a,
  .main-nav .menu a { border-bottom: none; border-left: 3px solid transparent; padding: .85rem 1.25rem; text-align: left; }
  .main-nav a.active,
  .main-nav .current-menu-item > a { border-left-color: var(--clr-accent); }
  .nav-toggle { display: flex; }
  .card-hero img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar__links { display: none; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .cat-header__title { font-size: var(--fs-2xl); }
}
@media (max-width: 600px) {
  .cat-featured {
    flex-direction: column !important;
  }
  .cat-featured-thumb {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16/9 !important;
  }
.post-meta {
	font-size: 0.75rem;
	gap: 0.3rem;
	flex-wrap: wrap;
	row-gap: 0.2rem;
}
.share-bar {
	flex-wrap: wrap;
	gap: 0.4rem;
}

.share-btn {
	font-size: 0.70rem;
	padding: 0.35rem 0.7rem;
}
  .also-read {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    padding: .85rem 1rem;
  }
  .comment-form__row {
    grid-template-columns: 1fr;
  }
  .comment__children,
  .comments-list .children {
    margin-left: 1.5rem;
    padding-left: .75rem;
  }
  .comment-respond {
    padding: 1.25rem;
  }  
}




/* ── Desktop Table ── */
.wp-block-table table,
.entry-content table,
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-family: inherit;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.wp-block-table thead tr,
.entry-content thead tr,
.post-content thead tr {
  background-color: #185FA5;
}

.wp-block-table thead th,
.entry-content thead th,
.post-content thead th {
  padding: 13px 18px;
  text-align: center;
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wp-block-table thead th:first-child,
.entry-content thead th:first-child,
.post-content thead th:first-child {
  text-align: left;
}

.wp-block-table tbody tr,
.entry-content tbody tr,
.post-content tbody tr {
  border-bottom: 1px solid #e8eef5;
  transition: background 0.15s ease;
}

.wp-block-table tbody tr:last-child,
.entry-content tbody tr:last-child,
.post-content tbody tr:last-child {
  border-bottom: none;
}

.wp-block-table tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even),
.post-content tbody tr:nth-child(even) {
  background-color: #f5f8fc;
}

.wp-block-table tbody tr:hover,
.entry-content tbody tr:hover,
.post-content tbody tr:hover {
  background-color: #ddeaf8;
}

.wp-block-table tbody td,
.entry-content tbody td,
.post-content tbody td {
  padding: 12px 18px;
  text-align: center;
  color: #222;
  font-size: 14px;
}

.wp-block-table tbody td:first-child,
.entry-content tbody td:first-child,
.post-content tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Responsive: Mobile Cards ── */
@media (max-width: 600px) {
  .wp-block-table thead,
  .entry-content thead,
  .post-content thead {
    display: table-header-group; /* display: none ki jagah */
  }

  .wp-block-table thead th,
  .entry-content thead th,
  .post-content thead th {
    font-size: 10px;
    padding: 10px 8px;
  }

  .wp-block-table tbody td,
  .entry-content tbody td,
  .post-content tbody td {
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
    display: table-cell; /* flex ki jagah */
    justify-content: unset;
  }

  .wp-block-table tbody td:first-child,
  .entry-content tbody td:first-child,
  .post-content tbody td:first-child {
    background: transparent;
    color: #555;
    justify-content: unset;
  }

  .wp-block-table tbody td::before,
  .entry-content tbody td::before,
  .post-content tbody td::before {
    display: none; /* data-label wala before hatao */
  }

  .wp-block-table tbody tr,
  .entry-content tbody tr,
  .post-content tbody tr {
    display: table-row; /* block ki jagah */
    border-radius: 0;
  }
}

.contact-form {
	background: #fff;
	padding: 40px;
	border-radius: 24px;
	border: 1px solid var(--wp-border);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .03)
}

.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px
}

.form-group,
.grid-2 {
	margin-bottom: 24px
}

.form-group label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--wp-dark);
	margin-bottom: 8px
}

.form-input {
	width: 100%;
	padding: 14px 20px;
	border-radius: 12px;
	border: 1px solid var(--wp-border);
	font-family: inherit;
	font-size: 15px;
	outline: none;
	transition: .3s;
	background: aliceblue;
}

.form-input:focus {
	border-color: var(--wp-primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
	background: #fff
}

textarea.form-input {
	resize: vertical;
	min-height: 120px
}

.terms-group {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 30px
}

.terms-group input {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	cursor: pointer;
	accent-color: var(--wp-primary)
}

.terms-group label {
	font-size: 14px;
	color: var(--wp-gray);
	cursor: pointer;
	user-select: none
}

.terms-group label a {
	color: var(--wp-primary);
	text-decoration: none;
	font-weight: 600
}

.submit-btn {
	width: 100%;
	background: var(--wp-primary);
	color: #fff;
	padding: 16px;
	border-radius: 14px;
	border: none;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: .3s;
	box-shadow: 0 10px 20px rgba(79, 70, 229, .2)
}

.submit-btn:hover {
	/*background: var(--wp-primary-hover);*/
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(79, 70, 229, .3)
}

.submit-btn:active {
	transform: translateY(0)
}

.form-status {
	margin-top: 20px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	padding: 12px;
	border-radius: 8px;
	display: none
}

.form-status.success {
	display: block;
	background: #ecfdf5;
	color: #059669
}

.form-status.error {
	display: block;
	background: #fef2f2;
	color: #dc2626
}

/* ===== MOBILE FIX: Sports/Entertainment/Business Sections ===== */
@media (max-width: 768px) {

  /* Sports + Entertainment side-by-side grid ko single column banao */
  section .grid-2[style*="gap: 3rem"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Business section ka grid bhi fix karo */
  section .grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Card list items (Sports/Entertainment articles) ka spacing theek karo */
  .card-list {
    padding: 1rem 0;
  }

  .card-list__thumb {
    width: 80px;
    height: 60px;
  }

  /* Section header mein "See All" button overflow na ho */
  .section-hdr {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .section-hdr__title {
    font-size: var(--fs-base);
  }
}

@media (max-width: 480px) {
  .card-list__title {
    font-size: var(--fs-xs);
  }
}

/* styles for View Your Deal */
@media(max-width:479px){ .deal-wrapper{ width:100%; } }
@media(min-width: 480px) and (max-width: 685px){ .deal-wrapper{ width:100%; } }
@media(min-width: 686px) and (max-width: 1049px){ .deal-wrapper{ width:100%; } }
@media(min-width: 1050px){ .deal-wrapper{ width:60%; } }	
.deals{
    border: 5px dashed;
    background-color: lavenderblush;
    padding: 1em;
}
.deal-wrapper{
	border: 1px solid burlywood;
    text-align: center;
	margin:0 auto 2em auto;
}

.deal-logo{
	background-color: white;
	height: 50px;
}
.deal-logo img{
	background-color: #fff;
    box-shadow: 3px 3px 10px rgb(0 0 0 / 30%);
    padding: 1em;
	max-width:30%;
	position: relative;
    top: 0px;
    margin: 0 auto;
}
.deal-image img{
	margin:0 auto;
}
	
	
	
}
.deal-price{
	display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.retail-price span{
	font-weight: 400;
    text-decoration: line-through;
    color: #ff0000;
}
.deal-off{
	font-weight: 700;
}
.deal-shipping{
	font-weight:700;
	background-color: cornsilk;
}
.shopbtn{
	cursor: pointer;
    font-weight: 700;
    padding: 0.5em 0;
    font-size: 1em;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: #24a7db;
    color: #fff;
    margin-top: 0;
}
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

