/* ========================================
   NEWS ARCHIVE PAGE
   ======================================== */

.news-archive-page {
  background: #ffffff;
  min-height: 60vh;
}

/* Page Header */
.news-page-header .page-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--secondary-color, #2c3e50);
  margin-bottom: 1rem;
}

.title-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color, #C49E5F), transparent);
  border-radius: 2px;
}

.news-page-header .page-subtitle {
  font-size: 1.15rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* News Archive Grid */
.news-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Individual News Card */
.news-archive-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 0;
}

.news-archive-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Image Section */
.news-archive-image {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.news-archive-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.news-archive-card:hover .news-archive-image img {
  transform: scale(1.1);
}

/* Content Section */
.news-archive-content {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-archive-title {
  margin-bottom: 1rem;
}

.news-archive-title a {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color, #2c3e50);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.news-archive-title a:hover {
  color: var(--primary-color, #C49E5F);
}

.news-archive-excerpt {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.news-archive-excerpt p {
  margin: 0;
}

.news-archive-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  background: var(--primary-color, #C49E5F);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.news-archive-link a:hover {
  background: var(--primary-dark, #8B6F47);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(196, 158, 95, 0.3);
}

.news-archive-link a::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 0.5rem;
}

/* No Results */
.no-results {
  padding: 4rem 2rem;
}

/* Pager Styling */
.news-pager {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.news-pager .pager {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-pager .pager__item {
  margin: 0;
}

.news-pager .pager__item a,
.news-pager .pager__item.is-active {
  display: block;
  padding: 0.6rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  color: var(--secondary-color, #2c3e50);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.news-pager .pager__item a:hover {
  background: var(--primary-color, #C49E5F);
  border-color: var(--primary-color, #C49E5F);
  color: white;
}

.news-pager .pager__item.is-active {
  background: var(--primary-color, #C49E5F);
  border-color: var(--primary-color, #C49E5F);
  color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
  .news-archive-card {
    grid-template-columns: 300px 1fr;
  }
  
  .news-archive-content {
    padding: 1.5rem 2rem;
  }
  
  .news-archive-title a {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .news-archive-card {
    grid-template-columns: 1fr;
  }
  
  .news-archive-image img {
    min-height: 200px;
    max-height: 300px;
  }
  
  .news-archive-content {
    padding: 1.5rem;
  }
  
  .news-page-header .page-title {
    font-size: 2rem;
  }
  
  .news-archive-card:hover {
    transform: translateY(-4px);
  }
}

/* ========================================
   NEWS BLOCK CARDS (Front Page)
   ======================================== */

.news-block-section {
  background: #f8f9fa;
}

/* Grid container styling */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 -0.75rem;
}

/* Each views-row acts as a grid column */
.news-grid .views-row {
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

/* Card styling */
.news-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

/* Image container - prevent overflow on hover */
.news-card > a:first-of-type + img,
.news-card img:first-child {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  overflow: hidden;
}

/* Create container effect to clip the zoomed image */
.news-card {
  position: relative;
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.news-card:hover img {
  transform: scale(1.08);
}

/* Title link styling - changed to theme colors */
.news-card a:first-of-type {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  padding: 1.25rem 1.5rem 0.75rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-card a:first-of-type:hover {
  color: #C49E5F;
}

/* Description text */
.news-card p {
  padding: 0 1.5rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* Read More button - changed to theme colors */
.news-card a[href*="node"]:last-of-type {
  display: inline-block;
  margin: 0 1.5rem 1.5rem;
  padding: 0.6rem 1.75rem;
  background: var(--primary-color, #C49E5F);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
  border: none;
}

.news-card a[href*="node"]:last-of-type:hover {
  background: var(--primary-dark, #8B6F47);
  transform: translateX(3px);
}

/* Section headings */
.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.section-subheading {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* View All News button - theme colors */
.news-block-section .btn-primary {
  background: var(--primary-color, #C49E5F) !important;
  border-color: var(--primary-color, #C49E5F) !important;
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.news-block-section .btn-primary:hover {
  background: var(--primary-dark, #8B6F47) !important;
  border-color: var(--primary-dark, #8B6F47) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 158, 95, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .news-grid .views-row {
    flex: 1 1 calc(50% - 1.5rem);
  }
}

@media (max-width: 768px) {
  .news-grid {
    margin: 0;
  }
  
  .news-grid .views-row {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .section-heading {
    font-size: 1.75rem;
  }
}

/* ========================================
   NEWS CONTENT STYLES
   ======================================== */

.news-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
}

.news-meta {
  font-size: 0.95rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.news-images-gallery {
  margin: 2rem 0;
}

.news-image-single img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image-single:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.news-image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.news-image-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-image-item:hover img {
  transform: scale(1.05);
}

.news-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.news-content p {
  margin-bottom: 1.5rem;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.news-content h2,
.news-content h3,
.news-content h4 {
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .news-title {
    font-size: 1.8rem;
  }
  
  .news-image-item img {
    height: 200px;
  }
  
  .news-image-single img {
    max-height: 400px;
  }
  
  .news-content {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .news-title {
    font-size: 1.5rem;
  }
  
  .news-image-item img {
    height: 180px;
  }
  
  .news-image-single img {
    max-height: 300px;
  }
}

/* ========================================
   NEWS BLOCK SECTION STYLES
   ======================================== */

.news-block-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
  position: relative;
  padding-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
  margin: 1rem auto;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* News Card Styles */
.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.news-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.1);
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-title a:hover {
  color: var(--primary-color);
}

.news-card-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: auto;
}

.news-card-footer a {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-card-footer a:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.news-card-footer a::after {
  content: '\f061';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 0.5rem;
  transition: margin-left 0.3s ease;
}

.news-card-footer a:hover::after {
  margin-left: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .news-card-image {
    height: 200px;
  }
  
  .news-card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .news-card-image {
    height: 180px;
  }
}
