/* =============================
   BASE LAYOUT
   ============================= */
html {
  background: #f9f9f9;
  min-height: 100%;
  font-size: 100%;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: transparent;
  color: #222;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

header, nav, section, footer {
  max-width: 700px;   /* constrain width */
  margin: 2rem auto;  /* top/bottom spacing + horizontal centering */
  padding: 1rem;
}

header {
  max-width: 700px;
  margin: 2rem auto;
  padding: 3rem 1.5rem;

  border-radius: 12px;
  overflow: hidden;

  background: url("images/vietnam-sunset.jpg") center/cover no-repeat;
  position: relative;

  text-align: left;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);

  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  background-color: #000;

  transition: transform 0.2s ease;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.1)
  );

  z-index: 0;
}


header h1,
header h3,
header p {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 3rem;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

header h3 {
  font-size: 1.3rem;
  margin: 0 0 0.6rem 0;
  font-weight: 500;
  opacity: 0.95;
}

header p {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.85;
  max-width: 60ch;
}

header:hover {
  transform: translateY(-2px);
}

* {
  box-sizing: border-box;
}

.theme-toggle {
  position: relative;
  flex-shrink: 0; 
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #eee;
  border-radius: 6px;
  border: none;
  cursor: pointer;

  overflow: hidden;
}

.theme-toggle .icon {
  position: absolute;
  font-size: 1.1rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* default state (light mode) */
.theme-toggle .sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.theme-toggle .moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* -----------------------------
   NAVIGATION
   ----------------------------- */
nav {
  padding: 0;
  background: transparent
}

nav a, nav button {
  text-decoration: none;
  color: #444;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: none;
  background: #eee;
  cursor: pointer;

  height: 36px;
  display: flex;
  align-items: center;
}

nav a:hover, nav button:hover {
  background: #ddd;
}

.nav {
  position: sticky;
  top: 0;
  padding-top: 1rem;
  z-index: 1000;
  background: transparent;
}

.nav-box {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  
  border: 1px solid rgba(0,0,0,0.3); 
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);

  height: 50px;
  padding: 0 4rem;

  position: relative;
  overflow: visible;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;

  flex: 0 1 auto;
  min-width: 0; /* 🔑 prevents weird collapse */
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-box a {
  text-decoration: none;
  color: #222;
  font-size: 0.9rem;
  overflow: visible;
  
}

.nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);

  display: flex;
  align-items: center;

  z-index: 10;

  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  
  mix-blend-mode: multiply;
}

.nav-logo img {
  height: 110px; /* or whatever “overhang” you want */
  display: block;
  transform: rotate(-2deg);
  z-index: 10;
}



@media (max-width: 600px) {
  .nav {
    top: env(safe-area-inset-top); /* 👈 iOS safe area */
  }

  .nav-box {
    padding: 0 0.3rem; /* reduce side padding */
  }

  .nav-left,
  .nav-right {
    gap: 0.5rem; /* tighter spacing */
  }

  nav a, nav button {
    padding: 0.3rem 0.5rem; /* smaller buttons */
    font-size: 0.8rem;
  }

  /* Shrink the logo */
  .nav-logo img {
    height: 80px;
  }

}

/* -----------------------------
   FILTERS & SEARCH
   ----------------------------- */
.filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filters input,
.filters select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-width: 0;
}

.filters input {
  flex: 2;
  max-width: 300px;
}

.filters select {
  flex: 1;
  max-width: 150px;
}

@media (max-width: 600px) {
  .filters input {
    flex: 0 1 200px; /* grow a bit, but capped */
  }

  .filters select {
    flex: 0 1 150px;
  }
}

/* -----------------------------
   CARDS & POSTS
   ----------------------------- */
.project, .card {
  max-width: 700px;
  margin: 1rem auto;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  background: #fff;
  transition: background 0.3s, box-shadow 0.3s;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.card h2 a {
  color: #222;
  text-decoration: none;
}
.card h2,
.card p {
  margin-top: 0;
  margin-bottom: 0;
}

.card p, .card .meta {
  color: #333;
  margin: 0.5rem 0;
}

.card .tag-list {
  margin-top: 0.5rem;
}

.card .tag {
  display: inline-block;
  background: #eee;
  color: #444;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-right: 0.3rem;
  margin-top: 0.3rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}

.card .tag.active {
  background: #ccc;
}

.card-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.image-text {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 1rem;
  color: white;
}

.image-text h2,
.image-text p {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.image-text h2 {
  margin: 0;
  line-height: 1.2;
}

.image-text p {
  margin: 0.2rem 0 0;
}

.overlay-note {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;

  max-width: clamp(150px, 40%, 460px);
  height: auto;

  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
  mix-blend-mode: screen;
}

.intro-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.handwriting img {
  height: 2em;       /* 👈 scales with text */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(3px) rotate(-1deg);
  margin-bottom: 0.8rem;
}

.ink-video {
  mix-blend-mode: multiply;
  background: transparent;
}

.bio {
  display: flex;
  gap: 1.5rem;
  align-items: center; /* key change: vertical centring */
  margin-top: 1.2rem;
}

.bio--reverse {
  flex-direction: row-reverse;
}

.bio-image {
  width: 180px !important;
  height: 180px !important;
  object-fit: cover;

  flex-shrink: 0;
  border-radius: 12px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: rotate(-1deg);
}

.bio-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio + .bio {
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-image {
    width: 140px;
    height: 140px;
  }
}

/* -----------------------------
   SINGLE POST
   ----------------------------- */
#post {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#post.fade-in {
  opacity: 1;
  transform: translateY(0);
}

#post h1 {
  margin-top: 0;
  font-size: 2rem;
}

#post .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

#post .content {
  margin-top: 1rem;
  line-height: 1.8;
}

#post .content ul {
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
}

#post .tag-list {
  margin-bottom: 1rem;
}

#post .tag {
  margin-right: 0.4rem;
  margin-top: 0.4rem;
}

/* Title + category flex container */
.title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
}

.title-row h1 {
  grid-column: 1 / -1; /* span full width */
  grid-row: 2;

  margin: 0.3rem 0 0;
  line-height: 1.2;
}

/* Title spans both columns */
.title-row h2 {
  margin: 0;
  line-height: 1.2;
}

/* Category: always top right */
.category-title {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;

  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Different category colors */
.category-title.life { background: #ffcccc; color: #900; }
.category-title.garden { background: #ccffcc; color: #090; }
.category-title.recipe { background: #ccccff; color: #009; }
.category-title.project { background: #eee; color: #333; }

h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.1rem;
}

p, ul {
  margin-top: 0.1rem;
}

/* Post ingredient organiser */
.ingredient-section {
  font-weight: 700;          /* bolder */
  font-size: 0.95rem;
  margin: 0.6rem 0 0.2rem;   /* tighter spacing */
  letter-spacing: 0.03em;    /* subtle polish */
  opacity: 0.85;
  padding-left: 1.5rem;
  list-style: none;
}


/* Reset + remove default numbering */
.instructions {
  counter-reset: step;
  list-style: none;
  padding-left: 1.8rem;
}

/* Normal steps */
.instructions li:not(.section-title) {
  counter-increment: step;
  position: relative;
  margin-bottom: 0.6rem;
}

/* Number circles ONLY for real steps */
.instructions li:not(.section-title)::before {
  content: counter(step);
  position: absolute;
  left: -1.8rem;
  top: 0.25em;

  background: #eee;
  color: #222;
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  
  transition: transform 0.15s ease;
}

.instructions li:hover::before {
  transform: scale(1.1);
}

.section-title {
  counter-increment: none;   /* 🚫 do NOT count */
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.85;
}

.post-image {
  margin: 1.5rem 0;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.post-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

.small-post-image {
  max-width: 400px;
  margin: 2rem auto;
  padding: 0.8rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

.small-post-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.small-post-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
  text-align: center;
}

.chaos-list {
  display: flex;
  flex-wrap: wrap;        /* ⭐ allows horizontal wrapping */
  justify-content: center;
  gap: 0;
  padding: 0;
  margin-top: 0.25rem;
}

.chaos-list + p {
  margin-top: 1.5rem;
}

.chaos-list li {
  list-style: none;
  display: inline-block;  /* shrink to content */
  width: auto;

  background: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  margin: -0.2rem 0.3rem; /* ⭐ overlap vertically */
  
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  font-size: 0.85rem;
  white-space: nowrap;

  position: relative;
  transition: transform 0.2s ease, z-index 0.2s ease;
}

.chaos-list li {
  z-index: 1;
}

.chaos-list li:nth-child(odd) {
  transform: rotate(-2deg) translateY(2px);
}

.chaos-list li:nth-child(even) {
  transform: rotate(2deg) translateY(-2px);
}

.chaos-list li:nth-child(3n) {
  transform: rotate(-1deg) translateY(3px);
}

.chaos-list li:hover {
  z-index: 999;
  transform: scale(1.15) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.qa-board {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;              /* more breathing room */
  justify-content: flex-start; /* less “centered grid” feel */
  margin: 3rem 0;
  justify-content: center;
}

.qa-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 1.5rem 1.2rem 1.2rem;
  background: linear-gradient(
    to bottom,
    #ffffff,
    #fdfdfd
  );

  /* softer, thinner border */
  border: 1.2px solid rgba(0, 0, 0, 0.6);

  /* gentle organic shape */
  border-radius: 18px 16px 20px 17px;

  /* subtle “ink wobble” instead of heavy outline */
  box-shadow:
    0.5px 0.5px 0 rgba(0,0,0,0.25),
    0 6px 18px rgba(0,0,0,0.06);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qa-card:nth-child(odd) {
  transform: rotate(-0.7deg);
}

.qa-card:nth-child(even) {
  transform: rotate(0.7deg);
}

.qa-card:nth-child(3n) {
  transform: rotate(0.3deg) translateY(3px);
}

.qa-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.qa-label {
  position: absolute;
  top: -12px;
  left: 14px;

  padding: 0.15rem 0.7rem;
  background: #fff;

  border: 1.2px solid rgba(0, 0, 0, 0.6);
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;

  transform: rotate(-0.4deg);
}

.dog-review {
  padding: 1.5rem 1.5rem 1.5rem 200px; /* 👈 space for image */

  background: #fafafa;
  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 12px;

  max-width: 700px;
  margin: 2rem auto;
  position: relative;
  margin-top: 0.75rem;
  
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dog-title {
  position: absolute;
  left: -14px;
  top: 0px;

  font-size: 0.9rem;
  font-weight: 600;

  background: #fff;
  padding: 0.3rem 0.8rem;

  border: 1px solid rgba(0,0,0,0.6);
  border-radius: 6px;

  transform: rotate(-8deg);

  box-shadow: 1px 2px 0 rgba(0,0,0,0.15);
  z-index: 2;
}

.dog-image {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: auto;

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.dog-image img {
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.dog-columns {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  align-items: stretch; /* ⭐ makes image match height */
  flex-wrap: wrap;
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
}

.dog-good,
.dog-bad {
  flex: 0.8;
  min-width: 140px;

  padding: 0.8rem;

  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 10px;

  background: rgba(255,255,255,0.6);
  position: relative;
}
.dog-good{
	transform: rotate(-2deg);
	margin-top: 0;
}
.dog-bad{
	transform: rotate(2deg);
}

.dog-columns h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.dog-columns ul {
  list-style: none;
  padding-left: 0.5rem;
  margin: 0;
}

.dog-columns li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 1.4rem;

  transform: rotate(-0.5deg);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* paw-style bullet */
.dog-columns li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 0;

  font-size: 0.9rem;
  transform: rotate(20deg);
  opacity: 0.8;
  filter: contrast(1.1);
}

/* variation = less robotic */
.dog-columns li:nth-child(odd) {
  transform: rotate(0.6deg) translateX(4px);
}

.dog-columns li:nth-child(2n) {
  transform: rotate(-1deg) translateX(-3px);
}


.dog-columns li.loud {
  text-transform: uppercase;
}

.dog-columns li.sad {
  opacity: 0.6;
}

.dog-columns li.big {
  font-size: 1.1rem;
}

.dog-good::after,
.dog-bad::after {
  content: "";
  position: absolute;
  max-width: 30px;
  width: 100%;
  height: 20px;
  background: rgba(0,0,0,0.06);
  filter: blur(5px);
  border-radius: 50%;
  bottom: 10%;
  right: 10%;
}

/* -----------------------------
   DOG REVIEW – MOBILE LAYOUT
   ----------------------------- */
@media (max-width: 750px) {

  .dog-review {
    padding: 1rem 1rem 1rem 215px;
    display: flex;
    flex-direction: row;   /* 🔑 force horizontal layout */
    flex-wrap: nowrap;     /* 🔑 prevent stacking */
    gap: 0.8rem;
    align-items: stretch;
	background: transparent;
    border: none;
	overflow: visible;
  }

  .dog-image {
    position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: auto;

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  }

  .dog-image img {
    max-width: 200px;
	min-width: 200px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  .dog-columns {
    flex: 1;
    display: flex;              /* 🔑 ensure it behaves as flex */
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0;
    min-width: 0;               /* 🔑 prevents weird overflow pushing */
  }

  .dog-good,
  .dog-bad {
    width: 100%;
    flex: none;
  }

}



.photo-collage {
  column-count: 2;
  column-gap: 1rem;
  max-width: 700px;
  margin: 2rem auto;
  margin-top: 0;
}

.photo-collage img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 10px;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.collage-caption {
  max-width: 700px;
  margin: 0.5rem auto 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: -2rem;
}

/* Hover effect */
.photo-collage img:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Make sure hovered image appears above others */
.photo-collage img {
  position: relative;
}

/* Responsive */
@media (max-width: 600px) {
  .photo-collage {
    column-count: 2;
  }
}




/* -----------------------------
   DARK MODE
   ----------------------------- */
html.dark {
  background: #121212;
  color: #eee;
}

html.dark header,
html.dark section,
html.dark footer {
  color: #eee;
}

html.dark .theme-toggle {
  background: #2a2a2a;
}

html.dark .theme-toggle .sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html.dark .theme-toggle .moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

html.dark .handwriting img {
  filter: invert(1) brightness(1.2);
}

html.dark nav {
  box-shadow: none;
}

html.dark nav a,
html.dark nav button {
  color: #e6e6e6;
  background: #2a2a2a;
}

html.dark nav a:hover,
html.dark nav button:hover {
  background: #3a3a3a;
}

html.dark .nav-box {
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(8px);

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark .nav-box a {
  color: #f2f2f2;
}

html.dark .nav-logo {
  mix-blend-mode: normal;
}

html.dark .nav-logo img {
  filter: invert(1) brightness(1.2);
}

html.dark .filters input,
html.dark .filters select {
  background: #333;
  color: #eee;
  border: 1px solid #555;
}

/* CARDS & SINGLE POST IN DARK MODE */
html.dark .project,
html.dark .card,
html.dark #post {
  background: #1e1e1e;
  box-shadow: none;
}

html.dark .card h2 a,
html.dark #post h1 {
  color: #fff;
}

html.dark .card p,
html.dark .card .meta,
html.dark #post .meta,
html.dark #post .content {
  color: #ddd;
}

html.dark .chaos-list li {
  background: #1e1e1e;
  color: #eee;
  border: 1px solid rgba(255,255,255,0.08);
}

html.dark .chaos-list li:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,0.2);
}

/* TAGS IN DARK MODE */
html.dark .card .tag,
html.dark #post .tag {
  background: #333;
  color: #fff;
}

html.dark .card .tag.active,
html.dark #post .tag.active {
  background: #555;
}

html.dark .card .tag:hover,
html.dark #post .tag:hover {
  background: #666;
}

/* LINKS INSIDE POST CONTENT */
html.dark .card .content a,
html.dark #post .content a {
  color: #1e90ff;
  text-decoration: underline;
}

/* DARK MODE COLORS */
html.dark .category-title { color: #fff; }
html.dark .category-title.life { background: #ff7f5055; }
html.dark .category-title.recipe    { background: #1e90ff55; }
html.dark .category-title.garden    { background: #28a74555; }

html.dark p.ingredient-section {
  opacity: 1;
  color: #fff;
}

html.dark .instructions li:not(.section-title)::before {
  background: #333;
  color: #fff;
}

html.dark .section-title {
  opacity: 1;
  color: #fff;
}

html.dark .post-image figcaption {
  color: #ccc;
  opacity: 0.8;
}

html.dark .small-post-image {
  background: #1e1e1e;
  box-shadow: none;
}

html.dark .small-post-image figcaption {
  color: #ccc;
  opacity: 0.8;
}

.dark .qa-card {
  background: linear-gradient(
    to bottom,
    #1c1c1c,
    #181818
  );

  border: 1.2px solid rgba(255, 255, 255, 0.18);

  border-radius: 18px 16px 20px 17px;

  box-shadow:
    0.5px 0.5px 0 rgba(255,255,255,0.08),
    0 8px 22px rgba(0,0,0,0.6);

  color: rgba(255, 255, 255, 0.9);
}

.dark .qa-label {
  background: #1c1c1c;

  border: 1.2px solid rgba(255, 255, 255, 0.25);

  color: rgba(255, 255, 255, 0.85);
}

.dark .answer {
  color: rgba(255, 255, 255, 0.75);
}

.dark .dog-review {
  background: #1a1a1a;
  border: 1px dashed rgba(255,255,255,0.2);
}

.dark .dog-title {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.dark .dog-good,
.dark .dog-bad {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

html.dark .dog-columns li::before {
  opacity: 0.95;
}

html.dark .photo-collage img {
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

/* -----------------------------
   FOOTER
   ----------------------------- */

footer {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem 1rem;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  justify-content: center;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;        /* 🚫 don’t wrap */
  justify-content: center;
  text-align: center;
}

html.dark footer {
  color: #aaa;
}

/* -----------------------------
   ANIMATIONS FOR CARDS (BLOG PAGE)
   ----------------------------- */
.card.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------
   LINKS
   ----------------------------- */
a {
  color: #1e90ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}