/* ===== Global Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  line-height: 1.5;
  font-family: "Noto Sans KR", sans-serif;
  background: #f8fafc; /* 연한 회색 (원하면 #fff로 변경) */
  color: #111827;
}

.visually-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== NAV BAR ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header .inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ===== LOGO : NEWS HEADLINE ===== */
.site-header .logo{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-header .logo a{
  text-decoration: none;
  color: #0b1220;
  position: relative;
}

.site-header .logo a span{
  font-weight: 700;
  opacity: 0.6;
}

/* 하단 강조선 */
.site-header .logo a::after{
  content: "";
  display: block;
  margin-top: 2px;
  width: 100%;
  height: 3px;
  background: #0b1220;
}


/* ===== NAV =====
   ✅ 화면이 좁아지면 줄바꿈 없이 가로 스크롤 */
.nav{
  width: 100%;                 /* ✅ 부모 폭 꽉 채우기 */
  display: flex;
  align-items: center;
  gap: 6px;

  flex-wrap: nowrap;           /* ❌ 줄바꿈 금지 */
  overflow-x: auto;            /* ✅ 가로 스크롤 */
  overflow-y: hidden;
  white-space: nowrap;

  -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
}

.nav::-webkit-scrollbar{
  display: none; /* 스크롤바 숨김(선택) */
}

.nav a{
  flex: 0 0 auto;              /* ✅ 각 메뉴가 줄어들지 않게 */
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  color: #374151;
  padding: 9px 14px;
  border-radius: 999px;
  transition: all .15s ease;
}

.nav a:hover{
  background: #f1f5f9;
  color: #111827;
}

.nav a.active{
  background: #111827;
  color: #ffffff;
}

/* ===== MOBILE (선택)
   헤더 레이아웃만 모바일에서 세로로 바꾸고 싶으면 유지.
   싫으면 이 블록 통째로 삭제해도 됨. */
@media (max-width: 720px){
  .site-header .inner{
    flex-direction: column;
    align-items: stretch; /* ✅ nav 가로폭 100% 안정화 */
    gap: 10px;
  }
}

.site-footer{
  margin-top: 28px;
  background: #0b1220;          /* 네이비/블랙 톤 */
  color: #e5e7eb;
  border-top: 1px solid rgba(255,255,255,.06);
}

.site-footer .inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px;
}

.footer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-title{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  display:flex;
  align-items:center;
  gap: 10px;
}

/* 작은 뱃지 느낌 */
.brand-title::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: #60a5fa; /* 포인트 */
  display:inline-block;
}

.brand-desc{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(229,231,235,.78);
  line-height: 1.55;
}

.footer-links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
}

.footer-links a{
  color: rgba(229,231,235,.88);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.footer-links a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #ffffff;
}

.footer-bottom{
  padding-top: 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.copy{
  margin:0;
  font-size: 12px;
  color: rgba(229,231,235,.75);
}

.meta{
  margin:0;
  font-size: 12px;
  color: rgba(229,231,235,.60);
  line-height: 1.6;
  max-width: 520px;
}

/* Mobile */
@media (max-width: 720px){
  .footer-links{
    justify-content:flex-start;
  }
  .footer-bottom{
    flex-direction: column;
  }
}

/* 애드센스 가운데 정렬 */
.adsense-center {
    max-width: 1200px;   /* 사이트 콘텐츠 폭에 맞게 조절 */
    margin: 40px auto;   /* 위아래 여백 + 가운데 정렬 */
    text-align: center;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .adsense-center {
        margin: 20px auto;
        padding: 0 12px;
    }
}
