/* ═══════════════════════════════════════════════════════════════
   News pages — homepage-style hero + article card styling
   Loaded on /news, /news/* article detail, and filtered news pages
   ═══════════════════════════════════════════════════════════════ */

/* Mirror the homepage design tokens so news pages match the satellite hero palette */
:root {
  --accent: #1e3a5f;
  --accent-light: #2a5298;
  --accent-dark: #0f1b2d;
  --accent-2: #1a2d4a;
  --bg-primary: #F8F9FC;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --bg-card-active: rgba(30, 58, 95, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(30, 58, 95, 0.4);
  --text-primary: #1A1D2E;
  --text-secondary: #5A6078;
  --text-muted: #5F6578;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-glow: 0 0 30px rgba(30, 58, 95, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Full-width homepage-style hero ── */
.news-hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(11, 13, 23, 0.55) 0%, rgba(11, 13, 23, 0.78) 100%),
    url('https://cdn.hotelhuddle.com/images/hero-background-1200w.webp') center center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem 2rem !important;
  margin: 0 !important;
}

.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,13,23,0.35) 0%, rgba(11,13,23,0.15) 50%, rgba(11,13,23,0.35) 100%);
  pointer-events: none;
}

.news-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.news-hero-text {
  flex: 1 1 60%;
  min-width: 0;
  background: linear-gradient(135deg, rgba(248, 249, 252, 0.92), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.news-hero-image {
  flex: 0 0 35%;
  max-width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-hero-image img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
}

.news-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.news-hero-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.news-hero-breadcrumb a:hover {
  text-decoration: underline;
}

.news-hero-breadcrumb .sep {
  color: var(--text-secondary);
  opacity: 0.5;
}

.news-hero-breadcrumb .current {
  color: var(--text-primary);
  font-weight: 600;
}

.news-hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  background: none !important;
  text-shadow: 0 1px 3px rgba(10, 22, 40, 0.15);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.04em;
}

.news-hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  max-width: 540px;
}

.news-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── Article list cards: horizontal thumbnail layout ── */
.news-page .dir-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-page .dir-info-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.news-page .dir-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.news-page .dir-card-image-link {
  display: block;
  width: 150px;
  min-width: 150px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-card);
}

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

.news-page .dir-info-card:hover .dir-card-image-link img {
  transform: scale(1.03);
}

.news-page .dir-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.news-page .dir-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-page .dir-tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  background: var(--bg-card-active);
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-page .dir-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-page .dir-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.news-page .dir-card-title a:hover {
  color: var(--accent);
}

.news-page .dir-card-summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .dir-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.25rem;
  min-height: 24px;
}

.news-page .dir-card-link:hover {
  text-decoration: underline;
}

/* ── Pagination ── */
.news-page .dir-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.news-page .dir-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: #fff;
  transition: all 0.12s;
}

.news-page .dir-page-link:hover {
  border-color: var(--border-active);
  color: var(--accent);
}

.news-page .dir-page-link.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.news-page .dir-page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Filter badge ── */
.news-page .filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-card-active);
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.news-page .filter-badge a {
  color: var(--accent);
  text-decoration: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

/* ── Article body + section cards ── */
.news-page .dir-article-body {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.news-page .dir-section {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.news-page .dir-section-head {
  margin-bottom: 0.75rem;
}

.news-page .dir-section-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.news-page .dir-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Filter badge lives inside a section — keep it flush */
.news-page .dir-section:has(.filter-badge) {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.75rem;
}

/* ── Sidebar ── */
.news-page .dir-sidebar {
  gap: 1.25rem;
}

.news-page .brand-sidebar-ad {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.news-page .brand-sidebar-ad:hover {
  border-color: var(--border-active);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.news-page .brand-sidebar-ad img {
  width: 100%;
  height: auto;
  display: block;
}

.news-page .dir-sidebar-section {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.news-page .dir-sidebar-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.news-page .dir-sidebar-article {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
}

.news-page .dir-sidebar-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-page .dir-sidebar-article:first-child {
  padding-top: 0;
}

.news-page .dir-sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.news-page .dir-sidebar-article:hover .dir-sidebar-title {
  color: var(--accent);
}

.news-page .dir-sidebar-summary {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .dir-sidebar-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-page .dir-sidebar-empty {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.news-page .dir-sidebar-links {
  display: flex;
  flex-direction: column;
}

.news-page .dir-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.12s;
  min-height: 24px;
}

.news-page .dir-sidebar-link:last-child {
  border-bottom: none;
}

.news-page .dir-sidebar-link:hover {
  color: var(--accent);
}

.news-page .dir-sidebar-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.news-page .dir-sidebar-cta {
  background: linear-gradient(135deg, rgba(248,249,252,.92) 0%, rgba(255,255,255,.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.news-page .dir-sidebar-cta h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.news-page .dir-sidebar-cta p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

.news-page .dir-sidebar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.news-page .dir-sidebar-btn:hover {
  background: var(--accent-light);
}

/* ── Article detail ── */
.news-page .dir-article-banner {
  margin: 0 0 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-page .dir-article-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.news-page .dir-article-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.news-page .dir-article-body p {
  margin-bottom: 1.25rem;
}

.news-page .dir-article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.news-page .dir-article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-primary);
}

.news-page .dir-article-body ul,
.news-page .dir-article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.news-page .dir-article-body li {
  margin-bottom: 0.5rem;
}

.news-page .dir-article-body a {
  color: var(--accent);
  text-decoration: underline;
}

.news-page .dir-article-body img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  display: block;
}

.news-page .dir-article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── Empty state ── */
.news-page .empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .news-hero {
    min-height: auto;
    padding: 2rem 1rem !important;
  }
  .news-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .news-hero-text {
    flex: 1 1 100%;
    width: 100%;
    padding: 1.5rem;
  }
  .news-hero-text h1 {
    font-size: 1.75rem;
  }
  .news-hero-image {
    display: none;
  }
}

@media (max-width: 640px) {
  .news-hero-text {
    padding: 1.25rem;
  }
  .news-hero-text h1 {
    font-size: 1.5rem;
  }
  .news-hero-subtitle {
    font-size: 0.9375rem;
  }
  .news-page .dir-info-card {
    flex-direction: column;
  }
  .news-page .dir-card-image-link {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .news-page .dir-card-body {
    padding: 0.875rem 1rem;
  }
  .news-page .dir-card-title {
    font-size: 1rem;
  }
  .news-page .dir-sidebar-section {
    padding: 1rem;
  }
}
