/*
Theme Name: AlifNews
Theme URI: https://alifnews.info
Author: Alif News
Description: A fast, modern news & blogging theme for Alif News Gujranwala. Magazine home page, unique header/footer with social icons, editorial post layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: alifnews
Tags: news, blog, magazine, custom-logo, featured-images, translation-ready
*/

/* ---------------------------------------------------------
   Design tokens
--------------------------------------------------------- */
:root {
  --an-crimson: #cd3301;
  --an-crimson-dark: #990100;
  --an-maroon: #990100;
  --an-midnight: #1e2b53;
  --an-midnight-2: #141d3c;
  --an-sky: #6ec1e4;
  --an-amber: #ffde13;
  --an-ink: #14181f;
  --an-body: #4a5160;
  --an-line: #e6e8ee;
  --an-bg: #ffffff;
  --an-bg-soft: #f7f8fb;
  --an-shadow: 0 18px 40px rgba(20, 24, 31, 0.10);
  --an-radius: 2px;
  --an-max: 1500px;
  --an-font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--an-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--an-body);
  background: var(--an-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--an-crimson); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--an-crimson-dark); }

h1, h2, h3, h4, h5 {
  color: var(--an-ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

.an-container { width: 100%; max-width: var(--an-max); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999; width: auto; height: auto;
  clip: auto; background: #fff; padding: 10px 16px; box-shadow: var(--an-shadow);
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.an-header { background: #fff; border-bottom: 1px solid var(--an-line); position: sticky; top: 0; z-index: 50; }
.an-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px;
}
.an-brand { display: flex; align-items: center; gap: 14px; }
.an-brand img { max-height: 62px; width: auto; }
.an-brand__text { display: flex; flex-direction: column; }
.an-brand__title {
  font-size: 2rem; font-weight: 700; color: var(--an-crimson);
  margin: 0; line-height: 1.1; letter-spacing: -0.02em;
}
.an-brand__title a { color: inherit; }
.an-brand__tagline { font-size: .9rem; color: var(--an-body); margin: 2px 0 0; }

.an-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.an-nav a {
  font-size: 1rem; color: var(--an-crimson); position: relative; padding-bottom: 4px;
}
.an-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--an-crimson); transition: width .25s ease;
}
.an-nav a:hover::after,
.an-nav .current-menu-item > a::after { width: 100%; }

.an-nav-toggle {
  display: none; background: none; border: 1px solid var(--an-line);
  padding: 8px 12px; border-radius: var(--an-radius); cursor: pointer; color: var(--an-crimson);
}

/* ---------------------------------------------------------
   Hero banner (midnight constellation band)
--------------------------------------------------------- */
.an-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(620px 420px at 12% 40%, rgba(216,27,96,.28), transparent 65%),
    radial-gradient(620px 420px at 88% 70%, rgba(240,165,0,.20), transparent 65%),
    linear-gradient(120deg, var(--an-midnight-2), var(--an-midnight));
}
.an-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.an-hero__inner {
  position: relative; z-index: 1; text-align: center;
  padding: 96px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.an-hero__title {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0; letter-spacing: -0.02em;
}
.an-hero__sub { color: rgba(255,255,255,.78); margin: 0; font-size: 1rem; }
.an-hero__rings { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ---------------------------------------------------------
   Section headings
--------------------------------------------------------- */
.an-section { padding: 64px 0; }

/* ---------------------------------------------------------
   Homepage ad slots
--------------------------------------------------------- */
.an-ad-slot { padding: 28px 0; }
.an-ad-slot__img { display: block; width: 100%; height: auto; border-radius: var(--an-radius); margin: 0 auto; }
.an-ad-slot__link { display: block; }
.an-ad-slot__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 120px; border: 2px dashed var(--an-line);
  border-radius: var(--an-radius); background: #fafbfc; text-align: center; padding: 20px;
}
.an-ad-slot__placeholder span { font-weight: 700; color: var(--an-midnight); font-size: 15px; }
.an-ad-slot__placeholder small { color: #8a8f9c; font-size: 12.5px; }
.an-section--soft { background: var(--an-bg-soft); }
.an-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 34px; border-bottom: 2px solid var(--an-line); padding-bottom: 14px;
}
.an-section__title { margin: 0; position: relative; padding-left: 16px; }
.an-section__title::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 5px; background: var(--an-crimson);
}
.an-section__link { font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* ---------------------------------------------------------
   Post cards
--------------------------------------------------------- */
.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.an-grid--2 { grid-template-columns: repeat(2, 1fr); }
.an-grid--related { grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) {
  .an-grid--related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .an-grid--related { grid-template-columns: 1fr; }
}

/* Category section: 1 featured post + grid below */
.an-card-featured { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; margin-bottom: 28px; }
.an-card-featured__media { display: block; aspect-ratio: 16/9; overflow: hidden; }
.an-card-featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.an-card-featured:hover .an-card-featured__media img { transform: scale(1.04); }
.an-card-featured__title { margin: 0 0 10px; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.35; }
.an-card-featured__title a { color: var(--an-ink); }
.an-card-featured__title a:hover { color: var(--an-crimson); }
.an-grid--cat { grid-template-columns: repeat(3, 1fr); }

.an-card-min { display: flex; flex-direction: column; }
.an-card-min__media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.an-card-min__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.an-card-min:hover .an-card-min__media img { transform: scale(1.05); }
.an-card-min__title { margin: 10px 0 0; font-size: .95rem; line-height: 1.4; }
.an-card-min__title a { color: var(--an-ink); }
.an-card-min__title a:hover { color: var(--an-crimson); }

/* ---------------------------------------------------------
   Homepage layout: left sidebar + main content
--------------------------------------------------------- */
.an-home-layout { display: grid; grid-template-columns: 300px 1fr; align-items: start; gap: 0; }
.an-home-sidebar { padding: 28px 20px 28px 0; }
.an-home-main { min-width: 0; }
@media (max-width: 900px) {
  .an-home-layout { grid-template-columns: 1fr; }
  .an-home-sidebar { padding: 20px 0; }
}
@media (max-width: 860px) {
  .an-card-featured { grid-template-columns: 1fr; }
  .an-grid--cat { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .an-grid--cat { grid-template-columns: 1fr; }
}

.an-card {
  position: relative; background: #fff; box-shadow: var(--an-shadow);
  display: flex; flex-direction: column; height: 100%;
  border-bottom: 6px solid var(--an-maroon);
  transition: transform .25s ease, box-shadow .25s ease;
}
.an-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(20,24,31,.16); }
.an-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11; background: var(--an-bg-soft); }
.an-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.an-card:hover .an-card__media img { transform: scale(1.05); }

.an-date {
  position: absolute; left: -14px; bottom: -22px; z-index: 2;
  background: var(--an-sky); color: #fff; text-align: center;
  padding: 8px 12px 6px; min-width: 58px; line-height: 1.1;
}
.an-date__day { display: block; font-size: 1.35rem; font-weight: 700; }
.an-date__mon { display: block; font-size: .8rem; }

.an-card__body { padding: 40px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.an-card__cat {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--an-crimson);
}
.an-card__title { margin: 0; font-size: 1.22rem; }
.an-card__title a { color: var(--an-ink); }
.an-card__title a:hover { color: var(--an-crimson); }
.an-card__excerpt { margin: 0; font-size: .97rem; }
.an-card__meta { margin-top: auto; font-size: .82rem; color: #8a90a0; }

/* Featured (lead) card */
.an-lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; box-shadow: var(--an-shadow); background: #fff; border-bottom: 6px solid var(--an-maroon); margin-bottom: 40px; }
.an-lead__media { position: relative; min-height: 340px; }
.an-lead__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.an-lead__body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.an-lead__title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin: 0; }
.an-lead__title a { color: var(--an-ink); }
.an-lead__title a:hover { color: var(--an-crimson); }

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.an-btn {
  display: inline-block; background: var(--an-crimson); color: #fff !important;
  padding: 12px 26px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.an-btn:hover { background: var(--an-crimson-dark); transform: translateY(-2px); }
.an-btn--ghost { background: transparent; color: var(--an-crimson) !important; border: 2px solid var(--an-crimson); }
.an-btn--ghost:hover { background: var(--an-crimson); color: #fff !important; }

/* ---------------------------------------------------------
   Single post
--------------------------------------------------------- */
.an-single { padding: 56px 0 72px; }
.an-single__layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 54px; }
.an-breadcrumb { font-size: .85rem; color: #8a90a0; margin-bottom: 18px; }
.an-breadcrumb a { color: #8a90a0; }
.an-breadcrumb a:hover { color: var(--an-crimson); }
.an-post__catbadge {
  display: inline-block; background: var(--an-crimson); color: #fff; font-size: .72rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px;
  border-radius: var(--an-radius); margin-bottom: 10px; text-decoration: none;
}
.an-post__catbadge:hover { background: var(--an-crimson-dark); color: #fff; }

.an-post__meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-size: .87rem; color: #8a90a0; margin-bottom: 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--an-line);
}
.an-post__meta strong { color: var(--an-ink); font-weight: 600; }
.an-post__thumb { margin: 0 0 32px; border-bottom: 6px solid var(--an-maroon); }

.an-content { font-size: 1.06rem; color: #333a47; }
.an-content > * + * { margin-top: 1.15em; }
.an-content h2 { margin-top: 1.8em; }
.an-content h3 { margin-top: 1.5em; }
.an-content p { margin: 0 0 1.15em; }
.an-content blockquote {
  margin: 1.8em 0; padding: 20px 26px; background: var(--an-bg-soft);
  border-left: 5px solid var(--an-crimson); font-style: italic; color: var(--an-ink);
}
.an-content ul, .an-content ol { padding-left: 1.4em; }
.an-content li + li { margin-top: .4em; }
.an-content img { margin: 1.5em 0; }
.an-content figcaption { font-size: .85rem; color: #8a90a0; text-align: center; }
.an-content a { text-decoration: underline; text-underline-offset: 3px; }

.an-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.an-tags a {
  font-size: .8rem; background: var(--an-bg-soft); border: 1px solid var(--an-line);
  padding: 6px 14px; color: var(--an-body);
}
.an-tags a:hover { background: var(--an-crimson); color: #fff; border-color: var(--an-crimson); }

.an-share { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.an-share a { border: 1px solid var(--an-line); padding: 6px 14px; font-size: .82rem; }

.an-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.an-postnav__item { border: 1px solid var(--an-line); padding: 18px 22px; }
.an-postnav__label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #8a90a0; }
.an-postnav__item a { color: var(--an-ink); font-weight: 600; }
.an-postnav__item a:hover { color: var(--an-crimson); }

/* Sidebar */
.an-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.an-sidebar .widget, .an-widget {
  background: #fff; border: 1px solid var(--an-line); padding: 24px; margin-bottom: 26px;
}
.an-widget--ad { padding: 0; overflow: hidden; }
.an-widget--ad .an-container { max-width: none; padding: 0; }
.an-widget--ad .an-ad-slot { padding: 0; }
.an-widget--ad .an-ad-slot__placeholder { border: none; border-radius: 0; min-height: 160px; }
.an-widget--ad .an-ad-slot__img { border-radius: 0; }
.an-widget__title, .an-sidebar .widget-title {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid var(--an-crimson); padding-bottom: 10px; margin-bottom: 16px;
}
.an-sidebar ul, .an-featured-list { list-style: none; margin: 0; padding: 0; }
.an-sidebar li + li, .an-featured-list li + li { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--an-line); }
.an-mini { display: flex; gap: 12px; align-items: flex-start; }
.an-mini img { width: 74px; height: 60px; object-fit: cover; flex: none; }
.an-mini a { color: var(--an-ink); font-weight: 600; font-size: .93rem; line-height: 1.4; }
.an-mini a:hover { color: var(--an-crimson); }

.an-newsletter__form { display: flex; flex-direction: column; gap: 10px; }
.an-newsletter__form label { font-size: .8rem; font-weight: 600; color: var(--an-body); }
.an-newsletter__form input {
  padding: 10px 12px; border: 1px solid var(--an-line); font-family: inherit; font-size: .9rem;
}
.an-newsletter__form .an-btn { margin-top: 4px; align-self: flex-start; }
.an-newsletter__success {
  background: #f0fbf4; border: 1px solid #b7e4c7; color: #1c6b3a;
  padding: 10px 12px; font-size: .85rem; margin-bottom: 14px;
}
.an-mini span { display: block; font-size: .78rem; color: #8a90a0; font-weight: 400; }

/* ---------------------------------------------------------
   Pagination / comments
--------------------------------------------------------- */
.an-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.an-pagination .page-numbers {
  padding: 10px 16px; border: 1px solid var(--an-line); color: var(--an-body);
}
.an-pagination .page-numbers.current,
.an-pagination .page-numbers:hover { background: var(--an-crimson); border-color: var(--an-crimson); color: #fff; }

.an-comments { margin-top: 56px; padding-top: 34px; border-top: 2px solid var(--an-line); }
.an-comments ol { list-style: none; padding: 0; }
.an-comments .comment-body { border: 1px solid var(--an-line); padding: 20px; margin-bottom: 18px; }
.an-comments input[type=text], .an-comments input[type=email], .an-comments input[type=url], .an-comments textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--an-line); font-family: inherit; font-size: .95rem;
}
.an-comments .submit { background: var(--an-crimson); color: #fff; border: 0; padding: 12px 26px; cursor: pointer; font-weight: 600; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.an-footer { border-top: 1px solid var(--an-line); padding: 34px 0; background: #fff; }
.an-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .92rem; }
.an-footer__menu ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .an-single__layout { grid-template-columns: 1fr; }
  .an-sidebar { position: static; max-height: none; overflow: visible; }
  .an-grid { grid-template-columns: repeat(2, 1fr); }
  .an-lead { grid-template-columns: 1fr; }
  .an-lead__media { min-height: 260px; }
}
@media (max-width: 768px) {
  .an-nav-toggle { display: block; }

  .an-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 82vw);
    max-width: 340px;
    background: #fff;
    box-shadow: 4px 0 32px rgba(15, 20, 40, 0.22);
    transform: translateX(-100%);
    transition: transform 0.32s ease;
    z-index: 210;
    overflow-y: auto;
    padding: 70px 22px 32px;
    display: block;
  }
  .an-nav.is-open { transform: translateX(0); }
  .an-nav ul { flex-direction: column; gap: 0; padding: 0; }
  .an-nav ul li { border-bottom: 1px solid var(--an-line); }
  .an-nav ul li:last-child { border-bottom: none; }
  .an-nav a { display: block; padding: 15px 4px; }
  .an-nav a::after { display: none; }

  .an-nav-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--an-line);
    border: 0;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--an-midnight);
  }
  .an-nav-close:hover { background: var(--an-crimson); color: #fff; }

  .an-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    z-index: 200;
  }
  .an-nav-backdrop.is-open { opacity: 1; visibility: visible; }

  body.an-nav-open { overflow: hidden; }

  .an-header__inner { flex-wrap: wrap; }
  .an-grid, .an-grid--2 { grid-template-columns: 1fr; }
  .an-hero__inner { padding: 64px 20px; }
  .an-section { padding: 46px 0; }
  .an-postnav { grid-template-columns: 1fr; }
  .an-footer__inner { flex-direction: column; text-align: center; }
}
/* ---------------------------------------------------------
   Top bar + social icons
--------------------------------------------------------- */
.an-topbar {
  background: linear-gradient(90deg, var(--an-midnight-2), var(--an-midnight));
  color: rgba(255,255,255,.82); font-size: .82rem;
}
.an-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.an-topbar__left { display: flex; align-items: center; gap: 12px; }
.an-topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.28); }
.an-topbar__clock { font-variant-numeric: tabular-nums; letter-spacing: .02em; color: rgba(255,255,255,.85); }
.an-topbar__tag { color: rgba(255,255,255,.6); }
.an-topbar__right { display: flex; align-items: center; gap: 18px; }
.an-topbar__mail { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82); }
.an-topbar__mail:hover { color: var(--an-amber); }

.an-social { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.an-social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.10); color: #fff;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.an-social__link:hover { color: #fff; transform: translateY(-2px); }
.an-social__link--facebook:hover { background: #1877f2; }
.an-social__link--youtube:hover  { background: #ff0000; }
.an-social__link--instagram:hover{ background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.an-social__link--tiktok:hover   { background: #010101; }
.an-social__link--email:hover    { background: var(--an-crimson); }
.an-social--cta .an-social__link { width: 44px; height: 44px; background: rgba(255,255,255,.14); }

/* ---------------------------------------------------------
   Header refinements
--------------------------------------------------------- */
.an-header.is-stuck { box-shadow: 0 10px 26px rgba(20,24,31,.10); }
.an-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--an-crimson), var(--an-amber), var(--an-sky)); }
.an-header__actions { display: flex; align-items: center; gap: 10px; order: 3; }
.an-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--an-line); background: #fff;
  color: var(--an-midnight); cursor: pointer; border-radius: 50%;
}
.an-search-toggle:hover { background: var(--an-crimson); color: #fff; border-color: var(--an-crimson); }
.an-nav-toggle { align-items: center; gap: 8px; }
.an-nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.an-nav-toggle__bars i { display: block; width: 16px; height: 2px; background: currentColor; }
.an-nav a { color: var(--an-midnight); font-weight: 600; }
.an-nav a:hover, .an-nav .current-menu-item > a { color: var(--an-crimson); }
.an-nav-close { display: none; }
.an-searchbar { border-top: 1px solid var(--an-line); background: var(--an-bg-soft); padding: 16px 0; }
.an-searchbar input[type=search], .an-searchbar input[type=text] {
  width: 100%; padding: 12px 16px; border: 1px solid var(--an-line); font-family: inherit;
}

/* ---------------------------------------------------------
   Breaking ticker
--------------------------------------------------------- */
.an-ticker { background: var(--an-bg-soft); border-bottom: 1px solid var(--an-line); }
.an-ticker__inner { display: flex; align-items: center; gap: 18px; min-height: 52px; overflow: hidden; }
.an-ticker__label {
  background: var(--an-crimson); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: 7px 14px; flex: none;
}
.an-ticker__viewport { flex: 1; overflow: hidden; }
.an-ticker__track { display: flex; width: max-content; animation: an-ticker-scroll 26s linear infinite; }
.an-ticker__set { display: flex; gap: 34px; white-space: nowrap; padding-right: 34px; }
.an-ticker__track a { color: var(--an-midnight); font-size: .92rem; font-weight: 500; }
.an-ticker__track a::before { content: "\25CF"; color: var(--an-amber); font-size: .6rem; margin-right: 8px; vertical-align: middle; }
.an-ticker__track a:hover { color: var(--an-crimson); }
.an-ticker__inner:hover .an-ticker__track { animation-play-state: paused; }
@keyframes an-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .an-ticker__track { animation: none; }
}

/* ---------------------------------------------------------
   Home hero: post list + image slider
--------------------------------------------------------- */
.an-hero2 { padding: 28px 0; background: var(--an-bg-soft); }
.an-hero2__layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }

.an-hero2__list { background: #fff; border: 1px solid var(--an-line); display: flex; flex-direction: column; }
.an-hero2__list-head {
  background: var(--an-crimson); color: #fff; font-weight: 700; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px;
}
.an-hero2__list ul { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.an-hero2__list li { display: flex; gap: 10px; align-items: flex-start; }
.an-hero2__list li + li { border-top: 1px dashed var(--an-line); padding-top: 10px; }
.an-hero2__list-thumb { flex: none; display: block; width: 78px; height: 62px; overflow: hidden; }
.an-hero2__list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.an-hero2__list-body a { color: var(--an-ink); font-weight: 600; font-size: .88rem; line-height: 1.35; }
.an-hero2__list-body a:hover { color: var(--an-crimson); }
.an-hero2__list-meta { display: flex; gap: 10px; font-size: .72rem; color: #9096a3; margin-top: 4px; }

.an-hero2__slider { position: relative; overflow: hidden; background: var(--an-midnight); min-height: 360px; }
.an-hero2__slides { position: relative; height: 100%; min-height: 360px; }
.an-hero2__slide {
  position: absolute; inset: 0; display: block; background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity .5s ease; z-index: 1;
}
.an-hero2__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.an-hero2__slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,14,26,.88) 0%, rgba(10,14,26,.25) 55%, transparent 100%);
}
.an-hero2__slide-title {
  position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1;
  color: #fff; font-family: var(--an-font); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.3;
}
.an-hero2__dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: flex; justify-content: center; gap: 8px;
}
.an-hero2__dot {
  width: 10px; height: 10px; border-radius: 999px; border: 2px solid #fff; background: transparent;
  padding: 0; cursor: pointer; opacity: .7;
}
.an-hero2__dot.is-active { background: var(--an-crimson); border-color: var(--an-crimson); opacity: 1; }

@media (max-width: 860px) {
  .an-hero2__layout { grid-template-columns: 1fr; }
  .an-hero2__list ul { flex-direction: row; overflow-x: auto; }
  .an-hero2__list li { flex-direction: column; min-width: 140px; border-top: none !important; padding-top: 0 !important; }
  .an-hero2__list li + li { border-left: 1px dashed var(--an-line); padding-left: 10px; }
}


/* ---------------------------------------------------------
   Footer (dark, multi column)
--------------------------------------------------------- */
.an-footer { background: var(--an-midnight-2); color: rgba(255,255,255,.72); border-top: 0; padding: 0; }
.an-footer__cta { background: linear-gradient(90deg, var(--an-crimson), var(--an-maroon)); }
.an-footer__cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px 24px; flex-wrap: wrap; }
.an-footer__cta-title { color: #fff; margin: 0; font-size: 1.4rem; }
.an-footer__cta-sub { margin: 4px 0 0; color: rgba(255,255,255,.82); font-size: .92rem; }
.an-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 56px; padding-bottom: 46px; }
.an-footer__brand { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0 0 12px; }
.an-footer__logo img { max-height: 56px; width: auto; background: #fff; padding: 6px 10px; margin-bottom: 14px; }
.an-footer__about { margin: 0 0 14px; font-size: .93rem; }
.an-footer__mail { color: var(--an-amber); font-weight: 600; }
.an-footer__title {
  color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.14); position: relative;
}
.an-footer__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 46px; height: 2px; background: var(--an-crimson); }
.an-footer__col ul { list-style: none; margin: 0; padding: 0; }
.an-footer__col li + li { margin-top: 10px; }
.an-footer__col a { color: rgba(255,255,255,.75); font-size: .93rem; }
.an-footer__col a:hover { color: var(--an-amber); }
.an-footer__latest li { padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,.14); }
.an-footer__latest span { display: block; font-size: .76rem; color: rgba(255,255,255,.45); }
.an-footer__bar { border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }
.an-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; flex-wrap: wrap; }
.an-footer__credit { color: rgba(255,255,255,.6); }
.an-footer__credit a { color: rgba(255,255,255,.85); font-weight: 600; text-decoration: none; }
.an-footer__credit a:hover { color: var(--an-amber); }
.an-footer__credit::before { content: "\2726"; color: var(--an-amber); margin-right: 8px; }

@media (max-width: 1024px) {
  .an-hero2__layout { grid-template-columns: 260px 1fr; }
  .an-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .an-topbar__inner { justify-content: center; text-align: center; padding-top: 8px; padding-bottom: 8px; }
  .an-topbar__mail span { display: none; }
  .an-side { grid-template-columns: 96px 1fr; }
  .an-footer__grid { grid-template-columns: 1fr; }
  .an-footer__bar-inner { flex-direction: column; text-align: center; }
  .an-footer__cta-inner { flex-direction: column; text-align: center; }
}
