/*
 * News Website Theme - Main Stylesheet
 * Version: 1.0.0
 */

:root {
  --ink: #3a0a0f;
  --ink-soft: #6b3d42;
  --paper: #fbf6f2;
  --card: #ffffff;
  --line: #ecd9d6;
  --indigo: #8a1731;
  --indigo-dk: #5c0f21;
  --saffron: #d4a017;
  --saffron-dk: #a67c0f;
  --teal: #0f7d72;
  --plum: #7a4fb5;
  --leaf: #2e8b4f;
  --rose: #8a1731;
  --navy: #140b4a;
  --navy-dk: #0c0730;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(90,15,33,.06), 0 4px 14px rgba(90,15,33,.05);
  --bg-paper: #fbf6f2;
  --footer-bg: #5c0f21;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; color: var(--ink); }
a { color: inherit; text-decoration: none; transition: color .15s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: #f2d4b0; }
:focus-visible { outline: 2.5px solid var(--saffron-dk); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px,5vw,80px); }
section[id], div[id] { scroll-margin-top: 90px; }
body.home .wrap.main-content, body.front-page .wrap.main-content { padding-left: clamp(27px,6vw,103px); padding-right: clamp(27px,6vw,103px); }

/* ---------- Reading progress bar ---------- */
#reading-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--indigo));
  z-index: 9999; width: 0; transition: width .05s;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--navy-dk); color: #aab1cc; font-size: 12px; padding: 6px 0;
}
.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #c3c9de; padding: 0 10px; }
.top-bar a:hover { color: #fff; }

/* ---------- Header banner ---------- */
header.main {
  background: linear-gradient(180deg, var(--header-bg), var(--indigo-dk));
  text-align: center;
  padding: 16px 0 14px;
  position: relative;
}
.header-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; position: relative; }
.site-branding { text-align: center; }
header.main .site-title { color: var(--header-text); font-size: 24px; letter-spacing: .3px; font-weight: 800; margin: 0; }
header.main .site-title a { color: var(--header-text); }
header.main .site-tagline { color: var(--header-text); font-size: 12.5px; margin-top: 4px; font-weight: 500; letter-spacing: .3px; opacity: .85; }
header.main .custom-logo { max-height: 50px; width: auto; }

/* Header search */
.header-search { position: relative; max-width: 260px; width: 100%; }
.header-search .search-form { position: relative; display: flex; }
.header-search .search-input {
  width: 100%; padding: 11px 44px 11px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--search-bg); color: var(--search-color); font-family: 'Inter'; font-size: 13.5px; outline: none; transition: border .15s;
}
.header-search .search-input::placeholder { color: var(--search-color); opacity: .55; }
.header-search .search-input:focus { border-color: var(--saffron); }
.header-search .search-submit {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 8px; opacity: .55; color: var(--search-icon);
}
.header-search .search-submit:hover { opacity: 1; }

/* Dark mode toggle */
.dark-mode-toggle {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: var(--header-text); cursor: pointer; padding: 8px 12px; border-radius: 20px;
  font-size: 16px; transition: background .15s;
}
.dark-mode-toggle:hover { background: rgba(255,255,255,.25); }

/* ---------- Nav ---------- */
nav.primary { background: var(--navy); border-bottom: 3px solid var(--saffron); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.sticky-header nav.primary { position: sticky; top: 0; }
nav.primary .wrap { display: flex; overflow-x: auto; scrollbar-width: none; justify-content: center; max-width: none; margin: 0; padding: 0; list-style: none; }
nav.primary .wrap::-webkit-scrollbar { display: none; }
nav.primary a { color: #fff; font-weight: 600; font-size: 13.5px; padding: 13px 20px; white-space: nowrap; border-bottom: 3px solid transparent; transition: .15s; flex-shrink: 0; }
nav.primary a:hover, nav.primary a:focus { background: rgba(255,255,255,.08); border-color: var(--saffron); }
nav.primary .active a, nav.primary .current-menu-item > a { border-color: var(--saffron); background: rgba(255,255,255,.08); }
.primary-menu { display: flex; overflow-x: auto; scrollbar-width: none; justify-content: center; margin: 0; list-style: none; }
.primary-menu::-webkit-scrollbar { display: none; }

/* ---------- Mobile menu toggle ---------- */
.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 10px 16px; }

/* ---------- Ticker ---------- */
.ticker-band { background: var(--saffron); color: #fff; overflow: hidden; position: relative; }
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--saffron-dk); padding: 0 16px;
  display: flex; align-items: center; font-weight: 700; font-size: 12px;
  letter-spacing: .5px; text-transform: uppercase; z-index: 2;
}
.ticker-label::after {
  content: ""; position: absolute; right: -14px; top: 0; bottom: 0;
  width: 14px; background: var(--saffron-dk); clip-path: polygon(0 0,100% 50%,0 100%);
}
.ticker-track-outer { padding-left: 150px; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: 9px 0; animation: ticker-scroll 32s linear infinite; font-size: 13px; font-weight: 600; }
.ticker-track span { margin-right: 48px; }
.ticker-track a { color: #fff; }
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- AJAX search results ---------- */
.ajax-search-results {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 200; max-height: 400px; overflow-y: auto;
}
.ajax-search-results.active { display: block; }
.ajax-search-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ajax-search-item:last-child { border-bottom: none; }
.ajax-search-item:hover { background: var(--paper); }
.ajax-search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.ajax-search-info { flex: 1; }
.ajax-search-info .title { font-weight: 600; font-size: 13px; color: var(--ink); display: block; }
.ajax-search-info .meta { font-size: 11px; color: var(--ink-soft); }
.ajax-search-all { text-align: center; padding: 10px; font-weight: 600; font-size: 13px; }
.ajax-search-no-results { padding: 20px; text-align: center; color: var(--ink-soft); }
.ajax-search-loading { padding: 16px; text-align: center; }
.ajax-search-loading::after { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--indigo); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Colour tiles (quick links) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 24px 0 30px; }
.tiles a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; font-weight: 700; font-size: 15px; padding: 11px 12px;
  border-radius: 7px; line-height: 1.3; box-shadow: 0 2px 6px rgba(0,0,0,.13);
  transition: transform .15s, box-shadow .15s; min-height: 52px;
}
.tiles a:hover { transform: translateY(-2px); box-shadow: 0 5px 13px rgba(0,0,0,.18); }
.tiles .sub { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tiles .sub .pill { background: #1859c9; color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 5px; display: flex; align-items: center; gap: 5px; }

/* ---------- Layout grid ---------- */
.main-content { display: flex; flex-wrap: wrap; gap: 40px; padding: 30px 0 14px; }
.site-main { flex: 1; min-width: 0; }
.has-sidebar.sidebar-right .site-main { flex: 1; }
.has-sidebar.sidebar-right .widget-area { width: 300px; flex-shrink: 0; }
.has-sidebar.sidebar-left .site-main { order: 2; }
.has-sidebar.sidebar-left .widget-area { order: 1; width: 300px; flex-shrink: 0; }
.no-sidebar .site-main { width: 100%; }

/* Widget area */
.widget-area { }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--saffron); }

/* Widget post list */
.widget-posts-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget-posts-list li:last-child { border-bottom: none; }
.widget-posts-list .w-post-thumb { flex-shrink: 0; }
.widget-posts-list .w-post-thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.widget-posts-list .w-post-info { flex: 1; }
.widget-posts-list .w-post-info a { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; color: var(--ink); }
.widget-posts-list .w-post-info a:hover { color: var(--indigo); }
.widget-posts-list .w-post-date, .widget-posts-list .w-post-meta { font-size: 11px; color: var(--ink-soft); display: block; }

/* Social links widget */
.widget-social-links { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-social-links a { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #fff; transition: opacity .15s; }
.widget-social-links a:hover { opacity: .85; }
.widget-social-links .social-facebook { background: #3b5998; }
.widget-social-links .social-twitter { background: #1da1f2; }
.widget-social-links .social-whatsapp { background: #25d366; }
.widget-social-links .social-telegram { background: #7a4fb5; }
.widget-social-links .social-instagram { background: #e1306c; }
.widget-social-links .social-youtube { background: #ff0000; }
.widget-social-links .social-linkedin { background: #0077b5; }

/* Newsletter widget */
.widget-newsletter { display: flex; gap: 8px; }
.widget-newsletter input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 20px; font-family: 'Inter'; font-size: 13px; outline: none; }
.widget-newsletter input:focus { border-color: var(--saffron); }
.widget-newsletter button { padding: 10px 18px; background: var(--indigo); color: #fff; border: none; border-radius: 20px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background .15s; }
.widget-newsletter button:hover { background: var(--indigo-dk); }

/* Quick links grid widget */
.quick-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ql-item { padding: 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; text-align: center; transition: transform .15s; }
.ql-item:hover { transform: translateY(-1px); }

/* Widget categories */
.widget-categories li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget-categories li:last-child { border-bottom: none; }
.widget-categories a { font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; }
.widget-categories a:hover { color: var(--indigo); }
.widget-categories .cat-count { color: var(--ink-soft); font-size: 12px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; width: 100%; padding: 8px 0; }
.breadcrumb a { color: var(--indigo); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Section title ---------- */
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .6px; }
.section-title .more { font-size: 12px; font-weight: 700; color: var(--indigo); }
.section-title .more:hover { text-decoration: underline; }

/* ---------- Post / Archive lists ---------- */
.post-list { width: 100%; }
.post-item { margin-bottom: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s; }
.post-item:hover { box-shadow: 0 8px 24px rgba(90,15,33,.15); transform: translateY(-2px); }
.post-item-inner { display: flex; gap: 20px; padding: 20px; }
.post-thumb { flex-shrink: 0; width: 240px; }
.post-thumb img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.post-content { flex: 1; }
.post-title { font-size: 18px; margin-bottom: 8px; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--indigo); }
.post-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-meta span::after { content: '|'; margin-left: 6px; opacity: .4; }
.post-meta span:last-child::after { display: none; }
.post-meta a { color: var(--indigo); }
.post-excerpt { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.read-more { font-size: 12.5px; font-weight: 700; color: var(--indigo); display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }

/* ---------- Pagination ---------- */
.pagination { width: 100%; margin: 20px 0; }
.pagination ul { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagination li a, .pagination li span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--card); }
.pagination li a:hover { background: var(--paper); border-color: var(--saffron); }
.pagination li .current { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ---------- Grid cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.card.certificate { background: var(--card); }
.card.important-link { background: var(--card); }
.card:hover { box-shadow: 0 8px 24px rgba(90,15,33,.15); transform: translateY(-3px); }
.card .head { padding: 13px 16px; text-align: center; }
.card .head h3 { font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.card.certificate .head { background: linear-gradient(180deg, #a91d1d, #7c1414); }
.card.important-link .head { background: linear-gradient(180deg, #a91d1d, #7c1414); }
.card .head a { display: block; }
.card .head a:hover { }

/* Archive card grid */
.archive-card-grid { margin-bottom: 28px; }
.archive-card { transition: box-shadow .18s, transform .18s; }
.archive-card:hover { box-shadow: 0 8px 24px rgba(90,15,33,.15); transform: translateY(-3px); }
.archive-card .card-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }
.archive-card .card-link:hover { color: var(--ink); }
.archive-card-excerpt { padding: 12px 16px 4px; font-size: 13px; color: var(--ink-soft); flex: 1; }
.home-articles { margin-bottom: 28px; }
.archive-card-meta { padding: 8px 16px 4px; margin: 0; font-size: 12px; color: var(--ink-soft); list-style: none; }
.archive-card-meta li, .archive-card-meta span { display: inline-flex; align-items: center; padding: 2px 0; }
.archive-card-meta li + li::before, .archive-card-meta span + span::before { content: "•"; color: var(--saffron); font-weight: 700; margin: 0 6px; }
.archive-card .foot { padding: 6px 14px 16px; display: flex; justify-content: flex-end; }
.archive-card .foot a { font-size: 11.5px; font-weight: 700; color: #fff; background: #4a4a52; padding: 7px 18px; border-radius: 20px; transition: .15s; text-decoration: none; }
.archive-card .foot a:hover { background: #333338; transform: translateX(2px); }
.card ul { list-style: disc; margin: 0; padding: 14px 16px 8px 30px; flex: 1; }
.card ul li { padding: 6px 0; }
.card ul li a { font-size: 15px; color: #1857c9; text-decoration: underline; text-underline-offset: 2px; transition: .12s; line-height: 1.45; word-break: break-word; overflow-wrap: break-word; }
.card ul li a:hover { color: var(--indigo); text-decoration: none; }
.card ul li a .tag { flex-shrink: 0; font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; margin-right: 4px; }
.tag.new { background: #fdece0; color: var(--saffron-dk); border-radius: 10px; }
.tag.hot { background: #fdeaee; color: var(--rose); border-radius: 10px; }
.card .foot { padding: 6px 14px 16px; display: flex; justify-content: flex-end; }
.card .foot a { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--navy); padding: 7px 18px; border-radius: 20px; transition: .15s; display: inline-block; }
.card .foot a:hover { background: var(--indigo); transform: translateX(2px); }
.view-more-btn { background: var(--saffron) !important; color: #3a0a0f !important; }
.view-more-btn:hover { background: var(--saffron-dk) !important; }

.card .head .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ---------- Join Us ---------- */
.join-us { margin-bottom: 28px; text-align: center; }
.join-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin-bottom: 14px; }
.join-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.join-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius); color: #fff; font-weight: 700; font-size: 13px; transition: opacity .15s, transform .15s; min-width: 110px; justify-content: center; }
.join-link:hover { opacity: .9; transform: translateY(-2px); color: #fff; }

/* ---------- Info / editorial blocks ---------- */
.info-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 24px; }
.info-block h2 { font-size: 17px; margin-bottom: 10px; }
.info-block p { color: var(--ink-soft); margin: 0 0 12px; font-size: 13.5px; }
.info-block p:last-child { margin-bottom: 0; }
.info-block .kicker { font-size: 11px; font-weight: 700; color: var(--saffron-dk); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; display: block; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0 4px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--paper); }
.step .n { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--saffron-dk); font-size: 12px; }
.step h4 { font-size: 13.5px; margin: 4px 0 6px; }
.step p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Social row ---------- */
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.social a { flex: 1; min-width: 120px; text-align: center; padding: 12px; border-radius: var(--radius); font-weight: 700; font-size: 12.5px; color: #fff; transition: opacity .15s, transform .15s; }
.social a:hover { opacity: .9; transform: translateY(-1px); }
.social a:nth-child(1) { background: #3b5998; }
.social a:nth-child(2) { background: #1da1f2; }
.social a:nth-child(3) { background: #25d366; }
.social a:nth-child(4) { background: #7a4fb5; }
.social a:nth-child(5) { background: #e1306c; }
.social a:nth-child(6) { background: #ff0000; }

/* ---------- FAQ ---------- */
.faq { margin-bottom: 10px; }
.faq-title { font-size: 17px; margin-bottom: 14px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
details summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 13.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 18px; color: var(--saffron-dk); font-weight: 700; transition: transform .2s; }
details[open] summary::after { content: '−'; }
details p { padding: 0 18px 16px; margin: 0; color: var(--ink-soft); font-size: 13px; }

/* ---------- Single post ---------- */
.single-post { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 0; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.single-post .ad-area { padding-left: 32px; padding-right: 32px; }
.single-post::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--indigo), var(--saffron)); z-index: 1; }

.entry-header { position: relative; padding: 32px 32px 0; }
.entry-title { font-size: 28px; margin-bottom: 14px; line-height: 1.3; }
.entry-meta { font-size: 12.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 20px; align-items: center; }
.entry-meta span { display: inline-flex; align-items: center; gap: 4px; }
.entry-meta span::before { opacity: .5; margin-right: 3px; }
.entry-meta .posted-on::before { content: '📅'; }
.entry-meta .byline::before { content: '👤'; }
.entry-meta .reading-time::before { content: '⏱'; }
.entry-meta .estimated-time::before { content: '⏳'; }
.entry-meta .post-cats::before { content: '📂'; }
.entry-meta .post-tags::before { content: '🏷'; }
.entry-meta span + span { border-left: 1px solid var(--line); padding-left: 14px; }
.entry-meta span:first-child { border-left: none; padding-left: 0; }
.entry-meta a { color: var(--indigo); font-weight: 600; }
.entry-meta a:hover { text-decoration: underline; }
.entry-header .cat-links { margin-bottom: 10px; }

.post-thumbnail { margin: 0 32px 24px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.post-thumbnail img { width: 100%; display: block; transition: transform .4s ease; }
.post-thumbnail:hover img { transform: scale(1.02); }

/* ---------- Entry Content (WordPress default styles) ---------- */
.entry-content { padding: 0 32px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content .wp-block-image img { display: block; }
.page-links { margin: 24px 0; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.page-links a, .page-links span { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: var(--card); }
.page-links span { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.entry-footer { margin-top: 28px; padding: 22px 32px 32px; border-top: 1px solid var(--line); }
.tags-links { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tags-links::before { content: '🏷'; font-size: 14px; margin-right: 4px; }
.tags-links a { display: inline-block; padding: 5px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; font-size: 12px; color: var(--ink-soft); transition: all .2s; }
.tags-links a:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); transform: translateY(-1px); }

/* Share buttons */
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.share-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.share-buttons a, .share-copy-link { padding: 7px 16px; border-radius: 24px; font-size: 12px; font-weight: 700; color: #fff; transition: all .2s; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.share-buttons a:hover, .share-copy-link:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.share-facebook { background: #1877f2 !important; }
.share-twitter { background: #000 !important; }
.share-whatsapp { background: #25d366 !important; }
.share-telegram { background: #0088cc !important; }
.share-copy-link { background: var(--ink-soft); }

/* Author box */
.author-box { display: flex; gap: 20px; background: linear-gradient(135deg, var(--card), var(--paper)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 28px; box-shadow: var(--shadow); }
.author-avatar { flex-shrink: 0; }
.author-avatar img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; border: 3px solid var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.author-info { flex: 1; }
.author-name { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.author-name a { color: var(--ink); }
.author-name a:hover { color: var(--indigo); }
.author-bio { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* Related posts */
.related-posts { margin-top: 28px; }
.related-title { font-size: 20px; margin-bottom: 18px; padding-left: 14px; border-left: 3px solid var(--indigo); }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.related-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow); }
.related-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(90,15,33,.12); }
.related-item img { width: 100%; height: 140px; object-fit: cover; transition: transform .35s ease; }
.related-item:hover img { transform: scale(1.06); }
.related-item h4 { padding: 12px 14px 4px; font-size: 13.5px; line-height: 1.4; }
.related-item h4 a { color: var(--ink); }
.related-item h4 a:hover { color: var(--indigo); }
.related-date { padding: 0 14px 12px; display: block; font-size: 11px; color: var(--ink-soft); }

/* ---------- Page header ---------- */
.page-header { margin-bottom: 24px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.page-title { font-size: 22px; }
.archive-description { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.archive-meta { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.author-archive-info { display: flex; gap: 20px; align-items: center; }
.author-avatar img { border-radius: 50%; }
.author-meta { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Search ---------- */
.search-header { }
.search-query { font-style: italic; }
.search-count { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.search-item { margin-bottom: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.search-item-inner { display: flex; gap: 16px; }
.search-thumb { flex-shrink: 0; width: 80px; }
.search-thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.search-content { flex: 1; }
.search-title { font-size: 16px; margin-bottom: 4px; }
.search-title a { color: var(--ink); }
.search-title a:hover { color: var(--indigo); }
.search-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.search-meta span::after { content: '|'; margin-left: 6px; opacity: .4; }
.search-meta span:last-child::after { display: none; }
.search-excerpt { font-size: 13px; color: var(--ink-soft); }
.no-results { text-align: center; padding: 40px 20px; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 60px 20px; }
.error-404-inner { max-width: 500px; margin: 0 auto; }
.error-title { font-size: 120px; font-weight: 900; color: var(--indigo); line-height: 1; margin-bottom: 0; }
.error-subtitle { font-size: 24px; margin-bottom: 16px; }
.error-description { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }
.error-actions .btn { display: inline-block; padding: 12px 28px; background: var(--indigo); color: #fff; border-radius: 30px; font-weight: 700; font-size: 14px; margin-bottom: 20px; }
.error-actions .btn:hover { background: var(--indigo-dk); }
.error-actions .search-form { max-width: 400px; margin: 0 auto; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.comments-title { font-size: 18px; margin-bottom: 20px; }
.comment-list { margin: 0; list-style: none; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-size: 14px; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--ink-soft); }
.comment-content { font-size: 14px; }
.comment-content p { margin: 0 0 8px; }
.reply { margin-top: 8px; }
.reply a { font-size: 12px; font-weight: 600; color: var(--indigo); }
.comment-navigation { display: flex; justify-content: space-between; margin: 16px 0; }
.no-comments { color: var(--ink-soft); font-size: 14px; }
#reply-title { font-size: 16px; margin-bottom: 16px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: 'Inter'; font-size: 14px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--saffron); outline: none; }
.comment-form .submit { background: var(--indigo); color: #fff; border: none; padding: 12px 28px; border-radius: 30px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s; }
.comment-form .submit:hover { background: var(--indigo-dk); }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: var(--indigo); color: #fff; border: none; border-radius: 50%;
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s; z-index: 999; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--indigo-dk); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg) 72%, rgba(0,0,0,.32) 100%); color: #c3c9de; margin-top: 24px; width: 100%; box-sizing: border-box; padding-left: 0; padding-right: 0; border-top: 4px solid var(--saffron); }
.top-bar, .top-bar .wrap, header.main, header.main .wrap, nav.primary, nav.primary .wrap, nav.primary .primary-menu, .site-footer, .site-footer .wrap {
  max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box;
}
.top-bar .wrap, header.main .wrap, nav.primary .wrap, nav.primary .primary-menu { padding-left: 0 !important; padding-right: 0 !important; }
.site-footer .wrap { padding-left: 0; padding-right: 0; padding-top: 38px; padding-bottom: 24px; }
.fgrid { display: grid; gap: 28px; margin-bottom: 26px; }
.fgrid.footer-widgets { grid-template-columns: repeat(4,1fr); align-items: start; }
.footer-col { }
.footer-widget-title { color: #fff; font-family: var(--font-heading, 'Sora'), sans-serif; font-size: 13.5px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,.12); position: relative; }
.footer-widget-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 34px; height: 2px; background: var(--saffron); }
.site-footer a { display: block; font-size: 12.5px; padding: 5px 0; color: #aab1cc; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.site-footer a:hover { color: #fff; padding-left: 4px; }
.site-footer .footer-widget p { font-size: 12.5px; line-height: 1.75; color: #aab1cc; margin: 0 0 10px; }
.site-footer .footer-widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-widget ul li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-footer .footer-widget ul li:last-child { border-bottom: none; }
.site-footer .footer-widget ul li a { padding: 0; display: block; }
.site-footer .footer-widget .tagcloud a { display: inline-block; margin: 0 4px 6px 0; padding: 3px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; font-size: 11.5px; }
.site-footer .footer-widget .tagcloud a:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.site-footer .footer-widget select, .site-footer .footer-widget input[type="text"], .site-footer .footer-widget input[type="email"], .site-footer .footer-widget input[type="search"] { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; }
.fbottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; color: #8a90ac; align-items: center; }
.footer-links a { color: #aab1cc; padding: 0 4px; display: inline; }
.footer-links a:hover { color: #fff; }
.fl-sep { color: rgba(255,255,255,.25); margin: 0 4px; }
.footer-bottom-menu { display: flex; gap: 0; flex-wrap: wrap; }
.footer-bottom-menu li { list-style: none; margin: 0; padding: 0; }
.footer-bottom-menu a { padding: 0 12px; border-right: 1px solid rgba(255,255,255,.14); }
.footer-bottom-menu a:first-child { padding-left: 0; }
.footer-bottom-menu a:last-child { border-right: none; }
.footer-bottom-menu a:hover { padding-left: 12px; }
.archive-count { font-weight: 400; opacity: .8; font-size: .85em; }
.ad-area { text-align: center; overflow: hidden; margin: 16px 0; }
.ad-area .ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin: 0 0 6px; }
.ad-widget { max-width: 100%; }
.ad-widget img, .ad-widget iframe, .ad-widget ins { max-width: 100%; }

/* ---------- Animations ---------- */
.animations-enabled .post-item, .animations-enabled .card, .animations-enabled .stats .s, .animations-enabled .tiles a, .animations-enabled .info-block, .animations-enabled details {
  transition: opacity .5s ease, transform .5s ease;
}
.animations-enabled .animate-hidden { opacity: 0; transform: translateY(20px); }
.animations-enabled .animated { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .animations-enabled .animate-hidden { opacity: 1; transform: none; }
}

/* ====== FULL WIDTH OVERRIDE ====== */
html, body { overflow-x: hidden; width: 100%; }
header.main { display: block !important; width: 100% !important; max-width: none !important; }
nav.primary { display: block !important; width: 100% !important; max-width: none !important; }
.ticker-band { width: 100% !important; max-width: none !important; }
.site-footer { display: block !important; width: 100% !important; max-width: none !important; }
