/* WASP Lab homepage hero */

.wasp-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 2rem;
  padding: 3.5rem 2.5rem;
  margin: 1rem 0 3rem;
  background: #0b1932;
  border-radius: 16px;
  color: #ffffff;
  overflow: hidden;
}

.wasp-eyebrow {
  color: #f4c542;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.wasp-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 1.25rem 0;
}

.wasp-hero h1 span {
  color: #f4c542;
}

/* Responsive headline for smaller screens */
@media (max-width: 768px) {
  .wasp-hero h1 {
    font-size: 2.1rem;
  }
}

.wasp-hero p {
  color: #d5dfef;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
}

.wasp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.wasp-hero-actions a {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  transition:
    transform 0.2s,
    background 0.2s;
}

.wasp-hero-actions a:hover {
  transform: translateY(-2px);
}

.wasp-primary-btn {
  background: #f4c542;
  color: #0b1932 !important;
}

.wasp-primary-btn:hover {
  background: #ffdc65;
}

.wasp-secondary-btn {
  border: 1px solid #8193b1;
  color: #ffffff !important;
}

.wasp-secondary-btn:hover {
  background: #263e67;
}

.wasp-hero-visual {
  min-height: 260px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.wasp-hero-logo {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  object-fit: contain;
}

.wasp-visual-caption {
  color: #0b1932;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
}

@media (max-width: 768px) {
  .wasp-hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }

  .wasp-hero-visual {
    min-height: 180px;
  }
}

/* Hide al-folio's default heading on the WASP homepage */
body:has(.wasp-hero) .post-header {
  display: none;
}

.wasp-hero {
  margin-top: 0;
}

/* WASP Lab homepage research card headings */
.wasp-research h5.card-title {
  font-size: 1.2rem !important;
  font-weight: 600;
  line-height: 1.3;
}
/* WASP Lab research cards */
.wasp-research .card-body .card-title {
  font-size: 1.15rem !important;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.wasp-research .card-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Clickable research cards */
.wasp-research-link {
  display: block;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.wasp-research-link:hover {
  text-decoration: none !important;
}

.wasp-research-link .card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.wasp-research-link:hover .card,
.wasp-research-link:focus-visible .card {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(11, 25, 50, 0.15);
}

.wasp-research-link:focus-visible {
  outline: 2px solid #005596;
  outline-offset: 4px;
  border-radius: 4px;
}

/* =========================================
   WASP LAB — RESEARCH PAGE
   ========================================= */

/* Research vision banner */
.wasp-research-hero {
  background: #0b1932;
  color: #ffffff;
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  margin: 0 0 2.5rem;
}

.wasp-research-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 1.25rem 0;
}

.wasp-research-hero h1 span {
  color: #f4c542;
}

.wasp-research-hero p {
  color: #d5dfef;
  max-width: 750px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.wasp-research-hero strong {
  color: #ffffff;
}

/* Failure evolution diagram */
.wasp-failure-evolution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
  margin: 2rem 0;
}

.wasp-failure-stage {
  min-width: 0;
  background: #f3f6fa;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  padding: 1.25rem;
}

.wasp-failure-stage h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0b1932;
  margin: 0.75rem 0;
}

.wasp-failure-stage p {
  color: #34445c;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.wasp-stage-number {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #23558c;
}

.wasp-future-stage {
  background: #fff9e5;
  border-color: #e8ce73;
}

.wasp-evolution-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b28a12;
  font-size: 1.6rem;
  font-weight: 700;
}

/* Methodology workflow */
.wasp-methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.wasp-method-card {
  background: #0b1932;
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 0;
}

.wasp-method-number {
  display: inline-block;
  color: #f4c542;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.wasp-method-card h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.wasp-method-card p {
  color: #d5dfef;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.wasp-methodology-note {
  font-size: 0.9rem;
  color: var(--global-text-color);
  margin-bottom: 1.5rem;
}

/* Research theme links */
.wasp-card-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #23558c;
}

/* Responsive layout */
@media (max-width: 992px) {
  .wasp-methodology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .wasp-research-hero {
    padding: 2.5rem 1.5rem;
  }

  .wasp-failure-evolution {
    grid-template-columns: 1fr;
  }

  .wasp-evolution-arrow {
    transform: rotate(90deg);
    min-height: 1.5rem;
  }

  .wasp-methodology-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WASP LAB — RESEARCH THEME PAGES
   ========================================= */

.wasp-theme-hero {
  background: #0b1932;
  color: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  margin: 1.5rem 0 2.5rem;
}

.wasp-theme-hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0;
}

.wasp-theme-hero h1 span {
  color: #f4c542;
}

.wasp-theme-hero p {
  color: #d5dfef;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 0;
}

/* Agentic security failure classes */
.wasp-failure-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.wasp-failure-class-card {
  min-width: 0;
  padding: 1.5rem;
  background: #f3f6fa;
  border: 1px solid #dce4ef;
  border-radius: 12px;
}

.wasp-failure-class-card h3 {
  color: #0b1932;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.75rem 0;
}

.wasp-failure-class-card p {
  color: #34445c;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .wasp-theme-hero {
    padding: 2.5rem 1.5rem;
  }

  .wasp-failure-class-grid {
    grid-template-columns: 1fr;
  }
}
/* WASP Lab - People Page */

.wasp-people-heading {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: 650;
}

.wasp-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.3rem;
}

.wasp-person-card {
  border: 1px solid var(--global-divider-color);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--global-card-bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wasp-person-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.wasp-person-name {
  font-size: 1.08rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.wasp-person-name a {
  color: var(--global-text-color);
  text-decoration: none;
}

.wasp-person-name a:hover {
  color: var(--global-theme-color);
}

.wasp-person-role {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--global-theme-color);
  margin-bottom: 0.55rem;
}

.wasp-person-research {
  font-size: 0.85rem;
  color: var(--global-text-color);
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.wasp-person-link {
  margin-top: auto;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .wasp-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .wasp-person-card {
    padding: 1rem 0.6rem;
  }

  .wasp-person-avatar {
    width: 76px;
    height: 76px;
  }
}

/* ==========================================
   WASP Lab People - Profile Enhancements
   ========================================== */

/* Compact grid for students and alumni */
.wasp-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.2rem;
}

/* Larger director profile */
.wasp-director-grid {
  grid-template-columns: minmax(280px, 360px);
}

.wasp-director-card {
  padding: 2rem 1.5rem;
  border-top: 3px solid #193c65;
}

.wasp-director-card .wasp-person-avatar {
  width: 125px;
  height: 125px;
}

.wasp-director-card .wasp-person-name {
  font-size: 1.25rem;
}

.wasp-director-card .wasp-person-role {
  font-size: 1rem;
}

/* Subtle card interaction */
.wasp-person-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.wasp-person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

/* Profile links */
.wasp-person-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .wasp-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .wasp-director-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wasp-director-card .wasp-person-avatar {
    width: 110px;
    height: 110px;
  }
}

.wasp-partners {
  margin: 4rem 0 2rem;
  text-align: center;
}

.wasp-partners > p {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.wasp-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
}

.wasp-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 100px;
}

.wasp-partner img {
  max-width: 100%;
  max-height: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.wasp-partner:hover img {
  transform: scale(1.05);
}