/* News Page Styles for ArtsArlington Theme */

.home-news-section h2 {
  padding-block: 0 1rem;
}

.news-container {
  container-type: inline-size;
  container-name: news-container;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--news-card-gap);
  margin-bottom: var(--home-container-padding);
  padding-inline-end: 1rem;
}

/* Force single column on mobile */
@media (max-width: 575px) {
  .news-container {
    grid-template-columns: 1fr !important;
    margin-left: 0;
    margin-right: 0;
    gap: 1rem;
  }
}

/* News Card */
/* News Content */
.news-content {
  padding: var(--news-content-padding);
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 1rem;

  p {
    margin: 0;
  }
}

.home-news-section {
  .news-content {
    padding: var(--news-content-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    p {
      margin: 0;
    }
  }
}

.news-main {
  .news-content {
    padding: var(--news-content-padding);
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 1rem;

    p {
      margin: 0;
    }
  }
}

.news-label {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 1.3;
  margin-bottom: 0.5rem;
  text-decoration: 4px solid underline var(--aa-fuschia);
  text-transform: uppercase;
}

.news-title-link {
  text-decoration: none;
  color: var(--aa-blue-dark);
  font-weight: bold;
  font-family: var(--aa-font-family);
  transition: color 0.3s ease;
}

.news-title-link:hover {
  color: var(--aa-fuschia);
  text-decoration: underline;
}

.news-date {
  color: var(--aa-accent-orange);
  font-weight: bold;
  font-size: 0.875rem;
  letter-spacing: 1.2;
  margin: 0;
  flex-shrink: 0;
}

.news-excerpt {
  font-family: var(--aa-font-family);
  line-height: 1.6;
  margin: 0;
}

/* More News Button */
.news-footer {
  text-align: center;
  margin-top: var(--home-container-padding);
}

/* Mobile news footer alignment */
@media (max-width: 575px) {
  .news-footer {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
}

.more-news-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.more-news-link:hover {
  transform: scale(1.05);
}

.more-news-button {
  max-width: 200px;
  height: auto;
}

.more-news-text {
  display: inline-block;
  background-color: var(--aa-fuschia);
  color: var(--aa-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--home-card-radius);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: var(--aa-font-family);
}

.more-news-text:hover {
  background-color: var(--aa-orange);
  transform: translateY(-2px);
}

/* News Section Layout */
section.news {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  margin: 0 30px;
}

/* Content Area */
.content {
  margin: 30px;
  color: var(--aa-blue-dark);
  line-height: 20px;
  font-size: 16px;
}

/* News Items */
.news-item {
  background: var(--aa-white);
  border-radius: var(--home-card-radius);
  width: 100%;
  padding-bottom: 30px;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 0.25rem;
}

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

/* News Image */
.news-image {
  flex-shrink: 0;
}

.news-image img {
  width: 300px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* News Content */
/* .newsExcerpt {
  flex: 1;
  color: var(--aa-black);
  font-family: var(--aa-font-family);
}

.newsExcerpt p {
  margin-top: 15px;
  line-height: 1.5;
  color: var(--aa-gray-medium);
} */

/* News Title */
.news-title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-size: 20px;
  color: var(--aa-fuschia);
  font-weight: 700;
  margin: 0;
  padding-block-end: 1rem;
  text-transform: uppercase;
}

.news-title a {
  color: var(--aa-fuschia);
  text-decoration: none;
  font-family: var(--aa-font-family);
}

.news-title a:hover {
  color: var(--aa-blue-dark);
  text-decoration: underline;
}

/* News Date */
.newsDate {
  display: block;
  color: var(--aa-accent-orange);
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Read More Button */
.read-more-link {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
}

img[alt="Read More"] {
  max-width: 120px;
  height: auto;
  transition: opacity 0.3s ease;
}

img[alt="Read More"]:hover {
  opacity: 0.8;
}

.read-more-text {
  display: inline-block;
  background-color: var(--aa-fuschia);
  color: var(--aa-white);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  font-size: 12px;
}

.read-more-text:hover {
  background-color: var(--aa-orange);
}

/* Widget Styles */
.widget-title {
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-top: 0;
  color: var(--aa-fuschia);
  font-family: var(--aa-font-family);
  margin-bottom: 1rem;
}

/* Pagination Styles */
.pagination {
  margin: 2rem 0;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border: 1px solid var(--aa-gray-medium);
  color: var(--aa-blue-dark);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: var(--aa-fuschia);
  color: var(--aa-white);
  border-color: var(--aa-fuschia);
}

.pagination .current {
  background-color: var(--aa-blue-dark);
  color: var(--aa-white);
  border-color: var(--aa-blue-dark);
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--aa-green-light);
  border-radius: 8px;
  margin: 2rem 0;
}

.no-posts h2 {
  color: var(--aa-gray-dark);
  margin-bottom: 1rem;
}

.no-posts p {
  color: var(--aa-gray-medium);
}

/* Media Queries */

/* Desktop Large (1025px and up) */
@media all and (min-width: 1025px) {
  section.news {
    margin: 0 50px;
  }
}

/* Tablet and Small Desktop (768px - 1024px) */
@media all and (max-width: 1024px) {
  .news-item {
    flex-direction: column;
  }

  .news-image {
    margin-bottom: 15px;
  }

  section.news {
    gap: 1.5rem;
    margin: 0 20px;
  }
}

/* Mobile and Small Tablet (200px - 767px) */
@media all and (min-width: 200px) and (max-width: 767px) {
  section.news {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0 15px;
    gap: 1rem;
  }

  .content {
    margin: 15px;
  }

  .news-content {
    flex-direction: column;
  }

  .news-item {
    flex-direction: column;
    padding-bottom: 25px;
  }

  .news-image {
    margin-bottom: 15px;
    text-align: center;
  }

  .news-image img {
    width: 100vw;
  }

  .widget-title {
    font-size: 18px;
    margin-top: 2rem;
  }
}

/* Very Small Mobile (up to 480px) */
@media all and (max-width: 480px) {
  .content {
    margin: 10px;
    font-size: 14px;
  }

  .newsTitle {
    font-size: 18px;
  }

  section.news {
    margin: 0 10px;
  }
}

/* Sidebar Spacing */
section.news > div:last-child {
  padding-left: 1rem;
}

@media all and (max-width: 767px) {
  section.news > div:last-child {
    padding-left: 0;
    margin-top: 2rem;
  }
}
