:root {
  --blue: #0066ff;
  --white: #ffffff;
  --black: #131313;
  --max-width: 700px;
  --font-main: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  --font-head: 'Segoe UI Semibold', 'Arial Black', 'Arial', sans-serif;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.7;
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
header {
  background: var(--blue);
  color: var(--white);
  padding: 2rem 0 1rem 0;
  text-align: center;
}
header h3 {
  margin: 0 0 0.2em 0;
  font-size: 2rem;
  font-family: var(--font-head);
}
.subtitle {
  font-size: 1.1rem;
  margin: 0;
}
.date {
  font-size: 0.97rem;
  color: #e3eefd;
  margin-top: 0.5em;
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2rem;
}
main {
  background: var(--white);
}
article {
  margin-top: 2.4rem;
  margin-bottom: 2.4rem;
}
section {
  margin-bottom: 2.2rem;
}
h2 {
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 1.23rem;
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}
p {
  margin-bottom: 1.05em;
}
blockquote {
  border-left: 4px solid var(--blue);
  background: #f6faff;
  color: #222;
  margin: 1.3em 0;
  padding: 0.8em 1em 0.8em 1.4em;
  font-style: italic;
  border-radius: 5px;
}
.author {
  border-top: 1px solid #e3eefd;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  font-size: 1rem;
}
.author-name {
  font-weight: bold;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 1.08rem;
  margin-bottom: 0.2em;
}
.author-bio {
  color: #333;
  font-size: 0.97rem;
  margin-top: 0;
}
strong {
  font-weight: 600;
}
@media (max-width: 600px) {
  .container {
    padding: 0 0.7rem;
  }
  header h1 {
    font-size: 1.25rem;
  }
  h2 {
    font-size: 1.007rem;
  }
  article {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
}
a {
  color: var(--blue);
  text-decoration: underline;
  word-break: break-word;
}
#backToTop {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 100;
  background: #0066ff;
  color: #fff;
  border: none;
  outline: none;
  padding: 0.75em 1.1em;
  border-radius: 50px;
  font-size: 1.04rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,102,255,0.17);
  transition: background 0.2s;
}
#backToTop:hover, #backToTop:focus {
  background: #0050cc;
}
.featured-img {
  max-width: 700px;
  width: 90%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* === Back to Home Button === */
.back-button {
  display: inline-block;
  margin: 20px;
  padding: 8px 14px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.back-button:hover {
  background-color: #333;
}
.start-reading {
  padding: 2rem 1rem;
  background-color: #fafafa;
}

.start-reading h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.start-reading ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.blog-post {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background-color: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-post:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.blog-post a {
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  color: #0077cc;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-post time {
  font-size: 0.9rem;
  color: #555;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.back-button {
  font-size: 1rem;
  text-decoration: none;
  color: #0077cc;
}

/* TOP BAR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.back-button {
  font-size: 1rem;
  text-decoration: none;
  color: #0077cc;
}

.top-right-buttons button {
  background: none;
  border: none;
  font-size: 1.2rem;
  margin-left: 1rem;
  cursor: pointer;
}

/* LIGHT MODE (default) */
body {
  background-color: #ffffff;
  color: #000000;
}

article,
.intro {
  background-color: #ffffff;
  color: #000000;
}

a,
.blue-text {
  color: blue;
}

/* DARK MODE */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark-mode .top-bar {
  background-color: #1e1e1e;
  border-color: #333;
}

body.dark-mode article,
body.dark-mode .intro {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

/* Proper dark mode link and blue text color */
body.dark-mode a,
body.dark-mode .blue-text {
  color: #4dabf7 !important;
}

body.dark-mode .top-right-buttons button {
  color: #f0f0f0;
}
.share-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;  /* add some clickable area */
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-button svg {
  width: 28px;
  height: 28px;
}
.scrollToStart {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000000;       /* Blue background */
  color: #fff;
  padding: 14px 28px;              /* Balanced size for text */
  border-radius: 20px;             /* Soft rounded edges */
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.scrollToStart:hover {
  background-color: #0056b3;       /* Darker blue on hover */
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
/* Launch Alert Styling */
.launch-alert {
  background: linear-gradient(90deg, #ff5722, #ff9800);
  color: white;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 700px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  animation: shake 1.2s infinite;
}

.launch-btn {
  background: white;
  color: #ff5722;
  padding: 0.5rem 1rem;
  margin-left: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.launch-btn:hover {
  background: #ffe0b2;
}

/* Shaking Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
/* Newsletter Section */
.newsletter {
  background-color: #3b82f6; /* Matches WodiWaitlist button's start color */
  color: white;
  padding: 0.8rem 1.2rem;
  text-align: center;
  font-size: 0.95rem; /* slightly small text */
  border-radius: 6px;
  margin: 20px auto;
  max-width: 700px;
}

.newsletter a {
  color: #dbeafe; /* light blue to match your theme */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.newsletter a:hover {
  color: white;
}
