/* ==========================================================================
   ANR BLOCKFI Website — Cleaned Stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --color-dark: #0f172a;
  --color-dark-alt: #1e293b;
  --color-light: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Text */
  --text-light: var(--color-light);
  --text-dark: var(--color-dark-alt);
  --text-muted: #64748b;
  --text-accent: #467CC2;
  --text-accent-hover: #60a5fa;

  /* Fonts */
  --font-display: 'Space Grotesk', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container-width: min(90rem, 90%);
}


/* Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-accent-hover);
}


/* Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  max-width: 80ch;
}


/* Layout Utilities
   ========================================================================== */

.container {
  width: var(--container-width);
  max-width: 80rem;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-accent);
  margin-bottom: 1rem;
  display: block;
}


/* Banner Section
   ========================================================================== */

.banner {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.banner__content {
  text-align: center;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  max-width: 60rem;
}

.banner__content img {
  margin: 0 auto;
}

.banner__title {
  margin: 4rem 0;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.banner__title span {
  display: block;
}

.banner__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.banner__logo {
  height: 150px;
  width: auto;
  opacity: 0.2;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.banner__logo:hover {
  opacity: 1;
}


/* About Section
   ========================================================================== */

.about {
  background: var(--color-light);
  padding: var(--section-padding) 2rem;
  position: relative;
  
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.about__grid {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.about__content .section-label {
  margin-bottom: 1rem;
}

.about__image {
  /* Offset to align with the first paragraph, below the section title */
  margin-top: 5.5rem;
}

.about__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: justify;
}

.about__meta {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__meta-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.about__meta-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.about__meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

.about__meta-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.about__meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.about__meta-value {
  font-weight: 600;
  color: var(--text-dark);
}


/* Members Section
   ========================================================================== */

.members {
  background: var(--color-dark-alt);
  padding: var(--section-padding) 2rem;
}

.members__header {
  text-align: center;
  margin-bottom: 4rem;
}

.members__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 25rem));
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.member-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.member-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.member-card:hover .member-card__photo {
  border-color: var(--text-accent);
}

.member-card__name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.member-card__name a {
  color: var(--text-dark);
}

.member-card__name a:hover {
  color: var(--text-accent);
}

.member-card__role {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* Publications Section
   ========================================================================== */

.publications {
  background: var(--color-dark);
  color: var(--text-light);
  padding: var(--section-padding) 2rem;
}

.publications__inner {
  max-width: 60rem;
  margin: 0 auto;
}

.pub-category {
  margin-bottom: 3rem;
}

.pub-category__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pub-item {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(59, 130, 246, 0.3);
  transition: border-color 0.3s ease;
}

.pub-item:hover {
  border-left-color: var(--text-accent);
}

.pub-item__content {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
}

.pub-item__link {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-accent);
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 0.25rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.pub-item__link:hover {
  background: var(--text-accent);
  color: #fff;
}


/* News Section
   ========================================================================== */

.news {
  background: var(--color-light);
  padding: var(--section-padding) 2rem;
}

.news__header {
  text-align: center;
  margin-bottom: 3rem;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 70rem;
  margin: 0 auto;
}

/* Base news card */
.news-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.news-card__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

.news-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.news-card__description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.news-card__slides {
  margin-top: auto;
  align-self: center;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(70, 124, 194, 0.35);
  border-radius: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.news-card__slides svg {
  width: 12px;
  height: 12px;
}

.news-card__slides:hover {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: #fff;
}

/* -----------------------------------------------------------------------
   Expandable card variant
   ----------------------------------------------------------------------- */

.news-card--expandable {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2rem;
  align-items: center;
}

.news-card--expandable .news-card__date,
.news-card--expandable .news-card__title,
.news-card--expandable .news-card__description {
  grid-column: 1;
}

.news-card--expandable .news-card__toggle {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  margin-top: 0;
}

.news-card--expandable .news-card__program {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* Toggle button */
.news-card__toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-accent);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  align-self: start;
}

.news-card__toggle:hover {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: #fff;
}

.news-card__toggle-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotate chevron when open */
[data-expanded="true"] .news-card__toggle-icon {
  transform: rotate(180deg);
}

/* Expandable panel */
.news-card__program {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

[data-expanded="true"] .news-card__program {
  grid-template-rows: 1fr;
  margin-top: 1.5rem;
}

/* Inner wrapper needed for grid-template-rows trick */
.news-card__program > .program {
  overflow: hidden;
  min-height: 0;
}


/* -----------------------------------------------------------------------
   Programme layout
   ----------------------------------------------------------------------- */

.program {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1.5rem;
}

/* Session block */
.program__session {
  margin-bottom: 2rem;
}

.program__session:last-child {
  margin-bottom: 0;
}

.program__session-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border-light);
  flex-wrap: wrap;
}

.program__session-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-accent);
  white-space: nowrap;
}

.program__session-theme {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Talks list */
.program__talks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual talk */
.program__talk {
  background: var(--color-border-light);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(70, 124, 194, 0.25);
  transition: border-left-color 0.25s ease;
}

.program__talk:hover {
  border-left-color: var(--text-accent);
}

/* Meta row: time | speaker | slides */
.program__talk-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.program__talk-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.program__talk-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.program__talk-speaker {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.program__talk-affil {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.2;
}

/* Slides badge */
.program__talk-slides {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(70, 124, 194, 0.35);
  border-radius: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.program__talk-slides svg {
  width: 12px;
  height: 12px;
}

.program__talk-slides:hover {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: #fff;
}

/* Talk title & abstract */
.program__talk-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  max-width: none;
  line-height: 1.4;
}

.program__talk-abstract {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}


/* Footer
   ========================================================================== */

.footer {
  background: var(--color-dark);
  color: var(--text-light);
  padding: 3rem 2rem;
  text-align: center;
}


/* Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__image {
    order: -1;
  }

  .banner__logos {
    gap: 2rem;
  }

  .banner__logo {
    height: 70px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 3rem;
  }

  .banner {
    min-height: auto;
    padding: 6rem 1.5rem;
  }

  .banner__logo {
    height: 50px;
  }

  .about__image {
    margin-top: 0;
  }
}
