/*
 * 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: 20px;
  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;
  }
}

/* Navigation Styles */
.navbar {
  background: #BA0C2F;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #000;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  min-height: 72px;
  position: relative;
  z-index: 1;
}

.navbar-header {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.navbar-brand-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.navbar-brand {
  color: white;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  padding: 0;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.navbar-nav li {
  margin: 0;
}

.navbar-nav a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.navbar-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 8px;
}

.navbar-nav a:hover::before {
  opacity: 1;
}

.navbar-nav a:hover {
  color: white;
  transform: translateY(-1px);
  text-decoration: none;
}

.navbar-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-nav a.active::before {
  opacity: 0;
}

.navbar-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px 14px;
  transition: all 0.25s ease;
  line-height: 1;
}

.navbar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.navbar-toggle:active {
  transform: scale(0.95);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar::after {
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .navbar-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
    min-height: auto;
  }
  
  .navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    min-height: 64px;
  }
  
  .navbar-brand-section {
    flex: 1;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-tagline {
    font-size: 0.7rem;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #BA0C2F;
    padding: 8px 0;
    margin: 0;
    gap: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .navbar-nav a {
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }
  
  .navbar-nav a:last-child {
    border-bottom: none;
  }
  
  .navbar-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    border-left: 4px solid white;
    padding-left: 16px;
  }
  
  .navbar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
  }
}

/* Posts Page Styles */
.posts-page {
  background: #ffffff;
  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: 800px;
  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;
  }
}

