/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
  --st-navy: #102a43;
  --st-navy-2: #173f5f;
  --st-teal: #18a6a6;
  --st-teal-soft: #e9f8f7;
  --st-coral: #ff6b5a;
  --st-ink: #1d2b3a;
  --st-muted: #66788a;
  --st-line: #e5edf2;
  --st-paper: #ffffff;
  --st-bg: #f5f8fa;
  --st-radius: 18px;
  --st-shadow: 0 12px 36px rgba(16, 42, 67, .08);
}

html { scroll-behavior: smooth; }

body {
  color: var(--st-ink);
  background: var(--st-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(24, 166, 166, .45); outline-offset: 3px; }

/* Brand header */
#header [data-row="top"] { background: #fff; border-bottom: 1px solid var(--st-line); }
#header [data-row="top"] .ct-container { min-height: 92px; }
.site-logo-container {
  position: relative;
  display: grid !important;
  grid-template-columns: 66px auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  min-height: 70px;
  text-decoration: none;
}
.site-logo-container img { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.site-logo-container::before {
  content: "";
  width: 66px;
  height: 66px;
  background: url("https://sofatrvl.com/wp-content/uploads/2026/09/sofatraveler-brand-mark.png") center / contain no-repeat;
}
.site-logo-container::after {
  content: "SOFATRAVELER\A沙发旅行家";
  white-space: pre;
  color: var(--st-navy);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .34em;
  font-weight: 750;
}
.site-logo-container:hover::after { color: var(--st-teal); }

#header [data-row="middle"] { background: var(--st-navy); box-shadow: 0 6px 24px rgba(16, 42, 67, .14); }
#header [data-row="middle"] .ct-container { min-height: 58px; }
.header-menu-2 .menu > li > a { color: #fff; font-weight: 650; font-size: 15px; padding-inline: 17px; }
.header-menu-2 .menu > li > a:hover,
.header-menu-2 .menu > li.current-menu-item > a { color: #fff; background: rgba(24, 166, 166, .22); }
.header-menu-2 .sub-menu { border: 1px solid var(--st-line); border-radius: 12px; box-shadow: var(--st-shadow); overflow: hidden; }
.header-menu-2 .sub-menu a:hover { color: var(--st-teal); background: var(--st-teal-soft); }
.ct-header-socials a[href="#"], .ct-header-socials a[href="http://sof"] { display: none !important; }

/* Home hero */
.sofatrvl-home-hero {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  margin-bottom: 8px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(24, 166, 166, .38), transparent 28%),
    linear-gradient(135deg, #102a43 0%, #173f5f 62%, #146d79 100%);
  box-shadow: var(--st-shadow);
}
.sofatrvl-home-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -54px;
  bottom: -96px;
  border: 38px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.sofatrvl-home-hero h1 { max-width: 760px; margin: 0 0 14px; color: #fff; font-size: clamp(32px, 4vw, 52px); line-height: 1.15; letter-spacing: -.025em; }
.sofatrvl-home-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.8; }
.sofatrvl-home-hero__eyebrow { display: inline-flex; margin-bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.12); color: #bff5f1; font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.sofatrvl-home-hero__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sofatrvl-home-hero__links a { position: relative; z-index: 1; padding: 9px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 650; background: rgba(255,255,255,.08); }
.sofatrvl-home-hero__links a:hover { background: #fff; color: var(--st-navy); }

/* Home article grid */
.home .entries { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home .entry-card {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: var(--st-paper);
  box-shadow: 0 8px 26px rgba(16, 42, 67, .055);
  opacity: 1 !important;
  transform: none !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home .entry-card:hover { transform: translateY(-4px) !important; border-color: rgba(24,166,166,.35); box-shadow: var(--st-shadow); }
.home .entry-card .ct-media-container { width: 100%; margin: 0; aspect-ratio: 16 / 9 !important; overflow: hidden; background: #eaf0f4; }
.home .entry-card .ct-media-container img { width: 100%; height: 100%; aspect-ratio: auto !important; object-fit: cover; transition: transform .35s ease; }
.home .entry-card:hover .ct-media-container img { transform: scale(1.025); }
.home .entry-card .card-content { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px; }
.home .entry-card .entry-title { margin: 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; letter-spacing: -.015em; }
.home .entry-card .entry-title a { color: var(--st-navy); }
.home .entry-card .entry-title a:hover { color: var(--st-teal); }
.home .entry-card .entry-excerpt { color: var(--st-muted); font-size: 15px; line-height: 1.75; }
.home .entry-card .entry-excerpt p { margin: 0; }
.home .entry-card .entry-meta { order: -1; gap: 8px; color: var(--st-muted); font-size: 12px; }
.home .entry-card .meta-categories a { border-radius: 999px; padding: 4px 9px; color: #0f6767; background: var(--st-teal-soft); }
.home .entry-card:first-of-type { grid-column: auto; display: flex !important; }
.home .entry-card:first-of-type .ct-media-container { height: auto; min-height: 0; aspect-ratio: 16/9 !important; }
.home .ct-pagination { grid-column: 1 / -1; margin-top: 14px; }

/* Sidebar */
.ct-sidebar .ct-widget { padding: 22px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: #fff; box-shadow: 0 7px 24px rgba(16,42,67,.045); }
.ct-sidebar .widget-title { margin-bottom: 16px; color: var(--st-navy); font-size: 16px; letter-spacing: .02em; }
.ct-sidebar .widget_categories ul { display: flex; flex-wrap: wrap; gap: 7px; }
.ct-sidebar .widget_categories li { margin: 0 !important; }
.ct-sidebar .widget_categories a { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--st-muted); background: #f0f4f7; font-size: 12px; text-decoration: none; }
.ct-sidebar .widget_categories a:hover { color: #fff; background: var(--st-teal); }

/* Sidebar: remove legacy ad slots and show an automatically updated latest-post list. */
#block-43, #block-46 { display: none !important; }
.sofatrvl-latest h2 { margin: 0 0 17px; color: var(--st-navy); font-size: 18px; }
.sofatrvl-latest__list { display: grid; gap: 15px; }
.sofatrvl-latest__item { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 13px; }
.sofatrvl-latest__image { display: block; width: 68px; height: 68px; overflow: hidden; border-radius: 10px; background: #edf3f6; }
.sofatrvl-latest__image img { width: 100%; height: 100%; object-fit: cover; }
.sofatrvl-latest__item h3 { margin: 0 0 5px; font-size: 14px; font-weight: 650; line-height: 1.45; }
.sofatrvl-latest__item h3 a { color: var(--st-navy); text-decoration: none; }
.sofatrvl-latest__item h3 a:hover { color: var(--st-teal); }
.sofatrvl-latest__item time { color: var(--st-muted); font-size: 12px; }

/* Single posts and pages */
.single-post .site-main, .page .site-main { background: var(--st-bg); }
.single-post article.post, .page .site-main article.page { border: 1px solid var(--st-line); border-radius: 22px; background: #fff; box-shadow: 0 9px 30px rgba(16,42,67,.055); }
.single-post .entry-header .page-title, .single-post h1.entry-title, .page h1 { color: var(--st-navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.22; letter-spacing: -.025em; }
.single-post .entry-content { font-size: 18px; line-height: 1.9; color: #263a4d; }
.single-post .entry-content p { margin-bottom: 1.45em; }
.single-post .entry-content h2, .single-post .entry-content h3 { margin-top: 1.8em; color: var(--st-navy); line-height: 1.35; }
.single-post .entry-content a { color: #087f80; text-decoration-thickness: 1px; }
.single-post .entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.single-post .entry-content blockquote { margin-inline: 0; padding: 18px 22px; border-left: 4px solid var(--st-teal); border-radius: 0 12px 12px 0; background: var(--st-teal-soft); }
.wechat-imported-content { overflow-wrap: anywhere; }

/* Hub pages */
.hub-intro { max-width: 820px; color: var(--st-muted); font-size: 18px; line-height: 1.85; }
.sofatrvl-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.sofatrvl-hub-card { overflow: hidden; border: 1px solid var(--st-line); border-radius: 16px; background: #fff; box-shadow: 0 7px 24px rgba(16,42,67,.05); }
.sofatrvl-hub-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #edf3f6; }
.sofatrvl-hub-card__image img { width: 100%; height: 100%; object-fit: cover; }
.sofatrvl-hub-card__body { padding: 18px; }
.sofatrvl-hub-card h2 { margin: 0 0 9px; font-size: 18px; line-height: 1.45; }
.sofatrvl-hub-card h2 a { color: var(--st-navy); text-decoration: none; }
.sofatrvl-hub-card h2 a:hover { color: var(--st-teal); }
.sofatrvl-hub-card p { margin: 0; color: var(--st-muted); font-size: 14px; line-height: 1.7; }

/* Footer */
footer.ct-footer { border-top: 1px solid var(--st-line); background: #eef3f6; }
footer.ct-footer a:hover { color: var(--st-teal); }

@media (max-width: 999px) {
  #header [data-device="mobile"] .ct-container { min-height: 74px; }
  .site-logo-container { grid-template-columns: 48px auto; gap: 9px; min-width: 215px; min-height: 58px; }
  .site-logo-container::before { width: 48px; height: 48px; }
  .site-logo-container::after { font-size: 11px; letter-spacing: .22em; }
  .mobile-menu > ul.menu { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; width: 100%; margin: 0; padding: 0; list-style: none; }
  .mobile-menu > ul.menu > li { display: block !important; width: 100% !important; margin: 0 !important; }
  .mobile-menu a { display: block; width: 100%; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 17px; line-height: 1.45; white-space: nowrap; text-decoration: none; }
  .mobile-menu a:hover { color: #8ee5df; }
  .sofatrvl-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  #header [data-device="desktop"] .site-logo-container { width: 310px !important; max-width: none !important; }
}

@media (max-width: 689px) {
  .home .ct-container[data-sidebar] { padding-top: 18px; }
  .home .entries { grid-template-columns: 1fr; gap: 18px; }
  .home .entry-card .card-content { padding: 18px; }
  .home .entry-card .entry-title { font-size: 20px; }
  .sofatrvl-home-hero { padding: 28px 22px; border-radius: 18px; }
  .sofatrvl-home-hero h1 { font-size: 32px; }
  .sofatrvl-home-hero p { font-size: 16px; }
  .sofatrvl-home-hero__links { gap: 8px; }
  .sofatrvl-home-hero__links a { padding: 8px 11px; font-size: 13px; }
  .single-post .entry-content { font-size: 17px; line-height: 1.85; }
  .single-post article.post, .page .site-main article.page { border-radius: 14px; }
  .sofatrvl-hub-grid { grid-template-columns: 1fr; }
}

/* Compact editorial home and refreshed brand header. */
#header [data-row="top"] {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(16,42,67,.08);
  background:
    radial-gradient(circle at 12% -50%, rgba(24,166,166,.16), transparent 42%),
    radial-gradient(circle at 88% 160%, rgba(16,42,67,.10), transparent 44%),
    linear-gradient(120deg, #fbfdfd 0%, #f1f7f7 52%, #f8fafb 100%);
}
#header [data-row="top"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: repeating-radial-gradient(ellipse at 90% 20%, transparent 0 20px, rgba(19,138,138,.12) 21px 22px, transparent 23px 37px);
}
#header [data-row="top"] .ct-container { position: relative; z-index: 1; min-height: 116px; }
.site-logo-container { grid-template-columns: 82px auto; gap: 18px; min-width: 355px; min-height: 92px; }
.site-logo-container::before {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(16,42,67,.08);
  border-radius: 22px;
  background: #fff url("https://sofatrvl.com/wp-content/uploads/2026/09/sofatraveler-logo-v2.png") center / 74px 74px no-repeat;
  box-shadow: 0 10px 30px rgba(16,42,67,.10);
}
.site-logo-container::after {
  content: "SOFATRAVELER\A沙发旅行家 · 带着“沙发”去旅行";
  color: var(--st-navy);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: .26em;
  font-weight: 780;
}
#header [data-row="middle"] { background: #102a43; }
#header [data-row="middle"] .ct-container { min-height: 54px; }
.header-menu-2 .menu { align-items: center; }
.header-menu-2 .menu > li > a { min-height: 54px; padding-inline: 14px; font-size: 14px; }
.sofatrvl-menu-search { display: flex !important; align-items: center; margin-left: 10px; }
.sofatrvl-menu-search form { display: flex; width: 210px; height: 38px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(16,42,67,.04); }
.sofatrvl-menu-search input { min-width: 0; width: 100%; height: 36px; padding: 0 6px 0 15px; border: 0 !important; color: var(--st-navy) !important; -webkit-text-fill-color: var(--st-navy) !important; caret-color: var(--st-teal); background: #fff !important; font-size: 13px; opacity: 1 !important; outline: 0; }
.sofatrvl-menu-search input::placeholder { color: #738494 !important; -webkit-text-fill-color: #738494 !important; opacity: 1; }
.sofatrvl-menu-search input:-webkit-autofill { -webkit-text-fill-color: var(--st-navy) !important; box-shadow: 0 0 0 40px #fff inset !important; }
.sofatrvl-menu-search button { display: grid; flex: 0 0 40px; place-items: center; padding: 0; border: 0; color: #fff; background: var(--st-teal); cursor: pointer; }
.sofatrvl-menu-search button:hover { color: #fff; background: #117d7d; }

.home .ct-container[data-sidebar] { padding-top: 34px; }
.sofatrvl-feed-header { display: flex; grid-column: 1 / -1; align-items: baseline; justify-content: space-between; gap: 20px; padding: 0 0 15px; border-bottom: 3px solid var(--st-navy); }
.sofatrvl-feed-header h1 { margin: 0; color: var(--st-navy); font-size: 28px; line-height: 1.2; }
.sofatrvl-feed-header p { margin: 0; color: var(--st-muted); font-size: 14px; }
.home .entries { display: block !important; }
.home .entry-card,
.home .entry-card:first-of-type {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--st-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home .entry-card:hover { transform: none !important; border-color: var(--st-line); box-shadow: none; }
.home .entry-card .ct-media-container,
.home .entry-card:first-of-type .ct-media-container { display: flex; align-self: start; justify-self: stretch; align-items: center; justify-content: center; width: 280px !important; min-width: 280px; max-width: none !important; height: 158px !important; min-height: 158px; margin: 0; border-radius: 12px; aspect-ratio: 16 / 9 !important; background: #fff; }
.home .entry-card .ct-media-container img,
.home .entry-card:first-of-type .ct-media-container img { display: block; width: 100% !important; max-width: none !important; height: 100% !important; aspect-ratio: auto !important; object-fit: contain !important; transform: none !important; }
.home .entry-card .card-content { gap: 9px; padding: 0; }
.home .entry-card .entry-title { font-size: 21px; line-height: 1.38; }
.home .entry-card .entry-excerpt { font-size: 14px; line-height: 1.65; }
.home .entry-card .entry-meta { font-size: 11px; }
.home .ct-pagination { margin-top: 26px; }

#block-1, #block-46 { display: none !important; }
#block-43 { display: block !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.sofatrvl-social-follow { margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 8px 28px rgba(16,42,67,.09); }
.sofatrvl-social-follow img { display: block; width: 100%; height: auto; }

.sofatrvl-mobile-search { display: flex; margin: 0 0 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: #fff; }
.sofatrvl-mobile-search input { min-width: 0; width: 100%; padding: 11px 12px; border: 0 !important; color: var(--st-navy) !important; -webkit-text-fill-color: var(--st-navy) !important; caret-color: var(--st-teal); background: #fff !important; opacity: 1 !important; outline: 0; }
.sofatrvl-mobile-search input::placeholder { color: #738494 !important; -webkit-text-fill-color: #738494 !important; opacity: 1; }
.sofatrvl-mobile-search button { padding: 0 14px; border: 0; color: #fff; background: var(--st-teal); font-weight: 650; }

@media (max-width: 999px) {
  #header [data-device="mobile"] .ct-container { min-height: 84px; }
  .site-logo-container { grid-template-columns: 58px auto; gap: 11px; min-width: 250px; min-height: 70px; }
  .site-logo-container::before { width: 58px; height: 58px; border-radius: 16px; background-size: 53px 53px; }
  .site-logo-container::after { font-size: 11px; line-height: 1.7; letter-spacing: .16em; }
}

@media (max-width: 689px) {
  .home .ct-container[data-sidebar] { padding-top: 22px; }
  .sofatrvl-feed-header { display: block; padding-bottom: 12px; }
  .sofatrvl-feed-header h1 { font-size: 25px; }
  .sofatrvl-feed-header p { margin-top: 5px; font-size: 13px; }
  .home .entry-card,
  .home .entry-card:first-of-type { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 17px 0; }
  .home .entry-card .ct-media-container,
  .home .entry-card:first-of-type .ct-media-container { width: 128px !important; min-width: 128px; height: 82px !important; min-height: 82px; border-radius: 9px; aspect-ratio: 16 / 10 !important; }
  .home .entry-card .card-content { padding: 0; gap: 6px; }
  .home .entry-card .entry-title { font-size: 17px; line-height: 1.38; }
  .home .entry-card .entry-excerpt { display: none; }
  .home .entry-card .meta-categories { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
