/**
 * page-news-events.css
 *
 * Scoped styles for template-news-events.php at /news/
 * All selectors are prefixed with .ne- or scoped to .ne-hero / .ne-news /
 * .ne-events / .ne-announcements / .ne-media so nothing bleeds into main.css.
 *
 * Assumes the following CSS custom properties are defined in main.css:
 *   --black, --black-2, --black-3
 *   --silver, --silver-light, --silver-dark, --silver-grad
 *   --white
 *   --serif, --sans
 *
 * @package psi-sigma-phi
 * @since   3.2
 */


/* ==========================================================================
   PAGE HERO
   ========================================================================== */

.ne-hero {
  background: var(--black);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 184, 184, 0.1);
}

/* Subtle radial glow overlays */
.ne-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(184, 184, 184, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(184, 184, 184, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* Large watermark Greek letters */
.ne-hero::after {
  content: "ΨΣΦ";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 320px;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -10px;
}

.ne-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.ne-hero-copy {
  max-width: 660px;
}

/* Visually hidden SEO H1 */
.ne-hero .seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible display headline */
.ne-hero-headline {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 72px);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.ne-hero-headline .italic {
  font-style: italic;
  font-weight: 500;
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ne-hero-lead {
  font-size: 17px;
  color: var(--silver-light);
  line-height: 1.7;
  max-width: 540px;
  font-weight: 300;
  margin-bottom: 40px;
}

/* Hero meta — next event / latest story stats */
.ne-hero-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
  padding-bottom: 4px;
}

.ne-meta-group .ne-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--silver-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.ne-meta-group .ne-meta-value {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--silver-light);
  font-style: italic;
  font-weight: 500;
}


/* ==========================================================================
   SCROLL-TO PILL NAV
   ========================================================================== */

.ne-pills {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.ne-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid rgba(184, 184, 184, 0.25);
  color: var(--silver);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ne-pill:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.ne-pill.active {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}


/* ==========================================================================
   SHARED SECTION HEADER (heading + view-all link row)
   ========================================================================== */

.ne-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
}

.ne-section-header h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  color: var(--white);
  line-height: 1.02;
  font-weight: 800;
}

.ne-section-header h2 .italic {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}

.ne-view-all {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(184, 184, 184, 0.3);
  padding-bottom: 4px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
  white-space: nowrap;
}

.ne-view-all:hover {
  color: var(--white);
  border-color: var(--white);
  gap: 14px;
}


/* ==========================================================================
   LATEST NEWS SECTION
   ========================================================================== */

.ne-news {
  padding: 100px 0;
  background: var(--black-2);
  border-bottom: 1px solid rgba(184, 184, 184, 0.08);
}

/* Grid: 1 featured (wider) + up to 3 standard columns */
.ne-news-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(184, 184, 184, 0.12);
  border: 1px solid rgba(184, 184, 184, 0.12);
}

/* Base card */
.ne-news-card {
  background: var(--black-3);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.ne-news-card:hover {
  background: var(--black-2);
}

/* Featured card overrides */
.ne-news-card.featured {
  padding: 44px 40px;
}

.ne-news-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--silver-grad);
}

/* Category tag pill */
.ne-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: rgba(184, 184, 184, 0.12);
  color: var(--silver-light);
  margin-bottom: 22px;
  border: 1px solid rgba(184, 184, 184, 0.15);
}

.ne-news-card.featured .ne-card-tag {
  background: var(--white);
  color: var(--black);
  border: none;
}

/* Card headings */
.ne-news-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.22;
  font-weight: 700;
}

.ne-news-card.featured h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  margin-bottom: 20px;
}

/* Excerpt */
.ne-card-excerpt {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
  font-weight: 300;
}

.ne-news-card.featured .ne-card-excerpt {
  font-size: 14px;
}

/* Card footer: date + read link */
.ne-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(184, 184, 184, 0.15);
  padding-top: 16px;
  margin-top: auto;
  gap: 12px;
}

.ne-card-date {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--silver-dark);
  text-transform: uppercase;
  font-weight: 600;
}

.ne-card-read {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}

.ne-news-card:hover .ne-card-read {
  color: var(--white);
  gap: 10px;
}


/* ==========================================================================
   UPCOMING EVENTS SECTION
   ========================================================================== */

.ne-events {
  padding: 100px 0;
  background: var(--black);
  border-bottom: 1px solid rgba(184, 184, 184, 0.08);
}

/* Featured event: two-column card */
.ne-featured-event {
  background: var(--black-2);
  border: 1px solid rgba(184, 184, 184, 0.15);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  position: relative;
  overflow: hidden;
}

/* Left accent bar */
.ne-featured-event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--silver-grad);
}

/* Date column */
.ne-fe-date-col {
  background: var(--black);
  border-right: 1px solid rgba(184, 184, 184, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  text-align: center;
  gap: 4px;
}

.ne-fe-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 5px 14px;
  margin-bottom: 28px;
}

.ne-fe-month {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.ne-fe-day {
  font-family: var(--serif);
  font-size: clamp(76px, 8vw, 104px);
  font-weight: 800;
  line-height: 1;
  margin: 4px 0;
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  display: block;
}

.ne-fe-year {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--silver-dark);
  text-transform: uppercase;
}

.ne-fe-dow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--silver-light);
  margin-top: 10px;
  font-weight: 500;
}

/* Info column */
.ne-fe-info {
  padding: 52px 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ne-fe-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
}

/* Detail rows (time, venue, about) */
.ne-fe-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.ne-fe-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ne-fe-detail-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(184, 184, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-light);
  margin-top: 1px;
}

.ne-fe-detail-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ne-fe-detail-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
}

.ne-fe-detail-value {
  font-size: 14px;
  color: var(--silver-light);
  line-height: 1.45;
  font-weight: 400;
}

.ne-fe-detail-value a {
  color: var(--silver-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ne-fe-detail-value a:hover {
  color: var(--white);
}

/* CTA button row */
.ne-fe-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* "More upcoming events" label above the list */
.ne-more-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ne-more-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(184, 184, 184, 0.15);
}

/* Event list rows */
.ne-event-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(184, 184, 184, 0.1);
  border: 1px solid rgba(184, 184, 184, 0.1);
}

.ne-event-row {
  background: var(--black-2);
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  padding: 22px 28px;
  gap: 28px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.ne-event-row:hover {
  background: var(--black-3);
}

/* Date block within row */
.ne-er-date {
  text-align: center;
  border-right: 1px solid rgba(184, 184, 184, 0.15);
  padding-right: 24px;
}

.ne-er-month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
}

.ne-er-day {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: block;
  margin: 2px 0;
}

.ne-er-year {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--silver-dark);
  display: block;
  font-weight: 500;
  text-transform: uppercase;
}

/* Event info within row */
.ne-er-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ne-er-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.ne-er-meta {
  font-size: 12px;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 300;
}

.ne-er-meta-sep {
  opacity: 0.4;
}

.ne-er-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: rgba(184, 184, 184, 0.12);
  color: var(--silver-light);
  align-self: flex-start;
  margin-top: 6px;
  border: 1px solid rgba(184, 184, 184, 0.15);
}

/* Row CTA label */
.ne-er-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s, gap 0.2s;
  white-space: nowrap;
}

.ne-event-row:hover .ne-er-action {
  color: var(--white);
  gap: 10px;
}


/* ==========================================================================
   PUBLIC ANNOUNCEMENTS SECTION
   ========================================================================== */

.ne-announcements {
  padding: 80px 0 100px;
  background: var(--black-2);
  border-bottom: 1px solid rgba(184, 184, 184, 0.08);
}

.ne-ann-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(184, 184, 184, 0.15);
}

.ne-ann-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(184, 184, 184, 0.15);
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 28px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, padding 0.2s;
  cursor: pointer;
}

.ne-ann-item:hover {
  background: rgba(184, 184, 184, 0.02);
  padding-left: 12px;
  padding-right: 12px;
}

.ne-ann-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--silver);
  letter-spacing: 0.02em;
}

.ne-ann-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.ne-ann-action {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}

.ne-ann-item:hover .ne-ann-action {
  color: var(--white);
  gap: 10px;
}


/* ==========================================================================
   MEDIA CENTER CALLOUT SECTION
   ========================================================================== */

.ne-media {
  padding: 72px 0;
  background: var(--black);
  border-bottom: 1px solid rgba(184, 184, 184, 0.08);
}

.ne-media-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.ne-media-copy h3 {
  font-size: 28px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
  font-weight: 700;
  font-family: var(--serif);
}

.ne-media-copy h3 .italic {
  font-style: italic;
  font-weight: 500;
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ne-media-copy p {
  font-size: 14px;
  color: var(--silver);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 300;
}

/* Chip cluster */
.ne-media-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ne-media-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid rgba(184, 184, 184, 0.2);
  font-size: 12px;
  color: var(--silver-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ne-media-chip:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.ne-media-chip svg {
  width: 15px;
  height: 15px;
  color: var(--silver);
  transition: color 0.2s;
  flex-shrink: 0;
}

.ne-media-chip:hover svg {
  color: var(--white);
}


/* ==========================================================================
   SCROLL REVEAL ANIMATION
   Driven by news-events.js — IntersectionObserver adds .visible
   ========================================================================== */

.ne-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ne-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ne-reveal-d1 { transition-delay: 0.1s; }
.ne-reveal-d2 { transition-delay: 0.2s; }
.ne-reveal-d3 { transition-delay: 0.3s; }


/* ==========================================================================
   RESPONSIVE — TABLET  (max 1100px)
   ========================================================================== */

@media (max-width: 1100px) {
  /* Hero */
  .ne-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .ne-hero-meta {
    text-align: left;
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
  }

  /* News grid collapses to 2-up, featured spans both */
  .ne-news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ne-news-card.featured {
    grid-column: span 2;
  }

  /* Featured event stacks vertically */
  .ne-featured-event {
    grid-template-columns: 1fr;
  }

  .ne-fe-date-col {
    border-right: none;
    border-bottom: 1px solid rgba(184, 184, 184, 0.12);
    padding: 36px 24px;
  }

  .ne-fe-info {
    padding: 36px 32px;
  }

  /* Media callout stacks */
  .ne-media-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}


/* ==========================================================================
   RESPONSIVE — MOBILE  (max 900px)
   ========================================================================== */

@media (max-width: 900px) {
  /* Hero */
  .ne-hero {
    padding: 56px 0 48px;
  }

  .ne-hero::after {
    font-size: 180px;
    right: -40px;
  }

  .ne-hero-headline {
    font-size: clamp(36px, 9vw, 56px);
  }

  .ne-pills {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ne-pill {
    padding: 9px 16px;
    font-size: 10px;
  }

  /* News */
  .ne-news {
    padding: 64px 0;
  }

  .ne-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ne-news-grid {
    grid-template-columns: 1fr;
  }

  .ne-news-card.featured {
    grid-column: auto;
  }

  /* Events */
  .ne-events {
    padding: 64px 0;
  }

  .ne-fe-info {
    padding: 28px 24px;
  }

  .ne-fe-day {
    font-size: 72px;
  }

  /* Event list rows go single-column on mobile */
  .ne-event-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 22px;
  }

  .ne-er-date {
    border-right: none;
    padding-right: 0;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  /* Announcements */
  .ne-announcements {
    padding: 56px 0 72px;
  }

  .ne-ann-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .ne-ann-action {
    margin-top: 4px;
  }

  .ne-ann-item:hover {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Media callout */
  .ne-media {
    padding: 56px 0;
  }

  .ne-media-chips {
    gap: 8px;
  }

  .ne-media-chip {
    padding: 9px 14px;
    font-size: 11px;
  }
}