/* ============================================
   AYLF — NEWS PAGE
   Theme: Forest green + gold
   ============================================ */
body[data-theme="news"] { background: #f5f4ee; }
body[data-theme="news"] .hero-image {
  background-image: url("../images/pages/news.png");
  background-position: center 40%;
  background-size: cover;
}
body[data-theme="news"] .section-white { background: #ffffff; }
body[data-theme="news"] .section-green { background: #0c3025; color: #fff; }

body[data-theme="news"] .filter-section { padding: 50px 0 20px; background: #ffffff; }
body[data-theme="news"] .filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; max-width: 800px; margin: 0 auto;
}
body[data-theme="news"] .filter-btn {
  padding: 11px 24px; background: transparent;
  border: 1px solid rgba(11, 11, 11, .08); border-radius: 3px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #0c3025; cursor: pointer; transition: all .25s;
}
body[data-theme="news"] .filter-btn:hover {
  border-color: #164b38; color: #164b38; transform: translateY(-2px);
}
body[data-theme="news"] .filter-btn.active {
  background: #0c3025; color: #d4af37;
  border-color: #0c3025; box-shadow: 0 8px 20px rgba(12, 48, 37, .2);
}

body[data-theme="news"] .news-section { padding: 40px 0 100px; background: #ffffff; min-height: 60vh; }
body[data-theme="news"] .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px; margin-bottom: 40px;
}
body[data-theme="news"] .news-card {
  border-radius: 8px; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 11, 11, .08);
  box-shadow: 0 4px 18px rgba(12, 48, 37, .06);
  transition: transform .35s, box-shadow .35s, border-color .35s;
  display: flex; flex-direction: column; cursor: pointer;
}
body[data-theme="news"] .news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(12, 48, 37, .15);
  border-color: #164b38;
}
body[data-theme="news"] .news-card.hidden { display: none; }
body[data-theme="news"] .news-card-image {
  position: relative; height: 220px;
  overflow: hidden; background: #e2e6e0;
}
body[data-theme="news"] .news-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s;
}
body[data-theme="news"] .news-card:hover .news-card-image img { transform: scale(1.06); }
body[data-theme="news"] .news-card-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 48, 37, .55) 100%);
}
body[data-theme="news"] .news-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #d4af37; color: #0c3025;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 3px;
}
body[data-theme="news"] .news-card-body { padding: 26px 24px 24px; flex: 1; display: flex; flex-direction: column; }
body[data-theme="news"] .news-card-body h4 {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 700; letter-spacing: -.04em;
  color: #0c3025; line-height: 1.35; margin: 0 0 12px;
}
body[data-theme="news"] .news-card-body h4 a { color: inherit; }
body[data-theme="news"] .news-card:hover .news-card-body h4 { color: #164b38; }
body[data-theme="news"] .news-card-body p {
  font-size: 13px; color: #5f6a63; line-height: 1.7;
  margin: 0 0 20px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
body[data-theme="news"] .news-card-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid rgba(11, 11, 11, .08);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #0c3025;
}
body[data-theme="news"] .news-card-cta .arrow { font-size: 16px; color: #d4af37; transition: transform .3s; }
body[data-theme="news"] .news-card:hover .news-card-cta .arrow { transform: translateX(5px); }

body[data-theme="news"] .pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; margin-top: 20px;
}
body[data-theme="news"] .pagination button {
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid rgba(11, 11, 11, .08);
  background: #fff; color: #0c3025;
  font-size: 13px; font-weight: 700; border-radius: 4px;
  cursor: pointer; transition: all .25s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
body[data-theme="news"] .pagination button:hover:not(:disabled) {
  border-color: #164b38; color: #164b38; transform: translateY(-2px);
}
body[data-theme="news"] .pagination button.active {
  background: #0c3025; color: #d4af37;
  border-color: #0c3025;
  box-shadow: 0 8px 20px rgba(12, 48, 37, .2);
}
body[data-theme="news"] .pagination button:disabled { opacity: .35; cursor: not-allowed; }
body[data-theme="news"] .pagination .page-arrow { font-size: 16px; padding: 0 16px; }
body[data-theme="news"] .pagination .page-info {
  padding: 0 12px; font-size: 12px; color: #5f6a63; font-weight: 600;
}
body[data-theme="news"] .no-results {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 20px; color: #5f6a63;
  font-size: 14px; display: none;
}
body[data-theme="news"] .no-results.show { display: block; }

/* Modal */
body[data-theme="news"] .aylf-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(12, 48, 37, .92);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 24px; overflow-y: auto;
}
body[data-theme="news"] .aylf-modal-overlay.active { opacity: 1; visibility: visible; }
body[data-theme="news"] .aylf-modal-container {
  background: #fff; border-radius: 12px;
  max-width: 900px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(30px) scale(.97);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  border-top: 4px solid #d4af37;
}
body[data-theme="news"] .aylf-modal-overlay.active .aylf-modal-container { transform: translateY(0) scale(1); }
body[data-theme="news"] .aylf-modal-close {
  position: sticky; top: 12px; float: right;
  margin-right: 12px; width: 42px; height: 42px;
  border-radius: 50%; border: none;
  background: #0c3025; color: #d4af37;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s, color .25s;
  z-index: 10;
}
body[data-theme="news"] .aylf-modal-close:hover { background: #d4af37; color: #0c3025; transform: rotate(90deg); }
body[data-theme="news"] .aylf-modal-loader { padding: 100px 40px; text-align: center; }
body[data-theme="news"] .aylf-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(12, 48, 37, .12);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: aylf-spin .9s linear infinite;
  margin: 0 auto;
}
@keyframes aylf-spin { to { transform: rotate(360deg); } }
body[data-theme="news"] .aylf-modal-content { display: none; }
body[data-theme="news"] .aylf-modal-content.loaded { display: block; }
body[data-theme="news"] .aylf-article-header {
  padding: 40px 50px 30px;
  background: linear-gradient(135deg, #f2f4f1 0%, #fff 100%);
  border-bottom: 1px solid rgba(11, 11, 11, .08);
}
body[data-theme="news"] .aylf-article-header .article-tag {
  display: inline-block; background: #d4af37; color: #0c3025;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 3px;
  margin-bottom: 18px;
}
body[data-theme="news"] .aylf-article-header h2 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  letter-spacing: -.04em; color: #0c3025;
  margin: 0 0 12px;
}
body[data-theme="news"] .aylf-article-header .article-meta {
  font-size: 12px; color: #5f6a63;
}
body[data-theme="news"] .aylf-article-image {
  width: 100%; max-height: 380px;
  overflow: hidden; background: #e2e6e0;
}
body[data-theme="news"] .aylf-article-image img { width: 100%; height: 100%; object-fit: cover; }
body[data-theme="news"] .aylf-article-body {
  padding: 40px 50px 24px;
  font-size: 15px; line-height: 1.85; color: #3a4450;
}
body[data-theme="news"] .aylf-article-body p { margin: 0 0 18px; }
body[data-theme="news"] .aylf-article-footer {
  padding: 24px 50px 32px;
  border-top: 1px solid rgba(11, 11, 11, .08);
  display: flex; gap: 14px; flex-wrap: wrap;
  background: #faf9f6;
}
body[data-theme="news"] .aylf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 24px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 3px; border: none; cursor: pointer;
  transition: background .25s, transform .25s, color .25s;
  text-decoration: none;
}
body[data-theme="news"] .aylf-btn-primary { background: #0c3025; color: #d4af37; }
body[data-theme="news"] .aylf-btn-primary:hover { background: #d4af37; color: #0c3025; transform: translateY(-2px); }
body[data-theme="news"] .aylf-btn-outline {
  background: transparent; color: #0c3025;
  border: 1px solid rgba(12, 48, 37, .25);
}
body[data-theme="news"] .aylf-btn-outline:hover { background: #0c3025; color: #d4af37; transform: translateY(-2px); }

body[data-theme="news"] .cta-section {
  background: linear-gradient(135deg, #d4af37 0%, #a8871f 100%);
  color: #0c3025;
}
body[data-theme="news"] .cta-section h2 { color: #0c3025; }
body[data-theme="news"] .cta-section h2 em { color: #164b38; opacity: .85; }
body[data-theme="news"] .cta-section .cta-right p { color: rgba(12, 48, 37, .78); }
body[data-theme="news"] .cta-section .eyebrow.light { color: #0c3025; }
body[data-theme="news"] .cta-section .eyebrow.light > span { background: #0c3025; }
body[data-theme="news"] .cta-section .btn-lime { background: #0c3025; color: #d4af37; }

@media (max-width: 820px) {
  body[data-theme="news"] .news-grid { grid-template-columns: 1fr; gap: 20px; }
  body[data-theme="news"] .news-card-image { height: 200px; }
  body[data-theme="news"] .filter-btn { padding: 9px 16px; font-size: 12.5px; }
  body[data-theme="news"] .aylf-modal-overlay { padding: 0; align-items: flex-start; }
  body[data-theme="news"] .aylf-modal-container { border-radius: 0; max-height: 100vh; min-height: 100vh; }
  body[data-theme="news"] .aylf-article-header { padding: 28px 24px 22px; }
  body[data-theme="news"] .aylf-article-header h2 { font-size: 22px; }
  body[data-theme="news"] .aylf-article-body { padding: 28px 24px 16px; font-size: 14px; }
  body[data-theme="news"] .aylf-article-footer { padding: 20px 24px 28px; }
}