/* ===================================== */
/* 🧩 Layout Adjustments & Lore Archive Fixes */
/* ===================================== */

@media (min-width: 900px) {
  #main-content {
    order: 2; /* Visually moves to the second position */
    padding: 0 2rem !important;
  }

  #secondary {
    order: 1; /* Visually moves to the first position */
    margin-right: -2.5rem !important;
    margin-left: -1.5rem !important;
  }

  .single-lore .lore-entry {
    padding: 10px 20px !important;
  }
}

/* 🧩 Fix Lore Archive Grid Container Width */
.lore-archive #main-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  display: block !important;
}

.lore-archive #lore-archive-grid {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 2fr)) !important;
  gap: 2rem !important;
  margin: 0 auto !important;
  padding: 2rem 0 !important;
  box-sizing: border-box !important;
}

/* Ensure parent doesn’t clip it */
.lore-archive #pagewrapfloat {
  display: flex !important;
  align-items: flex-start !important;
  gap: 2rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 📱 Mobile Layout */
@media (max-width: 900px) {
  .lore-archive #pagewrapfloat {
    flex-direction: column !important;
  }

  .lore-archive #lore-archive-grid {
    grid-template-columns: 1fr !important;
    padding: 1rem 0 !important;
  }
}

/* ===================================== */
/* 🪶 Lore Homepage Full-Width Layout */
/* ===================================== */

body.page-template-lore-homepage #main-content {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 🧱 Fix section hover/height boundaries */
body.page-template-lore-homepage #main-content > section {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  flex: none;
}

body.page-template-lore-homepage #primary {
  display: block;
  margin: 0 auto;
  background: none !important;
}

.center_main {
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  width: 100%;
}

/* ===================================== */
/* 🌌 Lore Hub Sections */
/* ===================================== */

/* Global Section Layout */
.lore-magazine section {
  width: 100%;
  padding: 0;
}

/* Centered Container */
.fowl-center {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}


.latest-lore { padding-bottom: 50px !important; }

.more-lorebtn {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
}

.more-lorebtn:hover,
.more-lorebtn:focus {
  transform: translateX(-50%) !important;
  transition: none !important;
}


/* ============================= */
/* 🌀 Featured Lore Section */
/* ============================= */
.lore-featured {
  background: #0a0a0a;
  color: #f4f4f4;
}

.lore-featured .featured-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.lore-featured .feature-item {
  flex: 1 1 30%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.lore-featured .feature-item:hover {
  transform: translateY(-4px);
}

.lore-featured h2 {
  margin: 1rem;
  font-size: 1.5rem;
  text-align: center;
}
/* ============================= */
/* 📜 Latest Lore Drops — Unified Style */
/* ============================= */
.latest-lore {
  background: #0f0f0f;
  color: #fff;
  padding: 4rem 0;
}

.latest-lore h2 {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 3rem;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Grid Layout */
.latest-lore .lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Card Styling */
.latest-lore .lore-item {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-lore .lore-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

/* Thumbnail */
.latest-lore .thumb-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-lore .thumb-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.latest-lore .lore-item:hover img {
  transform: scale(1.08);
}

/* Floating Tags */
.latest-lore .post-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.latest-lore .tag-pill {

}

.latest-lore .tag-pill:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Text & Meta */
.latest-lore .lore-info {
  padding: 1.2rem 1.25rem 1.5rem;
}

.latest-lore .post-title {
  font-size: 1.2rem;
  margin: 0.4rem 0 0.6rem;
  color: #000 !important;
  line-height: 1.3 !important;
}

.latest-lore .post-title a {
  color: inherit;
  text-decoration: none;
}

.latest-lore .post-title a:hover {
  text-decoration: underline;
}

.latest-lore .post-meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0.6rem;
}

.latest-lore .post-excerpt {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .latest-lore .lore-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 600px) {
  .latest-lore {
    padding: 3rem 0;
  }

  .latest-lore .lore-grid {
    grid-template-columns: 1fr;
  }

  .latest-lore .lore-item {
    padding: 0;
  }

  .latest-lore .lore-info {
    padding: 1rem;
  }
}

/* ===================================== */
/* 🧩 Lore Archive Grid — Responsive Columns */
/* ===================================== */

.lore-archive #lore-archive-grid {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 2rem 0 !important;
  box-sizing: border-box !important;
  gap: 2rem !important;

  /* 🧱 Default: 3 columns */
  grid-template-columns: repeat(3, 1fr) !important;
}

/* 📱 900px and below: 2 columns */
@media (max-width: 900px) {
  .lore-archive #lore-archive-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 1.5rem 0 !important;
  }
}

/* 📱 600px and below: 1 column */
@media (max-width: 600px) {
  .lore-archive #lore-archive-grid {
    grid-template-columns: 1fr !important;
    padding: 1rem 0 !important;
  }
}




/* ============================================================= */
/* 🌌 Lore Hub Page Layout (Full-Width Sections w/ Centered Core) */
/* ============================================================= */

body.page-template-lore-homepage section {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

body.page-template-lore-homepage .fowl-center {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Different background themes per section */
body.page-template-lore-homepage .lore-featured { background: #111; color: #fff; }
body.page-template-lore-homepage .lore-categories { background: #f4f4f4; color: #222; }
body.page-template-lore-homepage .lore-note { background: #1a1a1a; color: #eee; text-align: center; }
body.page-template-lore-homepage .latest-lore { background: #fafafa; color: #222; }

/

/* 🌌 Featured Lore Section */
body.page-template-lore-homepage .lore-featured {
  padding: 4rem 0;
}

body.page-template-lore-homepage .featured-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.feature-item {
  flex: 1 1 calc(33.333% - 1rem);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}

.feature-link {
  display: block;
  height: 100%;
  position: relative;
}

.feature-thumb {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-item:hover img {
  transform: scale(1.05);
}

/* Overlay with text */
.feature-overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

/* Category pill */
.feature-pill {
  background: #e91e63;
  color: #fff;
  font-size: .45rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

/* Title & meta */
.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
  line-height: 1.3;
  color: #fff !important;
  background: rgba(14, 12, 13, 0.42) !important; /* soft minty cyan */
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.feature-title:hover {
  transform: translateY(-3px);
  background: rgba(255, 105, 180, 0.25); /* soft pink hover */
}



.feature-meta {
  font-size: 0.85rem;
  color: #ddd;
}

/* Mobile stacking */
@media (max-width: 900px) {
  .featured-row {
    flex-direction: column;
  }

  .feature-item {
    flex: 1 1 100%;
    aspect-ratio: 16 / 9;
  }
}



/* ============================= */
/* 🧭 Category Section Layout */
/* ============================= */

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

/* Each category column */
.category-block {
  flex: 1 1 calc(33.333% - 2rem);
  box-sizing: border-box;
}

/* Category title */
.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ============================= */
/* 📜 Category Posts */
/* ============================= */

.category-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Single item layout */
.category-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
}

/* Thumbnail */
.category-item .thumb {
  flex: 0 0 100px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}

.category-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info section */
.category-item .info {
  flex: 1;
  min-width: 0;
}

/* Category pill/tag */
.category-item .pill {
  display: inline-block;
  background: #e91e63;
  color: #fff;
  font-size: 0.45rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin: 0 5px 0.5rem 0;
}

/* Post title */
.category-item .post-title {
  font-size: 1.5em;
  line-height: 1.2;
  margin: 0.2rem 0;
}

.category-item .post-title a {
  text-decoration: none;
  color: inherit;
}

/* Post meta info */
.category-item .post-meta {
  font-size: 0.8rem;
  color: #666;
}

.category-item .post-meta .author {
  font-weight: 600;
}

/* ============================= */
/* 📱 Responsive Adjustments */
/* ============================= */

@media (max-width: 900px) {
  .category-row {
    flex-direction: column;
    gap: 2.5rem;
  }

  .category-block {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  .category-item {
    flex-direction: row;
    align-items: center;
  }

  .category-item .thumb {
    flex: 0 0 300px;
    height: 100px;
    margin-right: 20px;
  }
}

@media (max-width: 600px) {
  .category-item .thumb {
    flex: 0 0 120px;
    height: 90px;
    margin-right: 5px;
  }
}






.lore-magazine h2,
.lore-magazine h3 {
    color: #000;
    background: unset;
}
.lore-magazine h2 a,
.lore-magazine h3 a {
    color: #000;
    background: unset;
}


/* ==================================================== */
/* 📜 LATEST LORE GRID - CLEAN RESPONSIVE LAYOUT        */
/* ==================================================== */

.latest-lore {
  width: 100%;
  padding: 4rem 0;
}

.latest-lore h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

/* 🧱 Grid layout (same spacing as blog grid) */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.lore-item {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.lore-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* 📸 Thumbnail */
.thumb-wrap {
  position: relative;
}

.thumb-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.lore-item:hover img {
  transform: scale(1.05);
}

/* 🩷 Floating Tags */
.post-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.tag-pill {
  background: rgba(238, 51, 131, 0.9);
  color: #fff;
  font-size: 0.45rem;
  padding: 3px 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tag-pill:hover {
  background: #8b0045;
}

/* 📝 Text Info */
.lore-info {
  padding: 1rem 1.25rem 1.5rem;
}

.lore-info .post-title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.lore-info .post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.6rem;
}

.lore-info .post-excerpt {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .lore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .lore-grid {
    grid-template-columns: 1fr;
  }
}



h3 { 
  color: #FFF;
  background: var(--default-black, #222);
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 15px;
  font-family: var(--font-heading), serif;
  font-weight: 400;
  margin: 0 0 0 -1rem !important;
  line-height: 3.4;
  font-size: 1.5em;
}

blockquote {
    background: #7C2E4F;
    color: white;
    padding: 10px;
     box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
}

.centertext { text-align: center !important;}


.lore-entry { margin-top: 2rem;}

.kraehlingsgraphside { margin-bottom:  -2rem !important;}

.sessanite-lore { margin: 10px 0;}




/* ======================================== */
/* ✨ Floating Lore Links – Equal Width Cards */
/* ======================================== */

.sessanite-links {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.sessanite-link {
  flex: 1 1 30%;
  min-width: 200px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #181818, #2d2d2d);
  border: 2px solid #444;
  border-radius: 10px;
  padding: 2rem 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.sessanite-link span {
  display: block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.sessanite-link:hover {
  background: linear-gradient(135deg, #292929, #3b3b3b);
  border-color: #7fffd4;
  box-shadow: 0 0 20px rgba(127,255,212,0.3);
  transform: translateY(-3px);
}

.sessanite-link:hover span {
  color: #7fffd4;
  transform: scale(1.05);
}

/* 📱 Responsive stacking */
@media (max-width: 800px) {
  .sessanite-link {
    flex: 1 1 100%;
  }
}





/* 🌌 Lore Table Wrapper */
.lore-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Optional: subtle scrollbar for desktop */
.lore-table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.lore-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.lore-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}/* 🧬 Core Lore Table */
.lore-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.95rem;
  color: #e6e6e6;
  background: #383838;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  min-width: 500px; /* 👈 prevents cramming columns too tightly */
}

/* 📘 Table Header */
.lore-table th {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 12px 16px;
  white-space: nowrap;
}

/* 📗 Table Cells */
.lore-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}

/* 📙 Last Row */
.lore-table tr:last-child td {
  border-bottom: none;
}

/* 📒 Row Hover */
.lore-table tr:hover {
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

/* 🌀 Wrapper: Enables horizontal scrolling on small screens */
.lore-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 12px;
}

/* Optional: Subtle shadow to indicate scrollability */
.lore-table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.lore-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.lore-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* 📱 Mobile Adjustments */
@media (max-width: 640px) {
  .lore-table {
    font-size: 0.9rem;
  }

  .lore-table th,
  .lore-table td {
    padding: 10px 12px;
  }

  .lore-table-wrapper {
    margin: 1rem 0;
  }
}


/* 🌈 Vril Navigation Menu */
.vril-nav {
  background: grey;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

.vril-nav strong {
  display: block;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: darkgray;
  margin-bottom: 0.75rem;
}

.vril-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.vril-nav li {
  display: inline-block;
}

.vril-nav a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.vril-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* 📱 Mobile Adjustments */
@media (max-width: 600px) {
  .vril-nav {
    padding: 1rem;
  }
  .vril-nav a {
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
  }
}

/* 🔮 Individual Vrilclass Sections */
.vrilclass {
  margin: 3rem auto;
  max-width: 800px;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.vrilclass h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: grey;
  text-align: center;
}

.vrilclass p {
  color: grey;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.vrilclass strong {
  color: #fff;
}



.lore-grid.lore-grid-inline .post-title{
    background: unset;
    color: black;
    font-size: 1.4rem;
}



/* ========================================================= */
/* 🌌 SESSANITE LORE SIDEBAR — Clean, Minimal, Luminous       */
/* ========================================================= */

.sessanite-sidebar h3 {
  display: inherit;
  margin-left: -2rem !important;
  padding: 0 !important;
  line-height: 2;
  margin-bottom: 1rem !important;
}

/* ========================================================= */
/* 📚 FEATURED LORE — Refined Grid of Neon Cards              */
/* ========================================================= */

#secondary .featured-lore ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

#secondary .featured-lore li {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(38,189,182,0.15);
  border-radius: 0.7rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

#secondary .featured-lore li:hover {
  border-color: rgba(38,189,182,0.4);
  box-shadow: 0 0 10px rgba(38,189,182,0.4);
  transform: translateY(-3px);
}

/* === “Binging bar” label === */
#secondary .featured-lore .binging-bar {
  background: rgba(38,189,182,0.1);
  color: #26bdb6;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(38,189,182,0.2);
  font-weight: 600;
}

/* === Title + subtitle link === */
#secondary .featured-lore li a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 0.7rem 0.9rem;
  transition: all 0.3s ease;
}

#secondary .featured-lore li a em {
  display: block;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

#secondary .featured-lore li a small {
  color: #bbb;
  font-size: 0.85rem;
}

#secondary .featured-lore li a:hover em {
  color: #26bdb6;
  text-shadow: 0 0 6px rgba(38,189,182,0.6);
}

/* ========================================================= */
/* 📂 LORE CATEGORIES — Hierarchical Neon Tree               */
/* ========================================================= */

#secondary .lore-category {
  background: #383838 !important;

}

#secondary .lore-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#secondary .lore-category-list > li {
  background: unset;
  border: 1px solid rgba(38,189,182,0.15);
  border-radius: 0.7rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

#secondary .lore-category-list > li:hover {
  border-color: rgba(38,189,182,0.4);
  box-shadow: 0 0 10px rgba(38,189,182,0.3);
  transform: translateY(-2px);
}

/* === Parent link === */
#secondary .lore-category-list > li > a {
  display: block;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: #26bdb6;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

#secondary .lore-category-list > li > a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(38,189,182,0.8);
}

/* === Subcategory list === */
#secondary .lore-category-list ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.9rem 0.9rem 1.3rem;
  border-top: 1px solid rgba(38,189,182,0.1);
}

#secondary .lore-category-list ul li {
  margin: 0.3rem 0;
}

#secondary .lore-category-list ul li a {
  font-size: 0.9rem;
  color: #bbb;
  text-decoration: none;
  transition: all 0.25s ease;
}

#secondary .lore-category-list ul li a:hover {
  color: #26bdb6;
  text-shadow: 0 0 4px rgba(38,189,182,0.6);
  padding-left: 0.25rem;
}

.highlightlink:hover{
      color: #26bdb6 !important;
  text-shadow: 0 0 4px rgba(38,189,182,0.6);
}
/* ========================================================= */
/* ✨ MISC — Gateway Image, Society Form, etc.                */
/* ========================================================= */

.sessian-gateway {
  text-align: center;
}

.sessian-gateway img {
  display: block;
  margin: -3rem auto -1rem;
  max-width: 90px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
  transition: transform 0.4s ease;
}

.sessian-gateway img:hover {
  transform: rotate(3deg) scale(1.05);
}

.sessian-society p {
  font-size: 0.9rem;
  color: #ddd;
  text-align: center;
}

.explore-more ul,
.lore-index p {
  font-size: 0.9rem;
}

.explore-more a {
  color: #26bdb6;
  text-decoration: none;
}

.explore-more a:hover {
  text-decoration: underline;
}




/* 🌙 Mobile adjustments */
@media (max-width: 700px) {
  .featured-image-header {
      width: 104%;
    height: 230px;
    margin: -2% 0 0 -2% !important;
  }


  .featured-title {
    transform: translateX(-10%);
    padding: 0 1rem;
  }

  .featured-title h1.entry-title {
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  .featured-title .entry-meta {
    font-size: 0.5rem;
  }
    
  .lore-pill {
    font-size: 0.45rem !important;
    padding: 2px;
  }
}





/* ============================================== */
/* 📚 Lore Grid Inline Layout                     */
/* ============================================== */



.lore-grid.lore-grid-inline .post-title{
    background: unset;
}



.lore-grid-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.lore-grid-inline .lore-item {
  flex: 1 1 calc(33.333% - 1rem); /* 3 per row */
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
}

.lore-grid-inline .lore-item:hover {
  transform: translateY(-4px);
}

.lore-grid-inline .lore-thumb img {
  width: 100%;
  height: auto;
  border-bottom: 3px solid #eee;
}

.lore-grid-inline .lore-title {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

/* Responsive Adjustments */

@media (max-width: 600px) {
  .lore-grid-inline .lore-item {
    flex: 1 1 100%; /* 1 per row on mobile */
  }
}


/* ============================================== */
/* 📸 Uniform Lore Thumbnails                     */
/* ============================================== */

.lore-grid-inline .lore-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* You can change this to 1/1 for squares */
  overflow: hidden;
  border-bottom: 3px solid #eee;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lore-grid-inline .lore-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures consistent crop */
  display: block;
}


#main-content .page, 
#main-content .post,
#main-content .single {
  padding: 0 2rem 2rem 2rem;
}



.read-morelore {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff !important;
background: #21777C;
background: linear-gradient(180356deg, rgba(33, 119, 124, 1) 0%, rgba(48, 41, 41, 1) 100%);
    transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(139,0,69,0.4);
    text-align: center;
      font-family: var(--font-heading), serif;
      margin: 0 auto;

}



.read-morelore:hover {
  transform: scale(1.08) rotate(-1deg);
      background: linear-gradient(135deg, #440021, #8b0045);
  box-shadow: 0 0 20px rgba(255,0,124,0.6);
  letter-spacing: 1px;
}


.lore-cta-wrap {
  width: 100%;
  box-sizing: border-box;
  text-align: center;            /* center inline/inline-block children */
  margin: 1.5rem 0;              /* spacing above/below */
}

/* ensure the link behaves like an inline-block so text-align centers it */
.read-morelore {
  display: inline-block;
}






/* === Kraehlings character section fix === */
#home-world {
  position: relative;
  width: 100%;
  min-height: 70vh; /* Responsive height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* If .fowl-center is your inner container */
#home-world .fowl-center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -30%; /* your requested visual offset */
}

/* Ensure shortcode container inherits scaling behaviour */
#home-world .frontpage-character-wrapper {
  width: 100%;
  height: 80vh;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Force WP block wrappers to behave like normal divs */
#home-world .wp-block,
#home-world .wp-block-group,
#home-world .page-content,
#home-world .entry-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  overflow: visible;
}












/* 🌌 General Layout */
.lore-magazine {
  color: #e5e5e5;
  background: #0c0c0c;
  padding: 2rem 1rem;
  line-height: 1.7;
}


/* 🌀 Featured Lore */
.lore-featured {
  margin-bottom: 4rem;
}

.lore-featured .featured-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.lore-featured .feature-item {
  background: linear-gradient(160deg, #141414 0%, #1b1b1b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(120, 255, 240, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* 🪶 Fullwidth Note */
.lore-note {
  background: radial-gradient(circle at center, #101010, #070707);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  padding: 2rem 1rem;
  color: #b8fff3;
  margin: 4rem 0;
}




/* ============================= */
/* 🧬 Lore Hub Intro */
/* ============================= */
.lore-intro {
  background: #0d0d0d;
  color: #eee;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lore-intro .intro-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.lore-intro .intro-text {
  flex: 1 1 55%;
}

.lore-intro .intro-text h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #00ffc8;
  font-weight: 800;
}

.lore-intro .intro-text p {
  line-height: 1.7;
  font-size: 1.1rem;
  color: #ccc;
}

/* 🧩 Cyber School Box */
.cyber-school {
  flex: 1 1 35%;
  display: flex;
  justify-content: flex-end;
}

.school-card {
  background: linear-gradient(145deg, rgba(0,255,200,0.15), rgba(255,0,150,0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 350px;
}

.school-card:hover {
  background: linear-gradient(145deg, rgba(255,0,150,0.2), rgba(0,255,200,0.15));
  transform: translateY(-4px);
}

.school-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.school-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #00ffc8;
}

.school-card p {
  font-size: 0.95rem;
  color: #ccc;
}

/* 📱 Mobile layout */
@media (max-width: 900px) {
  .lore-intro .intro-flex {
    flex-direction: column;
    text-align: center;
  }
  .cyber-school {
    justify-content: center;
  }
}



.cyber-school {
  display: flex;
  justify-content: center;  /* horizontally center the whole area */
  align-items: center;      /* vertically center if needed */
  flex-direction: column;   /* stack items vertically */
  margin-top: 40px;         /* spacing from other content */
}

.kraehlings-wrapper {
  position: relative;       
  display: inline-block;    
  text-align: center;       
}

/* Image floating over button */
.kraehlings-image {
  position: absolute;
  bottom: 100%;             /* directly above button */
  left: 50%;                /* center horizontally */
  transform: translateX(-50%) translateY(-20%); 
  z-index: 2;               
  pointer-events: none;     
  max-width: 120px;         
  animation: subtle-shake 1.5s infinite ease-in-out, glitch-flicker 4s infinite steps(1);
}

.kraehlings-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff !important;
background: #21777C;
background: linear-gradient(180356deg, rgba(33, 119, 124, 1) 0%, rgba(48, 41, 41, 1) 100%);
    transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(139,0,69,0.4);
    text-align: center;
      font-family: var(--font-heading), serif;
      margin: 0 auto;

}



.kraehlings-button:hover {
  transform: scale(1.08) rotate(-1deg);
      background: linear-gradient(135deg, #440021, #8b0045);
  box-shadow: 0 0 20px rgba(255,0,124,0.6);
  letter-spacing: 1px;
}

/* Image floating over button */
.kraehlings-image {
  position: absolute;
  bottom: 84%;             /* position above button */
  left: 15%;                /* center horizontally */
  transform: translateX(-50%) translateY(-20%); /* adjust vertical position */
  z-index: 2;               /* on top of button */
  pointer-events: none;     /* so clicks go to button */
  max-width: 120px;         /* adjust size as needed */
  animation: subtle-shake 1.5s infinite ease-in-out, glitch-flicker 4s infinite steps(1);
}

@keyframes subtle-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-1px, 1px) rotate(-0.5deg); }
  40% { transform: translate(1px, -1px) rotate(0.5deg); }
  60% { transform: translate(-1px, -1px) rotate(-0.3deg); }
  80% { transform: translate(1px, 1px) rotate(0.3deg); }
}

@keyframes glitch-flicker {
  0%, 95%, 100% { filter: none; opacity: 1; }
  96% { filter: hue-rotate(20deg) contrast(1.5); opacity: 0.9; transform: translate(1px, -2px); }
  97% { filter: hue-rotate(-15deg) contrast(1.2); opacity: 1; transform: translate(-2px, 1px); }
  98% { filter: hue-rotate(10deg) contrast(1.8); opacity: 0.8; transform: translate(0, 0); }
  99% { filter: none; opacity: 1; transform: none; }
}



/* ==========================
   OVERLAY & POPUP
========================== */
#sessanite-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#sessanite-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#sessanite-popup {
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;      /* fit viewport */
  margin: auto;           /* center in overlay */
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;       /* inner content scrollable */
  position: relative;
  background: radial-gradient(circle at center, #000 0%, #030b0b 80%, #000 100%);
  border: 2px solid #00fff7;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
}

#sessanite-popup .sessanite-popup-content {
  flex: 1 1 auto;       /* grow/shrink */
  overflow-y: auto;     /* scrollable */
  padding-right: 1rem;  /* prevent scrollbar overlap */
}

/* Close button */
#sessanite-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.sessanite-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Glitch open animation */
#sessanite-popup.glitch-open {
  animation: electricalOpen 0.6s forwards;
}

@keyframes electricalOpen {
  0%   { transform: scale(0.8) rotate(-1deg); opacity: 0; filter: drop-shadow(0 0 5px #0ff); }
  10%  { transform: scale(1.05) rotate(2deg); opacity: 0.6; filter: drop-shadow(0 0 10px #0ff); }
  20%  { transform: scale(0.95) rotate(-2deg); opacity: 0.8; filter: drop-shadow(0 0 15px #0ff); }
  30%  { transform: scale(1.02) rotate(1deg); opacity: 0.9; filter: drop-shadow(0 0 20px #0ff); }
  40%  { transform: scale(0.98) rotate(-1deg); opacity: 0.95; filter: drop-shadow(0 0 12px #0ff); }
  50%  { transform: scale(1.01) rotate(0deg); opacity: 1; filter: drop-shadow(0 0 18px #0ff); }
  60%, 100% { transform: scale(1) rotate(0deg); opacity: 1; filter: none; }
}

/* ==========================
   FANCY SCROLLBAR
========================== */
#sessanite-popup .sessanite-popup-content::-webkit-scrollbar {
  width: 12px;
}

#sessanite-popup .sessanite-popup-content::-webkit-scrollbar-track {
  background: #222;
  border-radius: 6px;
}

#sessanite-popup .sessanite-popup-content::-webkit-scrollbar-thumb {
  background: #6c5ce7;
  border-radius: 6px;
}

#sessanite-popup .sessanite-popup-content::-webkit-scrollbar-thumb:hover {
  background: #4e3dc7;
}

/* ==========================
   CYBER TERMINAL
========================== */
#sessian-monitor {
  background: radial-gradient(circle at center, #000 0%, #030b0b 80%, #000 100%);
  border: 2px solid #00fff7;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
  max-width: 700px;
  margin: 2rem auto;
  font-family: 'Courier New', monospace;
  color: #00fff7;
  max-height: 70vh;   /* leave some space in viewport */
  overflow-y: auto;   /* scrollable */
  overflow-x: hidden;
}

.welcome-text {
  font-size: 1rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow: hidden;
  background: rgba(0, 0, 10, 0.5);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: inset 0 0 25px rgba(0,255,255,0.3);
  border-right: 2px solid #00fff7;
  animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
  50% { border-color: transparent; }
}

/* ==========================
   LINES & FILE LINES
========================== */
.line, .file-line {
  display: block;
  opacity: 0;
  font-family: 'Share Tech Mono', monospace;
  white-space: normal;
  overflow-wrap: break-word;
  margin: 0.05em 0;
  line-height: 1.3em;
  max-width: 90%;
}

.line {
  color: #00ffee;
  font-size: 1rem;
  text-shadow: 0 0 8px #00ffee;
}

.file-line {
  color: #11ff44;
  font-size: 0.95rem;
  text-shadow: 0 0 6px #00ff66;
}

.file-line a {
  color: #11ff44 !important;
  font-size: 0.95rem;
  text-shadow: 0 0 6px #00ff66 !important;
}

.file-line a:hover {
  color: #e91e63 !important;
}

.cybermsg {
  color: #c699ff;
  text-shadow: 0 0 8px #d6aaff;
}

.error, .errorstate {
  color: #ff4b4b;
  text-shadow: 0 0 10px #ff1a1a, 0 0 25px #ff5555;
}

.breakerror {
  color: #a8f5ff;
  text-shadow: 0 0 6px #00ffee;
  transition: color 0.3s, text-shadow 0.3s, transform 0.2s;
}

.breakerror.glitchout {
  animation: shake 0.45s ease-in-out;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}


/* 🔺 Shake/glitch effect for error lines */
@keyframes glitch-shake {
  0%   { transform: translate(0, 0) rotate(0); }
  20%  { transform: translate(-2px, 1px) rotate(-1deg); }
  40%  { transform: translate(2px, -1px) rotate(1deg); }
  60%  { transform: translate(-1px, 2px) rotate(0deg); }
  80%  { transform: translate(1px, -2px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

.glitchout {
  animation: glitch-shake 0.3s ease-in-out 3; /* shakes 3 times */
  color: #ff0044; /* optional red highlight */
  text-shadow: 0 0 2px #ff0044, 0 0 4px #ff0044;
}

/* ⚡ Harder, faster glitchout error */
.breakerror.glitchout {
  animation: hard-glitch 0.4s ease-in-out forwards;
}

@keyframes hard-glitch {
  0% {
    color: #fff;
    transform: translate(0);
    filter: none;
  }
  10% {
    color: #ff0033;
    transform: translate(-2px, 1px) rotate(-1deg);
    filter: brightness(2);
  }
  20% {
    transform: translate(3px, -2px) rotate(1deg);
    filter: hue-rotate(45deg);
  }
  30% {
    transform: translate(-4px, 3px) rotate(-1deg);
  }
  40% {
    color: #ff1b1b;
    text-shadow: 0 0 4px #ff0000, 0 0 8px #ff2222;
    filter: brightness(1.8);
  }
  60% {
    transform: translate(5px, -3px) rotate(2deg);
    opacity: 0.8;
  }
  80% {
    transform: translate(-3px, 4px) rotate(-1deg);
    opacity: 0.6;
  }
  100% {
    color: #ff0000;
    transform: translate(0);
    filter: none;
    opacity: 1;
  }
}

.cursor {
  display: inline-block;
  width: 2px;       /* adjust thickness */
  height: 1em;
  background-color: #00ffee;
  margin-left: 1px;
  animation: cursor-blink 0.8s step-end infinite;
  pointer-events: none; /* <-- ensures it doesn't block clicks */
}

/* ==========================
   GLITCH SHIMMER
========================== */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  background: transparent;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.glitch::before {
  text-shadow: 2px 0 #0ff;
  animation: glitchTop 1.5s infinite linear alternate-reverse;
}

.glitch::after {
  text-shadow: -2px 0 #f0f;
  animation: glitchBottom 2s infinite linear alternate-reverse;
}

@keyframes glitchTop {
  0%   { clip: rect(0, 900px, 0, 0); transform: translate(0); }
  10%  { clip: rect(10px, 9999px, 25px, 0); transform: translate(-2px,-2px); }
  20%  { clip: rect(40px, 9999px, 50px, 0); transform: translate(2px,-1px); }
  100% { clip: rect(0, 900px, 0, 0); transform: translate(0); }
}

@keyframes glitchBottom {
  0%   { clip: rect(0, 900px, 0, 0); transform: translate(0); }
  10%  { clip: rect(60px, 9999px, 80px, 0); transform: translate(2px,2px); }
  20%  { clip: rect(100px, 9999px, 120px, 0); transform: translate(-2px,1px); }
  100% { clip: rect(0, 900px, 0, 0); transform: translate(0); }
}

/* ==========================
   BUTTONS
========================== */
.skip-btn,
.replay-btn {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid #00ffee;
  color: #00ffee;
  font-family: monospace;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.skip-btn {
  position: absolute;
  top: 0;
  right: 1rem;
}

.skip-btn:hover,
.replay-btn:hover {
  background: #00ffee;
  color: #0a0a14;
  text-shadow: none;
}

/* ==========================
   MEDIA QUERIES
========================== */
@media (max-width: 600px) {
  #sessanite-popup {
    margin: 5px !important;
  }
}




