/*
Theme Name: Amazebazaar News Pro
Theme URI: https://example.com/amazebazaar-news-pro
Author: Amazebazaar
Author URI: https://example.com
Description: A fast, accessible, Gutenberg-ready news theme with modern publishing tools.
Version: 0.2.4
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amazebazaar-news-pro
Tags: news, blog, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, woocommerce
*/

:root { --abnp-accent: #e11d48; --abnp-surface: #fff; --abnp-text: #172033; --abnp-muted: #64748b; --abnp-border: #e2e8f0; --abnp-max-width: 1320px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--abnp-surface); color: var(--abnp-text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--abnp-accent); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: #9f1239; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 1rem; padding: .75rem 1rem; background: #fff; color: #000; z-index: 100000; }
.site-shell { width: min(100% - 2rem, var(--abnp-max-width)); margin: auto; }
.site-header { position: relative; border-bottom: 1px solid var(--abnp-border); background: var(--abnp-surface); z-index: 10; }
.site-header.is-sticky { position: sticky; top: 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.site-title { margin: 0; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 0; color: var(--abnp-muted); font-size: .875rem; }
.primary-menu, .primary-menu ul { display: flex; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.primary-menu a { color: inherit; text-decoration: none; font-weight: 700; }
.menu-item-has-children { position: relative; }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; padding: 1rem; background: var(--abnp-surface); box-shadow: 0 12px 32px rgba(15,23,42,.15); }
.primary-menu .menu-item:hover > .sub-menu, .primary-menu .menu-item:focus-within > .sub-menu { display: block; }
.breaking-ticker { display: flex; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--abnp-border); font-size: .875rem; }
.ticker-label { color: #fff; background: var(--abnp-accent); padding: .2rem .55rem; font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.ticker-items { overflow: hidden; white-space: nowrap; }
.ticker-items a { color: inherit; text-decoration: none; }
.ticker-rotator .breaking-story-link { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.ticker-rotator .breaking-story-link.is-active { display: block; animation: abnp-story-enter .35s ease-out; }
.site-main { padding: 2.5rem 0; }
.entry { max-width: 800px; margin: 0 auto 3rem; }
.entry-header { margin-bottom: 1.25rem; }
.entry-title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; margin: 0 0 .75rem; }
.entry-meta { color: var(--abnp-muted); font-size: .9rem; }
.post-card { padding: 1.25rem 0; border-bottom: 1px solid var(--abnp-border); }
.post-card-title { margin: 0 0 .5rem; font-size: 1.45rem; }
.post-card-title a { color: inherit; text-decoration: none; }
.reading-progress { position: fixed; inset: 0 auto auto 0; width: 0; height: 3px; background: var(--abnp-accent); z-index: 1000; }
.abnp-ad { min-height: 110px; margin: 2rem auto; display: grid; place-items: center; border: 1px dashed var(--abnp-border); color: var(--abnp-muted); font-size: .75rem; text-transform: uppercase; }
.site-footer { border-top: 1px solid var(--abnp-border); padding: 2rem 0; color: var(--abnp-muted); }
.abnp-review { border: 1px solid var(--abnp-border); border-left: 4px solid var(--abnp-accent); padding: 1.25rem; margin: 2rem 0; }
.abnp-review-score { font-size: 2rem; font-weight: 800; color: var(--abnp-accent); }
.wp-block-cover, .wp-block-image { border-radius: .25rem; }
@media (max-width: 700px) { .header-row { align-items: flex-start; flex-direction: column; padding: 1rem 0; } .primary-menu { flex-wrap: wrap; gap: .75rem; } .primary-menu .sub-menu { position: static; box-shadow: none; } .site-main { padding: 1.5rem 0; } }
@media (prefers-color-scheme: dark) { body.abnp-auto-dark { --abnp-surface: #101827; --abnp-text: #e5e7eb; --abnp-muted: #a5b4c7; --abnp-border: #293548; } }
body.abnp-dark { --abnp-surface: #101827; --abnp-text: #e5e7eb; --abnp-muted: #a5b4c7; --abnp-border: #293548; }
body.abnp-user-light { --abnp-surface: #fff; --abnp-text: #172033; --abnp-muted: #64748b; --abnp-border: #e2e8f0; }

/* Editorial homepage — v0.2 visual foundation. */
.abnp-poster-header { box-shadow: 0 1px 0 rgba(15, 23, 42, .06); }
.breaking-ticker { min-height: 44px; gap: .8rem; font-weight: 500; }
.ticker-time { margin-left: auto; color: var(--abnp-accent); font-size: .78rem; white-space: nowrap; }
.masthead-brand { display: flex; min-height: 138px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-lockup .custom-logo { width: auto; max-height: 64px; }
.brand-lockup .site-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4.1rem); letter-spacing: -.065em; line-height: .95; }
.brand-lockup .site-title a::first-letter { color: var(--abnp-text); }
.header-tools { display: flex; gap: 1.15rem; align-items: center; }
.weather { display: grid; grid-template-columns: 26px auto; column-gap: .4rem; align-items: center; font-size: 1.35rem; color: var(--abnp-muted); }
.weather strong { color: var(--abnp-text); font-size: 1rem; }.weather small { grid-column: 2; font-size: .7rem; white-space: nowrap; }
.header-search { position: relative; display: flex; width: 230px; border: 1px solid var(--abnp-border); border-radius: .2rem; background: var(--abnp-surface); }
.header-search label { flex: 1; }.header-search input { width: 100%; border: 0; outline: 0; padding: .72rem .4rem .72rem .8rem; background: transparent; color: var(--abnp-text); }
.header-search button { border: 0; background: transparent; color: var(--abnp-text); padding: 0 .8rem; font-size: 1.25rem; cursor: pointer; }
.ajax-search-results { position: absolute; top: calc(100% + .35rem); right: 0; left: 0; z-index: 20; padding: 0; margin: 0; list-style: none; background: var(--abnp-surface); box-shadow: 0 12px 30px rgba(15,23,42,.18); }
.ajax-search-results:not(:empty) { border: 1px solid var(--abnp-border); }.ajax-search-results li { padding: .65rem .8rem; }.ajax-search-results a { color: var(--abnp-text); text-decoration: none; }
.color-mode-toggle { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; color: var(--abnp-text); cursor: pointer; }.toggle-sun, .toggle-moon { font-size: .9rem; }.toggle-track { position: relative; display: block; width: 38px; height: 21px; border-radius: 99px; background: #cbd5e1; transition: background .2s ease; }.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.3); transition: transform .2s ease; }.color-mode-toggle[aria-checked="true"] .toggle-track { background: var(--abnp-accent); }.color-mode-toggle[aria-checked="true"] .toggle-thumb { transform: translateX(17px); }
.header-navigation { background: #071d38; }.header-navigation nav { min-height: 52px; display: flex; align-items: center; }
.header-navigation .primary-menu { gap: 0; width: 100%; }.header-navigation .primary-menu > li > a { display: block; padding: 1rem 1.35rem; color: #f8fafc; font-size: .92rem; }.header-navigation .primary-menu > li:first-child > a { background: var(--abnp-accent); }.header-navigation .sub-menu { z-index: 30; color: var(--abnp-text); }
.site-content { width: min(100% - 2rem, var(--abnp-max-width)); }.site-main.abnp-home { padding-top: 1.1rem; }
.top-stories { display: flex; align-items: center; gap: 1.5rem; min-height: 54px; overflow: hidden; border-bottom: 1px solid var(--abnp-border); font-family: Georgia, "Times New Roman", serif; font-size: .9rem; white-space: nowrap; }.top-stories strong { flex: 0 0 auto; font-family: inherit; color: var(--abnp-accent); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }.top-stories-rotator { min-width: 0; flex: 1; }.top-story-link { display: none; overflow: hidden; color: var(--abnp-text); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }.top-story-link.is-active { display: block; animation: abnp-story-enter .35s ease-out; }.top-story-link time { margin-left: .75rem; color: var(--abnp-accent); font-family: system-ui, sans-serif; font-size: .72rem; }.top-stories-status { color: var(--abnp-muted); font-family: system-ui, sans-serif; font-size: .72rem; }@keyframes abnp-story-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.home-lead-grid { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(300px, 1fr); gap: 1.35rem; margin-top: 1.35rem; }.lead-story { position: relative; min-height: 460px; margin: 0; overflow: hidden; background: linear-gradient(135deg, #102b49, #263e5c); background-image: linear-gradient(90deg, rgba(3, 18, 37, .95) 0%, rgba(3, 18, 37, .54) 60%, rgba(3, 18, 37, .22) 100%), var(--abnp-hero-image); background-position: center; background-size: cover; border-radius: .25rem; }.lead-overlay { position: absolute; inset: auto 0 0; padding: clamp(1.5rem, 5vw, 3rem); color: #fff; }.story-kicker { display: inline-block; color: var(--abnp-accent); font-size: .73rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.lead-story .story-kicker { color: #fb7185; }.lead-story h1 { max-width: 13ch; margin: .7rem 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 4.2vw, 4.25rem); line-height: .98; letter-spacing: -.045em; }.lead-story h1 a, .lead-story p { color: #fff; text-decoration: none; }.lead-story p { max-width: 52ch; margin: 0; opacity: .9; }.lead-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.7rem; font-size: .85rem; }.read-button { display: inline-flex; gap: 1rem; padding: .78rem 1rem; background: var(--abnp-accent); color: #fff; text-decoration: none; font-weight: 800; border-radius: .2rem; }
.latest-panel { border: 1px solid var(--abnp-border); padding: 1rem; border-radius: .25rem; }.latest-panel h2 { margin: .25rem 0 .9rem; color: var(--abnp-accent); font-size: .85rem; text-transform: uppercase; }.latest-panel h2::after { display: block; width: 35px; height: 2px; margin-top: .45rem; background: var(--abnp-accent); content: ""; }.latest-item { display: grid; grid-template-columns: 112px 1fr; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--abnp-border); }.latest-image { min-height: 74px; background: #dce4ee; }.latest-image img { width: 100%; height: 74px; object-fit: cover; }.latest-item h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: .98rem; line-height: 1.2; }.latest-item h3 a, .category-card h2 a { color: var(--abnp-text); text-decoration: none; }.latest-item time { display: block; margin-top: .45rem; color: var(--abnp-accent); font-size: .7rem; }.outline-button { display: block; margin-top: 1rem; padding: .65rem; border: 1px solid var(--abnp-border); color: var(--abnp-text); text-align: center; text-decoration: none; font-weight: 700; }
.home-bottom-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: 1.35rem; margin-top: 1.35rem; }.category-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }.category-card { overflow: hidden; border: 1px solid var(--abnp-border); border-radius: .25rem; background: var(--abnp-surface); }.card-image { display: block; min-height: 150px; background: linear-gradient(135deg, #cbd5e1, #64748b); }.card-image img { width: 100%; height: 150px; object-fit: cover; }.category-card > div { padding: .85rem; }.category-card h2 { margin: .45rem 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.2; }.category-card small, .newsletter-card small { color: var(--abnp-muted); }.card-read-more { display: inline-flex; gap: .35rem; margin-top: .9rem; color: var(--abnp-accent); font-size: .78rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }.newsletter-card { align-self: stretch; padding: 1.5rem; background: #071d38; color: #fff; border-radius: .25rem; }.newsletter-icon { color: #fb7185; font-size: 2rem; }.newsletter-card h2 { margin: .45rem 0; font-family: Georgia, "Times New Roman", serif; }.newsletter-card p { margin-top: 0; color: #cbd5e1; }.newsletter-card form { display: flex; margin: 1.25rem 0; }.newsletter-card label { flex: 1; }.newsletter-card input { width: 100%; min-height: 44px; border: 0; padding: .7rem; }.newsletter-card button { border: 0; padding: .7rem; background: var(--abnp-accent); color: #fff; font-weight: 800; cursor: pointer; }.newsletter-card small { color: #cbd5e1; }.newsletter-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }.newsletter-card button[disabled] { opacity: .7; cursor: not-allowed; }.newsletter-form-status { min-height: 1.2em; margin: -.75rem 0 .5rem; font-size: .85rem; font-weight: 700; }.newsletter-form-status.is-success { color: #86efac; }.newsletter-form-status.is-error { color: #fda4af; }.empty-home { padding: 5rem 1.5rem; background: #071d38; color: #fff; text-align: center; }
@media (max-width: 980px) { .masthead-brand { min-height: auto; padding: 1.5rem 0; }.header-tools { flex-wrap: wrap; justify-content: flex-end; }.home-lead-grid, .home-bottom-grid { grid-template-columns: 1fr; }.category-cards { grid-template-columns: repeat(2, 1fr); }.newsletter-card { max-width: none; } }
@media (max-width: 700px) { .masthead-brand { align-items: flex-start; flex-direction: column; gap: 1rem; }.header-tools { width: 100%; justify-content: flex-start; }.header-search { flex: 1; width: auto; }.weather, .color-mode-toggle { display: none; }.header-navigation nav { overflow-x: auto; }.header-navigation .primary-menu { flex-wrap: nowrap; }.header-navigation .primary-menu > li > a { padding: .85rem .9rem; white-space: nowrap; }.top-stories { gap: 1rem; }.top-stories span + span { padding-left: 1rem; }.lead-story { min-height: 410px; }.home-bottom-grid, .category-cards { grid-template-columns: 1fr; }.category-card { display: grid; grid-template-columns: 130px 1fr; }.card-image, .card-image img { min-height: 100%; height: 130px; }.category-card > div { padding: .85rem; } }

/* Dedicated posts index with bounded pagination. */
.archive-masthead { margin-bottom: 1.75rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--abnp-border); }
.archive-masthead h1 { margin: .3rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4.2rem); letter-spacing: -.05em; line-height: 1; }
.blog-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.blog-story-card { overflow: hidden; border: 1px solid var(--abnp-border); border-radius: .25rem; background: var(--abnp-surface); }
.blog-story-image { display: block; min-height: 210px; background: linear-gradient(135deg, #cbd5e1, #64748b); }
.blog-story-image img { width: 100%; height: 210px; object-fit: cover; }
.blog-story-body { padding: 1rem; }.blog-story-body h2 { margin: .35rem 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.1; }
.blog-story-body h2 a { color: var(--abnp-text); text-decoration: none; }.blog-story-body p { color: var(--abnp-muted); font-size: .93rem; }.blog-story-body time { color: var(--abnp-muted); font-size: .78rem; }
.pagination { margin: 2.5rem 0 0; }.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }.pagination a, .pagination .current { padding: .55rem .8rem; border: 1px solid var(--abnp-border); color: var(--abnp-text); text-decoration: none; }.pagination .current { background: var(--abnp-accent); border-color: var(--abnp-accent); color: #fff; }
.suggested-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--abnp-border); }.suggested-posts h2 { margin: .25rem 0 1.1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 4vw, 2.35rem); letter-spacing: -.035em; }.suggested-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }.suggested-post { overflow: hidden; border: 1px solid var(--abnp-border); border-radius: .25rem; }.suggested-post-image { display: block; min-height: 130px; background: linear-gradient(135deg, #cbd5e1, #64748b); }.suggested-post-image img { width: 100%; height: 150px; object-fit: cover; }.suggested-post > div { padding: .85rem; }.suggested-post h3 { margin: 0 0 .5rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.18; }.suggested-post h3 a { color: var(--abnp-text); text-decoration: none; }.suggested-post time { color: var(--abnp-muted); font-size: .74rem; }
@media (max-width: 700px) { .blog-card-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .suggested-post-grid { grid-template-columns: 1fr; }.suggested-post { display: grid; grid-template-columns: 120px 1fr; }.suggested-post-image, .suggested-post-image img { min-height: 100%; height: 120px; } }

.footer-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-bottom: 1.75rem; }.footer-story-column h2 { margin: 0 0 .85rem; color: var(--abnp-text); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }.footer-story-column article { padding: .75rem 0; border-top: 1px solid var(--abnp-border); }.footer-story-column article a { display: block; color: var(--abnp-text); font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.25; text-decoration: none; }.footer-story-column time { display: block; margin-top: .25rem; color: var(--abnp-muted); font-size: .72rem; }.footer-story-column p { color: var(--abnp-muted); font-size: .86rem; }.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--abnp-border); }.footer-bottom p { margin: 0; }.footer-bottom .menu { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; }.footer-bottom .menu a { color: inherit; }
@media (max-width: 700px) { .footer-news-grid { grid-template-columns: 1fr; gap: 1.25rem; }.footer-bottom { align-items: flex-start; flex-direction: column; } }

input[name='abnp_website']{display:none!important;position:absolute!important;left:-9999px!important}
