/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Dawgbone Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.posts-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .posts-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0;
  }
}

.sidebar-ads {
  position: sticky;
  top: 108px;
  height: fit-content;
  align-self: start;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-wrapper.with-sidebar {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .content-wrapper.with-sidebar {
    grid-template-columns: 1fr;
    display: grid;
  }
  
  .sidebar-ads {
    position: static !important;
    width: 100%;
    max-width: 300px;
    margin: 24px auto;
    max-height: none;
    overflow-y: visible;
  }

  .posts-main {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .posts-page-container {
    padding: 16px 12px;
    width: 100%;
    max-width: 100%;
  }

  .content-wrapper.with-sidebar {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0;
    width: 100%;
  }

  .posts-main {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px;
    padding: 0;
  }

  .posts-main-full {
    max-width: 100% !important;
    width: 100% !important;
  }

  .sidebar-ads {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px auto !important;
  }

  .post-item {
    padding: 16px 0 16px 12px;
  }

  .post-item:hover {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 20px;
    padding-right: 8px;
  }

  .post-item-title {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .post-item-summary {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .post-item-header {
    margin-bottom: 8px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .posts-page-container {
    padding: 12px 10px;
  }

  .post-item {
    padding: 14px 0 14px 10px;
  }

  .post-item:hover {
    padding-left: 18px;
  }

  .post-item-title {
    font-size: 1.05rem;
  }

  .post-item-summary {
    font-size: 0.8rem;
  }

  .source-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .post-time {
    font-size: 0.7rem;
  }
}

/* ===========================
   SITE HEADER & NAVBAR
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Top strip */
.header-strip {
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-strip-date {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.header-strip-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  user-select: none;
}

.header-strip-tagline {
  color: rgba(255, 255, 255, 0.38);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Main navbar */
.navbar {
  background: #BA0C2F;
  border-bottom: 3px solid #000;
  padding: 0;
  position: relative;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 24px;
}

/* Brand */
.navbar-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.navbar-brand:hover {
  opacity: 0.88;
  text-decoration: none;
}

.navbar-brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

/* Right section */
.navbar-right {
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* Nav list */
.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  height: 100%;
}

.navbar-nav > li {
  display: flex;
  align-items: stretch;
}

/* Nav links – ESPN-style bottom indicator */
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #fff;
  font-weight: 700;
}

/* Dropdown */
.nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-dropdown-chevron {
  transition: transform 0.25s ease;
  margin-top: 1px;
  flex-shrink: 0;
}

.nav-dropdown-wrap:hover .nav-dropdown-chevron,
.nav-dropdown-wrap.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 3px;
  right: 0;
  min-width: 188px;
  background: #111;
  border-top: 3px solid #BA0C2F;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 6px 0;
  z-index: 100;
}

@media (min-width: 769px) {
  .nav-dropdown-wrap:hover .nav-dropdown-panel {
    display: block;
    animation: navDropIn 0.16s ease;
  }
}

.nav-dropdown-wrap.is-open .nav-dropdown-panel {
  display: block;
  animation: navDropIn 0.16s ease;
}

@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-item {
  display: block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.25px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, padding-left 0.15s, border-color 0.15s;
}

.nav-dropdown-item:hover {
  background: rgba(186, 12, 47, 0.22);
  color: #fff;
  border-left-color: #BA0C2F;
  padding-left: 22px;
  text-decoration: none;
}

/* Hamburger button */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  flex-shrink: 0;
  margin-left: 6px;
  transition: background 0.2s;
}

.navbar-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

.navbar-hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   MOBILE NAVBAR
   =========================== */
@media (max-width: 768px) {
  .header-strip {
    display: none;
  }

  .navbar-inner {
    height: 56px;
    padding: 0 16px;
  }

  .navbar-brand-name {
    font-size: 1.4rem;
  }

  .navbar-hamburger {
    display: flex;
  }

  .navbar-right {
    align-items: center;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #1a1a1a;
    border-top: 2px solid #BA0C2F;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    padding: 6px 0 14px;
    height: auto;
    z-index: 999;
  }

  .navbar-nav.is-mobile-open {
    display: flex;
    animation: mobileNavSlide 0.22s ease;
  }

  @keyframes mobileNavSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .navbar-nav > li {
    display: block;
  }

  .nav-link {
    padding: 13px 20px;
    font-size: 0.88rem;
    width: 100%;
    border-bottom: none;
    margin-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    border-left-color: #BA0C2F;
    background: rgba(186, 12, 47, 0.15);
    padding-left: 17px;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 26px;
  }

  .nav-dropdown-wrap {
    display: block;
    position: static;
  }

  .nav-dropdown-panel {
    position: static;
    border-radius: 0;
    border-top: none;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: none;
    padding: 0;
    margin-top: 0;
  }

  .nav-dropdown-wrap.is-open .nav-dropdown-panel {
    animation: none;
  }

  .nav-dropdown-item {
    padding: 11px 20px 11px 34px;
    font-size: 0.8rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-dropdown-item:hover {
    padding-left: 40px;
    border-left: none;
    background: rgba(186, 12, 47, 0.18);
  }
}

/* Posts Page Styles */
.posts-page {
  background: #f1f1f4;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

@media (min-width: 1025px) {
  .posts-page {
    overflow-x: visible;
  }
}

.posts-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  width: 100%;
  box-sizing: border-box;
}

.content-wrapper.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Ensure sidebar stays sticky on desktop */
@media (min-width: 1025px) {
  .content-wrapper.with-sidebar {
    align-items: start;
  }
  
  .sidebar-ads {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px !important;
    height: fit-content !important;
    align-self: start !important;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 10;
  }
}

.posts-main {
  min-width: 0; /* Prevents grid overflow */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.posts-main-full {
  max-width: 1160px;
  margin: 0 auto;
}

/* Site Announcement Banner */
.site-announcement {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
  border-left: 4px solid #BA0C2F;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(186, 12, 47, 0.1);
}

.site-announcement p {
  margin: 0;
  color: #333;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 768px) {
  .site-announcement {
    padding: 16px 18px;
    margin-bottom: 24px;
    border-radius: 6px;
  }

  .site-announcement p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .site-announcement {
    padding: 14px 16px;
    margin-bottom: 20px;
  }

  .site-announcement p {
    font-size: 0.9rem;
  }
}

/* Posts List - Single Column Layout */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.post-item {
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 16px;
}

.post-item:first-child {
  padding-top: 0;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  background-color: #f8f8f8;
  border-left-color: #000;
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 28px;
  padding-right: 12px;
  border-radius: 0 6px 6px 0;
}

.post-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-item-title {
  font-family: 'Merriweather', serif;
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.post-item-title a {
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.post-item-title a:hover {
  color: #BA0C2F;
  transform: translateX(2px);
}

.post-item-summary {
  font-family: 'Merriweather Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

/* Page Header */
.posts-page-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 3px solid #BA0C2F;
}

.page-title {
  font-family: 'Merriweather', serif;
  font-size: 3rem;
  font-weight: 800;
  color: #000;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Source Badge */
.source-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  border: 1px solid #000;
}

.source-badge-small {
  padding: 4px 10px;
  font-size: 0.7rem;
}

/* Post Time */
.post-time {
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 8px;
}

.post-time-small {
  font-size: 0.75rem;
}

/* Legacy Post Card Styles (kept for backward compatibility if needed) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(186, 12, 47, 0.15);
  border-color: #BA0C2F;
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.post-card-title {
  font-family: 'Merriweather', serif;
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 700;
  flex-grow: 1;
}

.post-card-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.post-card-title a:hover {
  color: #BA0C2F;
}

.post-card-summary {
  font-family: 'Merriweather Sans', sans-serif;
  color: #555;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  flex-grow: 1;
}

.post-card-link {
  color: #BA0C2F;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-top: auto;
  display: inline-block;
}

.post-card-link:hover {
  color: #000;
  transform: translateX(5px);
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-posts-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.no-posts h2 {
  color: #000;
  font-size: 2rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.no-posts p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* Legacy post styles (for backward compatibility) */
.posts-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.post:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-title {
  font-family: 'Merriweather', serif;
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.post-title a {
  color: #BA0C2F;
  text-decoration: none;
  font-weight: 600;
}

.post-title a:hover {
  color: #8a0923;
  text-decoration: underline;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #666;
}

.source {
  font-weight: 600;
  color: #BA0C2F;
}

.post-summary {
  font-family: 'Merriweather Sans', sans-serif;
  color: #555;
  line-height: 1.6;
}

/* Admin Panel Styles */
.admin-header {
  background: #343a40;
  color: white;
  padding: 20px 0;
  margin-bottom: 30px;
}

.admin-header h1 {
  margin: 0;
  text-align: center;
}

.admin-nav {
  background: #495057;
  padding: 10px 0;
  margin-bottom: 30px;
}

.admin-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.admin-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.admin-nav a:hover {
  background-color: #6c757d;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #a71e2a;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.table tr:hover {
  background-color: #f8f9fa;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.alert-notice {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Additional Admin Styles */
.sources-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Dashboard Styles */
.dashboard {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard h2 {
  margin-bottom: 10px;
  color: #343a40;
  font-size: 2rem;
}

.dashboard-intro {
  color: #666;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.dashboard-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dashboard-card h3 {
  margin: 0 0 15px 0;
  color: #343a40;
  font-size: 1.5rem;
}

.dashboard-card p {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.6;
}

.dashboard-card .btn {
  margin-top: auto;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  margin-bottom: 0;
}

.form-text {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.post-detail,
.source-detail {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-actions,
.source-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.source-info p {
  margin-bottom: 10px;
}

.recent-posts {
  margin-top: 20px;
}

.post-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.post-item h4 a {
  color: #BA0C2F;
  text-decoration: none;
}

.post-item h4 a:hover {
  text-decoration: underline;
}

.post-item .post-meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.post-item .post-meta a {
  color: #BA0C2F;
  text-decoration: none;
  margin-left: 10px;
}

.post-item .post-meta a:hover {
  text-decoration: underline;
}

/* Article Content Styles */
.article-content {
  font-family: 'Merriweather Sans', sans-serif;
  color: #333;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.2em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Merriweather', serif;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #BA0C2F;
}

.article-content ul,
.article-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content a {
  color: #dc3545;
  text-decoration: underline;
}

.article-content a:hover {
  color: #a71e2a;
}

.article-content blockquote {
  border-left: 4px solid #BA0C2F;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #666;
}

/* Advertisement Styles */
.ad-block {
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Ad Placement Areas */
.header-ads {
  margin-bottom: 0;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.footer-ads {
  margin-top: 60px;
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.sidebar-ads .ad-block {
  margin-bottom: 20px;
}

/* Ad Image Styles */
.sponsor-image {
  text-align: center;
  margin: 15px 0;
}

.ad-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.ad-image:hover {
  transform: scale(1.02);
}

.ad-banner {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
}

.ad-rectangle {
  width: 300px;
  margin: 0 auto;
}

.ad-square {
  width: 250px;
  margin: 0 auto;
}

.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
}

/* Sponsor Ad Styles */
.sponsor-ad {
  padding: 20px;
  border: 2px solid #BA0C2F;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.sponsor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #BA0C2F;
}

.sponsor-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sponsor-link {
  color: #BA0C2F;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.sponsor-link:hover {
  color: #8a0923;
  text-decoration: underline;
}

.sponsor-content {
  color: #333;
  line-height: 1.6;
}

.sponsor-content p {
  margin: 0 0 10px 0;
}

.sponsor-content p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ad-rectangle,
  .ad-square {
    width: 100%;
    max-width: 300px;
  }
  
  .ad-banner,
  .ad-leaderboard {
    max-width: 100%;
  }
  
  .sponsor-ad {
    padding: 15px;
  }
}

/* Page Styles */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
}

.page-header h1 {
  font-family: 'Merriweather', serif;
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #BA0C2F;
}

.page-subtitle {
  margin: 10px 0 0 0;
  font-size: 1.1rem;
  color: #666;
}

.content-section {
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
  color: #BA0C2F;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.content-section h3 {
  color: #BA0C2F;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.content-section p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.content-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.content-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.contact-method {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #BA0C2F;
}

.contact-method h3 {
  margin: 0 0 15px 0;
  color: #BA0C2F;
  font-size: 1.2rem;
}

.contact-method p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

/* Photos Page Styles */
.photo-placeholder {
  background: #f8f9fa;
  border: 2px dashed #BA0C2F;
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  margin: 30px 0;
}

.placeholder-content h3 {
  color: #BA0C2F;
  margin: 0 0 15px 0;
  font-size: 1.5rem;
}

.placeholder-content p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* Markdown Editor Styles */
.markdown-editor {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.markdown-toolbar {
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.toolbar-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  color: #333;
}

.toolbar-btn:hover {
  background: #e9ecef;
  border-color: #BA0C2F;
  color: #BA0C2F;
}

.toolbar-btn:active {
  background: #dee2e6;
  transform: scale(0.95);
}

.toolbar-btn strong {
  font-weight: 700;
}

.toolbar-btn em {
  font-style: italic;
}

.markdown-textarea {
  border: none;
  border-radius: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.markdown-textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #BA0C2F;
}

/* Enhanced Markdown Content Styles */
.article-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: #d63384;
}

.article-content pre {
  background: #f8f9fa;
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  border-left: 4px solid #BA0C2F;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: #333;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.article-content table th,
.article-content table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.article-content table th {
  background: #f8f9fa;
  font-weight: 600;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5em 0;
}

/* Pagy Pagination Styles */
.pag-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  padding: 20px 0;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.page-item {
  margin: 0;
  display: flex;
  align-items: center;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  color: #333;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 400;
  font-size: 0.9rem;
}

.page-item.active .page-link {
  color: #000;
  background-color: transparent;
  border-color: #000;
  font-weight: 600;
  cursor: default;
}

.page-item.disabled .page-link {
  color: #999;
  background-color: transparent;
  border-color: #e0e0e0;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Gap styling for ellipsis */
.page-item.gap {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.page-item.gap .page-link {
  border: none;
  background: transparent;
  cursor: default;
  min-width: auto;
  padding: 0 8px;
  color: #666;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pag-bar {
    margin: 32px 0;
    padding: 16px 0;
  }

  .pagination {
    gap: 3px;
  }

  .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 2px;
  }

  .page-link {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
}

/* Schedule Page Styles */
.schedule-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-table th {
  background: #BA0C2F;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.schedule-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.schedule-table tr:hover {
  background-color: #f8f8f8;
}

.home-away-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.home-away-badge.home {
  background: #BA0C2F;
  color: white;
}

.home-away-badge.away {
  background: #666;
  color: white;
}

/* Links Page Styles */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.link-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #BA0C2F;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.link-card h3 {
  margin: 0 0 10px 0;
  color: #BA0C2F;
  font-size: 1.2rem;
}

.link-card h3 a {
  color: #BA0C2F;
  text-decoration: none;
}

.link-card h3 a:hover {
  text-decoration: underline;
}

.link-card p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Roster Page Styles */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.roster-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #BA0C2F;
}

.roster-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.roster-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.roster-number {
  background: #BA0C2F;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.roster-header h3 {
  margin: 0;
  color: #000;
  font-size: 1.3rem;
}

.roster-details p {
  margin: 8px 0;
  color: #666;
  font-size: 0.95rem;
}

/* Commitments Page Styles */
.commitments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.commitment-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #BA0C2F;
}

.commitment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.commitment-header h3 {
  margin: 0;
  color: #000;
  font-size: 1.3rem;
}

.commitment-position {
  background: #000;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.commitment-rating {
  background: #BA0C2F;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.commitment-meta {
  margin-bottom: 10px;
}

.commitment-meta p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.commitment-summary {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.commitment-summary p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* Socials Page Styles */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.social-card {
  background: white;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid #BA0C2F;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.social-card h3 {
  margin: 0 0 15px 0;
  color: #000;
  font-size: 1.2rem;
}

.social-card .btn {
  margin-top: 10px;
}

/* Next Loser Page Styles */
.next-loser-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.next-loser-card {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(186, 12, 47, 0.2);
  border: 2px solid #BA0C2F;
  text-align: center;
}

.next-loser-header h3 {
  margin: 0 0 10px 0;
  color: #BA0C2F;
  font-size: 2rem;
  font-weight: 700;
}

.next-loser-date {
  color: #666;
  font-size: 1.1rem;
  margin: 0 0 15px 0;
}

.next-loser-description {
  color: #333;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-size: 1rem;
}

.next-loser-btn {
  font-size: 1.1rem;
  padding: 12px 30px;
}

/* Responsive Styles for New Pages */
@media (max-width: 768px) {
  .schedule-table-wrapper {
    margin: 15px -20px;
    padding: 0 20px;
  }

  .links-grid,
  .roster-grid,
  .socials-grid {
    grid-template-columns: 1fr;
  }

  .commitment-header,
  .roster-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .next-loser-header h3 {
    font-size: 1.5rem;
  }
}

/* ============================================
   Three-Zone Page Layout
   ============================================ */

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.page-layout.has-right-rail {
  grid-template-columns: 1fr 300px;
}

.page-layout.has-left-rail {
  grid-template-columns: 252px 1fr;
}

.page-layout.has-left-rail.has-right-rail {
  grid-template-columns: 252px 1fr 300px;
}

/* Contributors Rail — sticky left column */
.contributors-rail {
  position: sticky;
  top: 108px;
  height: fit-content;
  align-self: start;
}

.contributors-rail .news-section-header {
  margin-bottom: 18px;
}

.contributors-rail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contributors-rail-card {
  background: #fff;
  border-radius: 14px;
  border-top: 3px solid #BA0C2F;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contributors-rail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contributors-rail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.contributors-rail-title {
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px 0;
}

.contributors-rail-title a {
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contributors-rail-title a:hover {
  color: #BA0C2F;
}

.contributors-rail-excerpt {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.78rem;
  color: #777;
  line-height: 1.55;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.contributors-rail-link {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #BA0C2F;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  margin-top: auto;
  display: inline-block;
}

.contributors-rail-link:hover {
  color: #0a0a0a;
}

/* Collapse left rail at ≤1024px — reorder so main content comes first */
@media (max-width: 1024px) {
  .page-layout.has-left-rail,
  .page-layout.has-left-rail.has-right-rail {
    grid-template-columns: 1fr;
  }

  /* With right rail only: keep ads as sidebar until 768px */
  .page-layout.has-right-rail:not(.has-left-rail) {
    grid-template-columns: 1fr 280px;
  }

  .page-layout .posts-main {
    order: 1;
  }

  .page-layout .sidebar-ads {
    order: 2;
    position: static !important;
  }

  .page-layout .contributors-rail {
    order: 3;
    position: static !important;
  }

  /* Rail becomes a horizontal-scroll row when at bottom */
  .contributors-rail-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .contributors-rail-list::-webkit-scrollbar {
    display: none;
  }

  .contributors-rail-card {
    min-width: 240px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .page-layout,
  .page-layout.has-right-rail,
  .page-layout.has-left-rail,
  .page-layout.has-left-rail.has-right-rail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-layout .sidebar-ads {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .contributors-rail-list {
    flex-direction: column;
  }

  .contributors-rail-card {
    min-width: unset;
  }
}

/* ============================================
   News Page Redesign Styles
   ============================================ */

/* Section Header */
.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.news-section-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.news-section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.news-section-accent {
  display: inline-block;
  width: 32px;
  height: 3px;
  background: #BA0C2F;
  border-radius: 2px;
}

.news-section-date {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.72rem;
  color: #999;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Featured Post */
.featured-post {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.25s ease;
  border: none;
}

.featured-post:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

/* Featured image placeholder */
.featured-post-image {
  width: 100%;
  height: 260px;
  background: linear-gradient(145deg, #BA0C2F 0%, #6b0518 45%, #0d0003 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-post-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.025) 20px,
      rgba(255, 255, 255, 0.025) 21px
    );
}

.featured-post-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.03),
    0 0 0 48px rgba(255, 255, 255, 0.02);
}

.featured-post-image-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(186, 12, 47, 0.4) 0%, transparent 65%);
}

/* When a real photo is present */
.featured-post-image--has-photo {
  background: #111; /* fallback while image loads */
}

.featured-post-image--has-photo::before,
.featured-post-image--has-photo::after {
  display: none; /* hide the CSS texture/circle decorations */
}

.featured-post-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.featured-post-image--has-photo .featured-post-image-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* Post card photos */
.post-news-card-image--has-photo {
  background: #111;
}

.post-news-card-image--has-photo::before,
.post-news-card-image--has-photo::after {
  display: none;
}

.post-news-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.featured-post-body {
  padding: 28px 32px 32px;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.featured-post-time {
  color: #999;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Merriweather Sans', sans-serif;
}

.featured-post-title {
  font-family: 'Merriweather', serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px 0;
  color: #0a0a0a;
}

.featured-post-title a {
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-post-title a:hover {
  color: #BA0C2F;
}

.featured-post-summary {
  font-family: 'Merriweather Sans', sans-serif;
  color: #5a5a5a;
  font-size: 0.95rem;
  line-height: 1.72;
  margin: 0 0 24px 0;
}

.featured-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #BA0C2F;
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(186, 12, 47, 0.32);
}

.featured-post-cta:hover {
  background: #9a0a26;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(186, 12, 47, 0.42);
}

.cta-arrow {
  transition: transform 0.2s ease;
}

.featured-post-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* Source badge override for featured post */
.source-badge-featured {
  background: #BA0C2F;
  border-color: #BA0C2F;
  color: #fff;
}

/* NEW badge */
.new-badge {
  display: inline-block;
  background: #BA0C2F;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  animation: pulse-badge 1.8s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Posts News Grid */
.posts-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.posts-news-grid-full {
  grid-template-columns: repeat(3, 1fr);
}

/* Post News Card */
.post-news-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  position: relative;
  cursor: pointer;
}

.post-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Card image placeholder — varied gradients */
.post-news-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(145deg, #BA0C2F 0%, #6b0518 50%, #0d0003 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.post-news-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 16px,
      rgba(255, 255, 255, 0.02) 16px,
      rgba(255, 255, 255, 0.02) 17px
    );
}

.post-news-card-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.025);
}

/* Vary image gradients per card position */
.post-news-card:nth-child(2n) .post-news-card-image {
  background: linear-gradient(145deg, #1a0a0d 0%, #BA0C2F 70%, #8a0923 100%);
}

.post-news-card:nth-child(3n) .post-news-card-image {
  background: linear-gradient(160deg, #4a000f 0%, #BA0C2F 50%, #1a0509 100%);
}

.post-news-card:nth-child(4n) .post-news-card-image {
  background: linear-gradient(130deg, #BA0C2F 0%, #2c0009 60%, #0a0a0a 100%);
}

.post-news-card:nth-child(5n) .post-news-card-image {
  background: linear-gradient(155deg, #0d0003 0%, #8a0923 45%, #BA0C2F 100%);
}

.post-news-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-news-card-title {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.post-news-card-title a {
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-news-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.post-news-card-title a:hover {
  color: #BA0C2F;
}

.post-news-card-summary {
  font-family: 'Merriweather Sans', sans-serif;
  color: #666;
  font-size: 0.83rem;
  line-height: 1.62;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.post-news-card-link {
  color: #BA0C2F;
  text-decoration: none;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, gap 0.2s ease;
}

.post-news-card-link:hover {
  color: #0a0a0a;
  gap: 8px;
}

/* Responsive: 3-col → 2-col at ≤1100px */
@media (max-width: 1100px) {
  .posts-news-grid,
  .posts-news-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: all grids → 1-col at ≤768px */
@media (max-width: 768px) {
  .posts-news-grid,
  .posts-news-grid-full {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-post {
    border-radius: 14px;
  }

  .featured-post-image {
    height: 200px;
  }

  .featured-post-body {
    padding: 20px 20px 24px;
  }

  .featured-post-title {
    font-size: 1.45rem;
  }

  .post-news-card {
    border-radius: 14px;
  }

  .post-news-card-image {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .featured-post {
    border-radius: 12px;
  }

  .featured-post-image {
    height: 170px;
  }

  .featured-post-body {
    padding: 16px 16px 20px;
  }

  .featured-post-title {
    font-size: 1.25rem;
  }

  .featured-post-summary {
    font-size: 0.9rem;
  }

  .news-section-date {
    display: none;
  }

  .post-news-card {
    border-radius: 12px;
  }

  .post-news-card-image {
    height: 128px;
  }
}

/* Contributors Section */
.contributors-section {
  margin-top: 44px;
}

.contributors-view-all {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #BA0C2F;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.contributors-view-all:hover {
  color: #000;
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contributor-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border-top: 3px solid #BA0C2F;
}

.contributor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.contributor-card-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.contributor-byline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BA0C2F;
}

.contributor-time {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.7rem;
  color: #aaa;
  font-weight: 500;
}

.contributor-card-title {
  font-family: 'Merriweather', serif;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.contributor-card-title a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contributor-card-title a:hover {
  color: #BA0C2F;
}

.contributor-card-excerpt {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.62;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.contributor-card-link {
  color: #BA0C2F;
  text-decoration: none;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: auto;
  display: inline-block;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.18s ease;
}

.contributor-card-link:hover {
  color: #000;
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .contributors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contributors-grid {
    grid-template-columns: 1fr;
  }

  .contributors-section {
    margin-top: 32px;
  }
}

/* ===================================================
   Article Show Page — Editorial Layout
   =================================================== */

.article-show-wrapper {
  max-width: 740px;
  margin: 40px auto 0;
  padding: 0 24px 80px;
}

/* Back nav */
.article-show-nav {
  margin-bottom: 36px;
}

.article-show-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.article-show-nav a:hover {
  color: #BA0C2F;
}

.article-nav-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.article-show-nav a:hover .article-nav-arrow {
  transform: translateX(-3px);
}

/* Header */
.article-show-header {
  margin-bottom: 0;
}

.article-category-tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #BA0C2F;
  color: #fff;
  padding: 4px 10px 3px;
  margin-bottom: 18px;
}

.article-show-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

/* Byline */
.article-show-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.82rem;
  color: #777;
  flex-wrap: wrap;
}

.article-byline-author {
  font-weight: 700;
  color: #BA0C2F;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.article-byline-sep {
  color: #ddd;
  font-weight: 300;
}

.article-byline-date,
.article-byline-time {
  font-size: 0.82rem;
  color: #888;
}

/* Red rule divider */
.article-show-rule {
  height: 3px;
  background: #BA0C2F;
  margin: 24px 0 42px;
  position: relative;
}

.article-show-rule::after {
  content: '';
  display: block;
  height: 1px;
  background: #eee;
  margin-top: 4px;
}

/* Body text */
.article-show-body {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #222;
}

/* Drop cap on first paragraph */
.article-show-body > p:first-of-type::first-letter {
  float: left;
  font-family: 'Oswald', sans-serif;
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 0.78;
  color: #BA0C2F;
  padding-right: 10px;
  padding-top: 8px;
}

.article-show-body p {
  margin-bottom: 1.6em;
}

.article-show-body h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #111;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 2px solid #BA0C2F;
}

.article-show-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin-top: 2em;
  margin-bottom: 0.6em;
  letter-spacing: 0.03em;
}

.article-show-body h4 {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #BA0C2F;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

/* Pull quote / blockquote */
.article-show-body blockquote {
  position: relative;
  border-left: none;
  padding: 22px 24px 22px 28px;
  margin: 2.4em -4px;
  background: #fafafa;
  border-top: 3px solid #BA0C2F;
  border-bottom: 1px solid #ececec;
  font-style: italic;
}

.article-show-body blockquote::before {
  content: '\201C';
  font-family: 'Merriweather', serif;
  font-size: 5rem;
  line-height: 1;
  color: #BA0C2F;
  position: absolute;
  top: -14px;
  left: 14px;
  opacity: 0.25;
  pointer-events: none;
}

.article-show-body blockquote p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #444;
  margin: 0;
}

.article-show-body ul,
.article-show-body ol {
  margin: 1.2em 0;
  padding-left: 2em;
}

.article-show-body li {
  margin-bottom: 0.65em;
}

.article-show-body a {
  color: #BA0C2F;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-show-body a:hover {
  color: #8a0923;
}

.article-show-body strong {
  font-weight: 700;
  color: #111;
}

.article-show-body em {
  font-style: italic;
}

.article-show-body hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5em 0;
}

/* Code */
.article-show-body code {
  font-size: 0.88em;
  background: #f3f3f3;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.article-show-body pre {
  background: #f8f8f8;
  border-left: 4px solid #BA0C2F;
  padding: 1.2em 1.4em;
  border-radius: 0 4px 4px 0;
  overflow-x: auto;
  margin: 1.8em 0;
}

.article-show-body pre code {
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
}

/* Tables */
.article-show-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.9rem;
}

.article-show-body table th {
  background: #BA0C2F;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 10px 14px;
  text-align: left;
}

.article-show-body table td {
  border-bottom: 1px solid #eee;
  padding: 10px 14px;
  color: #333;
}

.article-show-body table tr:nth-child(even) td {
  background: #fafafa;
}

/* Images */
.article-show-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8em auto;
  border-radius: 3px;
}

/* Footer */
.article-show-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-footer-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-footer-label {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
}

.article-footer-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.03em;
}

.article-back-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.article-back-link:hover {
  color: #BA0C2F;
}

@media (max-width: 768px) {
  .article-show-wrapper {
    padding: 0 16px 60px;
    margin-top: 24px;
  }

  .article-show-body {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .article-show-body > p:first-of-type::first-letter {
    font-size: 3.6rem;
  }

  .article-show-body blockquote {
    margin: 2em 0;
  }

  .article-show-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================
   Contributors Index Page — Editorial Opinion Layout
   =================================================== */

.contrib-index-wrapper {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 24px 80px;
}

/* Page header */
.contrib-index-header {
  margin-bottom: 0;
}

.contrib-index-label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #BA0C2F;
  color: #fff;
  padding: 4px 10px 3px;
  margin-bottom: 16px;
}

.contrib-index-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.contrib-index-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: #777;
  font-style: italic;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.contrib-index-rule {
  height: 3px;
  background: #BA0C2F;
  margin-bottom: 0;
  position: relative;
}

.contrib-index-rule::after {
  content: '';
  display: block;
  height: 1px;
  background: #eee;
  margin-top: 4px;
}

/* Article list */
.contrib-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contrib-article-item {
  border-bottom: 1px solid #e8e8e8;
}

.contrib-article-link {
  display: block;
  padding: 32px 0 32px 16px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}

.contrib-article-link:hover {
  border-left-color: #BA0C2F;
  background: #fdf9f9;
  padding-left: 22px;
}

/* Lead (first) article gets bigger treatment */
.contrib-article-item--lead .contrib-article-link {
  padding-top: 36px;
  padding-bottom: 36px;
}

.contrib-article-item--lead .contrib-article-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.contrib-article-item--lead .contrib-article-excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Meta line */
.contrib-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.contrib-article-author {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BA0C2F;
}

.contrib-article-sep {
  color: #ccc;
  font-size: 0.75rem;
}

.contrib-article-date,
.contrib-article-time {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.78rem;
  color: #999;
}

/* Title */
.contrib-article-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 10px 0;
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition: color 0.18s ease;
}

.contrib-article-link:hover .contrib-article-title {
  color: #BA0C2F;
}

/* Excerpt */
.contrib-article-excerpt {
  font-family: 'Merriweather', serif;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.75;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */
.contrib-article-cta {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BA0C2F;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.18s ease, color 0.18s ease;
}

.contrib-article-link:hover .contrib-article-cta {
  gap: 8px;
}

.contrib-cta-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

.contrib-article-link:hover .contrib-cta-arrow {
  transform: translateX(3px);
}

/* Empty state */
.contrib-empty {
  padding: 60px 0;
  text-align: center;
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: #999;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .contrib-index-wrapper {
    padding: 0 16px 60px;
    margin-top: 24px;
  }

  .contrib-article-link {
    padding: 24px 0 24px 12px;
  }

  .contrib-article-link:hover {
    padding-left: 18px;
  }

  .contrib-article-item--lead .contrib-article-link {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .contrib-article-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}