/* ===== TEXNEWS — MAIN STYLESHEET ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --texas-red: #bf0a30;
  --texas-red-dark: #960822;
  --texas-red-light: #e8102d;
  --texas-blue: #002868;
  --texas-blue-light: #003a99;
  --dark: #111111;
  --dark-2: #1a1a2e;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1240px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BREAKING NEWS TICKER ===== */
.breaking-bar {
  background: var(--texas-red);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.breaking-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.breaking-label {
  background: var(--white);
  color: var(--texas-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrapper {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  opacity: 0.95;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto;
  height: 64px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-star {
  width: 36px;
  height: 36px;
  background: var(--texas-red);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-name span { color: var(--texas-red); }
.logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ===== NAVIGATION ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: var(--gray-400);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-link.active { color: var(--texas-red); background: rgba(191,10,48,0.15); }

/* ===== HEADER SEARCH ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition);
}
.header-search-form:focus-within {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}
.header-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
  padding: 7px 14px;
  width: 200px;
  font-family: var(--font-sans);
}
.header-search-input::placeholder { color: var(--gray-500); }
.header-search-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  padding: 7px 12px;
  cursor: pointer;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.header-search-btn:hover { color: var(--white); }
.menu-toggle {
  display: none;
  color: var(--white);
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}
.hero-card {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-card:hover .hero-image { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.1) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 48px;
  max-width: 820px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hero-label {
  background: var(--texas-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.hero-cat-badge {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-summary {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 640px;
}
.hero-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-author {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
}
.hero-author strong { color: var(--white); }
.hero-date {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--texas-red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.hero-read-btn:hover { background: var(--texas-red-dark); transform: translateY(-1px); }

/* ===== SECONDARY HEADER BAR ===== */
.section-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 64px;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.section-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 7px 16px;
  border-radius: 4px;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.filter-btn:hover { color: var(--gray-900); background: var(--gray-100); }
.filter-btn.active {
  color: var(--texas-red);
  background: rgba(191,10,48,0.08);
}
.bar-date {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 0;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.page-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}
.section-heading-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
}
.section-heading-bar {
  width: 4px;
  height: 22px;
  background: var(--texas-red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== SEARCH BAR (inline) ===== */
.search-container {
  margin-bottom: 28px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.search-box:focus-within {
  border-color: var(--texas-red);
}
.search-icon {
  padding: 0 16px;
  color: var(--gray-400);
  font-size: 16px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--gray-900);
  padding: 14px 0;
  background: none;
}
.search-input::placeholder { color: var(--gray-400); }
.search-clear {
  padding: 0 16px;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color var(--transition);
  display: none;
}
.search-clear:hover { color: var(--texas-red); }
.search-clear.visible { display: flex; align-items: center; }

/* ===== POSTS GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.posts-grid.two-col { grid-template-columns: repeat(2, 1fr); }

/* ===== POST CARD ===== */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .card-img { transform: scale(1.06); }
.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  color: var(--white);
  backdrop-filter: blur(4px);
}
.card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover .card-title { color: var(--texas-red); }
.card-summary {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.card-meta-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.card-meta-date,
.card-meta-time {
  font-size: 11.5px;
  color: var(--gray-400);
  white-space: nowrap;
}
.card-meta-time { display: flex; align-items: center; gap: 4px; }
.card-meta-time svg { width: 11px; height: 11px; }

/* Category color map */
.cat-politics { background: var(--texas-blue); }
.cat-business { background: #16a34a; }
.cat-culture { background: #7c3aed; }
.cat-local-news { background: #d97706; }
.cat-default { background: var(--gray-700); }

/* ===== NO RESULTS ===== */
.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.no-results.visible { display: block; }
.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.no-results h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.no-results p { font-size: 15px; }

/* ===== LOAD MORE ===== */
.load-more-wrap {
  text-align: center;
  margin-top: 36px;
}
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.load-more-btn:hover {
  border-color: var(--texas-red);
  color: var(--texas-red);
  background: rgba(191,10,48,0.04);
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--texas-red);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title-icon { font-size: 16px; }

/* Trending List */
.trending-list { display: flex; flex-direction: column; gap: 16px; }
.trending-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.trending-item:hover { background: var(--gray-50); }
.trending-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
  min-width: 30px;
  transition: color var(--transition);
}
.trending-item:hover .trending-num { color: var(--texas-red); }
.trending-info { flex: 1; min-width: 0; }
.trending-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--texas-red);
  margin-bottom: 4px;
}
.trending-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.trending-item:hover .trending-title { color: var(--texas-red); }
.trending-date { font-size: 11.5px; color: var(--gray-400); margin-top: 4px; }

/* Category Links Widget */
.cat-links { display: flex; flex-direction: column; gap: 4px; }
.cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font-sans);
}
.cat-link:hover { background: var(--gray-50); }
.cat-link-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.cat-link-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-link-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Newsletter Widget */
.newsletter-widget .widget-title { color: var(--white); border-color: rgba(255,255,255,0.3); }
.newsletter-widget { background: var(--texas-blue); }
.newsletter-text {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 16px;
}
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-input {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.5); }
.newsletter-btn {
  background: var(--texas-red);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}
.newsletter-btn:hover { background: var(--texas-red-dark); }
.newsletter-success {
  display: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
}
.newsletter-success.visible { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-2);
  color: var(--white);
  margin-top: 60px;
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-star {
  width: 32px;
  height: 32px;
  background: var(--texas-red);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}
.footer-logo-name span { color: var(--texas-red); }
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover {
  background: var(--texas-red);
  color: var(--white);
  border-color: var(--texas-red);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-copy a { color: var(--texas-red); }
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-link {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom-link:hover { color: rgba(255,255,255,0.7); }
.texas-flag-bar {
  height: 5px;
  background: linear-gradient(to right, var(--texas-blue) 33.3%, var(--white) 33.3%, var(--white) 66.6%, var(--texas-red) 66.6%);
}

/* ===== POST PAGE ===== */
.post-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--dark);
}
.post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}
.post-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 48px;
  max-width: var(--container);
  margin: 0 auto;
}
.post-hero-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  color: var(--white);
  margin-bottom: 14px;
}
.post-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  max-width: 820px;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.post-hero-meta-item strong { color: var(--white); }
.post-hero-divider { color: rgba(255,255,255,0.3); }

.post-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Post Article */
.post-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-article-inner { padding: 40px 48px; }
.post-caption {
  font-size: 12.5px;
  color: var(--gray-400);
  text-align: center;
  padding: 12px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  font-style: italic;
}

/* Post body typography */
.post-body { font-size: 17px; line-height: 1.8; color: var(--gray-800); }
.post-body p { margin-bottom: 22px; }
.post-body h2, .post-body h3 {
  font-family: var(--font-serif);
  color: var(--gray-900);
  margin: 36px 0 16px;
  line-height: 1.3;
}
.post-body h2 { font-size: 26px; font-weight: 700; }
.post-body h3 { font-size: 21px; font-weight: 700; }
.post-body ul, .post-body ol {
  margin: 0 0 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-body li { font-size: 16px; line-height: 1.7; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body blockquote {
  border-left: 4px solid var(--texas-red);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 18px;
  color: var(--gray-700);
}

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 48px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.share-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
  background: var(--white);
}
.share-btn:hover { border-color: var(--texas-red); color: var(--texas-red); }
.share-btn.copied { background: var(--gray-100); color: var(--gray-500); }

/* Tags bar */
.tags-bar {
  padding: 20px 48px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tags-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
}
.tag-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--texas-blue);
  background: rgba(0,40,104,0.07);
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition);
}
.tag-pill:hover { background: rgba(0,40,104,0.15); }

/* Author bio */
.author-bio {
  margin: 0 48px 0;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--gray-200);
  margin-bottom: 36px;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--texas-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.author-bio-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.author-bio-info .author-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--texas-red);
  margin-bottom: 6px;
}
.author-bio-info p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--gray-400);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.breadcrumb a {
  color: var(--texas-red);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-300); }

/* Related Posts */
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.related-card {
  display: flex;
  gap: 14px;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  align-items: flex-start;
}
.related-card:hover { background: var(--gray-50); }
.related-img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.related-info { flex: 1; min-width: 0; }
.related-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--texas-red);
  margin-bottom: 3px;
}
.related-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.related-card:hover .related-title { color: var(--texas-red); }
.related-date { font-size: 11px; color: var(--gray-400); margin-top: 3px; }

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--texas-red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(191,10,48,0.4);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: all; }
.scroll-top-btn:hover { background: var(--texas-red-dark); transform: translateY(-2px); }

/* ===== LOADING STATE ===== */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== RESULTS COUNT ===== */
.results-info {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
  font-weight: 500;
}
.results-info strong { color: var(--gray-900); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: 1fr 280px; }
  .post-layout { grid-template-columns: 1fr 280px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .page-layout { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .header-search-input { width: 140px; }
  .hero-content { padding: 28px 24px; }
  .hero-title { font-size: 28px; }
  .hero-summary { display: none; }
  .hero-card { min-height: 380px; }
  .post-layout > aside { order: -1; }
}

@media (max-width: 680px) {
  .posts-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
  .section-bar-inner { flex-direction: column; align-items: flex-start; }
  .bar-date { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .post-article-inner { padding: 24px 20px; }
  .share-bar { padding: 20px; }
  .tags-bar { padding: 16px 20px; }
  .author-bio { margin: 0 20px 24px; }
  .post-hero-content { padding: 28px 20px; }
  .post-hero-title { font-size: 24px; }
  .header-search-form { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 22px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-serif);
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--texas-red); }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
