/* ============================================
   GRUMPUS CSS - REFACTORED WITH ORIGINAL CLASS NAMES
   
   Table of Contents:
   1. CSS Variables (Custom Properties)
   2. Base Reset & Global Styles
   3. Animations
   4. Header & Navigation
   5. Hero/Root Section
   6. Content Sections
   7. Components
   8. Blog Styles
   9. Post Styles
   10. Footer
   11. Media Queries
   ============================================ */

/* ============================================
   1. CSS VARIABLES (CUSTOM PROPERTIES)
   ============================================ */
:root {
  /* --- Color Palette --- */
  --color-primary: #47D4FF;
  --color-secondary: orangered;
  --color-dark: #0D1B2A;
  --color-dark-bg: #112632;
  --color-light: #FFF5EA;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray: #7f8c8d;
  --color-gray-light: #e0e0e0;
  --color-off-white: #fafafa;
  --color-text: #2c3e50;
  --color-blue-accent: #81c7ea;
  --color-blue-bright: #00c3ff;
 
  
  /* --- Typography --- */
  --font-primary: 'cheese';
  --font-secondary: 'bloom';
  --font-body: 'Georgia', sans-serif;
  --font-ui: 'Arial', sans-serif;
  
  /* --- Spacing --- */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* --- Borders & Effects --- */
  --border-width: 3px;
  --border-width-thick: 4px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.07);
  
  /* --- Transitions --- */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  
  /* --- Z-Index Scale --- */
  --z-header: 2;
  --z-nav: 1000;
  --z-modal: 2000;
}

/* 2. Safe-area html background */
html {
  background-color: var(--color-primary);
}

/* ============================================
   2. BASE RESET & GLOBAL STYLES
   ============================================ */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-primary);
  overflow-x: hidden; /* Prevents horizontal scrolling on all pages */
}

/* ============================================
   3. ANIMATIONS
   ============================================ */
@keyframes swim {
  50% { transform: translate(0, 10px); }
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes playbutton {
  50% { scale: 1.1; }
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
/* --- Main Header --- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition:
    background-color var(--transition-fast),
    padding var(--transition-fast),
    box-shadow    var(--transition-fast);

  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  /* safe-area padding */
  padding-top:    calc(0.8rem + env(safe-area-inset-top));
  padding-bottom: 0.8rem;
  padding-left:   2%;
  padding-right:  2%;
}


/* Header Scrolled State */
header.scrolled {
  background-color: rgba(71, 212, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 3%;
  box-shadow: var(--shadow-sm);
}

/* --- Logo Section --- */
header .logo_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

header .logo_wrapper h1 {
  font-family: var(--font-primary);
  font-size: 2.3rem;
  color: var(--color-black);
  display: flex;
  position: relative;
}

header .logo_wrapper img {
  width: 70px;
}

/* Logo Scrolled State */
.scrolled .logo_wrapper h1 {
  font-size: 2.2rem;
}

.scrolled .logo_wrapper img {
  width: 60px;
}

/* --- Header Button --- */
header button {
  font-family: var(--font-primary);
  padding: 0.5rem 1.5rem;
  font-size: 1.8rem;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width-thick) solid var(--color-black);
  color: var(--color-white);
  line-height: 100%;
}

/* --- Navigation --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header .main_nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header .main_nav a {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.5rem;
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--transition-fast), transform 0.2s;
}

header .main_nav a.active {
  color: var(--color-secondary);
}

/* --- Mobile Navigation Toggle --- */
.nav-toggle {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: var(--z-nav);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  background: var(--color-black);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   5. HERO/ROOT SECTION
   ============================================ */
.root {
  width: 100%;
  height: 100vh;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* --- Hero Background Elements --- */
.root img.bg {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: bottom;
}

.root .gradient {
  width: 100%;
  height: 100%;
  position: absolute;
  background: linear-gradient(to right, rgb(76, 213, 255), transparent, rgb(76, 213, 255));
}

.root .gradient_2 {
  width: 100%;
  height: 100%;
  position: absolute;
  background: linear-gradient(to top, rgb(76, 213, 255), transparent, transparent, transparent, rgb(76, 213, 255));
}

/* --- Hero Logo --- */
.root img.big_logo {
  position: relative;
  width: 430px;
  margin-bottom: -45px;
  margin-top: 80px;
  animation: swim 2.75s infinite ease-in-out;
}

/* --- Hero Title --- */
.root h1 {
  font-family: var(--font-primary);
  font-size: 9rem;
  display: flex;
  position: relative;
}

.root h1 span:nth-child(1) {
  font-size: 11rem;
  rotate: -10deg;
}

.root h1 span:nth-child(4) {
  font-size: 10rem;
}

.root h1 span:nth-last-of-type(1) {
  font-size: 11rem;
  rotate: 10deg;
}

/* --- Hero Subtitle --- */
.root p {
  position: relative;
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin-top: -45px;
}

/* --- Hero Buttons --- */
.root button.explore {
  font-family: var(--font-primary);
  position: relative;
  padding: 0.6rem 2rem;
  font-size: 2.75rem;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width-thick) solid var(--color-black);
  color: var(--color-white);
  line-height: 100%;
  margin-top: 20px;
}

.root button.roadmap {
  font-family: var(--font-primary);
  position: absolute;
  bottom: 4rem;
  right: 5%;
  padding: 0.6rem 2rem;
  font-size: 2rem;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width-thick) solid var(--color-black);
  color: var(--color-white);
  line-height: 100%;
}

/* --- Hero Social Icons --- */
.root .socials {
  position: absolute;
  bottom: 4rem;
  left: 5%;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.root .socials .social {
  width: 45px;
  height: 45px;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.root .socials .social:nth-child(1) {
  rotate: 5deg;
}

.root .socials .social:nth-child(2) {
  rotate: -5deg;
}

.root .socials .social:nth-child(3) {
  rotate: 5deg;
}

.root .socials .social:nth-child(4) {
  rotate: -5deg;
}

.root .socials .social:hover {
  transform: scale(1.1);
}

/* ============================================
   6. CONTENT SECTIONS
   ============================================ */
/* --- Moving Banner --- */
.moving_banner {
  width: 100%;
  height: 50px;
  background-color: var(--color-blue-bright);
  border: var(--border-width) solid var(--color-black);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner_track {
  display: flex;
  width: fit-content;
  animation: scroll-left 40s linear infinite;
}

.banner_group {
  display: flex;
}

.banner_group p {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: bold;
  margin: 0 2rem;
  white-space: nowrap;
  font-family: var(--font-primary);
}

/* --- Main Content Sections --- */
.section {
  width: 100%;
  padding: 6rem 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--color-dark);
  border-bottom: var(--border-width) solid var(--color-black);
}

.section.blue {
  background-color: var(--color-primary);
}

.section h1 {
  font-size: 6rem;
  text-align: center;
  font-family: var(--font-primary);
}

.section p.body {
  font-size: 2rem;
  text-align: center;
  font-family: var(--font-secondary);
  line-height: 100%;
  margin-top: -20px;
  width: 100%;
}

.section span.heading {
  font-size: 3rem;
  text-align: center;
  font-family: var(--font-secondary);
  margin-bottom: 30px;
  user-select: none;
  background-color: var(--color-black);
  padding: 0.5rem 3rem;
  border: var(--border-width) solid var(--color-black);
  color: rgb(76, 213, 255);
  outline: 4px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.section span.heading:hover {
  scale: 0.95;
  opacity: 0.95;
}

.section .white {
  color: var(--color-white);
}

/* --- Video Wrapper --- */
.video_wrapper {
  width: 100%;
  height: 600px;
  background-color: var(--color-white);
  outline: 4px solid rgba(255, 255, 255, 0.1);
}

.video_wrapper iframe {
  width: 100%;
  height: 100%;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   7. COMPONENTS
   ============================================ */
/* --- Chatbox Component --- */
.chatbox {
  width: 100%;
  height: 750px;
  background-color: rgb(44, 36, 36);
  outline: 4px solid rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.chatbox img.bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  pointer-events: none;
}

.chatbox .blur {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Chatbox Start Screen */
.chatbox .start {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.chatbox .start img {
  width: 100px;
  animation: playbutton ease-in-out 0.5s infinite;
  transition: 0.5s;
}

.chatbox .start img:hover {
  scale: 1.1;
}

.chatbox .start p {
  font-size: 2rem;
  font-family: var(--font-secondary);
  color: var(--color-white);
}

/* Chat Messages */
.chatbox .chats {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2rem 2rem 150px 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  gap: 1rem;
}

/* Grumpus Chat */
.chatbox .chats .grumpus_chat_wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  user-select: none;
  pointer-events: none;
}

.chatbox .chats .grumpus_chat {
  display: flex;
  align-items: center;
  justify-content: start;
}

.grumpus_chat .pfp {
  height: 110px;
  position: relative;
}

.grumpus_chat .texts {
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  border-radius: 20px 20px 20px 0;
  padding: 1.5rem 2rem;
  margin-left: -30px;
  gap: 10px;
  max-width: 80%;
}

.grumpus_chat .texts p.name {
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--font-primary);
}

.grumpus_chat .texts p.message {
  font-size: 1.5rem;
  font-family: var(--font-secondary);
  line-height: 100%;
}

/* User Chat */
.chatbox .chats .user_chat_wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: end;
  user-select: none;
  pointer-events: none;
}

.chatbox .chats .user_chat {
  display: flex;
  align-items: center;
  justify-content: center;
}

.user_chat .pfp {
  height: 110px;
  position: relative;
}

.user_chat .texts {
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  border-radius: 20px 20px 0px 20px;
  padding: 1.5rem 2rem;
  margin-right: -20px;
}

.user_chat .texts p.name {
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--font-primary);
}

.user_chat .texts p.message {
  font-size: 1.5rem;
  font-family: var(--font-secondary);
  line-height: 100%;
}

/* Chat Input */
.send_chat {
  position: absolute;
  bottom: 1rem;
  left: 0rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  padding: 0 1rem;
}

.send_chat * {
  transition: 0.3s;
}

.send_chat input {
  flex-grow: 1;
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-black);
  padding: 0 1rem 0 1rem;
  height: 100%;
  font-size: 1.75rem;
  font-family: var(--font-secondary);
  border-right: 0px solid var(--color-black);
  border-radius: 0px;
}

.send_chat input:focus {
  outline: none !important;
}

.send_btn_wrapper {
  height: 100%;
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-black);
  border-left: 0px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.send_btn_wrapper button.send {
  height: 100%;
  padding: 0 2rem;
  border: 0px solid var(--color-black);
  background-color: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 1.5rem;
}

.send_chat .grumpus_typing {
  position: absolute;
  left: 0;
  top: -45px;
  font-family: var(--font-secondary);
  color: var(--color-white);
  font-size: 2rem;
  display: none;
}

/* --- Tokenomics Component --- */
.tokenomics {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.tokenomics .tokenomic {
  width: 40%;
  flex-grow: 1;
  background-color: var(--color-black);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 1rem;
  min-height: 250px;
  outline: 4px solid rgba(255, 255, 255, 0.1);
}

.tokenomic .step_heading {
  color: var(--color-white);
  font-size: 2.5rem;
  font-family: var(--font-primary);
}

.tokenomic .step_heading_2 {
  color: var(--color-white);
  font-size: 2.2rem;
  font-family: var(--font-primary);
}

.tokenomic .step_heading span {
  color: rgb(76, 213, 255);
}

.tokenomic .step_content {
  color: var(--color-white);
  font-size: 1.75rem;
  font-family: var(--font-secondary);
  opacity: 0.75;
}

/* --- Roadmap Component --- */
.roadmaps {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.roadmaps .roadmap {
  width: 40%;
  flex-grow: 1;
  background-color: var(--color-black);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 1rem;
  min-height: 345px;
  outline: 4px solid rgba(255, 255, 255, 0.1);
}

.roadmap .step_heading {
  color: var(--color-white);
  font-size: 2.5rem;
  font-family: var(--font-primary);
}

.roadmap .step_heading span {
  color: rgb(76, 213, 255);
}

.roadmap .step_content {
  color: var(--color-white);
  font-size: 1.75rem;
  font-family: var(--font-secondary);
}

/* --- FAQ Component --- */
.faqs {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  width: 100%;
}

.faq-item {
  width: 100%;
}

.heading {
  cursor: pointer;
  display: inline-block;
  color: var(--color-white);
  font-weight: bold;
  transition: color var(--transition-fast);
}

.faq-body {
  display: none;
  color: var(--color-white);
  padding: 1rem 0rem 3rem 0rem;
}

/* --- Trust Badges --- */
.trustedby {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trustedby img {
  height: 100px;
}

/* --- Utility Classes --- */
.centered {
  text-align: center !important;
}

.btneffect:hover {
  scale: 0.9;
  opacity: 0.9;
}

/* --- Social Icons (Footer) --- */
.socials .social {
  width: 45px;
  height: 45px;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials .social:nth-child(1) {
  rotate: 5deg;
}

.socials .social:nth-child(2) {
  rotate: -5deg;
}

.socials .social:nth-child(3) {
  rotate: 5deg;
}

.socials .social:nth-child(4) {
  rotate: -5deg;
}

.socials .social:nth-child(1) img,
.socials .social:nth-child(2) img {
  width: 100%;
  height: 100%;
}

.socials .social:nth-child(3) img,
.socials .social:nth-child(4) img {
  width: 60%;
}

/* ============================================
   8. BLOG STYLES
   ============================================ */
/* --- Blog Page Wrapper --- */
.blog-page-wrapper {
  background-color: var(--color-off-white);
  padding-top: 120px;
  min-height: calc(100vh - 200px);
}

/* --- Blog Header --- */
.blog-header {
  text-align: center;
  padding: 4rem 2rem 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-header h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 6vw, 3.5rem); /* shrink on narrower screens */
  color: orangered;
  margin-bottom: 0rem;
  font-weight: 700;
  line-height: 1.1;

  /* prevent wrapping */
  white-space: nowrap;
}

.blog-subtitle {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  color: var(--color-gray);
  font-weight: 400;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* --- Blog Hero --- */
.blog-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  position: relative;
  background-color: var(--color-primary);
  border-bottom: 3px solid var(--color-black);
  overflow: hidden;
}

.blog-hero .blog-title {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-primary);
  font-size: 4rem;
  color: var(--color-secondary);
  text-shadow: 4px 4px 0 #000;
  z-index: 1;
}

/* --- Blog Posts Container --- */
.blog-posts-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: none;
}

.loading-text {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.5rem;
  color: var(--color-gray);
  padding: 3rem;
}

/* --- Blog Card --- */
#posts-container a {
  text-decoration: none;
  color: inherit;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-image-container {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-text-container h2 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
}

.card-text-container p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--color-gray);
  margin-top: auto;
  line-height: 1.5;
}

/* --- Blog/Post Navigation Specific --- */
/* Force dark theme for blog pages */
body:has(.blog-page-wrapper) {
  background-color: var(--color-dark-bg) !important;
}

body:has(.blog-page-wrapper) .blog-page-wrapper {
  background-color: var(--color-dark-bg) !important;
  color: var(--color-light) !important;
}

/* Force all text to be light colored */
body:has(.blog-page-wrapper) *,
body:has(.blog-page-wrapper) a {
  color: var(--color-light) !important;
}

body:has(.blog-page-wrapper) .blog-header h1,
body:has(.blog-page-wrapper) .blog-header .blog-subtitle {
  color: var(--color-light) !important;
}

body:has(.blog-page-wrapper) .blog-header h1 {
  color: var(--color-secondary) !important;
}


/* Dark blog cards */
body:has(.blog-page-wrapper) #posts-container a {
  background-color: var(--color-black) !important;
  border: 1px solid var(--color-light) !important;
}

/* Floating navigation for blog/post pages */
body:has(.blog-page-wrapper) header,
body:has(.post-page-wrapper) header {
  max-width: 1200px !important;
  margin: 0 auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px) !important;
  padding: 0.8rem 3rem !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  background-color: var(--color-primary) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  top: 20px !important;
  right: auto !important;
}

/* Scrolled state for blog pages */
body:has(.blog-page-wrapper) header.scrolled,
body:has(.post-page-wrapper) header.scrolled {
  background-color: rgba(71, 212, 255, 0.98) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  transform: translateX(-50%) scale(0.95) !important;
}

/* Auto-hide navigation on scroll */
body:has(.blog-page-wrapper) header,
body:has(.post-page-wrapper) header {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
}

body:has(.blog-page-wrapper) header.hide-nav,
body:has(.post-page-wrapper) header.hide-nav {
  transform: translateX(-50%) translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body:has(.blog-page-wrapper) header.show-nav,
body:has(.post-page-wrapper) header.show-nav {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Blog navigation link colors */
body:has(.blog-page-wrapper) header .main_nav a,
body:has(.post-page-wrapper) header .main_nav a {
  color: var(--color-black) !important;
}

/* FIX: Force logo text to be black on blog/post pages */
body:has(.blog-page-wrapper) header .logo_wrapper h1,
body:has(.post-page-wrapper) header .logo_wrapper h1 {
  color: var(--color-black) !important;
}

body:has(.blog-page-wrapper) header .main_nav a:hover,
body:has(.post-page-wrapper) header .main_nav a:hover,
body:has(.blog-page-wrapper) header .main_nav a.active,
body:has(.post-page-wrapper) header .main_nav a.active {
  color: var(--color-secondary) !important;
}

/* ============================================
   9. POST STYLES - FINAL RESPONSIVE LAYOUT
   ============================================ */

/* --- Post Page Wrapper --- */
.post-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 5rem;
    background-color: transparent !important;
    min-height: 100vh !important;
    width: 100%;
}

.post-page-wrapper .post-header h1 {
  font-family: var(--font-primary) !important;
  font-size: 2.5rem;
}

/* --- Dark Theme Overrides for Post Page --- */
body:has(.post-page-wrapper) {
    background-color: var(--color-dark-bg) !important;
}
body:has(.post-page-wrapper) .post-page-wrapper::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--color-dark-bg) !important;
    z-index: -1;
}
body:has(.post-page-wrapper) *,
body:has(.post-page-wrapper) *::before,
body:has(.post-page-wrapper) *::after {
    color: var(--color-light) !important;
}


/* --- Centered Main Content Area --- */
.post-header {
    text-align: center;
    padding: 2rem 0;
    margin: 0 auto 2rem auto;
    max-width: 850px;
    width: 100%;
}
.post-featured-image {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.post-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* --- Responsive Layout Container (YOUR KEY WRAPPER) --- */
.content-layout {
    max-width: 1100px; /* Wider width to accommodate the sidebar */
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Padding for mobile */
}


/* --- Styled Table of Contents (Mobile First) --- */
#toc-wrapper {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: var(--color-dark-bg);     /* ← make it solid */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#toc-wrapper .toc-heading {
    /* --- Sticky Behavior --- */
    position: sticky;
    /* This makes it stick to the very top of the viewport inside its container */
    top: 0;
    z-index: 2;

    /* --- Visual & Sizing Fixes --- */
    /* This provides the solid background when the header is sticky */
    background: var(--color-dark-bg);
    color: var(--color-secondary) !important;
    margin: 0 -1rem;
    
    /* --- Simplified Padding (No Negative Margin) --- */
    /* We remove the negative margin to prevent overflow and use simple vertical padding. */
    padding: 1rem 1rem 0.75rem;
    box-sizing: border-box;
    border-bottom: 2px solid rgba(255,255,255,0.15);

    /* --- Original Properties --- */
    font-family: var(--font-primary);
    font-size: 1.6rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

#toc { /* Targets the UL with id="toc" in your HTML */
    list-style: none;
    padding: 0;
    margin: 0;
}
#toc li a {
    display: block;
    padding: 0.6rem 0.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-light) !important;
    opacity: 0.8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease-in-out;
}
#toc li:last-child a {
    border-bottom: none;
}
#toc li a:hover {
    opacity: 1;
    background-color: rgba(71, 212, 255, 0.1);
    padding-left: 1rem;
}


/* --- Main Article Content Wrapper --- */
.post-content-wrapper {
    margin: 0;
    max-width: 100%; /* Allows it to fill the grid column */
}


/* --- DESKTOP-ONLY STYLES (for screens 1100px and wider) --- */
@media (min-width: 1400px) {

    /* 1. Make the main layout container a positioning context */
    /* This container already has the correct max-width and centering */
    .content-layout {
        position: relative;
    }

    /* 2. Position the TOC absolutely to the left of the main content */
    #toc-wrapper {
        position: absolute;
        top: 0; /* Align to the top of the content-layout container */
        
        /* This places the TOC's right edge exactly where the text column begins */
        right: 100%; 
        
        /* Add a gap between the TOC and the text */
        margin-right: 2.5rem; 
        
        /* Give the TOC a fixed width */
        width: 250px; 
    }
}


/* --- Post Content Typography & Elements --- */
/* (This section remains unchanged from your original file) */
.post-content * {
  font-family: var(--font-body) !important;
}

/* Force Georgia font for all post content */
.post-content * {
  font-family: var(--font-body) !important;
}

.post-content span,
.post-content div,
.post-content strong,
.post-content em,
.post-content b,
.post-content i {
  font-family: var(--font-body) !important;
}

/* Post content typography */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-body);
  color: var(--color-text);
  margin: 2.5rem 0 1.5rem 0;
  font-weight: 600;
}

.post-content h1 { font-size: 1.8rem !important; }
.post-content h2 { font-size: 1.5rem !important; }
.post-content h3 { font-size: 1.3rem !important; }
.post-content h4 { font-size: 1.2rem !important; }
.post-content h5 { font-size: 1.1rem !important; }
.post-content h6 { font-size: 1rem !important; }

.post-content p {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1.2rem !important;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  font-family: var(--font-body);
  border-left: 4px solid var(--color-secondary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.post-content a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.post-content a:hover {
  color: #ff4500;
}

/* Post wrapper and layout helpers */
/*.post-wrapper {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: transparent;
}*/

/* Reading progress bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #333;
  appearance: none;
  z-index: 2000;
}

#reading-progress::-webkit-progress-value {
  background: var(--color-secondary);
}

/* ============================================
   10. FOOTER
   ============================================ */
footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dark);
  padding: 1.5rem 0;
  gap: 1rem;
}

footer p {
  font-size: 1.5rem;
  font-family: var(--font-secondary);
  color: var(--color-white);
}

footer .socials {
  position: relative;
  display: flex;
  gap: 1rem;
}

footer .socials .social {
  width: 45px;
  height: 45px;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

footer .socials .social:nth-child(1) {
  rotate: 5deg;
}

footer .socials .social:nth-child(2) {
  rotate: -5deg;
}

footer .socials .social:nth-child(3) {
  rotate: 5deg;
}

footer .socials .social:nth-child(4) {
  rotate: -5deg;
}

/* ============================================
   11. MEDIA QUERIES
   ============================================ */
/* --- Tablet/Medium Screens (901px - 1400px) --- */
@media only screen and (min-width: 901px) and (max-width: 1400px) {
  .root img.big_logo {
    width: 350px;
    margin-top: 60px;
  }
  
  .root h1 {
    font-size: 7rem;
  }
  
  .root h1 span:nth-child(1) {
    font-size: 8rem;
  }
  
  .root h1 span:nth-child(4) {
    font-size: 7.5rem;
  }
  
  .root h1 span:nth-last-of-type(1) {
    font-size: 8rem;
  }
  
  .root p {
    font-size: 2.5rem;
  }
  
  header .logo_wrapper h1 {
    font-size: 2.2rem;
  }
  
  header .logo_wrapper img {
    width: 60px;
  }
}

/* --- Mobile Screens (max-width: 900px) --- */
@media only screen and (max-width: 900px) {
  /* Header Mobile */
  header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: var(--z-header);
    padding: 1rem 0.5rem;
    left: 0;
    right: 0;
    position: fixed;
    transition: 0.1s;
  }

  header .logo_wrapper h1 {
    font-family: var(--font-primary);
    font-size: 1.95rem;
    color: var(--color-black);
    display: flex;
    position: relative;
  }
  
  header .logo_wrapper img {
    width: 50px;
  }
  
  header button {
    font-family: var(--font-primary);
    padding: 0.3rem 1.2rem 0.4rem 1rem;
    font-size: 1rem;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-black);
    color: var(--color-white);
    line-height: 100%;
  }
  
  /* push logo to left, buy-button to right */
header .logo_wrapper {
  margin-right: auto;
}

header button.roadmap {
  margin-left: auto;
}

/* hamburger toggle sits just right of logo */
.nav-toggle {
  /* you already have display:flex */
  margin-left: 1rem;
  /* or, if you want exact pixel control, uncomment below:
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  */
}

  
  .scrolled .logo_wrapper h1 {
    font-size: 1.95rem;
  }
  
  .scrolled .logo_wrapper img {
    width: 50px;
  }

  /* Mobile Navigation */
  .nav-toggle {
    display: flex !important;
  }

  header .main_nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    border-bottom: 3px solid var(--color-black);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  header .main_nav.open {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  header .main_nav.open ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  header .main_nav.open li {
    width: 100%;
    text-align: center;
  }
  
  header .main_nav.open a {
    display: block;
    padding: 1.5rem;
    font-size: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  header .main_nav.open li:last-of-type a {
    border-bottom: none;
  }

  /* Hero Mobile */
  .root img.big_logo {
    position: relative;
    margin-bottom: -25px;
    margin-top: 10%;
    width: 100%;
    max-width: 390px;
  }

  .root h1 {
    font-size: 6rem;
  }
  
  .root h1 span:nth-child(1) {
    font-size: 6rem;
    rotate: -10deg;
  }
  
  .root h1 span:nth-child(4) {
    font-size: 6rem;
  }

  .root h1 span:nth-last-of-type(1) {
    font-size: 6rem;
    rotate: 10deg;
  }

  .root p {
    font-size: 2rem;
    margin-top: 0px;
    text-align: center;
    padding: 0 10%;
    line-height: 100%;
  }

  .root button.roadmap {
    display: none;
  }
  
  .root button.explore {
    max-width: 390px;
    width: 100%;
    font-size: 2.1rem;
  }

  .root .socials {
    position: relative;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 20px;
    justify-content: center;
  }

  /* Section Mobile */
  .section {
    padding: 5rem 2.5%;
  }
  
  .section h1 {
    font-size: 4rem;
    text-align: center;
    font-family: var(--font-primary);
    line-height: 100%;
  }

  .section p.body {
    font-size: 2rem;
    text-align: center;
    font-family: var(--font-secondary);
    line-height: 90%;
  }

  .section span.heading {
    font-size: 3rem;
  }

  /* Components Mobile */
  .tokenomics .tokenomic {
    width: 100%;
  }

  .roadmaps .roadmap {
    width: 100%;
  }

  .trustedby {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0rem;
  }
  
  .trustedby img {
    height: 80px;
  }

  /* Chatbox Mobile */
  .chats {
    padding: 1rem 1rem 150px 1rem !important;
  }

  .send_chat button.send {
    padding: 0 0.85rem;
    border: 0px solid var(--color-black);
    background-color: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.1rem;
  }

  .send_chat input {
    height: 70px;
    padding: 0 1rem 0 1rem;
    font-size: 1.75rem;
    font-family: var(--font-secondary);
    border-right: 0px solid var(--color-black);
    border-radius: 0px;
    width: 100px;
  }

  /* Blog Mobile */
  .blog-page-wrapper {
    padding-top: 100px;
  }
  
  .blog-header {
    padding: 3rem 0.5rem 2rem 0.5rem;
    max-width: 100%;
  }
  
  .blog-posts-container {
    max-width: 100%;
    padding: 1rem 0.5rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Post Mobile */
  .post-page-wrapper {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
  
  .post-header {
    padding: 2rem 0 1.5rem 0;
  }
  
  .post-header h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .post-content-wrapper {
    max-width: 100% !important;
    padding: 0 0.25rem !important;
    margin: 2rem auto !important;
  }
  
  .post-content {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-left: 0 !important;
    padding: 0 0.25rem !important;
  }
  
  .post-featured-image {
    max-width: 400px;
    margin: 1.5rem auto;
  }


  /* Blog/Post Nav Mobile */
  body:has(.blog-page-wrapper) header,
  body:has(.post-page-wrapper) header {
    max-width: 95% !important;
    padding: 1rem 1rem !important;
    border-radius: 25px !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
  }
  
  body:has(.blog-page-wrapper) header .logo_wrapper,
  body:has(.post-page-wrapper) header .logo_wrapper {
    margin-left: -0.5rem !important;
  }
  
  body:has(.blog-page-wrapper) header button,
  body:has(.post-page-wrapper) header button {
    padding: 0.3rem 1rem !important;
    font-size: 1rem !important;
  }
  
  body:has(.blog-page-wrapper) .nav-toggle,
  body:has(.post-page-wrapper) .nav-toggle {
    padding: 0.3rem !important;
    display: flex !important;
  }
  
  body:has(.blog-page-wrapper) header .main_nav:not(.open),
  body:has(.post-page-wrapper) header .main_nav:not(.open) {
    display: none !important;
  }
  
  body:has(.blog-page-wrapper) header .main_nav,
  body:has(.post-page-wrapper) header .main_nav {
    background-color: var(--color-primary);
    border-radius: 20px;
    top: 80px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  body:has(.blog-page-wrapper) header button.roadmap,
  body:has(.post-page-wrapper) header button.roadmap {
    display: none !important;
  }
}

/* --- Small Mobile (max-width: 600px) --- */
@media only screen and (max-width: 600px) {
  .trustedby {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0rem;
  }
  
  .trustedby img {
    height: 80px;
  }
}

/* --- Extra Small Mobile (max-width: 480px) --- */
@media only screen and (max-width: 480px) {
  .post-page-wrapper {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .post-content {
    padding: 0 0.5rem !important;
  }
  
  .blog-header {
    padding: 3rem 0.5rem 2rem 0.5rem;
  }
  
  .blog-posts-container {
    padding: 1rem 0.5rem;
  }
}

/* --- Desktop Only --- */
@media only screen and (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }
  
  header .main_nav {
    display: flex !important;
  }

  .btneffect:hover {
    scale: 0.9;
    opacity: 0.9;
  }

  /* Blog hover effects */
  header a:hover,
  header .main_nav a:hover {
    color: var(--color-secondary);
    transform: scale(0.97);
  }
  
  #posts-container a:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 20px rgba(71, 212, 255, 0.3);
  }
}

/* ─── PRESALE MODAL STYLES ─── */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  display: none;            /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-content {
  position: relative;
  width: 90%; max-width: 900px;
  height: 90vh;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}
.modal-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.close-button {
  position: absolute;
  top: 55px; right: 225px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  width: 35px;
  height: 35px;
  border-radius: 0 8px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* TEST OVERRIDE - Fix text alignment under featured image */
.content-layout {
  display: flex !important;
  flex-direction: row !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  gap: 1rem !important;
  align-items: flex-start !important;
}

#toc-wrapper {
  position: sticky !important;
  top: 100px !important;
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
  width: 300px !important;
  flex-shrink: 0 !important;
  padding: 1rem !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  font-family: 'Georgia', sans-serif !important;
  order: -1 !important;
  margin-right: 1rem !important;
}

/* Main content container */
.post-content-wrapper {
  flex: 1 !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 3rem 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}


.post-featured-image img {
  width: 100% !important;
  max-width: 850px !important;
}

/* Text content alignment */
.post-content {
  max-width: 850px !important;
  width: 100% !important;
  margin: 0 !important;
  margin-left: -17rem !important;
  padding: 0 2rem !important;
  box-sizing: border-box !important;
}


/* 1) All non-whitepaper posts: keep the title white */
.post-page-wrapper:not(.post-whitepaper) .post-header h1 {
  color: var(--color-light) !important;
}

/* 2) Only the whitepaper post: turn its title orange */
.post-page-wrapper.post-whitepaper .post-header h1 {
  color: var(--color-secondary) !important;
}

/* Ensure headings and paragraphs respect the width */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content p {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Replace your mobile TOC CSS with this simpler version */
@media (max-width: 1399px) {
  .content-layout {
    flex-direction: column !important;
  }
  
  #toc-wrapper {
    position: static !important; /* Reset positioning */
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    max-height: none !important;
    background: rgba(0, 0, 0, 0.05) !important;
    z-index: 1 !important;
    padding: 1rem !important;
    transition: none !important;
    overflow-y: visible !important;
    order: -1 !important; /* Show before content */
    margin: 1rem auto !important;
    border-radius: 12px !important;
  }
  
  .post-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }
  
  /* Hide the floating button elements since we're not using them */
  .toc-toggle,
  .toc-overlay {
    display: none !important;
  }
}

/* COMPACT MOBILE MARGINS - Make margins much smaller like Notion */

@media (max-width: 900px) {
  /* Reduce overall page wrapper margins */
  .post-page-wrapper {
    padding-left: 0.2rem !important; /* Much smaller */
    padding-right: 0.2rem !important; /* Much smaller */
  }
  
  /* Reduce content wrapper margins */
  .post-content-wrapper {
    max-width: 100% !important;
    padding: 0 0.5rem !important; /* Very tight padding */
    margin: 1rem auto !important;
  }
  
  /* Reduce post content text margins - make text go almost edge-to-edge */
  .post-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 0.25rem !important; /* Very compact - like Notion */
    box-sizing: border-box !important;
  }
  
  /* Reduce blog listing margins */
  .blog-posts-container {
    max-width: 100%;
    padding: 1rem 0.75rem; /* Tighter side padding */
  }
  
  /* Reduce blog header margins */
  .blog-header {
    padding: 3rem 0.75rem 2rem 0.75rem; /* Much tighter */
    max-width: 100%;
  }
  
  /* Reduce TOC wrapper margins */
  #toc-wrapper {
    margin: 1rem 0.5rem !important; /* Tighter margins */
    padding: 1rem !important; /* Reduced padding */
  }
  
  /* Make featured image use full width with minimal margins */
  .post-featured-image {
    max-width: calc(100% - 1rem); /* Minimal margin allowance */
    margin: 1.5rem auto;
    padding: 0 0.5rem; /* Very tight padding */
  }
  
  /* Remove extra padding from headings and paragraphs */
  .post-content h1,
  .post-content h2,
  .post-content h3,
  .post-content h4,
  .post-content h5,
  .post-content h6,
  .post-content p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important; /* Remove extra padding */
    padding-right: 0 !important; /* Remove extra padding */
  }
  
  /* For very small screens, make even more compact */
  @media (max-width: 480px) {
    .post-page-wrapper {
      padding-left: 0.5rem !important; /* Even tighter */
      padding-right: 0.5rem !important; /* Even tighter */
    }
    
    .post-content {
      padding: 0 0.5rem !important; /* Almost edge-to-edge */
    }
    
    .blog-header {
      padding: 3rem 0.5rem 2rem 0.5rem; /* Very tight */
    }
    
    .blog-posts-container {
      padding: 1rem 0.5rem; /* Very tight */
    }
  }
}

/* Ensure nav is always visible on desktop for non-blog pages */
@media (min-width: 901px) {
    .nav-toggle {
        display: none !important;
    }
    
    header .main_nav {
        display: flex !important;
    }

}

/* ── Flush TOC heading to the very top ── */
#toc-wrapper {
  /* remove the wrapper’s top-padding so the heading can sit flush */
  padding-top: 0 !important;
}


/* ——— Mobile: bump up H1, shrink subtitle ——— */
@media only screen and (max-width: 900px) {
  .blog-header h1 {
    font-size: clamp(3rem, 8vw, 5rem);
  }
  .blog-header .blog-subtitle {
    font-size: 1rem;
  }
}


/* ============================================
   END OF REFACTORED CSS
   ============================================ */