/* =========================================================
   Home (Entry Screen)
   ========================================================= */
.entry-page {
  --ink: #0b1220;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --line: #e6ebf2;
  --card-border: rgba(15, 23, 42, 0.07);
  --radius-lg: 18px;
  --radius-md: 12px;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(59, 130, 246, 0.12), transparent 62%),
    radial-gradient(760px 520px at -8% 112%, rgba(15, 23, 42, 0.07), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f8 55%, #e7edf5 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
}

.entry-wrap {
  width: 100%;
  max-width: 1180px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(18px, 4vw, 48px) clamp(16px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
}

.entry-grid {
  width: 100%;
  margin-block: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    'text image'
    'text button';
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: clamp(18px, 2.4vw, 26px);
  align-items: center;
  justify-items: stretch;
  text-align: left;
}

/* ---------- Left column: welcome + research details ---------- */
.entry-text-col {
  grid-area: text;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.entry-welcome-text {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(0.95rem, 1.1vw, 1.06rem);
  color: #334155;
  line-height: 1.8;
  letter-spacing: 0.1px;
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  animation: entryFadeIn 0.8s ease both;
  overflow-wrap: break-word;
}

.entry-welcome-text strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.entry-info-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.entry-info-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.entry-info-heading::before {
  content: '';
  flex: 0 0 auto;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827, #64748b);
}

.entry-text-col .research-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.entry-text-col .research-info-table tr {
  border-bottom: 1px solid var(--line);
}

.entry-text-col .research-info-table tr:last-child {
  border-bottom: 0;
}

.entry-text-col .research-info-table td {
  padding: 10px 0;
  vertical-align: top;
  font-size: 0.82rem;
  line-height: 1.55;
}

.entry-text-col .research-info-table td:first-child {
  width: 40%;
  padding-right: 16px;
  color: var(--muted);
  font-weight: 600;
}

.entry-text-col .research-info-table td:last-child {
  color: var(--ink-soft);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---------- Right column: posters ---------- */
.entry-image-col {
  grid-area: image;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.entry-picture {
  display: block;
  width: 100%;
  line-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.entry-picture:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.entry-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- Enter button ---------- */
.entry-button-col {
  grid-area: button;
  width: 100%;
  min-width: 0;
  align-self: start;
  display: flex;
  justify-content: center;
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 14px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-enter:hover {
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

.btn-enter:active {
  transform: translateY(0);
}

.btn-enter:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.btn-enter span[aria-hidden='true'] {
  font-size: 1.1em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-enter:hover span[aria-hidden='true'] {
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.entry-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: clamp(18px, 3vh, 30px);
  font-size: 0.78rem;
  color: #7a8699;
  letter-spacing: 0.04em;
  text-align: center;
}

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px) {
  .entry-grid {
    column-gap: clamp(24px, 4vw, 40px);
  }
}

@media (max-width: 767px) {
  .entry-page {
    padding: 0;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .entry-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px 16px 24px;
  }

  .entry-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'text'
      'image'
      'button'
      'info';
    row-gap: 22px;
    column-gap: 0;
    justify-items: stretch;
    text-align: center;
  }

  .entry-text-col {
    display: contents;
  }

  .entry-intro {
    grid-area: text;
    align-self: stretch;
  }

  .entry-welcome-text {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(0.86rem, 3.2vw, 0.98rem);
    line-height: 1.7;
  }

  .entry-welcome-text strong {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
    margin-bottom: 10px;
  }

  .entry-info-card {
    grid-area: info;
    align-self: stretch;
    padding: 16px;
    text-align: left;
  }

  .entry-info-heading {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .entry-text-col .research-info-table td {
    padding: 8px 0;
    font-size: 0.75rem;
  }

  .entry-text-col .research-info-table td:first-child {
    width: 42%;
    padding-right: 10px;
    font-size: 0.72rem;
  }

  .entry-image-col {
    width: 100%;
  }

  .entry-picture {
    border-radius: 10px;
  }

  .entry-button-col {
    align-self: stretch;
    justify-content: center;
  }

  .btn-enter {
    max-width: 360px;
    padding: 13px 20px;
  }

  .entry-footer {
    margin-top: 0;
    padding-top: 16px;
    font-size: 0.7rem;
  }
}
