/*
Theme Name: HuffPost Clone
Theme URI: https://guestpostx.com
Author: GUESTPOSTx
Author URI: https://guestpostx.com
Description: A pixel-perfect HuffPost-inspired WordPress news theme. Full clone with all pages, responsive design, mega menus, breaking news bar, and complete editorial layout system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huffpost-clone
Tags: news, magazine, blog, responsive, custom-menu, featured-images, custom-header, custom-logo, post-formats, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --hp-black:        #000000;
  --hp-white:        #ffffff;
  --hp-red:          #e31c3d;
  --hp-dark-red:     #c0112d;
  --hp-gray-100:     #f7f7f7;
  --hp-gray-200:     #eeeeee;
  --hp-gray-300:     #dddddd;
  --hp-gray-400:     #cccccc;
  --hp-gray-500:     #999999;
  --hp-gray-600:     #666666;
  --hp-gray-700:     #444444;
  --hp-gray-800:     #222222;
  --hp-blue:         #1a6ea8;
  --hp-green:        #2e7d32;
  --hp-yellow:       #f5a623;
  --hp-purple:       #7b1fa2;

  /* Typography */
  --font-headline:   'Georgia', 'Times New Roman', serif;
  --font-body:       'Arial', 'Helvetica Neue', sans-serif;
  --font-ui:         'Arial', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --gap-xs:    4px;
  --gap-sm:    8px;
  --gap-md:    16px;
  --gap-lg:    24px;
  --gap-xl:    32px;
  --gap-2xl:   48px;
  --gap-3xl:   64px;

  /* Layout */
  --container-max:   1260px;
  --sidebar-width:   300px;
  --header-height:   108px;

  /* Borders */
  --border-light:    1px solid var(--hp-gray-300);
  --border-dark:     2px solid var(--hp-black);
  --border-red:      3px solid var(--hp-red);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.12);
  --shadow-md:    0 4px 12px rgba(0,0,0,.15);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.2);

  /* Transitions */
  --transition-fast: .15s ease;
  --transition-med:  .25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-gray-800);
  background: var(--hp-white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--hp-red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.hp-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

.hp-grid { display: grid; gap: var(--gap-lg); }
.hp-flex { display: flex; }
.hp-flex-center { display: flex; align-items: center; }

/* Content + Sidebar layout */
.hp-content-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap-xl);
  align-items: start;
}
@media (max-width: 1024px) {
  .hp-content-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   BREAKING NEWS BAR
   ============================================================ */
.hp-breaking-bar {
  background: var(--hp-red);
  color: var(--hp-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 0;
  overflow: hidden;
}
.hp-breaking-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}
.hp-breaking-bar__label {
  white-space: nowrap;
  background: rgba(0,0,0,.2);
  padding: 2px 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.hp-breaking-bar__ticker {
  overflow: hidden;
  flex: 1;
}
.hp-breaking-bar__track {
  display: flex;
  gap: var(--gap-xl);
  animation: hp-ticker 30s linear infinite;
  white-space: nowrap;
}
.hp-breaking-bar__track a { color: var(--hp-white); opacity: .9; }
.hp-breaking-bar__track a:hover { opacity: 1; text-decoration: underline; }
@keyframes hp-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.hp-header {
  background: var(--hp-white);
  border-bottom: var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.hp-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-md) 0;
  border-bottom: var(--border-light);
}
.hp-header__logo a {
  display: block;
  font-family: var(--font-headline);
  font-size: 36px;
  font-weight: 900;
  color: var(--hp-black);
  letter-spacing: -1px;
  line-height: 1;
}
.hp-header__logo span { color: var(--hp-red); }
.hp-header__actions {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}
.hp-header__search-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hp-gray-100);
  transition: background var(--transition-fast);
}
.hp-header__search-btn:hover { background: var(--hp-gray-200); }
.hp-header__login-btn {
  background: var(--hp-black);
  color: var(--hp-white);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 3px;
  transition: background var(--transition-fast);
}
.hp-header__login-btn:hover { background: var(--hp-gray-800); color: var(--hp-white); }
.hp-header__subscribe-btn {
  background: var(--hp-red);
  color: var(--hp-white);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 3px;
  transition: background var(--transition-fast);
}
.hp-header__subscribe-btn:hover { background: var(--hp-dark-red); color: var(--hp-white); }

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.hp-nav { position: relative; }
.hp-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.hp-nav__inner::-webkit-scrollbar { display: none; }
.hp-nav__item { position: relative; flex-shrink: 0; }
.hp-nav__link {
  display: block;
  padding: 14px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--hp-gray-800);
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.hp-nav__link:hover { color: var(--hp-red); }
.hp-nav__item.current-menu-item .hp-nav__link,
.hp-nav__item.current-menu-parent .hp-nav__link { color: var(--hp-red); border-bottom: 3px solid var(--hp-red); }

/* Mega Menu */
.hp-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 640px;
  background: var(--hp-white);
  border: var(--border-light);
  border-top: 3px solid var(--hp-red);
  box-shadow: var(--shadow-md);
  padding: var(--gap-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-med);
  z-index: 999;
}
.hp-nav__item:hover .hp-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hp-megamenu__col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hp-gray-500);
  border-bottom: var(--border-light);
  padding-bottom: var(--gap-sm);
  margin-bottom: var(--gap-sm);
}
.hp-megamenu__col a {
  display: block;
  font-size: 13px;
  color: var(--hp-gray-700);
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.hp-megamenu__col a:hover { color: var(--hp-red); }

/* Mobile hamburger */
.hp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  padding: 4px;
}
.hp-hamburger span {
  display: block;
  height: 2px;
  background: var(--hp-black);
  border-radius: 2px;
  transition: all var(--transition-med);
}
@media (max-width: 768px) {
  .hp-hamburger { display: flex; }
  .hp-nav { display: none; }
  .hp-nav.open { display: block; position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--hp-white); overflow-y: auto; z-index: 999; padding: var(--gap-lg); }
  .hp-nav.open .hp-nav__inner { flex-direction: column; align-items: stretch; }
  .hp-nav.open .hp-megamenu { position: static; width: 100%; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; border-left: 3px solid var(--hp-red); padding: var(--gap-sm) var(--gap-md); grid-template-columns: 1fr; }
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.hp-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-med);
}
.hp-search-overlay.active { opacity: 1; visibility: visible; }
.hp-search-overlay__box {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--gap-md);
}
.hp-search-overlay__form {
  display: flex;
  align-items: center;
  background: var(--hp-white);
  border-radius: 4px;
  overflow: hidden;
}
.hp-search-overlay__input {
  flex: 1;
  padding: 18px 20px;
  font-size: 20px;
  border: none;
  outline: none;
}
.hp-search-overlay__submit {
  padding: 0 24px;
  background: var(--hp-red);
  color: var(--hp-white);
  height: 60px;
  font-size: 18px;
  font-weight: 700;
}
.hp-search-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--hp-white);
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hp-hero { padding: var(--gap-lg) 0; border-bottom: var(--border-light); }
.hp-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--gap-md);
}
/* Main hero - spans 2 cols and 2 rows */
.hp-hero__main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.hp-hero__main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform .4s ease;
}
.hp-hero__main:hover img { transform: scale(1.02); }
.hp-hero__main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.hp-hero__main-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--gap-lg);
  color: var(--hp-white);
}
.hp-hero__main-content .hp-section-label { margin-bottom: var(--gap-sm); }
.hp-hero__main-title {
  font-family: var(--font-headline);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--gap-sm);
}
.hp-hero__main-title a { color: var(--hp-white); }
.hp-hero__main-meta { font-size: 12px; opacity: .8; }

/* Side story cards */
.hp-hero__side {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.hp-hero__side-card { display: flex; flex-direction: column; flex: 1; }
.hp-hero__side-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 2px; }
.hp-hero__side-card-content { padding: var(--gap-sm) 0; flex: 1; }
.hp-hero__side-card-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hp-gray-800);
}
.hp-hero__side-card-title a:hover { color: var(--hp-red); }

@media (max-width: 1024px) {
  .hp-hero__grid { grid-template-columns: 1fr 1fr; }
  .hp-hero__main { grid-column: 1 / 3; grid-row: 1; }
  .hp-hero__side { flex-direction: row; grid-column: 1 / 3; }
}
@media (max-width: 600px) {
  .hp-hero__grid { grid-template-columns: 1fr; }
  .hp-hero__main { grid-column: 1; grid-row: 1; }
  .hp-hero__main img { height: 260px; }
  .hp-hero__side { flex-direction: column; grid-column: 1; }
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.hp-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hp-red);
  border-bottom: 2px solid var(--hp-red);
  padding-bottom: 1px;
}
.hp-section-label--black { color: var(--hp-black); border-color: var(--hp-black); }
.hp-section-label--blue  { color: var(--hp-blue);  border-color: var(--hp-blue);  }

.hp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--hp-black);
  padding-top: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
.hp-section-header h2 {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 900;
  color: var(--hp-black);
  letter-spacing: -.3px;
}
.hp-section-header a.see-all {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--hp-gray-600);
  border-bottom: 1px solid var(--hp-gray-400);
}
.hp-section-header a.see-all:hover { color: var(--hp-red); border-color: var(--hp-red); }

/* ============================================================
   STORY CARDS (Standard)
   ============================================================ */
.hp-card { display: flex; flex-direction: column; }
.hp-card__img { position: relative; overflow: hidden; border-radius: 2px; margin-bottom: var(--gap-sm); }
.hp-card__img img { width: 100%; height: 180px; object-fit: cover; transition: transform .35s ease; }
.hp-card:hover .hp-card__img img { transform: scale(1.04); }
.hp-card__body { flex: 1; }
.hp-card__section-label { margin-bottom: 6px; }
.hp-card__title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hp-gray-800);
  margin-bottom: 6px;
}
.hp-card__title a:hover { color: var(--hp-red); }
.hp-card__excerpt {
  font-size: 14px;
  color: var(--hp-gray-600);
  line-height: 1.5;
  margin-bottom: var(--gap-sm);
}
.hp-card__meta { font-size: 12px; color: var(--hp-gray-500); }
.hp-card__meta a { color: var(--hp-gray-600); font-weight: 700; }
.hp-card__meta a:hover { color: var(--hp-red); }

/* Horizontal Card */
.hp-card--horizontal { flex-direction: row; gap: var(--gap-md); align-items: flex-start; }
.hp-card--horizontal .hp-card__img { flex-shrink: 0; width: 120px; margin-bottom: 0; }
.hp-card--horizontal .hp-card__img img { height: 90px; width: 120px; }
.hp-card--horizontal .hp-card__title { font-size: 15px; }
@media (max-width: 480px) {
  .hp-card--horizontal { flex-direction: column; }
  .hp-card--horizontal .hp-card__img { width: 100%; }
  .hp-card--horizontal .hp-card__img img { height: 160px; width: 100%; }
}

/* Large Card */
.hp-card--large .hp-card__img img { height: 280px; }
.hp-card--large .hp-card__title { font-size: 26px; }

/* ============================================================
   MAIN CONTENT SECTIONS
   ============================================================ */
.hp-section { padding: var(--gap-xl) 0; border-bottom: var(--border-light); }

/* 3-column grid */
.hp-grid-3 { grid-template-columns: repeat(3, 1fr); }
/* 4-column grid */
.hp-grid-4 { grid-template-columns: repeat(4, 1fr); }
/* 2-column grid */
.hp-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
  .hp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hp-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hp-grid-3, .hp-grid-4, .hp-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   FEATURED SECTION (Big + Small)
   ============================================================ */
.hp-featured-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-lg);
}
.hp-featured-layout__secondary { display: flex; flex-direction: column; gap: var(--gap-md); }
.hp-featured-layout__divider {
  border: none;
  border-top: var(--border-light);
  margin: var(--gap-sm) 0;
}
@media (max-width: 768px) {
  .hp-featured-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   TRENDING / MOST POPULAR
   ============================================================ */
.hp-trending { background: var(--hp-gray-100); padding: var(--gap-lg); border-radius: 4px; }
.hp-trending h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hp-gray-700);
  border-bottom: 2px solid var(--hp-red);
  padding-bottom: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
.hp-trending__list { display: flex; flex-direction: column; }
.hp-trending__item {
  display: flex;
  gap: var(--gap-md);
  align-items: flex-start;
  padding: var(--gap-md) 0;
  border-bottom: var(--border-light);
}
.hp-trending__item:last-child { border-bottom: none; }
.hp-trending__num {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 900;
  color: var(--hp-gray-300);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}
.hp-trending__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hp-gray-800);
}
.hp-trending__title a:hover { color: var(--hp-red); }

/* ============================================================
   AD SLOTS
   ============================================================ */
.hp-ad { text-align: center; padding: var(--gap-md) 0; }
.hp-ad__label {
  font-size: 10px;
  color: var(--hp-gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.hp-ad__slot {
  background: var(--hp-gray-100);
  border: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-gray-400);
  font-size: 12px;
  margin: 0 auto;
}
.hp-ad__slot--banner   { width: 100%; max-width: 728px; height: 90px; }
.hp-ad__slot--rect     { width: 300px; height: 250px; }
.hp-ad__slot--leader   { width: 100%; max-width: 970px; height: 250px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.hp-sidebar { display: flex; flex-direction: column; gap: var(--gap-xl); }
.hp-widget { border-top: 3px solid var(--hp-black); }
.hp-widget__title {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 900;
  padding: var(--gap-sm) 0 var(--gap-md);
  border-bottom: var(--border-light);
  margin-bottom: var(--gap-md);
}
.hp-widget--newsletter { background: var(--hp-black); color: var(--hp-white); padding: var(--gap-lg); border-top: 3px solid var(--hp-red); }
.hp-widget--newsletter .hp-widget__title { color: var(--hp-white); border-color: rgba(255,255,255,.2); }
.hp-widget--newsletter p { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: var(--gap-md); }
.hp-newsletter-form { display: flex; flex-direction: column; gap: var(--gap-sm); }
.hp-newsletter-form input[type="email"] {
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: var(--hp-white);
  border-radius: 3px;
  font-size: 14px;
  width: 100%;
}
.hp-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.hp-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--hp-red); }
.hp-newsletter-form button {
  background: var(--hp-red);
  color: var(--hp-white);
  padding: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .5px;
  border-radius: 3px;
  transition: background var(--transition-fast);
}
.hp-newsletter-form button:hover { background: var(--hp-dark-red); }

/* ============================================================
   TAGS / TOPICS BAR
   ============================================================ */
.hp-topics { padding: var(--gap-lg) 0; overflow-x: auto; }
.hp-topics__inner { display: flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hp-topic-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--hp-gray-300);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-gray-700);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.hp-topic-tag:hover, .hp-topic-tag.active {
  border-color: var(--hp-black);
  background: var(--hp-black);
  color: var(--hp-white);
}

/* ============================================================
   OPINION / CONTRIBUTOR CARDS
   ============================================================ */
.hp-opinion-card { padding: var(--gap-md) 0; border-bottom: var(--border-light); }
.hp-opinion-card:last-child { border-bottom: none; }
.hp-opinion-card__author {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-sm);
}
.hp-opinion-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hp-gray-200);
}
.hp-opinion-card__author-info { font-size: 12px; }
.hp-opinion-card__author-name { font-weight: 700; color: var(--hp-gray-800); }
.hp-opinion-card__author-role { color: var(--hp-gray-500); }
.hp-opinion-card__title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hp-gray-800);
}
.hp-opinion-card__title a:hover { color: var(--hp-red); }

/* ============================================================
   NEWSLETTER / PROMO BANNERS
   ============================================================ */
.hp-promo-banner {
  background: var(--hp-black);
  color: var(--hp-white);
  padding: var(--gap-xl);
  border-radius: 4px;
  text-align: center;
  margin: var(--gap-xl) 0;
}
.hp-promo-banner h2 {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: var(--gap-sm);
}
.hp-promo-banner p { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: var(--gap-lg); }
.hp-promo-banner form { display: flex; gap: var(--gap-sm); justify-content: center; flex-wrap: wrap; }
.hp-promo-banner input[type="email"] {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  padding: 14px 18px;
  border: none;
  border-radius: 3px;
  font-size: 15px;
}
.hp-promo-banner button {
  background: var(--hp-red);
  color: var(--hp-white);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background var(--transition-fast);
}
.hp-promo-banner button:hover { background: var(--hp-dark-red); }

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.hp-article-header { padding: var(--gap-xl) 0 var(--gap-lg); border-bottom: var(--border-light); margin-bottom: var(--gap-xl); }
.hp-article-header .hp-section-label { margin-bottom: var(--gap-md); }
.hp-article-title {
  font-family: var(--font-headline);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--hp-black);
  margin-bottom: var(--gap-md);
}
.hp-article-dek {
  font-size: 20px;
  color: var(--hp-gray-600);
  line-height: 1.5;
  font-family: var(--font-headline);
  margin-bottom: var(--gap-lg);
}
.hp-article-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}
.hp-article-author {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}
.hp-article-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hp-gray-200);
}
.hp-article-author-name { font-weight: 700; font-size: 14px; }
.hp-article-author-title { font-size: 12px; color: var(--hp-gray-500); }
.hp-article-date { font-size: 13px; color: var(--hp-gray-500); }
.hp-article-share { display: flex; gap: var(--gap-sm); margin-left: auto; }
.hp-share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity var(--transition-fast);
}
.hp-share-btn:hover { opacity: .85; }
.hp-share-btn--fb   { background: #1877f2; color: var(--hp-white); }
.hp-share-btn--tw   { background: #1da1f2; color: var(--hp-white); }
.hp-share-btn--li   { background: #0a66c2; color: var(--hp-white); }
.hp-share-btn--copy { background: var(--hp-gray-200); color: var(--hp-gray-800); }

/* Hero image */
.hp-article-hero { margin-bottom: var(--gap-xl); }
.hp-article-hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 3px; }
.hp-article-hero figcaption { font-size: 12px; color: var(--hp-gray-500); padding-top: var(--gap-sm); border-top: var(--border-light); margin-top: 6px; }

/* Article body */
.hp-article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--hp-gray-800);
  max-width: 700px;
}
.hp-article-body p { margin-bottom: var(--gap-lg); }
.hp-article-body h2 { font-family: var(--font-headline); font-size: 26px; font-weight: 700; margin: var(--gap-xl) 0 var(--gap-md); color: var(--hp-black); }
.hp-article-body h3 { font-family: var(--font-headline); font-size: 21px; font-weight: 700; margin: var(--gap-lg) 0 var(--gap-sm); }
.hp-article-body a { color: var(--hp-blue); text-decoration: underline; }
.hp-article-body blockquote {
  border-left: 4px solid var(--hp-red);
  padding: var(--gap-md) var(--gap-lg);
  margin: var(--gap-xl) 0;
  background: var(--hp-gray-100);
  font-size: 20px;
  font-family: var(--font-headline);
  color: var(--hp-gray-700);
  font-style: italic;
}
.hp-article-body ul, .hp-article-body ol { padding-left: var(--gap-xl); margin-bottom: var(--gap-lg); }
.hp-article-body ul li { list-style-type: disc; margin-bottom: var(--gap-sm); }
.hp-article-body ol li { list-style-type: decimal; margin-bottom: var(--gap-sm); }
.hp-article-body img { border-radius: 3px; margin: var(--gap-lg) 0; }
.hp-article-body .wp-caption { margin: var(--gap-lg) 0; }
.hp-article-body .wp-caption-text { font-size: 12px; color: var(--hp-gray-500); border-top: var(--border-light); padding-top: 6px; }

/* Article tags */
.hp-article-tags { margin-top: var(--gap-xl); padding-top: var(--gap-lg); border-top: var(--border-light); }
.hp-article-tags h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--hp-gray-500); margin-bottom: var(--gap-sm); }
.hp-article-tags .hp-topics__inner { flex-wrap: wrap; }

/* Author Bio Box */
.hp-author-bio {
  background: var(--hp-gray-100);
  padding: var(--gap-lg);
  border-radius: 4px;
  display: flex;
  gap: var(--gap-lg);
  margin-top: var(--gap-xl);
  border-top: 3px solid var(--hp-black);
}
.hp-author-bio img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hp-author-bio h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.hp-author-bio p { font-size: 14px; color: var(--hp-gray-600); line-height: 1.5; }
@media (max-width: 480px) {
  .hp-author-bio { flex-direction: column; }
  .hp-article-title { font-size: 26px; }
  .hp-article-dek { font-size: 17px; }
}

/* ============================================================
   COMMENTS
   ============================================================ */
.hp-comments { margin-top: var(--gap-3xl); border-top: 3px solid var(--hp-black); padding-top: var(--gap-xl); }
.hp-comments h2 { font-family: var(--font-headline); font-size: 24px; font-weight: 900; margin-bottom: var(--gap-xl); }
.comment-list { list-style: none; padding: 0; }
.comment { padding: var(--gap-lg) 0; border-bottom: var(--border-light); }
.comment-author { display: flex; align-items: center; gap: var(--gap-sm); margin-bottom: var(--gap-sm); }
.comment-author img { width: 36px; height: 36px; border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--hp-gray-500); }
.comment-content p { font-size: 14px; color: var(--hp-gray-700); line-height: 1.6; }
.comment-reply-link { font-size: 12px; font-weight: 700; color: var(--hp-gray-500); text-transform: uppercase; margin-top: var(--gap-sm); display: inline-block; }
.comment-reply-link:hover { color: var(--hp-red); }
.children { padding-left: var(--gap-xl); border-left: 2px solid var(--hp-gray-200); margin-top: var(--gap-md); }

/* Comment Form */
#commentform label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--hp-gray-600); display: block; margin-bottom: 6px; }
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--hp-gray-300);
  border-radius: 3px;
  font-size: 15px;
  margin-bottom: var(--gap-md);
  transition: border-color var(--transition-fast);
}
#commentform input:focus, #commentform textarea:focus { outline: none; border-color: var(--hp-red); }
#commentform textarea { height: 140px; resize: vertical; }
#commentform .submit {
  background: var(--hp-red);
  color: var(--hp-white);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}
#commentform .submit:hover { background: var(--hp-dark-red); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.hp-related { margin-top: var(--gap-3xl); border-top: 3px solid var(--hp-black); padding-top: var(--gap-xl); }
.hp-related h2 { font-family: var(--font-headline); font-size: 24px; font-weight: 900; margin-bottom: var(--gap-xl); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.hp-cat-header {
  background: var(--hp-black);
  color: var(--hp-white);
  padding: var(--gap-xl) 0;
  margin-bottom: var(--gap-xl);
}
.hp-cat-header h1 { font-family: var(--font-headline); font-size: 42px; font-weight: 900; }
.hp-cat-header p { font-size: 15px; color: rgba(255,255,255,.7); margin-top: var(--gap-sm); }

/* ============================================================
   PAGINATION
   ============================================================ */
.hp-pagination { display: flex; justify-content: center; gap: var(--gap-sm); flex-wrap: wrap; margin: var(--gap-2xl) 0; }
.hp-pagination a, .hp-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--hp-gray-300);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-gray-700);
  transition: all var(--transition-fast);
}
.hp-pagination a:hover { border-color: var(--hp-red); color: var(--hp-red); }
.hp-pagination .current { background: var(--hp-red); border-color: var(--hp-red); color: var(--hp-white); }
.hp-pagination .dots { border: none; color: var(--hp-gray-500); }
.hp-pagination .prev, .hp-pagination .next { width: auto; padding: 0 16px; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.hp-search-header { padding: var(--gap-xl) 0; border-bottom: var(--border-light); margin-bottom: var(--gap-xl); }
.hp-search-header h1 { font-family: var(--font-headline); font-size: 32px; font-weight: 900; }
.hp-search-header h1 span { color: var(--hp-red); }
.hp-search-form { display: flex; margin-top: var(--gap-md); }
.hp-search-form input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--hp-gray-300);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-size: 16px;
}
.hp-search-form input[type="search"]:focus { outline: none; border-color: var(--hp-red); }
.hp-search-form button {
  background: var(--hp-red);
  color: var(--hp-white);
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 0 3px 3px 0;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.hp-404 { text-align: center; padding: var(--gap-3xl) 0; }
.hp-404 .num { font-family: var(--font-headline); font-size: 140px; font-weight: 900; color: var(--hp-gray-200); line-height: 1; }
.hp-404 h1 { font-family: var(--font-headline); font-size: 32px; font-weight: 900; margin-bottom: var(--gap-md); }
.hp-404 p { color: var(--hp-gray-500); margin-bottom: var(--gap-lg); }
.hp-404 .hp-btn { display: inline-block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 3px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}
.hp-btn--red   { background: var(--hp-red);   color: var(--hp-white); }
.hp-btn--red:hover  { background: var(--hp-dark-red); color: var(--hp-white); }
.hp-btn--black { background: var(--hp-black); color: var(--hp-white); }
.hp-btn--black:hover { background: var(--hp-gray-800); color: var(--hp-white); }
.hp-btn--outline { background: transparent; border: 2px solid var(--hp-black); color: var(--hp-black); }
.hp-btn--outline:hover { background: var(--hp-black); color: var(--hp-white); }
.hp-btn--load-more { width: 100%; justify-content: center; border: 2px solid var(--hp-gray-300); color: var(--hp-gray-700); background: var(--hp-white); }
.hp-btn--load-more:hover { border-color: var(--hp-red); color: var(--hp-red); }

/* ============================================================
   FOOTER
   ============================================================ */
.hp-footer { background: var(--hp-black); color: var(--hp-white); margin-top: var(--gap-3xl); }
.hp-footer__top {
  padding: var(--gap-2xl) 0 var(--gap-xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hp-footer__logo {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: var(--gap-lg);
  display: block;
  color: var(--hp-white);
}
.hp-footer__logo span { color: var(--hp-red); }
.hp-footer__social { display: flex; gap: var(--gap-sm); margin-bottom: var(--gap-xl); }
.hp-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--hp-white);
  font-size: 16px;
  transition: background var(--transition-fast);
}
.hp-footer__social a:hover { background: var(--hp-red); color: var(--hp-white); }
.hp-footer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-xl);
}
.hp-footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--gap-md);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: var(--gap-sm);
}
.hp-footer__col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.hp-footer__col a:hover { color: var(--hp-white); }
.hp-footer__bottom {
  padding: var(--gap-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-md);
}
.hp-footer__bottom p { font-size: 12px; color: rgba(255,255,255,.4); }
.hp-footer__bottom-links { display: flex; gap: var(--gap-md); flex-wrap: wrap; }
.hp-footer__bottom-links a { font-size: 12px; color: rgba(255,255,255,.4); transition: color var(--transition-fast); }
.hp-footer__bottom-links a:hover { color: var(--hp-white); }

@media (max-width: 1024px) { .hp-footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .hp-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .hp-footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   LOGIN / REGISTER PAGES
   ============================================================ */
.hp-auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hp-auth-panel {
  padding: var(--gap-3xl) var(--gap-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hp-auth-brand { background: var(--hp-black); color: var(--hp-white); }
.hp-auth-brand__logo { font-family: var(--font-headline); font-size: 42px; font-weight: 900; color: var(--hp-white); }
.hp-auth-brand__logo span { color: var(--hp-red); }
.hp-auth-brand p { font-size: 17px; color: rgba(255,255,255,.7); margin-top: var(--gap-md); max-width: 340px; line-height: 1.6; }
.hp-auth-brand__features { margin-top: var(--gap-2xl); display: flex; flex-direction: column; gap: var(--gap-md); }
.hp-auth-brand__feat { display: flex; align-items: flex-start; gap: var(--gap-md); font-size: 14px; color: rgba(255,255,255,.7); }
.hp-auth-brand__feat-icon { color: var(--hp-red); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.hp-auth-form { max-width: 420px; width: 100%; }
.hp-auth-form h2 { font-family: var(--font-headline); font-size: 30px; font-weight: 900; margin-bottom: var(--gap-sm); }
.hp-auth-form p.subtitle { color: var(--hp-gray-500); font-size: 15px; margin-bottom: var(--gap-xl); }
.hp-auth-divider { display: flex; align-items: center; gap: var(--gap-md); margin: var(--gap-lg) 0; }
.hp-auth-divider span { font-size: 13px; color: var(--hp-gray-400); white-space: nowrap; }
.hp-auth-divider::before, .hp-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--hp-gray-200); }
.hp-social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  padding: 12px;
  border: 2px solid var(--hp-gray-300);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-gray-700);
  margin-bottom: var(--gap-sm);
  transition: all var(--transition-fast);
  background: var(--hp-white);
  cursor: pointer;
}
.hp-social-btn:hover { border-color: var(--hp-gray-500); }
.hp-form-group { margin-bottom: var(--gap-md); }
.hp-form-group label { font-size: 13px; font-weight: 700; color: var(--hp-gray-700); display: block; margin-bottom: 6px; }
.hp-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--hp-gray-300);
  border-radius: 3px;
  font-size: 15px;
  transition: border-color var(--transition-fast);
}
.hp-form-group input:focus { outline: none; border-color: var(--hp-red); }
.hp-form-group input.error { border-color: var(--hp-red); }
.hp-form-check { display: flex; align-items: center; gap: var(--gap-sm); font-size: 13px; color: var(--hp-gray-600); }
.hp-form-check input { width: auto; }
.hp-auth-footer { margin-top: var(--gap-lg); text-align: center; font-size: 14px; color: var(--hp-gray-500); }
.hp-auth-footer a { color: var(--hp-red); font-weight: 700; }
@media (max-width: 768px) {
  .hp-auth-wrap { grid-template-columns: 1fr; }
  .hp-auth-brand { display: none; }
  .hp-auth-panel { padding: var(--gap-xl) var(--gap-lg); }
}

/* ============================================================
   LIVE BLOG
   ============================================================ */
.hp-liveblog-entry {
  display: flex;
  gap: var(--gap-md);
  padding: var(--gap-lg) 0;
  border-bottom: var(--border-light);
}
.hp-liveblog-time { flex-shrink: 0; font-size: 13px; color: var(--hp-red); font-weight: 700; min-width: 60px; padding-top: 4px; }
.hp-liveblog-content h3 { font-family: var(--font-headline); font-size: 20px; font-weight: 700; margin-bottom: var(--gap-sm); }
.hp-liveblog-content p { font-size: 15px; color: var(--hp-gray-700); line-height: 1.6; }
.hp-liveblog-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hp-red);
  color: var(--hp-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: var(--gap-md);
}
.hp-liveblog-badge::before { content: '●'; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================================
   VIDEO CARD
   ============================================================ */
.hp-video-card { position: relative; }
.hp-video-card__thumb { position: relative; overflow: hidden; border-radius: 2px; }
.hp-video-card__thumb img { width: 100%; height: 180px; object-fit: cover; transition: transform .35s ease; }
.hp-video-card:hover .hp-video-card__thumb img { transform: scale(1.04); }
.hp-video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
}
.hp-video-play-btn span {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--hp-red);
  transition: transform var(--transition-fast);
}
.hp-video-card:hover .hp-video-play-btn span { transform: scale(1.1); }
.hp-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.75);
  color: var(--hp-white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}
.hp-video-card__title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: var(--gap-sm);
}
.hp-video-card__title a:hover { color: var(--hp-red); }

/* ============================================================
   LOAD MORE / INFINITE
   ============================================================ */
.hp-load-more { text-align: center; margin: var(--gap-2xl) 0; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.hp-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--hp-black);
  color: var(--hp-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-med);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  z-index: 500;
}
.hp-back-to-top.visible { opacity: 1; visibility: visible; }
.hp-back-to-top:hover { background: var(--hp-red); }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.hp-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--hp-red);
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
}

/* ============================================================
   STICKY SHARE BAR (single post)
   ============================================================ */
.hp-sticky-share {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  background: var(--hp-white);
  border-top: var(--border-light);
  padding: var(--gap-sm) var(--gap-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  z-index: 800;
  transform: translateY(100%);
  transition: transform var(--transition-med);
}
.hp-sticky-share.visible { transform: translateY(0); }
.hp-sticky-share__title { font-size: 14px; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: var(--gap-md); }
.hp-sticky-share__actions { display: flex; gap: var(--gap-sm); flex-shrink: 0; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .hp-header, .hp-nav, .hp-sidebar, .hp-footer, .hp-breaking-bar,
  .hp-back-to-top, .hp-sticky-share, .hp-progress-bar, .hp-ad { display: none !important; }
  .hp-content-wrap { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 3px solid var(--hp-red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
