/* ==========================================================================
   news.css — News / Blog Listing Page Styles
   A Perfect Choice Home Care WordPress Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   News Intro
   -------------------------------------------------------------------------- */
.apch-news-intro {
  padding: 60px 0;
  background: var(--white);
  text-align: center;
}
.apch-news-intro p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Featured Article
   -------------------------------------------------------------------------- */
.apch-news-featured {
  padding: 0 0 80px;
  background: var(--white);
}
.apch-news-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.apch-news-featured-card:hover {
  box-shadow: var(--shadow-md);
}
.apch-news-featured-image {
  overflow: hidden;
  background: var(--cream-dark);
  min-height: 350px;
}
.apch-news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.apch-news-featured-card:hover .apch-news-featured-image img {
  transform: scale(1.03);
}
.apch-news-featured-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.apch-news-featured-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.apch-news-featured-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}
.apch-news-featured-content h2 a {
  color: var(--navy);
}
.apch-news-featured-content h2 a:hover {
  color: var(--coral);
}
.apch-news-featured-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}
.apch-news-featured-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-lighter);
  margin-bottom: 20px;
}
.apch-news-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--coral);
}
.apch-news-featured-link:hover {
  gap: 10px;
}

@media (max-width: 900px) {
  .apch-news-featured-card {
    grid-template-columns: 1fr;
  }
  .apch-news-featured-image {
    aspect-ratio: 16/9;
    min-height: auto;
  }
  .apch-news-featured-content {
    padding: 32px 28px;
  }
}
@media (max-width: 600px) {
  .apch-news-featured {
    padding: 0 0 60px;
  }
  .apch-news-featured-content {
    padding: 24px 20px;
  }
}

/* --------------------------------------------------------------------------
   News Categories / Filters
   -------------------------------------------------------------------------- */
.apch-news-filters {
  padding: 0 0 40px;
  background: var(--cream);
}
.apch-news-filters-inner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 40px;
}
.apch-news-filter {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.apch-news-filter:hover,
.apch-news-filter.active {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

/* --------------------------------------------------------------------------
   News Listing Grid
   -------------------------------------------------------------------------- */
.apch-news-grid-section {
  padding: 80px 0;
  background: var(--cream);
}
.apch-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.apch-news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.apch-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.apch-news-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cream-dark);
}
.apch-news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.apch-news-card:hover .apch-news-card-image img {
  transform: scale(1.05);
}
.apch-news-card-content {
  padding: 24px;
}
.apch-news-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}
.apch-news-card-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.apch-news-card-content h2 a {
  color: var(--navy);
}
.apch-news-card-content h2 a:hover {
  color: var(--coral);
}
.apch-news-card-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.apch-news-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-lighter);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.apch-news-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.apch-news-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.apch-news-card-link:hover {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   News Pagination
   -------------------------------------------------------------------------- */
.apch-news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.apch-news-pagination a,
.apch-news-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.apch-news-pagination a {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}
.apch-news-pagination a:hover {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.apch-news-pagination span.current {
  background: var(--coral);
  color: var(--white);
  border: 1px solid var(--coral);
}

@media (max-width: 900px) {
  .apch-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .apch-news-grid {
    gap: 24px;
  }
  .apch-news-card-content {
    padding: 20px;
  }
}
@media (max-width: 600px) {
  .apch-news-grid {
    grid-template-columns: 1fr;
  }
  .apch-news-grid-section {
    padding: 60px 0;
  }
}

/* --------------------------------------------------------------------------
   Newsletter Signup Section
   -------------------------------------------------------------------------- */
.apch-news-newsletter {
  padding: 80px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.apch-news-newsletter::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 74, 63, 0.1), transparent 70%);
  pointer-events: none;
}
.apch-news-newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.apch-news-newsletter-inner h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.apch-news-newsletter-inner p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  line-height: 1.7;
}
.apch-news-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.apch-news-newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--white);
}
.apch-news-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}
.apch-news-newsletter-form input:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255,255,255,0.12);
}

@media (max-width: 600px) {
  .apch-news-newsletter {
    padding: 60px 0;
  }
  .apch-news-newsletter-form {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   Topics Section
   -------------------------------------------------------------------------- */
.apch-news-topics {
  padding: 80px 0;
  background: var(--cream);
}
.apch-news-topics-header {
  text-align: center;
  margin-bottom: 40px;
}
.apch-news-topics-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}
.apch-news-topics-header p {
  font-size: 16px;
  color: var(--text-light);
}
.apch-news-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.apch-news-topic-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.apch-news-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--coral);
}
.apch-news-topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
}
.apch-news-topic-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.apch-news-topic-card p {
  font-size: 13px;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .apch-news-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .apch-news-topics-grid {
    gap: 16px;
  }
  .apch-news-topic-card {
    padding: 24px 16px;
  }
}
@media (max-width: 600px) {
  .apch-news-topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .apch-news-topics {
    padding: 60px 0;
  }
}
