:root {
  --primary-orange: #FFA63A;
  --primary-orange-hover: #FFA63A;
  --bg-gray: #EEEEEE;
  --top-bar-bg: #222222;
  --text-dark: #000000;
  --text-gray: #6E6E6E;
  --border-color: #eeeeee;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-dark);
  line-height: 1.5;
}

/* 1. 최상단 바 */
.top-bar {
  background-color: var(--top-bar-bg);
  color: #ffffff;
  font-size: 14px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

.lang-select {
  position: absolute;
  right: 15%;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.lang-select option {
  background: var(--top-bar-bg);
  color: #ffffff;
}

/* 2. 헤더 & 네비게이션 */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 로고 이미지 공간 */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 30px; 
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* 대륙 탭 메뉴 */

.nav-tabs-wrap {
  margin: 0 auto;
  position: relative;
}

.nav-scroll-btn {
  display: none; /* PC에서는 숨김 */
}

.nav-tabs {
  display: flex;
  gap: 100px;
  list-style: none;
  margin: 0 auto;
}

.nav-tabs li button {
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-gray);
  cursor: pointer;
  padding: 10px 4px;
  transition: color 0.2s;
}

.nav-tabs li button:hover,
.nav-tabs li button.active {
  color: var(--primary-orange);
}

/* 3. 메인 컨텐츠 영역 */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 20px 80px;
}

/* 배너 타이틀 & 안내 문구 */
.hero-section {
  text-align: center;
  margin-bottom: 36px;
}

.region-badge {
  display: inline-block;
  background-color: var(--primary-orange);
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  padding: 10px 42px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.notice-text {
  font-size: 23px;
  color: #444444;
  line-height: 1.5;
  margin-bottom: 28px;
  font-weight: 500;
}

/* 검색창 */
.search-box {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 7px;
  padding: 7px 7px 7px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pin-icon {
  color: var(--primary-orange);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 17px;
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: #8c8c8c;
}

.search-btn {
  background-color: var(--primary-orange);
  border: none;
  width: 60px;
  height: 45px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background-color: var(--primary-orange-hover);
}

/* 4. 국가별 카드 그리드 (PC: 3열) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.apn-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.apn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* 좌측 국기 이미지 공간 & 국가명 */
.country-info {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  padding-right: 15px;
  margin-right: 25px;
  border-right: 1px solid #d6d6d6;
}

.flag-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #eeeeee;
  background-color: #f0f0f0; /* 이미지 미등록 시 빈 원형 공간 표시 */
  margin-bottom: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.country-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-gray);
  word-break: keep-all;
  line-height: 1.3;
}

/* 우측 APN 상세 스펙 */
.apn-details {
  flex: 1;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
}

.detail-label {
  width: max-content;
  color: var(--text-gray);
  flex-shrink: 0;
  margin-right: 8px;
  font-weight: 500;
}

.detail-value {
  color: var(--text-dark);
  font-weight: 600;
  word-break: keep-all;
}

.empty-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
  font-size: 15px;
}

/* =========================================
   모바일 반응형 (768px 이하)
   ========================================= */
@media (max-width: 768px) {
  .lang-select {
    right: 3%;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 0;
  }

  .logo {
    margin: 20px 0;
    height: 30px; /* 모바일 로고 높이 */
  }

  /* 모바일 가로 스크롤 탭 */
  .nav-tabs-wrap {
    width: 100%;
    position: relative;
    border-top: 1px solid #f2f2f2;
  }
  .nav-tabs {
    width: 100%;
    gap: 28px;
    padding: 5px 24px; /* 좌우 기본 여백 */
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs li {
    flex-shrink: 0;
  }

  .nav-tabs li button {
    font-size: 14px;
    padding: 12px 4px;
  }

  .nav-scroll-btn {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52px;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease;
  }
  /* 왼쪽 버튼: 왼쪽은 흰색, 오른쪽으로 갈수록 투명 */
  .nav-scroll-btn.prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 10px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 45%, #ffffff 75%);
  }

  /* 오른쪽 버튼: 오른쪽은 흰색, 왼쪽으로 갈수록 투명 */
  .nav-scroll-btn.next {
    right: 0;
    justify-content: flex-end;
    padding-right: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 45%, #ffffff 75%);
  }

  /* 끝에 도달했을 때 숨김 처리 */
  .nav-scroll-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  main {
    padding: 25px 16px 60px;
  }

  .region-badge {
    font-size: 17px;
    padding: 8px 36px;
    margin-bottom: 16px;
  }

  .notice-text {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.3;
  }
  .search-box{
    padding-left: 15px;
  }
  .search-box input{
    font-size: 15px;
  }
  .search-btn{
    width: 50px;
  }
  .search-btn svg{
    width: 18px;
    height: 18px;
  }

  /* 모바일: 1열 카드 리스트 */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .apn-card {
    padding: 18px 20px;
  }
  .apn-details{
    gap: 4px;
  }

  .country-info {
    width: 90px;
    margin-right: 12px;
  }
}