:root {
  --nlv-primary: #00AEDA;
  --nlv-primary-dark: #0096BF;
  --nlv-text: #254052;
  --nlv-muted: #6B7C87;
  --nlv-card-bg: #ffffff;
  --nlv-border: #E7EEF3;
  --nlv-accent: #c7017f;
}

.neurolounge-hero-fullwidth {
  position: relative;
  width: 100%;
  height: 500px;
  background: url('https://neurolounge.eu/wp-content/uploads/2025/10/NRX_Web_NL_headerbild_1920x600-scaled-e1760006507462.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.neurolounge-hero-fullwidth .neurolounge-hero-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.neurolounge-hero-fullwidth h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
}

.neurolounge-content h2,
.neurolounge-content p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.neurolounge-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.neurolounge-content p {
  max-width: 1250px;
  font-size: 1.1rem;
  line-height: 1.6;
}


.nlv-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 650px;
  max-height: 650px;
  background: var(--nlv-card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--nlv-border);
  transition: box-shadow 0.15s ease;
  max-width: 900px;
  margin: 24px auto;
}

.nlv-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}

.nlv-card-header {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 10px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.nlv-card-header img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.nlv-card-header:hover {
  filter: brightness(0.95);
}

.nlv-card-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.nlv-title {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 10px 0;
  color: var(--nlv-text);
  font-weight: 400 !important;
}

.nlv-desc {
  color: #4e5d6e;
  font-size: 18px;
  line-height: 1.7;
  margin: 6px 0 18px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.7em * 3);
}


.nlv-desc::after {
  content: " …";
  color: var(--nlv-primary-dark);
}

.nlv-desc:empty {
  display: none;
}

.nlv-card-footer {
  margin-top: auto;
  padding: 18px;
}

.nlv-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 22px;
  background: var(--nlv-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: .3px;
  font-size: 1.05em;
  transition: background .2s ease;
  user-select: none;
}

.nlv-btn:hover {
  background: var(--nlv-accent);
  color: #fff;
}

.nlv-btn .nlv-play {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

#nlv-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 28, 36, 0.72);
  z-index: 999999;
  padding: 20px;
}

#nlv-lightbox.-open {
  display: flex;
}

#nlv-lightbox .nlv-modal {
  width: 90vw;
  max-width: 1200px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

#nlv-lightbox .nlv-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
}

#nlv-lightbox .nlv-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

#nlv-lightbox .nlv-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--nlv-primary);
  color: #fff;
  border: none;
  border-radius: 15%;
  width: 42px;
  height: 42px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.2s ease, transform 0.1s ease;
  z-index: 5;
}

#nlv-lightbox .nlv-close:hover {
  background: var(--nlv-accent);
  transform: scale(1.05);
}

body.tax-neurolounge_category .site-content .ast-container {
  display: block !important; 
  max-width: 100% !important;
  padding: 0 !important;
}

.nlv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 30px;
}

@media (max-width: 921px) {
  body.tax-neurolounge_category .site-content .ast-container {
    padding: 0 20px !important;
  }
}

@media (max-width: 640px) {
  .nlv-title {
    font-size: 20px;
  }
  .nlv-grid {
    grid-template-columns: 1fr;
  }

  .nlv-card {
    border-radius: 14px;
    height: auto;
    max-height: none;
  }

  .nlv-desc {
    -webkit-line-clamp: 4;
  }
}
