/* Allnewspixel 7.1.3 — mobile-first, CoverNews-inspired layout */
:root {
  --anp-primary: #B20710;
  --anp-nav: #1a1a1a;
  --anp-text: #3a3a3a;
  --anp-muted: #777;
  --anp-bg: #f5f5f5;
  --anp-white: #fff;
  --anp-border: #e5e5e5;
  --anp-radius: 0;
  --anp-container: 1200px;
  --anp-font: "Lato", "Source Sans Pro", sans-serif;
  --anp-font-body: "Source Sans Pro", "Lato", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--anp-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--anp-text);
  background: var(--anp-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--anp-text); text-decoration: none; }
a:hover { color: var(--anp-primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--anp-font); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: #111; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  background: var(--anp-primary); color: #fff; padding: .5rem 1rem; z-index: 100000;
  top: 0; left: 0;
}

.anp-container {
  width: 100%;
  max-width: var(--anp-container);
  margin: 0 auto;
  padding: 0 15px;
}

/* —— Top bar —— */
.anp-top-bar {
  background: #4a4a4a;
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 6px 0;
}
.anp-top-bar a { color: #fff; }
.anp-top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-menu { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* —— Branding —— */
.anp-branding-wrap {
  background: var(--anp-white);
  padding: 18px 0 12px;
  text-align: center;
}
.site-branding { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.site-logo img { max-height: 64px; width: auto; }
.anp-logo-mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: #6b2d8b; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px;
}
.anp-logo-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, #7b3aa8, #4a1f6b);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}
.site-title {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 900;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}
.site-title a { color: #111; }
.site-title a:hover { color: var(--anp-primary); }

/* —— Navigation —— */
.main-navigation {
  background: var(--anp-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.anp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  position: relative;
}
.menu-toggle,
.anp-search-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block; width: 22px; height: 2px; background: #fff; position: relative;
}
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle-icon::before { top: -7px; }
.menu-toggle-icon::after { top: 7px; }

.primary-menu {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--anp-nav);
  flex-direction: column;
  padding: 8px 0 16px;
  max-height: 70vh;
  overflow: auto;
}
.primary-menu.toggled { display: flex; }
.primary-menu li { border-bottom: 1px solid rgba(255,255,255,.08); }
.primary-menu a {
  display: block;
  color: #fff;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: var(--anp-primary);
  color: #fff;
}
.primary-menu .sub-menu {
  background: #111;
  padding-left: 12px;
}
.anp-header-search {
  background: #111;
  padding: 12px 0;
}
.anp-header-search[hidden] { display: none !important; }

/* Search form */
.search-form { display: flex; gap: 0; width: 100%; }
.search-field {
  flex: 1; border: 1px solid var(--anp-border); padding: 10px 12px; font-size: 14px;
}
.search-submit,
button,
input[type="submit"] {
  background: var(--anp-primary);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}
.search-submit:hover { filter: brightness(1.05); }

/* —— Flash Story —— */
.anp-flash-story {
  background: var(--anp-white);
  border-bottom: 1px solid var(--anp-border);
}
.anp-flash-story__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.anp-flash-label {
  background: var(--anp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}
.anp-flash-icon {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; position: relative; flex-shrink: 0;
}
.anp-flash-icon::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: #fff;
}
.anp-flash-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  background: var(--anp-white);
}
.anp-flash-list {
  display: inline-flex;
  gap: 2rem;
  animation: anp-marquee 35s linear infinite;
  padding-left: 100%;
}
.anp-flash-list a {
  font-weight: 700;
  font-size: 14px;
  color: #111;
}
.anp-flash-list a:hover { color: var(--anp-primary); }
@keyframes anp-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* —— Section titles —— */
.anp-section-title,
.covernews-heading-style,
.widget-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--anp-border);
}
.anp-section-title .header-after,
.widget-title span,
span.header-after {
  position: relative;
  display: inline-block;
}
.anp-section-title .header-after::after,
.widget-title span::before,
span.header-after::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 48px;
  height: 3px;
  background: var(--anp-primary);
}

.anp-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.anp-section-head .anp-section-title { flex: 1; }

.anp-slider-nav { display: flex; gap: 4px; }
.anp-slider-prev,
.anp-slider-next {
  width: 32px; height: 32px;
  background: #eee; color: #333; border: 0;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.anp-slider-prev:hover,
.anp-slider-next:hover { background: var(--anp-primary); color: #fff; }

/* —— Cards —— */
.featured-article { margin-bottom: 12px; }
.featured-article-wrapper { position: relative; }
.data-bg-featured {
  position: relative;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.data-bg-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.05) 100%);
  z-index: 1;
}
.anp-card-link {
  position: absolute; inset: 0; z-index: 2;
}
.figure-categories {
  position: relative;
  z-index: 3;
  padding: 12px 14px 0;
}
.cat-links a {
  display: inline-block;
  background: var(--anp-primary);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  letter-spacing: .03em;
}
.title-heading {
  position: relative;
  z-index: 3;
  padding: 10px 14px 16px;
}
.article-title a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.article-title a:hover { color: #ffd7d9; }
.grid-item-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}
.grid-item-metadata a { color: inherit; }
.anp-list-post .grid-item-metadata,
.anp-single .grid-item-metadata { color: var(--anp-muted); }

.anp-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  vertical-align: -1px;
  opacity: .9;
  background: currentColor;
}
.anp-user {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.anp-clock {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 11H7v-2h4V6h2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 11H7v-2h4V6h2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.post-excerpt {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  margin-top: 8px;
}
.post-excerpt .read-more {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* —— Banner grid (mobile stack) —— */
.af-main-banner {
  padding: 16px 0 8px;
}
.anp-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.anp-main-story,
.anp-editors-picks,
.anp-trending {
  background: transparent;
}

/* Slider */
.anp-slider { overflow: hidden; position: relative; }
.anp-slider-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}
.anp-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.anp-slide .data-bg-featured { min-height: 260px; }

/* Editors grid */
.anp-editors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.anp-editors-grid .data-bg-featured { min-height: 200px; }

/* Trending list */
.anp-list-row {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--anp-white);
  padding: 8px;
  margin-bottom: 8px;
}
.trending-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--anp-primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.anp-list-thumb {
  width: 72px; height: 54px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  position: relative;
}
.anp-list-thumb a { position: absolute; inset: 0; }
.anp-list-body .article-title-2 a {
  color: #111;
  font-size: 14px;
  font-weight: 700;
}
.anp-list-body .figure-categories { padding: 0; margin-bottom: 4px; }
.anp-list-body .cat-links a { font-size: 10px; padding: 2px 6px; }

/* Featured / missed */
.anp-featured-story,
.anp-missed-posts {
  padding: 8px 0 24px;
}
.anp-featured-grid,
.anp-missed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.anp-featured-grid .data-bg-featured { min-height: 240px; }

/* Content layout */
.anp-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px 0 32px;
}
.anp-primary {
  background: var(--anp-white);
  padding: 16px;
}
.anp-list-post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--anp-border);
}
.anp-list-post__thumb img { width: 100%; display: block; }
.entry-title { font-size: 1.2rem; }
.entry-title a { color: #111; }
.read-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--anp-primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

/* Sidebar */
.anp-sidebar .widget {
  background: var(--anp-white);
  padding: 16px;
  margin-bottom: 16px;
}
.anp-widget-posts li {
  padding: 8px 0;
  border-bottom: 1px solid var(--anp-border);
  font-size: 14px;
  font-weight: 600;
}
.anp-widget-grid .data-bg-featured { min-height: 160px; }

/* Pagination */
.navigation.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  align-items: center;
}
.navigation.pagination .page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: #eee;
  color: #333;
  font-weight: 700;
  font-size: 13px;
}
.navigation.pagination .current,
.nav-links .current {
  background: var(--anp-primary);
  color: #fff;
}

/* Single */
.anp-single .entry-header { margin-bottom: 16px; }
.anp-single .entry-title { font-size: 1.6rem; }
.anp-single .post-thumbnail { margin-bottom: 16px; }
.anp-single .entry-content { font-size: 1.05rem; line-height: 1.75; }
.anp-single .entry-content p { margin: 0 0 1.1em; }
.tagcloud a {
  display: inline-block;
  border: 1px solid var(--anp-border);
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  font-size: 12px;
}
.tagcloud a:hover { background: var(--anp-primary); color: #fff; border-color: var(--anp-primary); }

/* Friend links */
.anp-friend-links {
  background: var(--anp-white);
  border-top: 1px solid var(--anp-border);
  padding: 18px 15px;
  max-width: var(--anp-container);
  margin: 0 auto;
}
/* Friend Links section title is hidden on all front-end pages. */
.anp-friend-links__title,
.widget_allnewspixel_friend_links_widget .widget-title {
  display: none !important;
}
.anp-friend-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.anp-friend-links__list a {
  font-size: 13px;
  color: var(--anp-text);
}
.anp-friend-links__list a:hover { color: var(--anp-primary); }

/* Footer */
.anp-footer-widgets {
  background: #222;
  color: #ccc;
  padding: 28px 0 12px;
}
.anp-footer-widgets__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.anp-footer-widgets .widget-title,
.anp-footer-widgets a { color: #fff; }
.site-footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
}
.site-footer a { color: #ddd; }
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* Scroll top */
.anp-scroll-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  background: var(--anp-primary);
  color: #fff;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
  z-index: 999;
}
.anp-scroll-top.is-visible { opacity: 1; visibility: visible; }

/* Comments */
.comments-area { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--anp-border); }
.comment-list { list-style: none; }
.comment-list .comment { padding: 12px 0; border-bottom: 1px solid var(--anp-border); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--anp-border);
  margin-bottom: 10px;
}

/* ========== Tablet+ ========== */
@media (min-width: 768px) {
  .anp-flash-story__inner {
    flex-direction: row;
    align-items: stretch;
  }
  .anp-flash-label {
    flex: 0 0 150px;
    justify-content: center;
  }
  .anp-flash-marquee { flex: 1; padding: 0 12px; display: flex; align-items: center; }

  .menu-toggle { display: none; }
  .primary-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    padding: 0;
    flex: 1;
  }
  .primary-menu li { border: 0; }
  .primary-menu a { padding: 14px 16px; }
  .primary-menu .sub-menu {
    display: none;
    position: absolute;
    min-width: 200px;
    padding-left: 0;
    z-index: 20;
  }
  .primary-menu li:hover > .sub-menu { display: block; }
  .primary-menu > li { position: relative; }

  .anp-list-post {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
  .anp-editors-grid {
    grid-template-columns: 1fr 1fr;
  }
  .anp-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .anp-missed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .anp-footer-widgets__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Desktop banner: Main | Editors | Trending ========== */
@media (min-width: 992px) {
  .anp-banner-grid {
    grid-template-columns: 1.2fr 1fr .85fr;
    align-items: start;
  }
  .anp-editors-grid {
    grid-template-columns: 1fr;
  }
  .anp-editors-grid .editors-pick-item:first-child .data-bg-featured {
    min-height: 240px;
  }
  .anp-editors-grid .data-bg-featured { min-height: 150px; }
  .anp-slide .data-bg-featured { min-height: 420px; }
  .anp-content-layout {
    grid-template-columns: 1fr 320px;
  }
  .anp-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .anp-container { padding: 0 20px; }
}
