body {
  font-family: 'Lato', sans-serif;
  background-color: #f8f9fa;
  line-height: 1.6;
}

#article-content-area, .article-card .card-text {
  font-family: 'Merriweather', serif;
}

h1, h2, h3, h4, h5, h6, .card-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

.site-header-cnn {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  top: 0;
  z-index: 1020;
}

.site-title-brand {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 1rem;
}

.header-nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.header-nav .nav-item {
}

.header-nav .nav-link {
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  white-space: nowrap;
}

.header-nav .nav-link:hover, .header-nav .nav-link:focus {
  color: #000;
  background-color: transparent;
  text-decoration: underline;
}

.header-nav .nav-link.disabled {
  color: #adb5bd !important;
  pointer-events: none;
  cursor: default;
  text-decoration: none !important;
}

.header-nav .signup-link-cnn {
  color: #0d6efd;
}

.header-nav .signup-link-cnn:hover {
  color: #0a58ca;
}

#page-description {
  transition: opacity 0.3s ease-out;
  margin-top: 2rem;
}

#page-description.d-none {
  opacity: 0;
  margin-bottom: 0;
  margin-top: 0;
  overflow: hidden;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

#page-description hr {
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5rem;
}

#signup-section {
  transition: opacity 0.3s ease-out;
}

#signup-section.d-none {
  opacity: 0;
}

#left-sidebar, #right-sidebar {
  transition: opacity 0.3s ease-out;
}

#left-sidebar.d-none, #right-sidebar.d-none {
  opacity: 0;
}

#left-sidebar .sticky-top, #right-sidebar .sticky-top {
  top: 75px;
}

.ad-placeholder-sidebar {
  background-color: #e9ecef;
  border: 1px dashed #adb5bd;
  width: 150px;
  height: 150px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  color: #6c757d;
  font-size: 0.9rem;
}

.ad-placeholder-sidebar a {
  display: block;
  width: 100%;
  height: 100%;
}

.content-banner-slot {
  background-color: transparent;
  border: none;
  width: 100%;
  height: 90px;
  overflow: hidden;
  padding: 0;
  color: #6c757d;
  font-size: 0.9rem;
  background-image: url('../img/banner_ads/site_feature_graphic.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.article-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #ffffff;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.article-card .card-img-top {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease-in-out;
}

.article-card:hover .card-img-top {
  transform: scale(1.05);
}

.article-card .card-body {
  padding: 1rem;
}

.article-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #343a40;
}

.article-card .card-title a {
  text-decoration: none;
  color: inherit;
}

.article-card .card-title a:hover {
  text-decoration: underline;
  color: #0d6efd;
}

.article-card .card-text {
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 1rem;
}

.article-card .card-footer {
  background-color: transparent;
  border-top: 1px solid #eee;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: #6c757d;
  flex-shrink: 0;
}

#article-content-area {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
}

#article-content-area h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

#article-content-area h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

#article-content-area p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

#article-content-area .lead {
  font-size: 1.25rem;
  font-weight: 400;
}

#article-content-area img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
}

#article-content-area .byline, #article-content-area .text-muted {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #6c757d;
}

#article-content-area blockquote {
  font-size: 1.15rem;
  color: #495057;
}

#article-content-area blockquote .blockquote-footer {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
}

#article-content-area .content-banner-slot {
  margin-top: 2rem;
}

.site-footer-links a {
  color: #6c757d;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

#loading-indicator {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

#error-message {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.article-preview-wrapper {
  outline: 3px solid transparent;
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0);
  border-radius: 0.375rem;
  transition: outline-color 0.5s ease-out, box-shadow 0.5s ease-out;
}

.highlighted-preview {
  outline-color: #0d6efd;
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.4);
  animation-name: flashHighlight;
  animation-duration: 0.6s;
  animation-timing-function: linear;
  animation-iteration-count: 2;
}

@keyframes flashHighlight {
  0%, 49.9% {
    outline-color: #0d6efd;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.4);
  }
  50%, 99.9% {
    outline-color: transparent;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0);
  }
  100% {
    outline-color: #0d6efd;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.4);
  }
}

.front-page-section {
  scroll-margin-top: 90px;
}

.ad-container, #anchor-before-articles {
  scroll-margin-top: 90px;
}

.front-page-section h3 {
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.nav-section-link a {
}

#primary-content-column {
  transition: width 0.3s ease-in-out;
}

#sidebar-related-posts {
}

#sidebar-related-posts .sidebar-related-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

#sidebar-related-posts .sidebar-related-list li {
  margin-bottom: 0.4rem;
}

#sidebar-related-posts .related-post-link {
  text-decoration: none;
  color: #0d6efd;
  font-size: 0.9rem;
  display: block;
  transition: color 0.15s ease-in-out;
  line-height: 1.4;
}

#sidebar-related-posts .related-post-link:hover, #sidebar-related-posts .related-post-link:focus {
  color: #0a58ca;
  text-decoration: underline;
}

#sidebar-related-posts .related-post-link.current-post-link {
  color: #6c757d;
  font-weight: bold;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  body {
    padding-top: 60px;
  }
}

@media (max-width: 767.98px) {
  .front-page-section, .ad-container, #anchor-before-articles {
    scroll-margin-top: 120px;
  }
}

@media (max-width: 767.98px) {
  .site-title-brand {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .site-header-cnn .container {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .site-header-cnn {
    padding-bottom: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .header-nav {
    flex-basis: 100%;
    justify-content: space-around;
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .header-nav .nav-item {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 767.98px) {
  .header-nav .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .header-nav .nav-item.ms-auto {
    margin-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  #left-sidebar .sticky-top, #right-sidebar .sticky-top {
    position: static;
  }
}

@media (max-width: 767.98px) {
  #left-sidebar {
    margin-bottom: 2rem;
    order: -1;
  }
}

@media (max-width: 767.98px) {
  #right-sidebar {
    margin-top: 2rem;
    order: 1;
  }
}

@media (max-width: 767.98px) {
  .ad-placeholder-sidebar {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 767.98px) {
  #article-content-area {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 767.98px) {
  #article-content-area h1 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .category-grid .col-lg-4.col-md-6 {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .category-grid .col-lg-4.col-md-6 {
    width: 50%;
  }
}

@media (max-width: 767.98px) {
  .article-card .card-img-top {
    height: 160px;
  }
}

@media (max-width: 767.98px) {
  #page-description {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  #page-description hr {
    margin-top: 1rem;
  }
}

