:root {
  --en-red: #e60012;
  --en-red-dark: #9d000c;
  --en-ink: #111827;
  --en-muted: #667085;
  --en-soft: #f8fafc;
  --en-cream: #fff7ed;
  --en-line: #e5e7eb;
  --en-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

body {
  background: #fff;
  color: var(--en-ink);
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body .header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header .navbar {
  background: transparent !important;
  min-height: 78px;
  padding: 0;
}

.header .navbar .container {
  gap: 20px;
}

.header .navbar-brand {
  align-items: center;
  color: var(--en-ink);
  display: inline-flex;
  font-size: 24px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 0;
  text-decoration: none;
}

.header .navbar-brand:hover {
  color: var(--en-ink);
}

.header .brand-mark {
  background: linear-gradient(135deg, var(--en-red), var(--en-red-dark));
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(230, 0, 18, 0.25);
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-size: 18px;
  height: 48px;
  place-items: center;
  transform: skew(-8deg);
  width: 48px;
}

.header .navbar-toggler {
  border-color: var(--en-line);
}

.header .navbar-toggler-icon {
  filter: invert(1);
}

.header .navbar-collapse {
  background: transparent;
}

.header .navbar-nav {
  align-items: center;
  gap: 12px;
}

.header .navbar-nav .nav-link {
  color: #303442;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 8px;
}

.header .navbar-nav .nav-link:hover,
.header .navbar-nav .nav-link.active {
  color: var(--en-red);
}

.header .btn-top,
.mobile-floating-join {
  background: var(--en-red);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(230, 0, 18, 0.25);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 22px;
}

.mobile-floating-join {
  display: none;
}

.events-page .events-list-hero,
.events-page .events-detail-hero {
  padding: 34px 0 30px;
}

.events-page .events-list-hero-inner {
  max-width: 760px;
}

.events-page .events-list-hero h1,
.events-page .events-detail-hero h1 {
  font-size: 52px;
  line-height: 1.02;
  margin-bottom: 14px;
}

.events-page .events-list-hero p,
.events-page .events-summary {
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 0;
}

.events-page .events-list-section,
.events-page .events-detail-body,
.events-page .events-section {
  padding: 38px 0;
}

.events-page .events-list-grid {
  gap: 18px;
}

.events-page .events-list-card {
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
}

.events-page .events-list-media {
  min-height: 220px;
}

.events-page .events-list-body {
  padding: 24px;
}

.events-page .events-list-body h2 {
  font-size: 28px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.events-page .events-list-body p {
  margin-bottom: 14px;
}

.events-page .events-list-meta,
.events-page .events-meta-strip {
  gap: 8px;
  margin-bottom: 14px;
}

.events-page .events-list-meta span,
.events-page .events-meta-strip span {
  font-size: 13px;
  padding: 7px 11px;
}

.events-page .events-list-actions,
.events-page .events-actions {
  gap: 10px;
  margin-top: 16px;
}

.events-page .events-detail-grid {
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.events-page .events-detail-media {
  aspect-ratio: 16 / 11;
}

.events-page .events-main-card,
.events-page .events-side-card,
.events-page .events-info-card,
.events-page .events-empty {
  padding: 24px;
}

.enepal-page {
  background: #fff;
  color: var(--en-ink);
  line-height: 1.5;
}

.enepal-page a {
  color: inherit;
  text-decoration: none;
}

.enepal-page .container {
  max-width: 1180px;
}

.enepal-page .eyebrow {
  align-items: center;
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  color: var(--en-red);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  padding: 8px 13px;
}

.enepal-page .button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  padding: 14px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.enepal-page .button:hover {
  transform: translateY(-2px);
}

.enepal-page .button.primary {
  background: var(--en-red);
  box-shadow: 0 14px 32px rgba(230, 0, 18, 0.25);
  color: #fff;
}

.enepal-page .button.dark {
  background: #111;
  color: #fff;
}

.enepal-page .button.light {
  background: #fff;
  border: 1px solid var(--en-line);
  color: #111;
}

.text-gold-gradient {
  background: none;
  color: var(--en-red);
  -webkit-text-fill-color: currentColor;
}

.btn-gold,
.btn-primary.btn-outline-gold,
.btn-outline-gold,
.btn-learn-more {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 26px;
  text-decoration: none;
}

.btn-gold,
.btn-primary.btn-outline-gold {
  background: var(--en-red);
  border: 1px solid var(--en-red);
  color: #fff;
}

.btn-gold:hover,
.btn-gold:focus,
.btn-primary.btn-outline-gold:hover,
.btn-primary.btn-outline-gold:focus {
  background: var(--en-red-dark);
  border-color: var(--en-red-dark);
  color: #fff;
}

.btn-outline-gold,
.btn-learn-more {
  background: #fff;
  border: 1px solid var(--en-line);
  color: var(--en-ink);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus,
.btn-learn-more:hover,
.btn-learn-more:focus {
  border-color: var(--en-red);
  color: var(--en-red);
}

.btn-primary .text-gold-gradient,
.btn-gold .text-gold-gradient,
.btn-outline-gold .text-gold-gradient,
.btn-primary.btn-outline-gold .text-gold-gradient {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.bg-dark-blue {
  background: #fff !important;
}

.section-title {
  color: var(--en-ink);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 16px;
}

.section-subtitle {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.65;
}

.cms-page-content {
  color: #374151;
  font-size: 17px;
  line-height: 1.75;
}

.cms-page-content h1,
.cms-page-content h2,
.cms-page-content h3,
.cms-page-content h4 {
  color: var(--en-ink);
  font-weight: 700;
  letter-spacing: 0;
  margin: 1.4em 0 0.65em;
}

.cms-page-content a {
  color: var(--en-red);
  font-weight: 700;
}

.cms-page-content img {
  border-radius: 8px;
  height: auto;
  max-width: 100%;
}

.enepal-page .section {
  padding: 82px 0;
}

.enepal-page .section.head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 34px;
  padding: 0;
}

.enepal-page .section.head h2 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: 680px;
}

.enepal-page .section.head p {
  color: var(--en-muted);
  font-size: 18px;
  margin: 0;
  max-width: 520px;
}

.enepal-page .hero {
  background: radial-gradient(circle at 15% 15%, #ffe6e8 0, #fff 31%, var(--en-soft) 100%);
  overflow: hidden;
  padding: 80px 0 64px;
  position: relative;
}

.enepal-page .hero::after {
  background: rgba(230, 0, 18, 0.08);
  border-radius: 50%;
  content: "";
  filter: blur(12px);
  height: 520px;
  position: absolute;
  right: -160px;
  top: 70px;
  width: 520px;
}

.enepal-page .hero .grid {
  align-items: center;
  background: transparent;
  display: grid;
  gap: 58px;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: visible;
  padding: 0;
  position: relative;
  z-index: 1;
}

.enepal-page .hero .grid::after {
  display: none;
}

.enepal-page .hero .content {
  background: transparent;
  overflow: visible;
  padding: 0;
}

.enepal-page .hero .content::after {
  display: none;
}

.enepal-page .hero .content h1 {
  font-size: 76px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 18px 0 20px;
}

.enepal-page .hero .content h1 span {
  color: var(--en-red);
}

.enepal-page .hero .content p {
  color: #4b5563;
  font-size: 21px;
  margin: 0 0 28px;
  max-width: 700px;
}

.enepal-page .hero .actions {
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
  overflow: visible;
  padding: 0;
}

.enepal-page .hero .actions::after {
  display: none;
}

.enepal-page .hero .proof-list {
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  overflow: visible;
  padding: 0;
}

.enepal-page .hero .proof-list::after {
  display: none;
}

.enepal-page .proof.item {
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.06);
  padding: 14px 18px;
}

.enepal-page .proof.item b {
  display: block;
  font-size: 22px;
}

.enepal-page .proof.item span {
  color: var(--en-muted);
  font-size: 13px;
  font-weight: 700;
}

.enepal-page .hero .panel {
  background: #111827;
  border-radius: 34px;
  box-shadow: var(--en-shadow);
  color: #fff;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.enepal-page .hero .panel::before {
  background: rgba(230, 0, 18, 0.38);
  border-radius: 50%;
  bottom: -110px;
  content: "";
  height: 290px;
  position: absolute;
  right: -80px;
  width: 290px;
}

.enepal-page .hero .panel::after {
  display: none;
}

.enepal-page .program.item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  margin-bottom: 14px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.enepal-page .program.item small {
  color: #fca5a5;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.enepal-page .program.item h2 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 8px 0;
}

.enepal-page .program.item p {
  color: #d1d5db;
  font-size: 15px;
  margin: 0;
}

.enepal-page .check.item {
  align-items: center;
  color: #e5e7eb;
  display: flex;
  font-weight: 700;
  gap: 10px;
  margin: 14px 0;
  position: relative;
  z-index: 1;
}

.enepal-page .check.item span,
.enepal-page .criterion.item span {
  background: var(--en-red);
  border-radius: 50%;
  color: #fff;
  display: grid;
  flex: 0 0 25px;
  font-size: 13px;
  height: 25px;
  place-items: center;
  width: 25px;
}

.enepal-page .feature.grid,
.enepal-page .events.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.enepal-page .feature.card,
.enepal-page .event.card {
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(17, 24, 39, 0.06);
  padding: 28px;
}

.enepal-page .feature.icon {
  background: #fff1f2;
  border-radius: 17px;
  color: var(--en-red);
  display: grid;
  font-size: 25px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  width: 54px;
}

.enepal-page .feature.card h3,
.enepal-page .event.body h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.enepal-page .feature.card p,
.enepal-page .event.body p {
  color: var(--en-muted);
  margin: 0;
}

.enepal-page .pathway.section {
  background: #111827;
  color: #fff;
}

.enepal-page .pathway.section .section.head p {
  color: #d1d5db;
}

.enepal-page .pathway.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.enepal-page .pathway.step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
}

.enepal-page .pathway.step span {
  background: var(--en-red);
  border-radius: 50%;
  display: grid;
  font-weight: 700;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  width: 38px;
}

.enepal-page .pathway.step h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 8px;
}

.enepal-page .pathway.step p {
  color: #d1d5db;
  margin: 0;
}

.enepal-page .leaders.layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 0.9fr 1.1fr;
}

.enepal-page .leaders.quote {
  background: var(--en-cream);
  border: 1px solid #fed7aa;
  border-radius: 32px;
  padding: 34px;
}

.enepal-page .leaders.quote h2,
.enepal-page .funding.content h2 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 16px 0 18px;
}

.enepal-page .leaders.quote p,
.enepal-page .funding.content p {
  color: #5f3b14;
  font-size: 18px;
  margin: 0 0 24px;
}

.enepal-page .leaders.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.enepal-page .leader.item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 22px;
  display: flex;
  gap: 16px;
  padding: 16px;
}

.enepal-page .leader.avatar {
  background: linear-gradient(135deg, #111827, #475467);
  border-radius: 18px;
  color: #fff;
  display: grid;
  flex: 0 0 58px;
  font-weight: 700;
  height: 58px;
  place-items: center;
  width: 58px;
}

.enepal-page .leader.item b {
  display: block;
}

.enepal-page .leader.item span {
  color: var(--en-muted);
  font-size: 14px;
}

.enepal-page .events.section {
  background: var(--en-soft);
  border-bottom: 1px solid var(--en-line);
  border-top: 1px solid var(--en-line);
}

.enepal-page .events.section .actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.enepal-page .event.card {
  overflow: hidden;
  padding: 0;
}

.enepal-page .event.top {
  background: linear-gradient(135deg, #111827, var(--en-red));
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 150px;
  justify-content: space-between;
  padding: 24px;
}

.enepal-page .event.top strong {
  font-size: 15px;
}

.enepal-page .event.top b {
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1;
}

.enepal-page .event.body {
  padding: 24px;
}

.enepal-page .event.body p {
  margin-bottom: 18px;
}

.enepal-page .event.body span {
  background: #f3f4f6;
  border-radius: 999px;
  color: #374151;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
}

.enepal-page .event.body h3 a {
  color: inherit;
}

.enepal-page .event.body .link {
  color: var(--en-red);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  margin-left: 12px;
}

.enepal-page .funding.section {
  background: linear-gradient(135deg, #fff1f2, #fff, var(--en-soft));
  border-bottom: 1px solid var(--en-line);
  border-top: 1px solid var(--en-line);
}

.enepal-page .funding.box {
  align-items: center;
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 36px;
  box-shadow: var(--en-shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: 1.05fr 0.95fr;
  padding: 38px;
}

.enepal-page .funding.content p {
  color: var(--en-muted);
}

.enepal-page .funding.criteria {
  display: grid;
  gap: 12px;
}

.enepal-page .criterion.item {
  align-items: start;
  background: #f9fafb;
  border: 1px solid var(--en-line);
  border-radius: 18px;
  display: flex;
  font-weight: 700;
  gap: 12px;
  padding: 16px;
}

.enepal-page .directory.note {
  align-items: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 28px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px;
}

.enepal-page .directory.content h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.enepal-page .directory.content p {
  color: var(--en-muted);
  margin: 0;
  max-width: 750px;
}

.enepal-page .newsletter.section {
  background:
    radial-gradient(circle at 78% 20%, rgba(230, 0, 18, 0.12), rgba(230, 0, 18, 0) 30%),
    linear-gradient(135deg, #fff, #f8fafc);
  border-top: 1px solid var(--en-line);
}

.enepal-page .newsletter.layout {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
}

.enepal-page .newsletter.content h2 {
  color: var(--en-ink);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 18px 0 16px;
  max-width: 720px;
}

.enepal-page .newsletter.content p {
  color: #4b5563;
  font-size: 19px;
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
}

.enepal-page .newsletter.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.enepal-page .newsletter.proof span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 999px;
  color: #374151;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  padding: 9px 13px;
}

.enepal-page .newsletter.proof i {
  color: var(--en-red);
}

.enepal-page .newsletter.form {
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 8px;
  box-shadow: var(--en-shadow);
  display: grid;
  gap: 16px;
  padding: 28px;
}

.enepal-page .newsletter.trap {
  left: -9999px;
  position: absolute;
}

.enepal-page .newsletter.field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.enepal-page .newsletter.field span {
  color: #303442;
  font-size: 14px;
  font-weight: 700;
}

.enepal-page .newsletter.field input {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: var(--en-ink);
  min-height: 52px;
  padding: 12px 14px;
  width: 100%;
}

.enepal-page .newsletter.field input::placeholder {
  color: #9ca3af;
}

.enepal-page .newsletter.field input:focus {
  background: #fff;
  border-color: rgba(230, 0, 18, 0.7);
  box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.12);
  outline: 0;
}

.enepal-page .newsletter.form .button {
  margin-top: 4px;
  width: 100%;
}

.enepal-page .newsletter.message {
  border-radius: 8px;
  display: none;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  padding: 12px 14px;
}

.enepal-page .newsletter.message.is-success,
.enepal-page .newsletter.message.is-error {
  display: block;
}

.enepal-page .newsletter.message.is-success {
  background: #ecfdf3;
  color: #15803d;
}

.enepal-page .newsletter.message.is-error {
  background: #fff1f2;
  color: #be123c;
}

.enepal-page .apply.section {
  background: #111827;
  color: #fff;
  padding: 90px 0;
  text-align: center;
}

.enepal-page .apply.section h2 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 auto 20px;
  max-width: 900px;
}

.enepal-page .apply.section p {
  color: #d1d5db;
  font-size: 19px;
  margin: 0 auto 32px;
  max-width: 680px;
}

.footer {
  background: #080b12;
  color: #9ca3af;
  padding: 34px 0;
}

.footer .nav {
  gap: 4px;
}

.footer .nav-link {
  color: #9ca3af;
}

.footer .nav-link:hover {
  color: #fff;
}

.auth-page {
  background:
    radial-gradient(circle at 16% 12%, rgba(230, 0, 18, 0.13), rgba(230, 0, 18, 0) 32%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  min-height: calc(100vh - 260px);
  padding: 74px 0 90px;
}

.auth-page .auth-panel {
  margin: 0 auto;
  width: min(100%, 560px);
}

.auth-page .auth-panel-register {
  width: min(100%, 780px);
}

.auth-page .auth-heading {
  margin-bottom: 28px;
  text-align: center;
}

.auth-page .auth-kicker {
  color: var(--en-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.auth-page .auth-heading h1 {
  color: var(--en-ink);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.auth-page .auth-heading p:not(.auth-kicker) {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.55;
  margin: 14px auto 0;
  max-width: 560px;
}

.auth-page .auth-card {
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  color: var(--en-ink);
  padding: 34px;
}

.auth-page .auth-card .alert {
  border-radius: 8px;
}

.auth-page .auth-form {
  display: grid;
  gap: 18px;
}

.auth-page .auth-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-page .auth-span-2 {
  grid-column: 1 / -1;
}

.auth-page .auth-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.auth-page .auth-field label,
.auth-page .auth-field > span {
  color: #303442;
  font-size: 14px;
  font-weight: 700;
}

.auth-page .auth-field em {
  color: var(--en-muted);
  font-style: normal;
  font-weight: 600;
}

.auth-page .auth-card .form-control {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: none;
  color: var(--en-ink);
  min-height: 52px;
}

.auth-page .auth-card .form-control::placeholder {
  color: #9ca3af;
}

.auth-page .auth-card .form-control:focus {
  background: #fff;
  border-color: rgba(230, 0, 18, 0.7);
  box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.12);
  color: var(--en-ink);
}

.auth-page .auth-options,
.auth-page .auth-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.auth-page .auth-card .form-check {
  align-items: center;
  color: #4b5563;
  display: flex;
  gap: 10px;
  margin: 0;
  min-height: 24px;
}

.auth-page .auth-card .form-check-input {
  background-color: #fff;
  border-color: #d1d5db;
  height: 18px;
  margin: 0;
  width: 18px;
}

.auth-page .auth-card .form-check-input:checked {
  background-color: var(--en-red);
  border-color: var(--en-red);
}

.auth-page .auth-check {
  color: #4b5563;
}

.auth-page .auth-link,
.auth-page .auth-switch a {
  color: var(--en-red);
  font-weight: 700;
  text-decoration: none;
}

.auth-page .auth-link:hover,
.auth-page .auth-link:focus,
.auth-page .auth-switch a:hover,
.auth-page .auth-switch a:focus {
  color: var(--en-red-dark);
  text-decoration: none;
}

.auth-page .auth-submit {
  width: 100%;
}

.auth-page .auth-switch {
  color: var(--en-muted);
  margin: 22px 0 0;
  text-align: center;
}

.auth-page .auth-recaptcha {
  overflow: hidden;
}

.error-404-page {
  background:
    radial-gradient(circle at 16% 12%, rgba(230, 0, 18, 0.1), rgba(230, 0, 18, 0) 32%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  overflow: hidden;
}

.error-404-section {
  align-items: center;
  display: flex;
  min-height: calc(100vh - 210px);
  padding: 90px 0;
  position: relative;
}

.error-404-section::before {
  background:
    linear-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 76%, transparent);
  pointer-events: none;
  position: absolute;
}

.error-404-copy,
.error-404-visual {
  position: relative;
  z-index: 1;
}

.error-404-kicker {
  color: var(--en-red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.error-404-copy h1 {
  color: var(--en-ink);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 620px;
}

.error-404-text {
  color: #4b5563;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 540px;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.error-404-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-height: 48px;
}

.error-404-visual {
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 28px;
  box-shadow: var(--en-shadow);
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
}

.error-404-glow {
  background: rgba(230, 0, 18, 0.24);
  border-radius: 50%;
  filter: blur(50px);
  height: 340px;
  opacity: 0.55;
  position: absolute;
  right: -90px;
  top: -100px;
  width: 340px;
}

.error-404-number {
  color: rgba(230, 0, 18, 0.08);
  font-size: 190px;
  font-weight: 700;
  inset: 42px 22px auto;
  line-height: 0.8;
  position: absolute;
  text-align: center;
}

.error-404-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--en-line);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.12);
  position: absolute;
}

.error-404-card-primary {
  bottom: 92px;
  left: 48px;
  padding: 26px;
  right: 76px;
}

.error-404-card-dot {
  background: var(--en-red);
  border-radius: 50%;
  display: block;
  height: 48px;
  margin-bottom: 22px;
  width: 48px;
}

.error-404-card-line {
  background: #e5e7eb;
  border-radius: 999px;
  display: block;
  height: 13px;
  margin-bottom: 14px;
  width: 78%;
}

.error-404-card-line.short {
  background: rgba(230, 0, 18, 0.42);
  margin-bottom: 0;
  width: 48%;
}

.error-404-card-secondary {
  align-items: center;
  color: var(--en-ink);
  display: flex;
  font-weight: 700;
  gap: 12px;
  padding: 14px 18px;
  right: 28px;
  top: 96px;
}

.error-404-card-secondary i {
  color: var(--en-red);
}

.error-404-orbit {
  border: 1px solid rgba(230, 0, 18, 0.28);
  border-radius: 999px;
  position: absolute;
  transform: rotate(-18deg);
}

.error-404-orbit-one {
  height: 92px;
  left: -70px;
  top: 78px;
  width: 280px;
}

.error-404-orbit-two {
  border-color: rgba(17, 24, 39, 0.16);
  bottom: 54px;
  height: 70px;
  right: -60px;
  width: 220px;
}

@media (max-width: 991px) {
  .header .navbar {
    min-height: 62px;
  }

  .header .navbar-collapse {
    background: #fff;
    border: 1px solid var(--en-line);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
    margin-top: 8px;
    padding: 10px;
  }

  .header .navbar-nav {
    align-items: stretch;
    gap: 4px;
  }

  .header .navbar-nav .nav-link {
    padding: 8px 6px;
  }

  .header .btn-top {
    justify-content: center;
    margin-top: 4px;
    padding: 11px 16px;
    width: 100%;
  }

  .events-page .events-list-card,
  .events-page .events-detail-grid,
  .events-page .events-detail-layout {
    grid-template-columns: 1fr;
  }

  .events-page .events-detail-media {
    max-height: 320px;
  }

  .events-page .events-side-card {
    position: static;
  }

  .enepal-page .section {
    padding: 62px 0;
  }

  .enepal-page .section.head {
    display: block;
  }

  .enepal-page .section.head h2 {
    font-size: 40px;
  }

  .enepal-page .section.head p {
    margin-top: 14px;
  }

  .enepal-page .hero {
    padding: 52px 0;
  }

  .enepal-page .hero .grid,
  .enepal-page .leaders.layout,
  .enepal-page .funding.box,
  .enepal-page .newsletter.layout {
    grid-template-columns: 1fr;
  }

  .enepal-page .hero .content h1 {
    font-size: 52px;
  }

  .enepal-page .hero .content p {
    font-size: 18px;
  }

  .enepal-page .feature.grid,
  .enepal-page .events.grid,
  .enepal-page .pathway.grid,
  .enepal-page .leaders.grid {
    grid-template-columns: 1fr;
  }

  .enepal-page .proof.item {
    flex: 1 1 140px;
  }

  .enepal-page .directory.note {
    align-items: start;
    flex-direction: column;
  }

  .enepal-page .apply.section h2 {
    font-size: 42px;
  }

  .enepal-page .newsletter.content h2 {
    font-size: 40px;
  }

  .error-404-section {
    padding: 70px 0;
  }

  .error-404-copy {
    text-align: center;
  }

  .error-404-copy h1,
  .error-404-text {
    margin-left: auto;
    margin-right: auto;
  }

  .error-404-actions {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .auth-page {
    padding: 48px 0 64px;
  }

  .auth-page .auth-heading h1 {
    font-size: 34px;
  }

  .auth-page .auth-card {
    padding: 24px;
  }

  .auth-page .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-page .auth-span-2 {
    grid-column: auto;
  }

  .auth-page .auth-options,
  .auth-page .auth-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  body .header {
    position: sticky;
  }

  .header .navbar {
    min-height: 56px;
  }

  .header .navbar-brand {
    font-size: 18px;
    gap: 9px;
  }

  .header .brand-mark {
    border-radius: 11px;
    font-size: 15px;
    height: 34px;
    width: 34px;
  }

  .header .navbar-toggler {
    padding: 5px 8px;
  }

  .events-page .events-kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }

  .events-page .events-list-hero,
  .events-page .events-detail-hero {
    padding: 24px 0 20px;
  }

  .events-page .events-list-hero h1,
  .events-page .events-detail-hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .events-page .events-list-hero p,
  .events-page .events-summary {
    font-size: 15px;
    line-height: 1.45;
  }

  .events-page .events-list-section,
  .events-page .events-detail-body,
  .events-page .events-section {
    padding: 26px 0;
  }

  .events-page .events-list-grid,
  .events-page .events-card-grid,
  .events-page .events-faq-list {
    gap: 12px;
  }

  .events-page .events-list-media {
    min-height: 142px;
  }

  .events-page .events-detail-media {
    aspect-ratio: 16 / 9;
    max-height: 190px;
  }

  .events-page .events-list-body,
  .events-page .events-main-card,
  .events-page .events-side-card,
  .events-page .events-info-card,
  .events-page .events-empty,
  .events-page .events-faq-item {
    padding: 16px;
  }

  .events-page .events-list-body h2,
  .events-page .events-section-head h2,
  .events-page .events-final-cta h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  .events-page .events-rich-text,
  .events-page .events-info-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .events-page .events-list-meta,
  .events-page .events-meta-strip {
    margin-bottom: 10px;
  }

  .events-page .events-list-actions,
  .events-page .events-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 12px;
  }

  .events-page .events-actions .btn,
  .events-page .events-list-actions .btn {
    width: 100%;
  }

  .events-page .events-side-row {
    padding: 10px 0;
  }

  .events-page .events-final-cta {
    padding: 34px 0;
  }

  .enepal-page .button {
    width: 100%;
  }

  .enepal-page .hero .content h1 {
    font-size: 42px;
  }

  .enepal-page .hero .actions {
    width: 100%;
  }

  .enepal-page .leaders.quote,
  .enepal-page .funding.box,
  .enepal-page .newsletter.form {
    padding: 24px;
  }

  .enepal-page .newsletter.content h2 {
    font-size: 34px;
  }

  .error-404-section {
    padding: 54px 0;
  }

  .error-404-copy h1 {
    font-size: 42px;
  }

  .error-404-text {
    font-size: 17px;
  }

  .error-404-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .error-404-visual {
    border-radius: 18px;
    min-height: 320px;
  }

  .error-404-card-primary {
    bottom: 48px;
    left: 24px;
    right: 24px;
  }

  .error-404-card-secondary {
    right: 18px;
    top: 72px;
  }
}
