/* =========================
   RESET / BASE
========================= */
body, h1, h2, p, div {
  margin: 0;
  padding: 0;
}

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

/* =========================
   TITLE / DESC
========================= */
.title {
  font-size: 26px;
  margin-bottom: 8px;
}

.desc {
  color: #666;
  margin-bottom: 20px;
}

/* =========================
   SEARCH / FILTER
========================= */
#searchInput {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.filter-bar button {
  padding: 6px 10px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.filter-bar button:hover {
  transform: translateY(-1px);
}

/* 필터 색상 */
.btn-all { background:#555; color:#fff; }
.btn-write { background:#34495e; color:#fff; }
.btn-shop { background:#34495e; color:#fff; }
.btn-marketing { background:#34495e; color:#fff; }
.btn-design { background:#34495e; color:#fff; }
.btn-video { background:#34495e; color:#fff; }
.btn-edu { background:#34495e; color:#fff; }
.btn-dev { background:#34495e; color:#fff; }
.btn-korea { background:#9b59b6; color:#fff; }
.btn-global { background:#9b59b6; color:#fff; }

/* =========================
   TOP 10
========================= */
.top10-box {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 15px;
  margin-bottom: 20px;
}

.top10-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 10px 30px;
}

.top10-item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.top10-item .rank {
  width: 22px;
  height: 22px;
  background: #111;        /* 검정 원 */
  color: #ffd400;          /* 숫자 색 (노랑) */
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.top10-item a {
  color: #333;
  text-decoration: none;
}

.top10-item a:hover {
  text-decoration: underline;
}

/* =========================
   BADGE
========================= */
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  margin-left: 4px;
}

.badge-recommend { background: #ff4d4f; }
.badge-korea { background: #2563eb; }
.badge-global { background: #111827; }

/* =========================
   AI CARD (INDEX & SIMILAR)
========================= */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
}

.ai-card {
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 10px;
}

.ai-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.ai-country {
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}

.ai-desc {
  font-size: 13px;
  color: #555;
  padding-left: 18px;
  margin-bottom: 10px;
}

.ai-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* =========================
   BUTTON
========================= */
.btn-go {
  padding: 8px 12px;
  background: #222;
  color: #fff;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-go:hover {
  color: #f6e84b;
}

.btn-view {
  padding: 8px 12px;
  background: #4b6bfb;
  color: #fff;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-view:hover {
  color: #f6e84b;   /* 노란색 글자 */
}

/* =========================
   PAGINATION
========================= */
.pagination {
  text-align: center;
  margin-top: 25px;
}

.pagination button {
  margin: 0 3px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #fff;
}

.pagination button.active {
  background: #333;
  color: #fff;
}

/* =========================
   VIEW PAGE (최종)
========================= */
.view-card {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin-bottom: 40px;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.view-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-title {
  font-size: 30px;
  font-weight: 800;
}

.view-actions {
  display: flex;
  gap: 10px;
}

.btn-back-go {
  background: #4f6ef7;
   font-size: 13px;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.btn-back-go:hover {
  color: #f6e84b;   /* 노란색 글자 */
}

/* 메타 */
.view-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.view-meta div {
  background: #f8f9fb;
  padding: 14px;
  border-radius: 10px;
}

.view-meta strong {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

/* 설명 */
.view-section {
  margin-top: 30px;
}

.view-section h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.view-desc-box {
  background: #f6f7fa;
  padding: 18px;
  border-radius: 10px;
  line-height: 1.8;
  color: #333;
}

.feature-list {
  padding-left: 18px;
  line-height: 1.8;
}

.section-title {
  font-size: 24px;
  margin: 50px 0 20px;
}
/* VIEW – 간단 정보 영역 */
.view-simple-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0 30px;
  font-size: 15px;
  color: #444;
}

.view-simple-info strong {
  color: #111;
  font-weight: 600;
}
/* VIEW – 메타 테이블 (나라 / 서비스유형) */
.view-meta-table {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2열 */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0 30px;
  font-size: 15px;
}

.meta-head {
  background: #f3f4f6;
  padding: 12px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.meta-value {
  padding: 14px 12px;
  text-align: center;
  background: #fff;
}
.view-section {
  margin-top: 30px;
}

.view-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.view-desc-box {
  background: #f7f9fc;
  padding: 16px;
  border-radius: 10px;
  line-height: 1.8;
  color: #333;
}
/* 나라 + 서비스유형 한 박스 */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f7f9fc;
  border-radius: 10px;
  padding: 18px;
  gap: 20px;
}

.meta-item strong {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.meta-item span {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

/* 설명 박스 (이미 사용 중인 스타일 유지) */
.view-desc-box {
  background: #f7f9fc;
  padding: 18px;
  border-radius: 10px;
  line-height: 1.8;
  color: #333;
}
/* 나라 / 서비스유형 한 줄 정보 */
.view-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 20px 0 35px;
}

/* 각 컬럼 */
.meta-col {
  text-align: left;
}

/* 제목 */
.meta-title {
  font-size: 14px;
  font-weight: 600;
  color: #777;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* 값 */
.meta-value {
  font-size: 17px;
  font-weight: 700;
  color: #222;
}

/* 설명/특징 박스 */
.view-desc-box {
  background: #f7f9fc;
  padding: 18px;
  border-radius: 10px;
  line-height: 1.8;
  color: #333;
}

/* 특징 리스트 */
.feature-list {
  margin: 0;
  padding-left: 18px;
}
.ai-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
/* 컨테이너 */
.addr-container {
    max-width: 1400px;
    margin: 0 auto;        /* 🔥 위 여백 제거 */
    padding: 0 16px;
}


/* 신규 입점 문의 배너 */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.sponsor-item {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 18px 0px;
    font-weight: 700;
    text-decoration: none;
}

.sponsor-item:hover {
    background:#222;
	 color: #f6e84b;
}