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

ul {
  list-style: none;
}

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

.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;
}
/* =========================
   TITLE / DESC
========================= */
.title {
  font-size: 26px;
  margin-bottom: 8px;
}

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

/* =========================
   SEARCH + FAVORITE
========================= */
.search-row {
  display: flex;
  align-items: center;       /* 🔥 수직 정렬 핵심 */
  gap: 10px;
  margin: 20px 0;
}

.search-row input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

.search-row .bookmark-btn {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  line-height: 44px;
  transition: all 0.2s ease;
}

.search-row .bookmark-btn:hover {
  color: #f6e84b;
}

/* =========================
   FILTER BAR
========================= */
.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;
  background: #34495e;
  color: #fff;
  transition: transform 0.15s ease;
}

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

.btn-korea { background:#2563eb; }
.btn-global { background:#111827; }

/* =========================
   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;
}

.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;
}

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

/* =========================
   AI GRID / CARD
========================= */
.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-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-title {
  font-size: 16px;
  font-weight: 600;
}

.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;
}

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

.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;
}

/* ⭐ 즐겨찾기 버튼 (공식사이트와 동일) */
.btn-fav-view {
  background: #111;
  color: #fff;
}

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

/* 즐겨찾기 활성 상태 */
.btn-fav-view.on {
  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: 8px;
}

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

.view-actions {
  display: flex;
  align-items: center;   /* 🔥 수직 정렬 핵심 */
  gap: 10px;
  flex-wrap: wrap;
}

.btn-back-go {
  height: 44px;
  padding: 0 18px;
  background: #4f6ef7;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

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

/* 나라 / 서비스유형 */
.view-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 20px 0 35px;
}

.meta-col h3 {
  font-size: 14px;
  font-weight: 600;
  color: #777;
  border-bottom: 1px solid #ddd;
  margin-bottom: 6px;
}

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

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

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

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

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

/* =========================
   MOBILE
========================= */
@media (max-width: 640px) {
  .search-row {
    flex-direction: column;
  }

  .search-row input,
  .search-row .bookmark-btn {
    width: 100%;
  }

  .view-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* VIEW 페이지 버튼 공통 규격 */
.view-actions a,
.view-actions button {
  height: 44px;
  line-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

/* 신규 입점 문의 배너 */
