@import url('https://fonts.googleapis.com/css2?family=Comic+Neue&display=swap');

/* ---------- Base Styling ---------- */
body {
  font-family: 'Comic Neue', cursive;
  background-color: #f2f4f8; /* Soft background */
  color: #333;
  margin: 0;
  padding: 0;
}

/* ---------- Layout Container ---------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #f8e1db; /* soft peach background */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* ---------- Header ---------- */
header {
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

/* ---------- Optional Centered Block (for home or hero section) ---------- */
.centered-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 10vh;
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
}

.centered-title h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

/* ---------- Navigation ---------- */
nav {
  text-align: center;
  background-color: #f8e1db;
  padding: 10px 0;
  margin-bottom: 30px;
}

nav a {
  display: inline-block;
  margin: 0 12px;
  color: #c44569;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* ---------- Headings and Paragraphs ---------- */
h2 {
  color: #4b6584;
  margin-top: 30px;
}

p, li {
  font-size: 1.1em;
  line-height: 1.6;
}

/* ---------- Blockquote ---------- */
blockquote {
  font-style: italic;
  color: #666;
  border-left: none;
  padding-left: 15px;
  margin: 30px 0;
  text-align: center;
}

/* ---------- Collapsible Details ---------- */
details.collapsible {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

details.collapsible[open] {
  border-color: #f8b4b4;
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.1);
}

details.collapsible summary {
  font-size: 1.2em;
  cursor: pointer;
  color: #c44569;
  padding: 10px;
  background-color: #fff;
  border-radius: 6px;
  outline: none;
  user-select: none;
  transition: background-color 0.3s ease;
}

details.collapsible summary:hover {
  background-color: #ffe8e8;
}

/* Hide the default arrows */
details.collapsible summary::-webkit-details-marker,
details.collapsible summary::marker {
  display: none;
}

/* Collapsible content animation */
details.collapsible .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
  padding-top: 0;
}

details.collapsible[open] .content {
  max-height: 1000px;
  opacity: 1;
  padding-top: 10px;
}

/* Lists inside collapsible sections */
details.collapsible ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

/* ---------- Special Year Style (if used) ---------- */
.year {
  font-weight: bold;
  color: #c44569;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  margin: 50px 0 20px;
  font-size: 0.9em;
  color: #666;
}

/* TOC container */
.page-toc {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 14px;
  margin: 20px 0 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Header row: title + toggles */
.toc-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.toggles { display: flex; gap: 8px; }
.toggles button {
  cursor: pointer; border: 1px solid rgba(0,0,0,0.12);
  background: #fff; padding: 6px 10px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Chip carousel */
.toc-carousel { display: flex; align-items: center; gap: 8px; }
.toc-nav {
  border: 1px solid rgba(0,0,0,0.12); background: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto; scroll-snap-align: start;
  text-decoration: none; color: inherit;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 8px 12px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #fff;
}
.chip:focus, .chip:hover { outline: none; border-color: rgba(0,0,0,0.3); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ---------- Collapsible soft cards ---------- */
details.disclosure {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  margin: 16px 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}
details.disclosure > summary {
  list-style: none;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
details.disclosure > summary::-webkit-details-marker { display: none; }

details.disclosure .chev {
  width: 12px; height: 12px; display: inline-block; background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.12 9.29L12 13.17l3.88-3.88L17.3 10.7 12 16l-5.3-5.3z"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.12 9.29L12 13.17l3.88-3.88L17.3 10.7 12 16l-5.3-5.3z"/></svg>') no-repeat center / contain;
  transform: rotate(-90deg);
  transition: transform .2s ease;
}
details.disclosure[open] .chev { transform: rotate(0deg); }

.resource-inner { padding: 0 20px 16px 20px; }
.resource-inner + .resource-inner {
  border-top: 1px dashed rgba(0,0,0,0.12);
  padding-top: 16px;
}

/* Clean lists without bullets */
.list-clean { list-style: none; padding-left: 0; margin: 8px 0; }
.list-clean li { margin: 6px 0; }

.link-list { margin: 0; }
.link-list p { margin: 6px 0; }

/* Back to top link */
.back-top { text-align: right; margin: 18px 0 28px; }
.back-top a {
  text-decoration: none; border-bottom: 1px dashed rgba(0,0,0,0.25);
}
.back-top a:hover { border-bottom-style: solid; }

/* ---------- Book collapsibles (Option A) ---------- */
.book-disclosure {
  border-top: 1px dashed rgba(0,0,0,0.12);
}
.book-disclosure:first-of-type {
  border-top: none;
}
.book-disclosure > summary {
  padding: 14px 20px;
  background: rgba(0,0,0,0.02);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tunables */
:root {
  --carousel-max: 800px;     /* visible width of the carousel track */
  --carousel-gutter: 16px;   /* inner left/right padding inside the track */
  --arrow-size: 36px;        /* arrow button size */
  --arrow-gap: 10px;         /* space between arrows and track */
}

/* Wrapper keeps arrows + track centered */
.books-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;      /* centers the whole unit */
  gap: var(--arrow-gap);
  margin: 8px 0 6px;
}

/* Show one card per view, but constrain the track width */
.books-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* exactly one card visible, with comfy side gutters */
  width: min(100%, var(--carousel-max));
  gap: 0;
  padding-inline: var(--carousel-gutter);
  scroll-padding-inline: var(--carousel-gutter);

  scrollbar-width: none;
}
.books-carousel::-webkit-scrollbar { display: none; }

/* Each book fills the track width (minus the padding above) */
.book-card {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;

  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 16px 18px;
  box-sizing: border-box;        /* prevents any clipping at edges */
}

/* Comfortable line length on wide screens */
.book-card > * {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Arrow buttons stay clearly visible */
.carousel-nav {
  border: 2px solid rgba(0,0,0,0.12);
  background: #fff;
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
}

/* Slightly larger arrows on roomy viewports */
@media (min-width: 900px) {
  :root {
    --arrow-size: 40px;
    --carousel-max: 900px;   /* feel free to bump to 960px if you prefer */
  }
}

/* Tighten gutters on very small screens */
@media (max-width: 520px) {
  :root { --carousel-gutter: 10px; }
}

/* Bulleted lists inside resource sections */
.bulleted {
  list-style: disc outside;
  padding-left: 1.25rem; /* ~20px indent */
  margin: 8px 0 0 0;
}
.bulleted li { margin: 6px 0; }
.bulleted a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,0,0,0.25);
}
.bulleted a:hover { border-bottom-style: solid; }

/* ===========================
   Blog Page Styles (Docs & Direction)
   =========================== */

/* Page intro + search */
.blog-intro { margin: 0 0 18px; }

.searchbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0 16px;
}
.searchbar input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px;
  font: inherit;
}

/* Sticky jump nav */
.category-nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  z-index: 5;
}
.category-nav .container {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
}
.category-nav a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  color: inherit;
}
.category-nav a:hover { background: rgba(0,0,0,.04); }

/* Accordions (expandable categories) */
.blog-accordion {
  margin: 16px 0 20px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  overflow: clip;
}
.blog-summary {
  list-style: none; /* removes default marker in some browsers */
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.blog-summary::-webkit-details-marker { display: none; } /* Safari/Chrome marker */
.blog-summary .count {
  font-weight: 500;
  font-size: 0.95em;
  color: #666;
}

/* Category accent bullets (small pill) */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Category accent dots */
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-ai { background: #2d98da; }
.dot-leadership { background: #e1a32a; }
.dot-strategy { background: #20bf6b; }
.dot-ux { background: #0fb9b1; }
.dot-writing { background: #8854d0; }

/* Posts list and cards */
.post-list { display: flex; flex-direction: column; gap: 16px; padding: 16px; }

.blog-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: 16px 18px;
}
.blog-card h4 { margin: 6px 0 4px; color: #4b6584; }
.blog-card a { text-decoration: none; color: #c44569; }
.blog-card a:hover { text-decoration: underline; }

.post-meta {
  font-size: .95em;
  color: #666;
  margin: 6px 0 10px;
}

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tag {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .85em;
}

.empty-state { text-align: center; color: #666; padding: 18px 6px; display: none; }
.back-top { margin-top: 20px; text-align: right; }

/* Focus and accessibility */
.blog-summary:focus,
.blog-summary:focus-visible,
.category-nav a:focus,
.category-nav a:focus-visible,
.searchbar input:focus,
.searchbar input:focus-visible {
  outline: 3px solid rgba(196,69,105,.35); /* matches brand accent */
  outline-offset: 2px;
  border-radius: 10px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .blog-summary { padding: 14px; }
  .post-list { padding: 12px; }
}


/* Collapsible categories */
details.category {
  margin: 1.2em 0;
  border: 1px solid #d9d4cc;
  border-radius: 10px;
  background: #fffaf2; /* matches your peach container vibe */
  padding: 0.25rem 0.9rem;
}

details.category summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  outline: none;
  padding: 0.6rem 0.2rem;
}

/* Custom marker */
details.category summary::-webkit-details-marker { display: none; }
details.category summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 200ms ease;
}
details.category[open] summary::before {
  transform: rotate(90deg);
}

details.category .content {
  overflow: hidden;
  height: 0; /* JS will manage exact height values */
  transition: height 280ms ease;
}

details.category ul {
  margin: 0.4rem 0 0.8rem 1.2rem;
  padding-left: 0;
}

details.category li {
  margin: 0.3rem 0;
}

/* ====== Post page elements (reusable) ====== */
.post-header h1 { margin-bottom: 6px; }
.post-meta { color:#666; font-size:.95em; margin: 0 0 20px; }

.breadcrumb { font-size:.95em; margin: 10px 0 0; }
.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,0,0,0.25);
}
.breadcrumb a:hover { border-bottom-style: solid; }

article p { margin: 1em 0; }

.tag-list { margin-top: 24px; font-size:.95em; }
.tag {
  display:inline-block;
  margin-right:8px;
  padding:2px 8px;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:999px;
}

/* ====== Single post card + readable content ====== */
.post {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: 18px 20px;
  margin-top: 16px;
}

/* Links inside article content */
.post a {
  color: #c44569;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,0,0,0.25);
}
.post a:hover { border-bottom-style: solid; }

/* Images inside posts scale nicely */
.post img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Tweak blockquote to stand out on the peach container */
.post blockquote {
  background: #fff8f8;
  border-left: 4px solid #f3a7b7;
  padding: 10px 14px;
  margin: 18px 0;
  font-style: italic;
  color: #444;
}

.resume-actions {
  margin: 20px 0 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  background-color: #c44569; /* Adjust to match your theme */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out;
}

.btn:hover {
  opacity: 0.85;
}

/* --- Contact Page Profile Styles --- */

.profile-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* circular */
  object-fit: cover;
  border: 3px solid #fff; /* soft frame */
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.profile-text p {
  margin-top: 0;
}

/* --- Contact Page Layout with Right-Side Image --- */

.right-image-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap; /* Mobile friendly */
}

.profile-photo-small {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Ensure text takes remaining width */
.profile-text {
  flex: 1;
  min-width: 250px;
}

@media (max-width: 600px) {
  .right-image-layout {
    flex-direction: column-reverse;
    text-align: center;
  }
  .profile-text {
    text-align: left;
  }
}

/* --- Contact Page Layout with Right-Side Circular Image --- */

.profile-contact.right-image-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;   /* 👈 keeps image at the top, not vertically centered */
  gap: 25px;
  flex-wrap: wrap;
}

.profile-photo-small {
  width: 110px;
  height: 110px;
  border-radius: 50%;        /* circle */
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
  min-width: 250px;
}

/* Mobile: stack text + photo nicely */
@media (max-width: 600px) {
  .profile-contact.right-image-layout {
    flex-direction: column-reverse;
    text-align: left;
  }
  .profile-photo-small {
    margin: 0 auto 10px;
  }
}

