@charset "UTF-8";

:root {
  color-scheme: light;
  --news-accent: #315fce;
  --news-accent-strong: #214aa8;
  --news-accent-soft: #edf3ff;
  --news-hero: #111b31;
  --news-canvas: #f4f6f9;
  --news-surface: #ffffff;
  --news-ink: #172033;
  --news-muted: #6c7688;
  --news-line: #dfe5ee;
  --news-line-soft: #edf0f4;
  --news-shadow: 0 18px 50px rgba(25, 38, 64, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: var(--news-canvas);
  color: var(--news-ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* shared community header */
.site-header {
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(227, 231, 237, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(calc(100% - 40px), 1180px);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  color: #171a1f;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
  cursor: pointer;
}

.logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 9px;
  color: #555e69;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--news-accent-soft);
  color: var(--news-accent-strong);
  outline: none;
}

/* page shell and hero */
.news-shell {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
  padding: 8px 0 72px;
}

.news-hero {
  min-height: 190px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 54px;
  padding: 32px 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 87% 12%, rgba(72, 121, 231, .28), transparent 34%),
    linear-gradient(135deg, var(--news-hero), #172746);
  color: #fff;
}

.news-hero::after {
  content: "";
  width: 330px;
  height: 330px;
  position: absolute;
  right: -75px;
  bottom: -190px;
  border: 52px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy,
.hero-brief {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: block;
  margin-bottom: 8px;
  color: #8eb1ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.045em;
  word-break: keep-all;
}

.hero-copy > p {
  max-width: 650px;
  margin: 10px 0 24px;
  color: #cbd4e2;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.hero-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbe4f0;
  font-size: 12px;
  font-weight: 600;
}

.hero-guide span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hero-guide b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 11px;
}

.hero-guide i {
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, .22);
}

.hero-brief {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 17px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.brief-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--news-accent);
  font-size: 20px;
}

.hero-brief > div {
  display: grid;
  gap: 5px;
}

.hero-brief strong {
  font-size: 16px;
}

.hero-brief small {
  color: #d3dce9;
  font-size: 12px;
  font-weight: 500;
}

/* filter toolbar */
.news-toolbar {
  margin: 12px 0 20px;
  padding: 22px 26px;
  border: 1px solid var(--news-line);
  border-radius: 20px;
  background: var(--news-surface);
  box-shadow: var(--news-shadow);
}

.toolbar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

.toolbar-heading > div,
.section-heading > div {
  display: grid;
  gap: 5px;
}

.toolbar-heading span,
.section-heading span {
  color: var(--news-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

.toolbar-heading h2,
.section-heading h2 {
  margin: 0;
  color: #202a3d;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.toolbar-heading p,
.section-heading > p {
  margin: 0;
  color: #7b8493;
  font-size: 12px;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.category-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  background: #f7f8fa;
}

.search-wrap {
  flex: 1 1 260px;
  min-width: 0;
  position: relative;
  display: block;
}

.category-tab,
.region-tab {
  min-width: 72px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 9px;
  background: transparent;
  color: #6d7684;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.category-tab:hover,
.category-tab:focus-visible,
.region-tab:hover,
.region-tab:focus-visible {
  background: #fff;
  color: var(--news-accent-strong);
  outline: none;
}

.category-tab.active,
.region-tab.active {
  background: #fff;
  color: var(--news-accent-strong);
  box-shadow: 0 4px 14px rgba(25, 38, 64, .08);
}

.region-tab[data-region="all"] {
  min-width: 92px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: #8b94a2;
  font-size: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 43px;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  background: #fff;
  color: var(--news-ink);
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-input::placeholder {
  color: #9aa3af;
}

.search-input:focus {
  border-color: #93aff1;
  box-shadow: 0 0 0 3px rgba(49, 95, 206, .1);
}

/* content hierarchy */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 20px;
}

.main-content {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 4px 12px;
}

.featured-section,
.news-list-section,
.sidebar-section,
.empty-area {
  border: 1px solid var(--news-line);
  border-radius: 20px;
  background: var(--news-surface);
  box-shadow: var(--news-shadow);
}

.featured-section {
  min-height: 310px;
  margin-bottom: 24px;
  overflow: hidden;
}

.featured-card {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(300px, .95fr);
  color: inherit;
}

.featured-thumb {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(83, 130, 232, .3), transparent 34%),
    linear-gradient(145deg, #1b2c4c, #315fce);
}

.featured-thumb::after,
.news-thumb::after {
  content: "구구하우스";
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.featured-thumb.is-placeholder::after,
.news-thumb.is-placeholder::after {
  content: none;
}

.thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.04em;
}

.featured-thumb img,
.news-thumb img {
  position: relative;
  z-index: 1;
  transition: transform .35s ease;
}

.featured-body {
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
}

.featured-source,
.news-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--news-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--news-accent-soft);
  color: var(--news-accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.news-badge.region {
  background: #173056;
  color: #fff;
}

.featured-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 12px;
  color: #1a2436;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.04em;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #6b7585;
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: #929aa6;
  font-size: 11px;
}

.featured-card:hover .featured-title {
  color: var(--news-accent-strong);
}

.featured-card:hover .featured-thumb img,
.news-item:hover .news-thumb img {
  transform: scale(1.04);
}

.news-list-section {
  padding: 22px;
}

.news-list-section > .section-heading {
  margin-right: 2px;
  margin-left: 2px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.news-item {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--news-line-soft);
  border-radius: 15px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.news-item:hover {
  border-color: #cbd8f5;
  box-shadow: 0 12px 28px rgba(25, 38, 64, .08);
  transform: translateY(-2px);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(83, 130, 232, .25), transparent 35%),
    linear-gradient(145deg, #243654, #416fd1);
}

.news-content {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px;
}

.news-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 14px;
  color: #273143;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.58;
  letter-spacing: -.025em;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-date {
  margin-top: auto;
  color: #969eaa;
  font-size: 11px;
}

.news-item:hover .news-title {
  color: var(--news-accent-strong);
}

.more-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid #dce3ef;
  border-radius: 11px;
  background: #f8f9fb;
  color: #5e6878;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.more-btn i {
  margin-left: 7px;
  font-size: 10px;
}

.more-btn:hover,
.more-btn:focus-visible {
  border-color: #c5d4f5;
  background: var(--news-accent-soft);
  color: var(--news-accent-strong);
  outline: none;
}

/* popular news */
.sidebar {
  min-width: 0;
  position: sticky;
  top: 86px;
}

.sidebar-section {
  padding: 22px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--news-accent-soft);
  color: var(--news-accent);
  font-size: 16px;
}

.sidebar-heading small {
  display: block;
  margin-bottom: 2px;
  color: var(--news-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.sidebar-title {
  margin: 0;
  color: #202a3d;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.sidebar-desc {
  margin: 14px 0 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--news-line);
  color: #7c8593;
  font-size: 11px;
  line-height: 1.65;
}

.popular-list {
  display: flex;
  flex-direction: column;
}

.popular-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--news-line-soft);
}

.popular-item:last-child {
  border-bottom: 0;
}

.popular-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1f3f6;
  color: #727c8a;
  font-size: 11px;
  font-weight: 800;
}

.popular-rank.rank-1,
.popular-rank.rank-2,
.popular-rank.rank-3 {
  background: var(--news-accent-soft);
  color: var(--news-accent-strong);
}

.popular-title {
  display: -webkit-box;
  overflow: hidden;
  color: #3c4656;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.popular-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.popular-meta {
  color: #9aa2ad;
  font-size: 10px;
}

.popular-meta i {
  margin-right: 3px;
}

.popular-item:hover .popular-title {
  color: var(--news-accent-strong);
}

.popular-loading {
  padding: 28px 0 12px;
  color: #929aa6;
  font-size: 12px;
  text-align: center;
}

/* status and footer */
.loading-area,
.empty-area {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
  color: #87909e;
  text-align: center;
}

.loading-area p {
  margin: 8px 0 0;
  font-size: 12px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e3e9f5;
  border-top-color: var(--news-accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-area {
  gap: 6px;
  margin-top: 20px;
}

.empty-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--news-accent-soft);
  color: var(--news-accent);
  font-size: 19px;
}

.empty-area strong {
  color: #3f4959;
  font-size: 15px;
}

.empty-area p {
  margin: 0;
  color: #8b94a1;
  font-size: 12px;
}

.footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(20px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--news-line);
  background: #fff;
  color: #8a939f;
  font-size: 11px;
}

.footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer strong {
  color: #4b5565;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .news-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .toolbar-controls {
    grid-template-columns: 1fr;
  }

  .category-inner {
    width: 100%;
  }

  .category-tab,
  .region-tab {
    min-width: 0;
    flex: 1 1 0;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .popular-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header-inner {
    height: 62px;
  }

  .site-header-inner {
    width: min(calc(100% - 24px), 1180px);
    gap: 14px;
  }

  .logo {
    gap: 7px;
    font-size: 15px;
  }

  .logo img {
    width: 27px;
    height: 27px;
  }

  .site-nav {
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .news-shell {
    width: min(calc(100% - 24px), 1180px);
    padding-top: 6px;
  }

  .news-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 24px;
    border-radius: 19px;
  }

  .hero-copy h1 {
    font-size: 25px;
  }

  .hero-guide {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hero-guide::-webkit-scrollbar {
    display: none;
  }

  .hero-brief {
    min-height: 82px;
    padding: 15px;
  }

  .news-toolbar {
    padding: 20px;
    border-radius: 17px;
  }

  .toolbar-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .category-inner {
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .category-tab,
  .region-tab {
    min-width: 68px;
    padding: 0 12px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-thumb {
    min-height: 240px;
  }

  .featured-body {
    padding: 24px;
  }

  .news-list-section,
  .sidebar-section {
    padding: 18px;
    border-radius: 17px;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .popular-list {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 480px) {
  .site-header-inner {
    gap: 9px;
  }

  .logo span {
    display: none;
  }

  .site-nav a {
    padding: 8px;
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-copy > p {
    font-size: 13px;
  }

  .hero-guide {
    font-size: 11px;
  }

  .hero-guide i {
    width: 12px;
  }

  .toolbar-heading > p {
    display: none;
  }

  .featured-thumb {
    min-height: 200px;
  }

  .featured-title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
