/* ============================================
   ECH Myanmar — News Page Styles
   Apple-Style Premium · No decorative emoji
   ============================================ */

/* ══ PAGE HERO ══ */
.news-hero {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%,   rgba(0,113,227,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(0,113,227,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.news-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue, #0071e3);
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.news-hero .eyebrow::before,
.news-hero .eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue, #0071e3);
  opacity: 0.4;
}
.news-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.news-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #0071e3, #34aadc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.news-hero p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.news-stats {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.news-stat {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.news-stat:last-child { border-right: none; }
.news-stat strong { color: var(--blue, #0071e3); }

/* Stat dot accent */
.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue, #0071e3);
  flex-shrink: 0;
}
.stat-dot.green  { background: #34c759; }
.stat-dot.orange { background: #ff9500; }

/* ══ PINNED / FEATURED ══ */
.pinned-card {
  display: grid;
  grid-template-columns: 1fr 340px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,113,227,0.18);
  box-shadow: 0 8px 40px rgba(0,0,0,0.09);
  margin-bottom: 2rem;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s;
}
.pinned-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 56px rgba(0,0,0,0.12);
}
.pinned-body { padding: 2.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.pinned-flags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.flag-pin {
  background: rgba(255,159,10,0.1);
  border: 1px solid rgba(255,159,10,0.3);
  color: #b86e00;
}
.flag-pin::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff9500;
  flex-shrink: 0;
}
.flag-upcoming {
  background: rgba(52,199,89,0.08);
  border: 1px solid rgba(52,199,89,0.25);
  color: #1a8c3a;
}
.flag-upcoming::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}
.pinned-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.pinned-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.pinned-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.pinned-event-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: rgba(0,113,227,0.05);
  border: 1px solid rgba(0,113,227,0.12);
  border-radius: 14px;
}
.event-detail {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.event-detail svg {
  width: 14px;
  height: 14px;
  fill: var(--blue, #0071e3);
  flex-shrink: 0;
}
.pinned-side {
  background: linear-gradient(160deg, #0071e3 0%, #34aadc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}
.pinned-side::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -60px;
  right: -60px;
}
.pinned-side::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -40px;
  left: -30px;
}
.event-countdown {
  position: relative;
  z-index: 1;
  text-align: center;
}
.countdown-number {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.04em;
}
.countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.event-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-top: 0.5rem;
}
.event-cta-btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.5);
}
.event-cta-btn svg { width: 14px; height: 14px; fill: white; }

/* ══ FILTER BAR ══ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.filter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.48rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.72);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  font-family: var(--font);
  letter-spacing: 0.01em;
}
.filter-btn:hover {
  background: var(--blue-light, rgba(0,113,227,0.1));
  border-color: var(--blue-border, rgba(0,113,227,0.25));
  color: var(--blue, #0071e3);
}
.filter-btn.active {
  background: var(--blue, #0071e3);
  border-color: var(--blue, #0071e3);
  color: white;
  box-shadow: 0 4px 14px rgba(0,113,227,0.28);
}
.news-total {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.news-total span { color: var(--blue, #0071e3); font-weight: 700; }

/* ══ NEWS GRID ══ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.n-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s;
  cursor: default;
}
.n-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}
.n-card.hidden { display: none; }

/* Category chip — text only, no emoji */
.n-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  width: fit-content;
}
.n-chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-milestone  { background:rgba(0,113,227,0.08); border:1px solid rgba(0,113,227,0.2);  color:#0060c7; }
.chip-milestone::before  { background:#0071e3; }
.chip-recap      { background:rgba(52,170,220,0.08);border:1px solid rgba(52,170,220,0.22); color:#1a6a9e; }
.chip-recap::before      { background:#34aadc; }
.chip-feature    { background:rgba(52,199,89,0.08); border:1px solid rgba(52,199,89,0.22);  color:#1a8c3a; }
.chip-feature::before    { background:#34c759; }
.chip-expansion  { background:rgba(175,82,222,0.08);border:1px solid rgba(175,82,222,0.2);  color:#6b2d8f; }
.chip-expansion::before  { background:#af52de; }
.chip-website    { background:rgba(255,159,10,0.08);border:1px solid rgba(255,159,10,0.25); color:#b86e00; }
.chip-website::before    { background:#ff9500; }
.chip-partnership{ background:rgba(255,69,58,0.08); border:1px solid rgba(255,69,58,0.2);   color:#c0392b; }
.chip-partnership::before{ background:#ff3b30; }
.chip-contest    { background:rgba(0,113,227,0.08); border:1px solid rgba(0,113,227,0.2);   color:#0060c7; }
.chip-contest::before    { background:#0071e3; }
.chip-goals      { background:rgba(52,199,89,0.08); border:1px solid rgba(52,199,89,0.22);  color:#1a8c3a; }
.chip-goals::before      { background:#34c759; }

.n-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.n-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.n-body {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.n-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: auto;
}
.n-read {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue, #0071e3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
  cursor: pointer;
}
.n-card:hover .n-read { gap: 0.5rem; }
.n-read svg { width: 12px; height: 12px; fill: var(--blue, #0071e3); }

/* ══ NEWS MODAL ══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: mFadeIn 0.18s ease;
}
.modal-overlay.open { display: flex; }
@keyframes mFadeIn { from { opacity:0; } to { opacity:1; } }

.modal-box {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.32);
  animation: mSlideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes mSlideUp {
  from { transform: translateY(36px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}
.modal-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  font-family: var(--font);
}
.modal-close svg { width: 12px; height: 12px; fill: var(--text-muted); }
.modal-close:hover { background: rgba(255,59,48,0.1); }
.modal-close:hover svg { fill: #ff3b30; }
.modal-body { padding: 2rem 1.75rem 2.25rem; }
.modal-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}
.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.modal-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  white-space: pre-line;
}

/* ══ NEWSLETTER CTA ══ */
.news-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  flex-wrap: wrap;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,113,227,0.07), rgba(52,170,220,0.05));
  border: 1px solid rgba(0,113,227,0.16);
}
.news-cta h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.news-cta p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.65;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .news-grid   { grid-template-columns: repeat(2, 1fr); }
  .pinned-card { grid-template-columns: 1fr; }
  .pinned-side { min-height: 180px; flex-direction: row; gap: 2rem; justify-content: center; padding: 1.75rem 2rem; }
}
@media (max-width: 640px) {
  .news-grid   { grid-template-columns: 1fr; }
  .filter-bar  { flex-direction: column; align-items: flex-start; }
  .news-cta    { flex-direction: column; text-align: center; }
  .news-cta p  { max-width: 100%; }
  .news-stats  { flex-direction: column; border-radius: 16px; }
  .news-stat   { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.07); width: 100%; justify-content: center; }
  .news-stat:last-child { border-bottom: none; }
  .modal-box   { max-height: 92vh; border-radius: 20px; }
  .modal-body  { padding: 1.5rem 1.25rem 1.75rem; }
  .pinned-body { padding: 1.75rem 1.5rem; }
  .pinned-event-row { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .pinned-side { flex-direction: column; gap: 0.75rem; }
}
.brand-logo {
  height: 40px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 8px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  line-height: 1;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}