header {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 10vw, 80px) 24px 48px;
  isolation: isolate;
}

header h1 {
  position: relative;
  max-width: 860px;
  font-size:
    clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(12px);
  animation:
    headerTextReveal 1.4s ease forwards;
  animation-delay: .25s;
}

header h1 span {
  background:
    linear-gradient(to bottom,
      #ffffff 0%,
      #dbeafe 42%,
      #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 18px rgba(147, 197, 253, .10),
    0 0 42px rgba(96, 165, 250, .06);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  border:
    1px solid rgba(255, 255, 255, .08);
  background:
    rgba(255, 255, 255, .04);
  backdrop-filter: blur(2px);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #dbeafe;
  opacity: 0;
  transform: translateY(10px);
  animation:
    headerTextReveal 1.2s ease forwards;
  animation-delay: .1s;
}

.hero-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .42;
  filter:
    blur(.6px) saturate(.92) brightness(.92) transform:scale(1.04);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(3, 7, 18, 0) 0%,
      rgba(3, 7, 18, .04) 18%,
      rgba(3, 7, 18, .12) 36%,
      rgba(3, 7, 18, .28) 52%,
      rgba(3, 7, 18, .52) 68%,
      rgba(3, 7, 18, .78) 82%,
      var(--bg) 100%);
}

.hero-lead {
  position: relative;
  max-width: 760px;
  font-size:
    clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.9;
  color: #dbeafe;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(8px);
  animation:
    headerTextReveal 1.4s ease forwards;
  animation-delay: .45s;
}

.hero-sub {
  position: relative;
  max-width: 720px;
  font-size: .98rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 34px;
  opacity: 0;
  transform: translateY(8px);
  animation:
    headerTextReveal 1.4s ease forwards;
  animation-delay: .6s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  animation:
    headerTextReveal 1.4s ease forwards;
  animation-delay: .75s;
}


@keyframes headerGlowReveal {
  
  0% {
    opacity: 0;
    transform: scale(.75);
    filter: blur(42px);
  }
  
  50% {
    opacity: 1;
    transform: scale(1.04);
    filter: blur(18px);
  }
  
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(12px);
  }
}

@keyframes headerTextReveal {
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  
  header {
    padding-top: 120px;
  }
  
  header h1 {
    line-height: 1.15;
  }
  
  .hero-actions {
    width: 100%;
  }
  
  .hero-actions .cta-btn {
    flex: 1;
    min-width: 160px;
  }
}

.category-nav-wrap {
  position: relative;
  margin-top: 42px;
  padding-top: 24px;
  padding-bottom: px;
}

.category-header {
  margin-bottom: 20px;
}

.category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 12px;
  opacity: .92;
}

.category-header p {
  max-width: 680px;
  color: #94a3b8;
  font-size: .95rem;
  line-height: 1.75;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding:
    14px 20px;
  border-radius: 999px;
  cursor: pointer;
  border:
    1px solid rgba(255, 255, 255, .06);
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, .06),
      rgba(255, 255, 255, .03));
  color: #dbeafe;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform .22s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    color .25s ease;
}

.category-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, .10),
      transparent);
  opacity: .35;
  pointer-events: none;
}

@media (hover:hover) and (pointer:fine) {
  .category-chip:hover {
    transform:
      translateY(-2px);
    background:
      rgba(96, 165, 250, .10);
    color: white;
    box-shadow:
      0 8px 24px rgba(96, 165, 250, .10);
  }
}

.category-chip.active {
  background:
    linear-gradient(135deg,
      rgba(96, 165, 250, .18),
      rgba(59, 130, 246, .08));
  color: white;
  box-shadow:
    0 8px 24px rgba(96, 165, 250, .14);
}

.category-chip:active {
  transform:
    scale(.96);
}

@media (max-width:768px) {
  .category-nav-wrap {
    margin-top: 34px;
  }
  
  .category-header p {
    font-size: .92rem;
  }
  
  .category-chip {
    padding:
      12px 17px;
    font-size: .88rem;
  }
}



section {
  padding: 64px 20px;
  max-width: 1100px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.highlight {
  color: var(--secondary);
  font-weight: 600;
}

.content-long {
  max-width: 980px;
  margin: 0px auto;
  padding: 72px 16px;
  line-height: 1.75;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.content-long::after {
  content: "";
  display: block;
  clear: both;
}

.content-long h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.content-long h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-long p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.98rem;
  max-width: 75ch;
}






.pwa-mini {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 64px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  animation: slideUp .35s ease;
}

.pwa-mini.hidden {
  display: none;
}

.pwa-mini img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.pwa-mini span {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.2;
}

.pwa-mini button {
  border: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

#pwa-install {
  background: #60a5fa;
  color: #0b1220;
  font-weight: 600;
}

#pwa-close {
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  padding: 0 6px;
}



hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  margin: 36px 0;
}

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

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.icon {
  margin-right: 8px;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke: #93c5fd;
  stroke-width: 1.8;
  fill: none;
}

.card:hover .icon {
  stroke: #60a5fa;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, .6));
  transition: .25s ease;
}

.img-wrapper {
  position: relative;
  float: left;
  width: 420px;
  max-width: 48%;
  margin: 0 28px 18px 0;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      #1f2937 25%,
      #374151 37%,
      #1f2937 63%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  z-index: 1;
  border-radius: 22px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  
  100% {
    background-position: -200% 0;
  }
}

.section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  border-radius: 22px;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  transform: scale(0.98);
}

.img-wrapper.loaded .section-img {
  opacity: 1;
  position: relative;
  transform: scale(1);
  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.2);
  z-index: 2;
}

.img-wrapper.loaded .img-skeleton {
  display: none;
}

@media (max-width: 768px) {
  
  .img-wrapper {
    float: none;
    width: 100%;
    max-width: 100%;
    
    margin: 0 0 22px 0;
  }
}

.cta-box {
  max-width: 420px;
  margin-top: 28px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg,
      rgba(96, 165, 250, 0.12),
      rgba(52, 211, 153, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
}

.cta-content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #93c5fd;
}

.cta-content p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.text-link {
  color: #93c5fd;
  text-decoration: none;
  border-bottom: 1px dashed rgba(147, 197, 253, 0.5);
  transition: all 0.2s ease;
}

.text-link:hover {
  color: #60a5fa;
  border-bottom: 1px solid #60a5fa;
}

.text-link:active {
  opacity: 0.7;
}

.season-banner {
  position: relative;
  margin-top: 24px;
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
  background-image: url('/season/season-of-carnival/images/season_of_carnival_spirit.webp');
  background-size: cover;
  background-position: center;
}

.season-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .12),
      transparent);
  
  transform: skewX(-20deg);
  pointer-events: none;
}

.season-banner.shine::after {
  animation: shine 1.8s ease;
}

@keyframes shine {
  from {
    left: -150%;
  }
  
  to {
    left: 150%;
  }
}

.season-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  
  min-height: 340px;
  padding: 32px;
  
  background:
    linear-gradient(to top,
      rgba(0, 0, 0, .85),
      rgba(0, 0, 0, .45),
      rgba(0, 0, 0, .1));
}

.season-tag {
  display: inline-block;
  width: fit-content;
  
  padding: 6px 12px;
  margin-bottom: 12px;
  
  border-radius: 999px;
  
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
}

.season-overlay h3 {
  margin-bottom: 10px;
  
  font-size: 2rem;
  color: #fff;
}

.season-overlay p {
  max-width: 600px;
  margin-bottom: 20px;
  
  color: rgba(255, 255, 255, .9);
  line-height: 1.7;
}




.sky-guide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.sky-guide h2 {
  
  font-size:
    clamp(1.8rem, 3vw, 2.4rem);
  
  font-weight: 800;
  
  line-height: 1.2;
  
  letter-spacing: -0.03em;
  
  margin-bottom: 18px;
  
  background:
    linear-gradient(to bottom,
      #ffffff,
      #cbd5e1);
  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sky-guide .muted {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: 0.96rem;
  line-height: 1.75;
}

.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  
  margin-top: 36px;
}

@media (min-width: 768px) {
  .article-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .article-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

@media (hover: hover) {
  .article-item:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.28);
    background:
      linear-gradient(180deg,
        rgba(96, 165, 250, 0.08),
        rgba(255, 255, 255, 0.02));
    box-shadow:
      0 12px 30px rgba(96, 165, 250, 0.12);
  }
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--muted);
}

.tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.date {
  opacity: 0.75;
}

.article-item h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: left;
}

.article-item h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-item h3 a:hover {
  color: #60a5fa;
}

.article-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: left;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

@media (hover: hover) {
  .like-btn:hover {
    color: #fda4af;
    background: rgba(251, 113, 133, 0.08);
    transform: translateY(-1px);
  }
}

.like-btn.liked {
  color: #fb7185;
}

.heart-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: all 0.25s ease;
}

.like-btn.liked .heart-icon {
  fill: currentColor;
  stroke: currentColor;
}

.like-btn.animate .heart-icon {
  animation: pop 0.35s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  
  40% {
    transform: scale(1.35);
  }
  
  100% {
    transform: scale(1);
  }
}

.read-btn {
  position: relative;
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #60a5fa;
  transition: width 0.25s ease;
}

.read-btn:hover::after {
  width: 100%;
}

.guide-actions {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 42px;
  padding-top: 10px;
}

.guide-actions::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background:
    linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.18),
      transparent);
}

@media (max-width: 767px) {
  
  .sky-guide {
    padding: 56px 16px;
  }
  
  .article-item {
    padding: 16px;
    border-radius: 16px;
  }
  
  .article-footer {
    flex-direction: row;
    align-items: center;
  }
  
  .article-item h3 {
    font-size: 1rem;
  }
  
  .article-item p {
    font-size: 0.88rem;
  }
}


.search-section {
  position: relative;
  max-width: 720px;
  margin: 60px auto;
  z-index: 999;
}

.search-box {
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  will-change: width, border-radius, box-shadow;
  transition:
    width .55s cubic-bezier(.16, 1, .3, 1),
    background-color .35s ease,
    border-color .35s ease;
}

.search-box.expanded {
  width:min(680px,100%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  
}

.search-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: right .35s;
}

.search-box.expanded .search-toggle {
  right: calc(100% - 64px);
}

.search-toggle svg {
  width: 24px;
  height: 24px;
}

.search-box input {
  position: absolute;
  left: 64px;
  top: 0;
  width: calc(100% - 64px);
  height: 64px;
  border: none;
  background: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.search-box.expanded input {
  opacity: 1;
  pointer-events: auto;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, .55);
}

#searchResults {
  position: absolute;
  top: 78px;
  left: 0;
  width: 100%;
  max-height: 420px;
  overflow: auto;
  border-radius: 18px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility 0s linear .25s;
}

#searchResults.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility 0s;
}

.search-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  color: white;
  transition: .2s;
}

.search-card:hover {
  background: rgba(255, 255, 255, .05);
}

.search-card img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.search-card div {
  flex: 1;
}

.search-card span {
  color: #60a5fa;
  font-size: 12px;
}

.search-card h3 {
  margin: 5px 0;
  font-size: 16px;
}

.search-card p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

.empty {
  padding: 35px;
  text-align: center;
  color: #94a3b8;
}

#searchResults::-webkit-scrollbar {
  width: 6px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 999px;
}

@media(max-width:768px) {
  .search-section {
    margin: 40px auto;
    padding: 0 16px;
  }
  
  .search-box.expanded {
    width: 100%;
  }
}