/* =============================================
   ONSEN REVIEW BLOG — MAIN STYLESHEET v2
   Palette: Perfume #303c54 · Book #5b5f84
            Painting #c38dae · Nature #dbc5d1
            Fun (teal) #5d7889
   ============================================= */

/* ----- CSS VARIABLES ----- */
:root {
  --navy:     #303c54;
  --book:     #5b5f84;
  --painting: #c38dae;
  --nature:   #dbc5d1;
  --teal:     #5d7889;

  /* Functional aliases */
  --bg:          var(--navy);
  --card:        var(--nature);        /* light blush — section cards */
  --card-inner:  rgba(255,255,255,0.48); /* blog/wide cards inside section */
  --fg:          var(--navy);          /* text on light */
  --fg-light:    #e8dce4;              /* text on dark */
  --primary:     var(--painting);
  --primary-hov: #b37ca0;
  --primary-fg:  var(--navy);
  --secondary:   var(--book);
  --border:      rgba(91,95,132,0.38);
  --border-card: rgba(91,95,132,0.28);
  --muted-fg:    var(--book);
  --radius:      0.85rem;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.28);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.45);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ----- BASE + ASANOHA PATTERN BACKGROUND ----- */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-light);
  background-color: var(--navy);
  /* Pure #303c54 base with #5b5f84 asanoha pattern overlay */
  background-color: #303c54;
  background-image: url('../img/asanoha-pattern.png');
  background-position: 0 0;
  background-size: 416px 416px;
  background-repeat: repeat;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ----- LAYOUT ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ----- SECTION CARDS (floating plates on dark bg) ----- */
.content-section {
  background: rgba(219,197,209,0.93);
  border-radius: 1.5rem;
  border: 1px solid rgba(91,95,132,0.35);
  /* Subtle double-frame effect */
  box-shadow:
    0 12px 48px rgba(0,0,0,0.45),
    inset 0 0 0 4px rgba(91,95,132,0.12);
  margin: 2rem auto;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  position: relative;
}
@media (min-width: 1024px) {
  .content-section { max-width: calc(100% - 4rem); }
}

/* ----- HEADER ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(48,60,84,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91,95,132,0.4);
  height: 5rem;
}
.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
}
.site-logo-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--painting);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.site-logo-link:hover .logo-icon { transform: scale(1.05); }
.logo-icon span { color: var(--navy); font-weight: 700; font-size: 1.25rem; font-family: serif; }
.logo-text { display: flex; flex-direction: column; }
.site-title  { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--nature); line-height: 1.2; }
.site-tagline { font-size: .72rem; color: rgba(219,197,209,0.6); }

/* ----- DESKTOP NAV + DROPDOWN FIX ----- */
.main-nav { display: none; }
@media (min-width: 768px) { .main-nav { display: flex; align-items: stretch; } }

.main-nav .nav-menu,
.main-nav ul.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  height: 100%;
}

/* Every top-level item is full header height → larger hover zone */
.main-nav .nav-menu > li {
  display: flex;
  align-items: center;
  position: relative;
}
.main-nav .nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: .25rem;
  height: 100%;
  padding: 0 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(219,197,209,0.85);
  transition: color .15s, background .15s;
  border-radius: 0;
  white-space: nowrap;
}
.main-nav .nav-menu > li > a:hover { color: var(--nature); background: rgba(91,95,132,0.25); }
.main-nav .nav-menu > li.current-menu-item > a,
.main-nav .nav-menu > li.current-menu-ancestor > a {
  color: var(--navy);
  background: var(--painting);
  border-radius: .5rem;
  margin: auto .25rem;
  height: calc(100% - 1.5rem);
  padding: 0 .85rem;
}

/* Chevron */
.main-nav .chevron { transition: transform .2s; }
.main-nav .menu-item-has-children:hover > a .chevron { transform: rotate(180deg); }

/* ── DROPDOWN ─────────────────────────── */
.main-nav .menu-item-has-children { position: relative; }

/* Invisible bridge — keeps hover active while cursor moves to sub-menu */
.main-nav .menu-item-has-children::before {
  content: '';
  position: absolute;
  top: calc(100% - 2px); /* overlap slightly */
  left: -20px;           /* extend wide so diagonal movement works */
  right: -20px;
  height: 20px;          /* covers any gap between trigger and sub-menu */
  z-index: 201;
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 10rem;
  background: rgba(48,60,84,0.98);
  border: 1px solid rgba(91,95,132,0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .4rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  /* Delay hiding so cursor can reach sub-menu */
  transition-delay: 0s;
  z-index: 200;
}
.main-nav .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
/* Keep sub-menu open a beat longer when mouse leaves */
.main-nav .menu-item-has-children:not(:hover) > .sub-menu { transition-delay: 80ms; }

.main-nav .sub-menu li a {
  display: block;
  padding: .6rem 1rem;
  border-radius: .45rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(219,197,209,0.85);
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.main-nav .sub-menu li a:hover { background: rgba(91,95,132,0.35); color: var(--nature); }
.main-nav .sub-menu li.current-menu-item a { color: var(--painting); }

/* ----- MOBILE MENU ----- */
.mobile-menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: none; background: none; cursor: pointer;
  border-radius: .5rem; color: var(--nature);
  transition: background .15s;
}
.mobile-menu-toggle:hover { background: rgba(91,95,132,0.3); }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }
.hidden { display: none !important; }

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(91,95,132,0.4);
  background: rgba(48,60,84,0.98);
}
.mobile-menu.is-open { display: block; }
.mobile-nav { padding: 1rem; }
.mobile-nav-menu, .mobile-nav-menu .sub-menu { list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.mobile-nav-menu .sub-menu { padding-left: 1.25rem; margin-top: .2rem; }
.mobile-nav-menu li a {
  display: block; padding: .65rem 1rem;
  border-radius: .5rem; font-size: .9rem; font-weight: 500;
  color: rgba(219,197,209,0.85); transition: background .15s;
}
.mobile-nav-menu li a:hover { background: rgba(91,95,132,0.3); }
.mobile-nav-menu li.current-menu-item > a { background: var(--painting); color: var(--navy); }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background .2s, transform .1s, opacity .2s;
  text-decoration: none; border: none; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary  { background: var(--painting); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover  { background: var(--primary-hov); }
.btn-ghost    { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(4px); }
.btn-ghost:hover    { background: rgba(255,255,255,0.22); }
.btn-muted    { background: rgba(48,60,84,0.15); color: var(--navy); }
.btn-muted:hover    { background: rgba(48,60,84,0.25); }
.btn-card     { background: rgba(255,255,255,0.55); color: var(--navy); }
.btn-card:hover     { background: rgba(255,255,255,0.75); }

/* ----- HERO SECTION ----- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(-15deg) saturate(0.85) brightness(0.88); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(48,60,84,0.55) 0%,
    rgba(91,95,132,0.2) 40%,
    rgba(48,60,84,0.8) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 56rem; margin: 0 auto;
  padding: 5rem 1.5rem 8rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(195,141,174,0.18); backdrop-filter: blur(8px);
  border: 1px solid rgba(195,141,174,0.4);
  padding: .5rem 1.25rem; border-radius: 999px;
  margin-bottom: 1.75rem; color: var(--nature); font-size: .875rem; font-weight: 500;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800; color: #fff;
  margin-bottom: 1.25rem; line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(232,220,228,0.9);
  margin-bottom: 2.5rem; max-width: 38rem;
  margin-left: auto; margin-right: auto; line-height: 1.65;
}
.hero-actions {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 1rem;
}

/* ----- SAKURA DECORATIONS (real PNG images) ----- */
/* Hero bottom-right sakura — matches reference screenshots */
.hero-mist-br {
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 140px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.9;
}
.hero-mist-br img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sakura divider — top-left of gallery card, partially overhanging */
.section-mist-divider {
  position: relative;
  height: 0;          /* zero height — image floats absolutely */
  overflow: visible;
  pointer-events: none;
  z-index: 5;
  margin: 0;
}
.section-mist-divider img,
.section-mist-divider .mist-svg {
  position: absolute;
  left: -10px;
  top: -65px;         /* hang above the gallery card */
  width: 130px;
  height: auto;
  opacity: 0.88;
}

/* ----- PAGE HERO (non-homepage title banners) ----- */
.page-hero {
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(rgba(48,60,84,0.78), rgba(48,60,84,0.88)),
    url('../img/hero-onsen.jpg') center/cover no-repeat;
  position: relative;
}
.page-hero-content { text-align: center; }
.page-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; color: var(--nature); margin-bottom: .85rem;
}
.page-subtitle {
  font-size: 1.05rem; color: rgba(219,197,209,0.72);
  max-width: 38rem; margin: 0 auto; line-height: 1.7;
}

/* ----- SECTION LAYOUT ----- */
.section-posts   { padding: 3.5rem 0; }
.section-gallery { padding: 3.5rem 0; }
.section-listing { padding: 3rem 0 4.5rem; }
.section-header  { text-align: center; margin-bottom: 3rem; }
.section-title   { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; color: var(--navy); margin-bottom: .75rem; }
.section-subtitle { font-size: 1.02rem; color: var(--book); max-width: 38rem; margin: 0 auto; line-height: 1.7; }
.section-cta     { text-align: center; margin-top: 2.75rem; }

/* ----- BLOG CARDS (grid) ----- */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--card-inner);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-img-link { display: block; overflow: hidden; aspect-ratio: 4/3; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .card-img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; background: rgba(91,95,132,0.15); color: var(--book); font-size: .8rem;
}
.card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: .8rem; }
.category-badge {
  display: inline-block; padding: .22rem .7rem; border-radius: 999px;
  background: rgba(48,60,84,0.12); color: var(--book);
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid rgba(91,95,132,0.25);
}
.card-location {
  display: flex; align-items: center; gap: .3rem;
  font-size: .8rem; color: var(--book);
}
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .7rem; line-height: 1.35; color: var(--navy); }
.card-title a { color: var(--navy); transition: color .15s; }
.card-title a:hover { color: var(--painting); }
.card-excerpt { font-size: .885rem; color: var(--book); line-height: 1.65; flex: 1; margin-bottom: 1.15rem; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .9rem; border-top: 1px solid rgba(91,95,132,0.2); margin-top: auto;
  width: 100%;
}
.card-date { display: flex; align-items: center; gap: .32rem; font-size: .8rem; color: var(--book); }
.read-more { display: flex; align-items: center; gap: .3rem; font-size: .875rem; font-weight: 600; color: var(--painting); transition: gap .15s; }
.read-more:hover { gap: .5rem; }

/* ----- WIDE CARDS (listings) ----- */
.wide-cards-list { display: flex; flex-direction: column; gap: 1.75rem; }
.wide-card {
  display: grid; grid-template-columns: 1fr;
  background: var(--card-inner);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .2s;
}
.wide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (min-width: 640px)  { .wide-card { grid-template-columns: 280px 1fr; } }
@media (min-width: 1024px) { .wide-card { grid-template-columns: 340px 1fr; } }

.wide-card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
@media (min-width: 640px) { .wide-card-img-link { aspect-ratio: auto; height: 100%; min-height: 200px; } }
.wide-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.wide-card:hover .wide-card-img { transform: scale(1.04); }
.wide-card-body { padding: 1.75rem; display: flex; flex-direction: column; }
.wide-card-title { font-size: 1.25rem; font-weight: 700; margin: .55rem 0 .7rem; line-height: 1.3; color: var(--navy); }
.wide-card-title a { color: var(--navy); transition: color .15s; }
.wide-card-title a:hover { color: var(--painting); }
.wide-card-excerpt {
  font-size: .92rem; color: var(--book); line-height: 1.7; flex: 1; margin-bottom: 1.25rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.wide-card-rating { margin-left: auto; padding-right: .75rem; }

/* ----- GALLERY ----- */
.gallery-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: relative; background: rgba(91,95,132,0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-zoom { cursor: pointer; }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(48,60,84,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.gallery-item-zoom:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .6rem .85rem;
  background: linear-gradient(to top, rgba(48,60,84,0.75), transparent);
  color: var(--nature); font-size: .8rem;
  opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; }

/* ----- GALLERY UPLOAD NOTICE ----- */
.gallery-upload-notice { background: rgba(91,95,132,0.3); border-bottom: 1px solid rgba(91,95,132,0.4); padding: .85rem 0; }
.upload-notice-inner { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--nature); line-height: 1.55; }
.upload-notice-inner svg { color: var(--painting); flex-shrink: 0; margin-top: 2px; }
.upload-notice-inner a { color: var(--painting); text-decoration: underline; font-weight: 600; }

/* ----- RATING STARS ----- */
.rating-stars { display: inline-flex; align-items: center; gap: .1rem; }
.star { font-size: 1rem; }
.star-full, .star-half { color: var(--painting); }
.star-empty { color: rgba(91,95,132,0.4); }
.rating-value { margin-left: .4rem; font-size: .85rem; font-weight: 600; color: var(--book); font-family: 'DM Sans', sans-serif; }

/* ----- NO POSTS ----- */
.no-posts { text-align: center; padding: 3.5rem; font-size: 1.05rem; color: var(--book); }
.no-posts-notice {
  text-align: center; padding: 3.5rem 2rem;
  background: var(--card-inner); border-radius: 1.25rem;
  border: 2px dashed rgba(91,95,132,0.35); max-width: 34rem; margin: 0 auto;
}
.no-posts-icon {
  width: 5rem; height: 5rem; background: rgba(91,95,132,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; color: var(--painting);
}
.no-posts-notice h3 { font-size: 1.4rem; margin-bottom: .75rem; color: var(--navy); }
.no-posts-notice p  { font-size: .95rem; color: var(--book); line-height: 1.7; margin-bottom: 1.75rem; }

/* ----- SINGLE POST ----- */
.post-hero { position: relative; height: 58vh; min-height: 380px; overflow: hidden; }
.post-hero-img { width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(-15deg) saturate(0.85) brightness(0.85); }
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(48,60,84,0.3) 0%, rgba(48,60,84,0.7) 100%);
}
.post-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding-bottom: 3rem; }
.post-hero-inner { max-width: 48rem; }
.post-title { font-size: clamp(1.7rem, 4vw, 2.9rem); font-weight: 800; color: #fff; margin-bottom: 1rem; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.post-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.post-location, .post-date { display: flex; align-items: center; gap: .35rem; font-size: .9rem; color: rgba(219,197,209,0.9); }

.post-content-wrap { padding: 3.5rem 0 5rem; }
.post-layout {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 1024px) { .post-layout { grid-template-columns: 1fr 300px; align-items: start; } }

/* Post body typography */
.post-body p, .entry-content p { margin-bottom: 1.4rem; line-height: 1.78; font-size: 1.01rem; color: var(--navy); }
.post-body h2, .entry-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 .9rem; color: var(--navy); }
.post-body h3, .entry-content h3 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--navy); }
.post-body ul, .post-body ol, .entry-content ul, .entry-content ol { margin: 0 0 1.4rem 1.5rem; }
.post-body li, .entry-content li { margin-bottom: .5rem; color: var(--navy); }
.post-body a, .entry-content a { color: var(--painting); text-decoration: underline; }
.post-body blockquote, .entry-content blockquote {
  border-left: 3px solid var(--painting); padding: 1rem 1.5rem;
  margin: 1.5rem 0; background: rgba(91,95,132,0.1); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--book);
}
.post-body img, .entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.post-tags { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(91,95,132,0.2); }
.tags-label { font-size: .875rem; color: var(--book); font-weight: 600; }
.tag-badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: rgba(91,95,132,0.15); font-size: .8rem; color: var(--book); border: 1px solid rgba(91,95,132,0.3); }
.tag-badge:hover { background: rgba(91,95,132,0.3); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(91,95,132,0.2); }
.post-nav-item { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem; background: var(--card-inner); border: 1px solid var(--border-card); border-radius: var(--radius); transition: background .15s; }
.post-nav-item:hover { background: rgba(255,255,255,0.7); }
.post-nav-next { text-align: right; }
.nav-label { font-size: .8rem; color: var(--painting); font-weight: 600; }
.nav-title  { font-size: .88rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* Post sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card { background: var(--card-inner); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.sidebar-card-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--book); margin-bottom: .7rem; font-family: 'DM Sans', sans-serif; }
.sidebar-location { display: flex; align-items: center; gap: .4rem; font-size: .95rem; color: var(--navy); }
.sidebar-location svg { color: var(--painting); }
.related-posts { display: flex; flex-direction: column; gap: .7rem; }
.related-posts li a { display: flex; align-items: center; gap: .75rem; font-size: .875rem; font-weight: 500; color: var(--navy); transition: color .15s; }
.related-posts li a:hover { color: var(--painting); }
.related-thumb { width: 56px !important; height: 40px !important; object-fit: cover !important; border-radius: .35rem !important; flex-shrink: 0; }

/* ----- ABOUT PAGE ----- */
.about-section { padding: 3rem 0 5rem; }
.about-layout { display: flex; flex-direction: column; gap: 2rem; max-width: 56rem; margin: 0 auto; }
.about-card { background: var(--card-inner); border-radius: 1.2rem; padding: 2.5rem 2rem; border: 1px solid var(--border-card); }
@media (min-width: 768px) { .about-card { padding: 3rem 3.5rem; } }
.about-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--navy); }
.about-body p { line-height: 1.78; color: var(--navy); }
.about-body p + p { margin-top: 1.2rem; }
.values-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.75rem; text-align: center; color: var(--navy); }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card { background: rgba(91,95,132,0.1); border-radius: var(--radius); padding: 1.65rem; border: 1px solid rgba(91,95,132,0.2); }
.value-icon { width: 3rem; height: 3rem; background: var(--painting); border-radius: .5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--navy); }
.value-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; color: var(--navy); }
.value-desc { font-size: .88rem; color: var(--book); line-height: 1.65; }
.about-cta-card { background: linear-gradient(135deg, rgba(195,141,174,0.2) 0%, rgba(91,95,132,0.15) 100%); border-radius: 1.2rem; padding: 2.5rem 2rem; text-align: center; border: 1px solid rgba(91,95,132,0.25); }
@media (min-width: 768px) { .about-cta-card { padding: 3.25rem; } }
.about-cta-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; color: var(--navy); }
.about-cta-text { font-size: 1rem; color: var(--book); max-width: 34rem; margin: 0 auto 2rem; line-height: 1.75; }

/* ----- PAGINATION ----- */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
  border-radius: .5rem; font-size: .9rem; font-weight: 500;
  background: var(--card-inner); border: 1px solid var(--border-card); color: var(--navy);
  transition: background .15s;
}
.pagination .page-numbers:hover { background: rgba(255,255,255,0.7); }
.pagination .page-numbers.current { background: var(--painting); color: var(--navy); border-color: var(--painting); }

/* ----- LIGHTBOX ----- */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox-overlay.is-open { display: flex; }
.lightbox-img-wrap { max-width: min(90vw,1200px); max-height: 90vh; display: flex; align-items: center; justify-content: center; }
#lightbox-img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: .5rem; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
.lightbox-close { position: fixed; top: 1.25rem; right: 1.25rem; background: rgba(219,197,209,0.15); border: none; color: var(--nature); width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; z-index: 10000; }
.lightbox-close:hover { background: rgba(219,197,209,0.28); }

/* ----- FOOTER ----- */
.site-footer {
  background: var(--teal);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
/* Sakura + mist decoration — right side */
.footer-deco {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 130px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  display: block;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  position: relative; z-index: 1;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-bottom: 1rem; }
.footer-logo-link .logo-icon { background: var(--painting); }
.footer-site-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--nature); }
.footer-desc { font-size: .875rem; color: rgba(219,197,209,0.75); line-height: 1.65; max-width: 22rem; }

.footer-heading { font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(219,197,209,0.55); margin-bottom: 1.15rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links ul li a { font-size: .875rem; color: rgba(219,197,209,0.75); transition: color .15s; }
.footer-links ul li a:hover { color: var(--nature); }

.footer-connect { min-width: 0; }
.footer-widget { margin-bottom: 1rem; }
.footer-widget:last-child { margin-bottom: 0; }
.footer-widget-title { font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(219,197,209,0.55); margin-bottom: .6rem; }
.footer-widget a { color: rgba(219,197,209,0.75); text-decoration: none; font-size: .9rem; transition: color .15s; }
.footer-widget a:hover { color: var(--nature); }
.footer-widget ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-widget.widget_text p { font-size: .875rem; color: rgba(219,197,209,0.75); line-height: 1.6; }

.footer-email { display: inline-flex; align-items: center; gap: .5rem; color: rgba(219,197,209,0.85); font-size: .9rem; text-decoration: none; transition: color .15s; word-break: break-all; }
.footer-email:hover { color: var(--nature); }
.footer-widget-hint { margin-top: .75rem; font-size: .78rem; }
.footer-widget-hint a { color: rgba(219,197,209,0.55); text-decoration: underline; font-size: .78rem; }

/* ----- WORDPRESS UTILITIES ----- */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.wp-caption-text { font-size: .85rem; color: var(--book); text-align: center; margin-top: .4rem; }

/* Comments */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(91,95,132,0.2); }
.comments-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--navy); }
.comment-list { list-style: none; }
.comment { margin-bottom: 1.5rem; padding: 1.25rem; background: var(--card-inner); border-radius: var(--radius); border: 1px solid var(--border-card); }
.comment-author .fn { font-weight: 600; font-size: .9rem; color: var(--navy); }
.comment-metadata a { font-size: .8rem; color: var(--book); }
.comment-content p { margin-top: .6rem; font-size: .92rem; color: var(--navy); }
.comment-reply-link { font-size: .82rem; color: var(--painting); font-weight: 600; margin-top: .5rem; display: inline-block; }
#respond { margin-top: 2rem; }
#respond .comment-reply-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; color: var(--navy); }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.comment-form input, .comment-form textarea { width: 100%; padding: .65rem 1rem; border: 1px solid var(--border-card); border-radius: .5rem; background: rgba(255,255,255,0.55); font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--navy); margin-bottom: 1rem; transition: border-color .15s; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--painting); }
.comment-form .submit { background: var(--painting); color: var(--navy); border: none; padding: .7rem 2rem; border-radius: .5rem; font-weight: 600; cursor: pointer; font-size: .9rem; transition: background .15s; }
.comment-form .submit:hover { background: var(--primary-hov); }

/* Misc */
.page-content-below { max-width: 48rem; margin: 3rem auto 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ─── SAKURA DECO IMAGE SIZING ──────────────────── */
.mist-svg {
  display: block;
  height: auto;
}

/* Hero category badge (light on dark) */
.category-badge-hero {
  display: inline-block;
  padding: .28rem .8rem;
  border-radius: 999px;
  background: rgba(195,141,174,0.22);
  color: var(--nature);
  border: 1px solid rgba(195,141,174,0.45);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: .75rem;
}

/* Post hero rating stars (light) */
.post-rating .star-full,
.post-rating .star-half { color: #e8b8d4; }
.post-rating .rating-value { color: rgba(219,197,209,0.78); }

/* gallery-grid-full = same 3-col grid on gallery page */
.gallery-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px)  { .gallery-grid-full { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid-full { grid-template-columns: repeat(3, 1fr); } }

/* about-values-section wrapper */
.about-values-section { /* no extra styles needed — values-grid handles it */ }

/* ─── STANDARD PAGE (page.php / page-standard.php) ─── */
.std-page-card {
  margin: 2rem auto 3rem;
  padding: 2.5rem;
}
@media (min-width: 768px) { .std-page-card { padding: 3rem 3.5rem; } }

.std-page-body { color: var(--navy); }
.std-page-body p  { line-height: 1.78; margin-bottom: 1.25rem; font-size: 1rem; }
.std-page-body h1, .std-page-body h2, .std-page-body h3,
.std-page-body h4, .std-page-body h5, .std-page-body h6 {
  color: var(--navy); margin: 2rem 0 .85rem; line-height: 1.25;
}
.std-page-body h2 { font-size: 1.45rem; }
.std-page-body h3 { font-size: 1.2rem; }
.std-page-body a  { color: var(--painting); text-decoration: underline; }
.std-page-body ul, .std-page-body ol { margin: 0 0 1.25rem 1.5rem; }
.std-page-body li { margin-bottom: .5rem; line-height: 1.65; }
.std-page-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.std-page-body th, .std-page-body td { padding: .65rem 1rem; border: 1px solid rgba(91,95,132,0.25); text-align: left; font-size: .93rem; }
.std-page-body th { background: rgba(91,95,132,0.12); font-weight: 600; }
.std-page-body blockquote { border-left: 3px solid var(--painting); padding: .85rem 1.25rem; margin: 1.25rem 0; background: rgba(91,95,132,0.08); border-radius: 0 .5rem .5rem 0; font-style: italic; color: var(--book); }
.std-page-body hr { border: none; border-top: 1px solid rgba(91,95,132,0.2); margin: 2rem 0; }

/* ═══════════════════════════════════════════════════
   WIDE CARD FOOTER — definitive fix
   Line spans full width; Read more pushed to far right
   ════════════════════════════════════════════════════ */
.wide-card { overflow: visible; }   /* allow body to fill full width */

.wide-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  width: 100%;          /* fill remaining grid column */
  min-width: 0;
}

/* When no thumbnail: body is the only child — span all grid columns */
.wide-card-body:only-child {
  grid-column: 1 / -1;
}

.wide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;                              /* full card body width */
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(91,95,132,0.28);  /* full-width divider */
}

.wide-card-footer .card-date  { flex-shrink: 0; }
.wide-card-footer .read-more  { margin-left: auto; flex-shrink: 0; }

/* Same fix for the small grid cards */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: .9rem;
  margin-top: auto;
  border-top: 1px solid rgba(91,95,132,0.2);
}
.card-footer .card-date  { flex-shrink: 0; }
.card-footer .read-more  { margin-left: auto; flex-shrink: 0; }
