/* =============================================================================
   WeDaita News & Updates — Brand-aligned design
   Colours: navy #10284e · teal #30CAA0 · gold #B8963A
   ============================================================================= */

:root {
  --wn-navy:      #10284e;
  --wn-navy-deep: #0F1F3D;
  --wn-teal:      #30CAA0;
  --wn-teal-dim:  rgba(48,202,160,0.12);
  --wn-gold:      #B8963A;
  --wn-border:    #e4e8ef;
  --wn-text:      #1a2a3a;
  --wn-muted:     #6b7a8d;
  --wn-bg:        #f7f9fc;
  --wn-white:     #ffffff;
  --wn-radius:    10px;
  --wn-radius-lg: 14px;
}

/* ---- HERO ---- */
.wn-hero {
  background: linear-gradient(135deg, var(--wn-navy-deep) 0%, var(--wn-navy) 100%);
  padding: 5rem 2rem 4rem;
  margin-top: -60px;
  padding-top: calc(5rem + 60px);
  position: relative;
  overflow: hidden;
}

.wn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path d="M 80 0 L 0 0 0 80" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></svg>') repeat;
  background-size: 80px 80px;
}

.wn-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--wn-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.wn-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.wn-hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wn-teal);
  background: rgba(48,202,160,0.12);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.wn-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.wn-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.wn-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.wn-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--wn-radius);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.wn-btn-ghost {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}
.wn-btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; text-decoration: none; }
.wn-btn-teal {
  background: var(--wn-teal);
  color: var(--wn-navy-deep);
}
.wn-btn-teal:hover { background: #28b890; color: var(--wn-navy-deep); text-decoration: none; transform: translateY(-1px); }

/* ---- CONTENT WRAPPER ---- */
.wn-content {
  background: var(--wn-bg);
  padding: 2.5rem 2rem 5rem;
}

.wn-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- SEARCH ---- */
.wn-search { margin-bottom: 2rem; }

.wn-search-inner {
  display: flex;
  align-items: center;
  background: var(--wn-white);
  border: 1.5px solid var(--wn-border);
  border-radius: var(--wn-radius-lg);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wn-search-inner:focus-within {
  border-color: var(--wn-teal);
  box-shadow: 0 0 0 3px rgba(48,202,160,0.12);
}

.wn-search-icon { color: var(--wn-muted); font-size: 0.9rem; flex-shrink: 0; }

.wn-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--wn-text);
}

.wn-search-clear {
  color: var(--wn-muted);
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
  text-decoration: none;
}
.wn-search-clear:hover { color: var(--wn-text); }

.wn-search-btn {
  background: var(--wn-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.wn-search-btn:hover { background: var(--wn-navy-deep); }

.wn-search-label { font-size: 0.9rem; color: var(--wn-muted); margin-bottom: 1.5rem; }
.wn-search-label a { color: var(--wn-teal); text-decoration: none; }

/* ---- FEATURED ARTICLE ---- */
.wn-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--wn-white);
  border: 1px solid var(--wn-border);
  border-radius: var(--wn-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s, transform 0.25s;
  border-left: 3px solid var(--wn-teal);
}

.wn-featured:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.wn-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.wn-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.wn-featured:hover .wn-featured-img img { transform: scale(1.03); }

.wn-featured-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: var(--wn-teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--wn-teal);
  opacity: 0.5;
}

.wn-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wn-featured-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--wn-teal-dim);
  color: var(--wn-teal);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  width: fit-content;
}

.wn-featured-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--wn-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.wn-featured-summary {
  font-size: 0.95rem;
  color: var(--wn-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.wn-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--wn-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--wn-border);
}

.wn-featured-meta i { margin-right: 0.3rem; }

.wn-featured-cta {
  font-weight: 700;
  color: var(--wn-teal);
  font-size: 0.85rem;
}

.wn-featured-cta i { margin-left: 0.25rem; transition: transform 0.2s; }
.wn-featured:hover .wn-featured-cta i { transform: translateX(3px); }

/* ---- ARTICLE GRID ---- */
.wn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* ---- ARTICLE CARD ---- */
.wn-card {
  background: var(--wn-white);
  border: 1px solid var(--wn-border);
  border-radius: var(--wn-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.wn-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
  border-color: rgba(48,202,160,0.4);
  text-decoration: none;
  color: inherit;
}

.wn-card-img {
  position: relative;
  overflow: hidden;
  height: 180px;
  flex-shrink: 0;
}

.wn-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wn-card:hover .wn-card-img img { transform: scale(1.04); }

.wn-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--wn-teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--wn-teal);
  opacity: 0.45;
}

.wn-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wn-card-meta {
  font-size: 0.76rem;
  color: var(--wn-muted);
  margin-bottom: 0.6rem;
}

.wn-card-meta i { margin-right: 0.25rem; color: var(--wn-teal); }

.wn-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wn-text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.wn-card-summary {
  font-size: 0.85rem;
  color: var(--wn-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.wn-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wn-teal);
  margin-top: auto;
}

.wn-card-cta i { margin-left: 0.2rem; transition: transform 0.2s; }
.wn-card:hover .wn-card-cta i { transform: translateX(3px); }

/* ---- PAGINATION ---- */
.wn-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wn-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--wn-border);
  background: var(--wn-white);
  color: var(--wn-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.wn-page-btn:hover, .wn-page-btn.active {
  background: var(--wn-navy);
  border-color: var(--wn-navy);
  color: #fff;
  text-decoration: none;
}

/* ---- EMPTY STATE ---- */
.wn-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--wn-white);
  border: 1px solid var(--wn-border);
  border-radius: var(--wn-radius-lg);
}

.wn-empty-icon {
  font-size: 3rem;
  color: var(--wn-teal);
  opacity: 0.35;
  margin-bottom: 1.5rem;
  display: block;
}

.wn-empty h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wn-text);
  margin-bottom: 0.75rem;
}

.wn-empty p {
  font-size: 0.95rem;
  color: var(--wn-muted);
  max-width: 420px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .wn-grid { grid-template-columns: repeat(2, 1fr); }
  .wn-featured { grid-template-columns: 1fr; }
  .wn-featured-img { min-height: 220px; }
}

@media (max-width: 640px) {
  .wn-hero-title { font-size: 2rem; }
  .wn-hero { padding: 3.5rem 1.25rem 3rem; padding-top: calc(3.5rem + 60px); }
  .wn-content { padding: 2rem 1.25rem 4rem; }
  .wn-grid { grid-template-columns: 1fr; }
  .wn-featured-body { padding: 1.5rem; }
  .wn-featured-title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
