/* =====================================================
   NOVA THEME - COMPLETE CSS
   ===================================================== */

/* =====================================================
   VARIABLES
   ===================================================== */
:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #1a1a1a;
  --text: #fff;
  --text2: #fff;
  --text3: #555;
  --accent: #00ff88;
  --accent2: #ff0066;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --trans: 0.3s ease;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

input, textarea, select, [contenteditable] {
  cursor: text !important;
}

@media (max-width: 768px) {
  body, button, a { cursor: auto; }
  .cursor, .cursor-follower { display: none !important; }
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
.cursor, .cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  transition: transform 0.15s, width 0.3s, height 0.3s, opacity 0.2s;
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  background: rgba(0, 255, 136, 0.1);
}

/* =====================================================
   THREE.JS BACKGROUND
   ===================================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: var(--bg);
  transition: background var(--trans);
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch:hover::before {
  animation: g1 0.3s infinite;
  color: var(--accent);
  opacity: 0.8;
}

.glitch:hover::after {
  animation: g2 0.3s infinite;
  color: var(--accent2);
  opacity: 0.8;
}

@keyframes g1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes g2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
}

/* Search Bar */
.nav-search {
  position: relative;
  flex: 0 1 400px;
  min-width: 200px;
}

.nav-search s_search,
.nav-search .search {
  display: block;
  position: relative;
  width: 100%;
}

.nav-search input {
  width: 100%;
  height: 44px;
  padding: 0 50px 0 20px;
  background: var(--bg2);
  border: 1px solid transparent;
  border-radius: 50px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--trans);
}

.nav-search input::placeholder {
  color: var(--text3);
}

.nav-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.nav-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  background: transparent;
}

.nav-search button:hover {
  background: var(--accent);
}

.nav-search button svg {
  width: 18px;
  height: 18px;
  stroke: var(--text2);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.nav-search button:hover svg {
  stroke: var(--bg);
}

/* Progress Bar */
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
}

/* =====================================================
   CATEGORY BAR
   ===================================================== */
#category-bar {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 999;
  height: 44px;
  background: var(--bg2);
  border-bottom: 1px solid var(--bg3);
  overflow: hidden;
}

.category-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-inner::-webkit-scrollbar {
  display: none;
}

.category-inner ul,
.category-inner .tt_category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.category-inner li {
  display: inline-flex;
}

.category-inner a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text2);
  border-radius: 20px;
  transition: var(--trans);
  white-space: nowrap;
}

.category-inner a:hover {
  color: var(--text);
  background: var(--bg3);
}

.category-inner a.selected,
.category-inner a:active,
.category-inner li.active > a {
  color: var(--bg);
  background: var(--accent);
}

.category-inner ul ul {
  display: contents;
}

.category-inner ul ul a::before {
  content: "· ";
  color: var(--text3);
}

.category-inner .c_cnt {
  display: none;
}

/* =====================================================
   CONTENT SPACING (nav 60px + category 44px = 104px)
   ===================================================== */
#main,
.cover-section,
.tag-page,
.guestbook,
.list-header {
  padding-top: 104px !important;
}

.article-view {
  padding-top: 10px !important;
}

.posts-section {
  padding-top: 25px !important;
}

#hero {
  padding-top: 104px;
  min-height: 100vh;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
}

.hero-content {
  max-width: 1000px;
}

.hero-title {
  font-size: clamp(2.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
  animation: slideUp 1s ease forwards;
  transform: translateY(100%);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

.hero-desc {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: var(--text2);
  min-height: 1.5em;
}

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.section-header .label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
}

.cover-section {
  padding: 0 1rem 4rem;
}

/* =====================================================
   SLIDER
   ===================================================== */
.slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 80%;
  max-width: 700px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  display: block;
}

.slide-img {
  position: absolute;
  inset: 0;
}

.slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.slide:hover .slide-img img {
  transform: scale(1.1);
}

.slide-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.9));
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slide-info .cate {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.slide-info h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
}

/* =====================================================
   POSTS GRID
   ===================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =====================================================
   POST CARD
   ===================================================== */
.post-card {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: block;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-card:hover .card-img img {
  transform: scale(1.1);
}

.card-info {
  padding: 1.25rem;
}

.card-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-info p {
  font-size: 0.9rem;
  color: var(--text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card.protected .card-img {
  font-size: 2.5rem;
}

.lock-icon {
  font-size: 2.5rem;
}

/* =====================================================
   LIST HEADER
   ===================================================== */
.list-header {
  padding-bottom: 2rem;
  text-align: center;
}

.list-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
}

/* =====================================================
   POSTS SECTION
   ===================================================== */
.posts-section {
  padding-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

#tt-body-page .posts-container,
#tt-body-entry .posts-container {
  display: block;
  max-width: 100%;
  padding: 0;
}

/* =====================================================
   ARTICLE VIEW
   ===================================================== */
.article-view {
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.article-header {
  text-align: center;
  margin-bottom: 0rem;
}

.article-header .cate {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  transition: var(--trans);
}

.article-header .cate:hover {
  background: var(--accent);
  color: var(--bg);
}

.article-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  word-break: keep-all;
}

.article-header .meta {
  color: var(--text2);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text2);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--text);
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}

.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body img {
  border-radius: 10px;
  margin: 1.5rem 0;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text);
  font-style: italic;
}

.article-body pre,
.article-body code {
  background: var(--bg3);
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
}

.article-body pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body code {
  padding: 0.2rem 0.5rem;
  font-size: 0.9em;
}

/* 본문 글씨색 강제 */
.article-body,
.article-body *:not(a):not(code):not(pre),
.contents_style,
.contents_style *:not(a):not(code):not(pre) {
  color: var(--text2) !important;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.article-body strong,
.article-body b {
  color: var(--text) !important;
}

.article-body a,
.contents_style a {
  color: var(--accent) !important;
}

/* Tags */
.tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags a {
  padding: 0.4rem 1rem;
  background: var(--bg3);
  border-radius: 20px;
  font-size: 0.875rem;
  transition: var(--trans);
}

.tags a:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Related Posts */
.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg3);
}

.related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.related-grid a {
  background: var(--bg2);
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--trans);
  display: block;
}

.related-grid a:hover {
  transform: translateY(-5px);
}

.related-grid img {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
}

.related-grid span {
  display: block;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Comments */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg3);
}

/* Password Form */
.pw-form {
  text-align: center;
  padding: 3rem;
  background: var(--bg2);
  border-radius: 16px;
  margin-top: 2rem;
}

.pw-form p {
  margin-bottom: 1rem;
  color: var(--text2);
}

.pw-form input {
  padding: 0.75rem 1.25rem;
  background: var(--bg3);
  border: 1px solid transparent;
  border-radius: 30px;
  color: var(--text);
  font-size: 1rem;
  margin-right: 0.5rem;
  transition: var(--trans);
}

.pw-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.pw-form button {
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
}

.pw-form button:hover {
  opacity: 0.9;
}

/* =====================================================
   TAG PAGE
   ===================================================== */
.tag-page {
  min-height: 100vh;
  padding-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.tag-page h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tag-cloud a {
  padding: 0.6rem 1.25rem;
  background: var(--bg2);
  border-radius: 30px;
  font-size: 0.95rem;
  transition: var(--trans);
}

.tag-cloud a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.1);
}

/* =====================================================
   GUESTBOOK
   ===================================================== */
.guestbook {
  min-height: 100vh;
  padding-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 750px;
  margin: 0 auto;
}

.guestbook h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 2rem;
  text-align: center;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  flex-wrap: wrap;
}

.pagination a {
  padding: 0.6rem 1.25rem;
  background: var(--bg2);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--trans);
}

.pagination a:hover,
.pagination a.selected {
  background: var(--accent);
  color: var(--bg);
}

.pagination .no_more_prev,
.pagination .no_more_next {
  opacity: 0.3;
  pointer-events: none;
}

.nums {
  display: flex;
  gap: 0.5rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  background: var(--bg2);
  padding: 3rem 1rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#footer .glitch {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: inline-block;
}

#footer p {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

#footer a {
  color: var(--text3);
  font-size: 0.8rem;
  transition: color var(--trans);
}

#footer a:hover {
  color: var(--accent);
}

/* =====================================================
   FLOATING WIDGET
   ===================================================== */
#widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
}

.widget-btn {
  width: 50px;
  height: 50px;
  background: var(--bg2);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: var(--trans);
}

.widget-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.widget-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 200px;
  background: var(--bg2);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--trans);
}

#widget.open .widget-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.widget-stats {
  display: flex;
  gap: 1rem;
  text-align: center;
}

.widget-stats > div {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg3);
  border-radius: 8px;
}

.widget-stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.widget-stats span {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
#to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--trans);
  z-index: 900;
  cursor: pointer;
}

#to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#to-top:hover {
  transform: translateY(-5px);
}

/* =====================================================
   TISTORY ELEMENTS
   ===================================================== */
[data-tistory-react-app="Namecard"],
[data-tistory-react-app="SupportButton"] {
  display: none !important;
}

[data-tistory-react-app="Comment"],
[data-tistory-react-app="Comment"] *,
.tt-wrap-desc,
.tt-wrap-desc *,
.tt_desc {
  color: #ccc !important;
}

.tt-cmt[contenteditable] {
  background: var(--bg3) !important;
  border: 1px solid var(--bg3) !important;
  border-radius: 8px !important;
  padding: 12px !important;
  color: #fff !important;
  transition: var(--trans);
}

.tt-cmt[contenteditable]:focus {
  border-color: var(--accent) !important;
  outline: none !important;
}

.tt-cmt[data-placeholder]:empty::before {
  color: var(--text3) !important;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
[data-scroll] {
  opacity: 0;
  transform: translateY(30px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .posts-grid,
  .posts-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #nav {
    height: 56px;
    padding: 0 1rem;
  }

  #category-bar {
    top: 56px;
    height: 40px;
  }

  .category-inner {
    padding: 0 1rem;
  }

  .category-inner a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* 56px + 40px = 96px */
  #main,
  .cover-section,
  .tag-page,
  .guestbook,
  .list-header {
    padding-top: 96px !important;
  }

  .article-view {
  padding-top: 10px !important;
  }

  .posts-section {
  padding-top: 25px !important;
  }

  #hero {
    padding-top: 96px;
  }

  .nav-inner {
    gap: 1rem;
  }

  .logo {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }

  .nav-search {
    flex: 1;
    min-width: 0;
  }

  .nav-search input {
    height: 40px;
    padding: 0 44px 0 16px;
    font-size: 0.85rem;
  }

  .nav-search button {
    width: 32px;
    height: 32px;
  }

  .nav-search button svg {
    width: 16px;
    height: 16px;
  }

  .posts-grid,
  .posts-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .slide {
    flex: 0 0 90%;
  }

  .article-view {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #widget,
  #to-top {
    bottom: 1rem;
  }

  #widget {
    right: 1rem;
  }

  #to-top {
    left: 1rem;
  }

  .widget-btn,
  #to-top {
    width: 44px;
    height: 44px;
  }

  .widget-panel {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 4rem);
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .nums {
    display: none;
  }
}