/* ===== NEWS PAGE - PURACERÁMICA STYLE ===== */

/* News Intro Section */
.news-intro {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.news-intro h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: #000;
}

.news-intro p {
  font-size: 1.1rem;
  color: #555;
  font-weight: 300;
  line-height: 1.6;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
}

/* News Card */
.news-card {
  background-color: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

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

/* News Content */
.news-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h2 {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: #000;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
  font-weight: 300;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* News Link */
.news-link {
  display: inline-block;
  margin-top: auto;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1.5px solid #000;
  border-radius: 50px;
  transition: all 0.25s ease;
  align-self: flex-start;
  letter-spacing: 0.3px;
}

.news-link:hover {
  background-color: #000;
  color: #fff;
  transform: translateX(4px);
}

/* ===== ARTICLE PAGE ===== */

.news-article {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  line-height: 1.7;
  background-color: #fff;
}

.news-article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: #000;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.news-article .news-date {
  color: #888;
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 2rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Image */
.news-hero {
  width: 100%;
  max-height: 500px;
  border-radius: 0;
  margin: 2rem 0 2.5rem;
  object-fit: cover;
}

/* Article Content */
.news-article p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.news-article strong {
  font-weight: 500;
  color: #000;
}

/* Article List */
.news-article ul {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
  background: #fafafa;
  padding: 1.5rem 2rem;
  border-left: 3px solid #000;
  border-radius: 0;
}

.news-article li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.news-article li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #000;
  font-weight: 600;
}

.news-article li:last-child {
  margin-bottom: 0;
}

/* Blockquote */
blockquote {
  border-left: 4px solid #000;
  padding-left: 1.5rem;
  font-style: italic;
  color: #555;
  margin: 2.5rem 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* CTA Button */
.cta-wrapper {
  text-align: center;
  margin: 3rem 0 2rem;
}

.news-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background-color: #000;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  border: 2px solid #000;
}

.news-cta:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Back Link */
.back-wrapper {
  text-align: left;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.news-back {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.news-back:hover {
  color: #555;
  transform: translateX(-4px);
}

.news-back::before {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* ===== Mobile Optimization ===== */

@media (max-width: 768px) {
  .news-intro {
    padding: 3rem 1.5rem 2rem;
  }

  .news-intro h1 {
    font-size: 2rem;
  }

  .news-intro p {
    font-size: 1rem;
  }

  .news-card img {
    height: 200px;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-content h2 {
    font-size: 1.2rem;
  }

  .news-article {
    margin: 2rem auto;
    padding: 2rem 1.5rem;
  }

  .news-article h1 {
    font-size: 1.75rem;
  }

  .news-article p {
    font-size: 1rem;
  }

  .news-article ul {
    padding: 1.25rem 1.5rem;
  }

  .news-hero {
    margin: 1.5rem 0 2rem;
  }

  .news-cta {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
}

/* ===== Animation on Load ===== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }

.news-article {
  animation: fadeInUp 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-article {
    animation: none;
    opacity: 1;
  }
}

/* ===== Print Styles ===== */

@media print {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    page-break-inside: avoid;
    border: 1px solid #ddd;
  }

  .news-link,
  .news-cta,
  .news-back {
    display: none;
  }
}