/* Layout helpers */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(12, 28, 60, 0.08);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.branding img {
  max-height: 64px;
  width: auto;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wavg-primary);
}

.primary-navigation {
  position: relative;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: var(--wavg-dark);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-menu .current-menu-item > a,
.primary-menu a:hover,
.primary-menu a:focus {
  background-color: var(--wavg-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--wavg-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  position: relative;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.nav-open .nav-toggle__icon {
  transform: rotate(45deg);
}

.nav-open .nav-toggle__icon::before {
  transform: rotate(90deg) translateX(6px);
}

.nav-open .nav-toggle__icon::after {
  opacity: 0;
}

/* Hero */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(4rem, 16vw, 8rem) 0;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 28, 60, 0.85), rgba(48, 82, 160, 0.65));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  display: grid;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.hero-text p {
  margin: 0 0 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: var(--wavg-accent);
  color: #0b1c3c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(79, 193, 233, 0.3);
}

/* Intro */
.intro {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  background: #fff;
}

.intro-inner {
  font-size: 1.05rem;
  line-height: 1.7;
  display: grid;
  gap: 1.25rem;
}

/* Featured profiles */
.featured-profiles {
  padding: clamp(3.5rem, 9vw, 5rem) 0;
  background: var(--wavg-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: var(--wavg-dark);
}

.section-header p {
  margin: 0;
  color: rgba(12, 28, 60, 0.72);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.profile-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(12, 28, 60, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(12, 28, 60, 0.14);
}

.profile-image img,
.profile-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.profile-placeholder {
  background: linear-gradient(135deg, rgba(48, 82, 160, 0.2), rgba(12, 28, 60, 0.15));
}

.profile-content {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.profile-title {
  margin: 0;
  font-size: 1.2rem;
}

.profile-excerpt {
  color: rgba(12, 28, 60, 0.7);
  font-size: 0.95rem;
}

.profile-meta {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wavg-primary);
  font-size: 0.75rem;
}

.section-actions {
  margin-top: 2.5rem;
  text-align: center;
}

/* Latest posts */
.latest-posts {
  padding: clamp(3.5rem, 9vw, 5rem) 0;
}

.post-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.post-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(12, 28, 60, 0.08);
}

.post-card__image img,
.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-placeholder {
  background: linear-gradient(135deg, rgba(48, 82, 160, 0.25), rgba(12, 28, 60, 0.2));
}

.post-card__content {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.post-card__date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 28, 60, 0.6);
}

.post-card__title {
  margin: 0;
  font-size: 1.25rem;
}

.post-card__excerpt {
  color: rgba(12, 28, 60, 0.72);
}

.post-card__link {
  font-weight: 700;
  color: var(--wavg-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(12, 28, 60, 0.95), rgba(48, 82, 160, 0.92));
  color: #fff;
  padding: 3rem 0;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.cta-text {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: var(--wavg-dark);
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col p {
  margin: 0 0 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.86);
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  position: relative;
}

.social-links a::before {
  content: "";
  width: 18px;
  height: 18px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  background: #fff;
}

.social-links li:first-child a::before {
  mask-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="white" d="M22.46 6c-.77.35-1.5.58-2.31.69c.81-.49 1.43-1.27 1.72-2.2c-.77.45-1.62.81-2.5.99a4.07 4.07 0 0 0-6.93 3.72a11.57 11.57 0 0 1-8.4-4.26c-.29.5-.45 1.12-.45 1.74c0 1.3.67 2.45 1.68 3.12c-.63 0-1.26-.18-1.8-.45v.04c0 1.82 1.36 3.34 3.12 3.69c-.33.1-.68.14-1.04.14c-.25 0-.5 0-.74-.06c.5 1.55 1.96 2.7 3.68 2.74A8.2 8.2 0 0 1 2 19.54a11.53 11.53 0 0 0 6.29 1.84c7.55 0 11.67-6.13 11.67-11.45v-.52c.81-.57 1.5-1.3 2.1-2.13"/%3E%3C/svg%3E');
}

.social-links li:nth-child(2) a::before {
  mask-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="white" d="M20.9 4H3.1C2.5 4 2 4.5 2 5.1v13.8C2 19.5 2.5 20 3.1 20h9.5v-6h-2v-2.3h2v-1.7c0-2 1.2-3.1 3-3.1c.9 0 1.8.2 1.8.2v2h-1c-1 0-1.3.6-1.3 1.2v1.4h2.2l-.3 2.3h-1.9V20h3.7c.6 0 1.1-.5 1.1-1.1V5.1c0-.6-.5-1.1-1.1-1.1"/%3E%3C/svg%3E');
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.footer-widgets {
  margin-top: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Single and archive layout basics */
.page-header,
.archive-header {
  padding: clamp(2.5rem, 7vw, 4rem) 0 1rem;
  text-align: center;
  background: var(--wavg-light);
}

.page-header h1,
.archive-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.entry-content {
  padding: clamp(2.5rem, 7vw, 4rem) 0;
}

.entry-content .container {
  display: grid;
  gap: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.single .post-header {
  padding: clamp(2.5rem, 7vw, 4rem) 0 0;
}

.single .post-header .container {
  max-width: 760px;
}

.single .post-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(12, 28, 60, 0.6);
}

.single .featured-media img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(12, 28, 60, 0.12);
}

/* Archive grid */
.archive-posts {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}

.archive-posts .post-grid {
  margin-top: 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(12, 28, 60, 0.15);
  color: var(--wavg-dark);
}

.pagination .current {
  background: var(--wavg-primary);
  color: #fff;
  border-color: var(--wavg-primary);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .primary-menu {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(12, 28, 60, 0.12);
    transform-origin: top right;
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-open .primary-menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
}

@media (max-width: 680px) {
  .hero {
    text-align: left;
  }

  .cta-content {
    text-align: left;
    align-items: flex-start;
  }
}

.taxonomy-filters {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.taxonomy-filters select {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 60, 0.16);
  background: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wavg-dark);
}

.post-navigation {
  padding: 0 0 clamp(2rem, 6vw, 3rem);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-navigation .nav-links a {
  flex: 1 1 240px;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  background: var(--wavg-light);
  color: var(--wavg-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-navigation .nav-links .nav-title {
  display: block;
  margin-top: 0.35rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: rgba(12, 28, 60, 0.7);
}

.page-toc {
  background: #f3f2f8;
  border-bottom: 1px solid rgba(12, 28, 60, 0.08);
}

.page-toc .container {
  overflow-x: auto;
}

.page-toc ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-toc li {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(48, 82, 160, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-toc li:hover,
.page-toc li:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(48, 82, 160, 0.16);
}

.page-toc a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a1b9a;
  position: relative;
}

.page-toc a::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0.5rem;
  height: 3px;
  background: transparent;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.page-toc a:hover::after,
.page-toc a:focus::after {
  background: #f6c343;
}

.page-toc a:focus {
  outline: none;
}
