/**
 * Enhanced article layout styles
 * Improves the layout of article pages like the Data Governance Summit
 */

/* Article container */
.node--type-article {
  margin-bottom: 3rem;
}

.node__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Featured image styling */
.article-featured-image {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
  display: block;
}

/* Float image for smaller screens */
@media (max-width: 767px) {
  .article-featured-image {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}

/* For medium screens, make image larger but still integrated */
@media (min-width: 768px) and (max-width: 991px) {
  .article-featured-image {
    width: 100%;
    margin-bottom: 2rem;
  }
}

/* Article header */
.article-header {
  margin-bottom: 1rem;
}

.article-categories {
  margin-bottom: 1rem;
}

.article-categories a {
  display: inline-block;
  background-color: #0082CB;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: background-color 0.2s ease;
}

.article-categories a:hover {
  background-color: #01649B;
  text-decoration: none;
}

/* Main content container */
.article-content-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* For larger screens, use a two-column layout */
@media (min-width: 992px) {
  .article-content-container {
    flex-direction: row;
  }

  .article-main-content {
    flex: 1;
  }
}

/* Article body content */
.article-body {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body a {
  color: #0082CB;
  text-decoration: underline;
}

.article-body a:hover {
  color: #01649B;
}

/* Make the first paragraph larger for visual interest */
.article-body p:first-child {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Enhance the article layout */
.article-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Bottom content area */
.article-bottom-content {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

/* Tags styling */
.field--tags {
  margin-top: 1.5rem;
}

.field--tags__label {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.field--tags__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.field--tags__item a {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.field--tags__item a:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}