/* topNav.css  */

/* 전체 헤더 레이아웃 */
.pg-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000; /* 로고 아래지만 모든 요소 위 */
}

/* ===== 상단 검정 영역 ===== */
.pg-header-top {
  position: relative;
  background-color: #000;
  padding: 5px 0;
  z-index: 10;
}

/* ===== 골드 메뉴 영역 ===== */
.pg-header-bottom {
  position: relative;
  z-index: 8;
  height: 80px;  
  background: rgba(20, 20, 20, 0);
}

.pg-header-bottom.sticky {
  background: rgba(20, 20, 20, 1);
  border-bottom: 1px solid rgba(255, 200, 39, 0.1);
}

/* ====== 로고_FIXED ====== */
img.pg-logo-img {
  margin-top: 6px;
  max-height: 56px;
  height: auto;
}

.pg-header button {
   height:25px; font-size:0.9em; padding:0 12px; margin-left: 3px; margin-top:-2px;
}
.pg-header .badge{
  color:#fff;
  padding:4px 5px;
  font-size: 0.9em;
  font-weight: 100;
}
.pg-header .login-money {
  font-size:0.9em;
  color:#fff;
}

/* 좌측 알림 박스 */
.pg-search-box {
  /* background-color: #142841; */
  border-radius: 6px;
  padding: 8px 20px;
  /* min-width: 400px; */
  color: #b8bcc4;
  font-size: 0.9rem;
}

.pg-search-placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-pg-gold {
  background: linear-gradient(135deg, #C8A24D, #A98532);
  color: #333333;
  border: 1px solid #D9B96A;
}
.btn-pg-gold:hover {
  filter: brightness(1.12);
}

.btn-pg-menu {
  border-radius: 6px;
  border: 0px solid #999;
  padding: 8px 18px;
  height: 32px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(4, 43, 61, 0.5);
  white-space: nowrap;
}

.btn-pg-menu:hover, .btn-pg-menu.active {
  border-color: #2c0101;        /* hover 시 골드로 */
  background-color: rgb(119, 3, 3);
  height: 33px;
}

.btn-pg-menu.active_game:hover, .btn-pg-menu.active_game {
  border-color: #2c0101;        /* hover 시 골드로 */
  background-color: rgb(119, 3, 3);
  height: 33px;
}

/* ===== 유저 아이콘 ===== */
.pg-user-btn {
  background-color: #11161c;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  border: 0px solid #f0c86a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pg-user-btn::after {
  display: none;
}

.pg-user-flag {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: url("/assets/flags/kr.png") center center / cover no-repeat;
}

/* ===== 모바일 메뉴 ===== */
.pg-nav-mobile {
  display: none;
  padding-top: 8px;
}

.pg-nav-mobile.show {
  display: block;
}

.pg-mobile-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 모바일 햄버거 버튼 */
.pg-nav-toggle {
  margin-right: 8px;  
}

.pg-nav-menu ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg-nav-menu ul li .nav-link {
  padding: 4px 10px;
}

.pg-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.pg-nav li {
  position: relative;
}

.pg-nav>ul>li {
  white-space: nowrap;
  padding: 10px 0 10px 22px;
}

.pg-nav a,
.pg-nav a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: 0.3s;
  text-transform: uppercase;
  position: relative;
}

.pg-nav a i,
.pg-nav a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-right: 5px;
}

.pg-nav>ul>li>a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: #c46545;
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}

.pg-nav a:hover:before,
.pg-nav li:hover>a:before,
.pg-nav .active:before {
  visibility: visible;
  width: 100%;
  color:#c46545;
}

.pg-nav a:hover,
.pg-nav .active,
.pg-nav .active:focus,
.pg-nav li:hover>a {
  color: #c46545;
}

.pg-nav .getstarted,
.pg-nav .getstarted:focus {
  padding: 8px 25px;
  margin-left: 12px;
  border-radius: 4px;
  color: #fff;
  font-weight: 400;
  font-family: "Noto Sans KR","Poppins", sans-serif;
  border: 2px solid #c46545;
}

.pg-nav .getstarted:hover,
.pg-nav .getstarted:focus:hover {
  color: #fff;
  background: #c46545;
}

.pg-nav .getstarted:hover:before,
.pg-nav li:hover>.getstarted:before {
  visibility: hidden;
}


/* 전체 Hero 섹션 높이 */
/* #heros {
 margin-top: 30px;
} */

.carousel-item { 
  width: 100%;
  height: 50vh; /* 필요시 50vh, 60vh 로 변경 가능 */
  position: relative;
  overflow: hidden;
  
}

/* 슬라이드 배경이미지 */
.hero-slide {
  height: 50vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

/* 어두운 오버레이 (선택) */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* 텍스트/이미지 레이어 */
.hero-content {
  position: relative;
  z-index: 10;
  margin-top: 40px;
  width: 100%;
  height: 100%;
  /* 기존 상하 중앙 배치 제거 */
  top: 0;
  transform: none;
  /* border: 0px solid orange; */
}

/* 공통: 세로 중앙 정렬 */
.hero-content .text-content {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;        /* 세로 중앙 */
}

/* 좌 / 중앙 / 우 정렬 */
.hero-content .text-content.align-left {
  justify-content: flex-start; /* 가로 왼쪽 */
  /* padding-left: 10%; */
  text-align: left;
}

.hero-content .text-content.align-center {
  justify-content: center;     /* 가로 중앙 */
  text-align: center;
}

.hero-content .text-content.align-right {
  justify-content: flex-end;   /* 가로 오른쪽 */
  /* padding-right: 10%; */
  text-align: right;
}

/* 이미지 공통 옵션 */
.hero-content .text-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* hero-content 안의 이미지 정렬 박스 */
.hero-content .image-content {
  display: flex;
  width: 100%;
  justify-content: center;   /* 가로 중앙 */
  align-items: flex-end;     /* 세로 하단 */
  /* padding-bottom: 40px; */
}

/* 이미지 */
.hero-content .image-content img {
  max-width: 100%;
  height: auto;
  display: block;
  /* border: 0px solid white; */
}

.hero-content .image-content img {
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 제목 */
.hero-title {
  font-size: 2rem;
  font-weight: 700;
}

/* 부제 */
.hero-subtitle {
  font-size: 1rem;
  margin-top: 20px;
}

/* 슬라이드가 active 될 때만 애니메이션 적용 */
.hero-slide.active .hero-title {
  animation: heroTitleIn 0.8s ease-out both;
}

.hero-slide.active .hero-subtitle {
  animation: heroSubtitleIn 0.9s ease-out both;
}

/* 캐러셀 좌우 버튼 (PC 공통) */
.carousel-control-prev,
.carousel-control-next {
  top: 0;
  bottom: 0;
  padding-top: 0 !important;  /* 인라인 스타일 무력화 */
  align-items: center;        /* 세로 가운데 */
  z-index: 4000;              /* 캐러셀 내부에서 최상위 */
}

/* 1) Bootstrap 기본 아이콘 & 필터 제거 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background: none !important;      /* 기본 SVG 날리기 */
  background-image: none !important;
  filter: none !important;          /* invert(1) 제거 */
  width: 3rem;
  height: 3rem;
  position: relative;
}

/* 2) 우리 화살표를 ::before로 흰색 + 굵게 그리기 */
.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  content: "";
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  border-top: 0.25rem solid #fff;   /* 굵게 */
  border-left: 0.25rem solid #fff;  /* 굵게 */
  margin: auto;
}

/* 왼쪽(이전) ← */
.carousel-control-prev-icon::before {
  transform: rotate(-45deg);        /* ↖ 모양 → ← 화살표 */
}

/* 오른쪽(다음) → */
.carousel-control-next-icon::before {
  transform: rotate(135deg);        /* ↙ 모양 → → 화살표 */
}

/* 선택 사항: hover 시 살짝 확대 */
.carousel-control-prev-icon:hover::before,
.carousel-control-next-icon:hover::before {
  transform: scale(1.1) rotate(-45deg);
}
.carousel-control-next-icon:hover::before {
  transform: scale(1.1) rotate(135deg);
}

/* title: 왼쪽에서 중앙으로 */
@keyframes heroTitleIn {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* subtitle: 아래에서 중앙으로 */
@keyframes heroSubtitleIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 기본: PC에서는 안 보이게 */
.m_money_box {
  display: none;
  background-color: #222;
}

/* 반응형 */
@media (max-width: 1024px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    padding-left: 5px !important;
    padding-right: 5px !important;
    /* border: 2px solid white; */
  }
  .pg-header {
    top: 0;
    padding: 0;
    height: 65px;
    background-color: #000;
  }
  .pg-header-top {
    padding: 0;
    margin: 0;
    /* display: none; */
  }
  .pg-header-bottom {
    height: 60px;
  }
  .pg-nav {
    height: 60px;
    padding-left:6px;
  }
  img.pg-logo-img {
    height: 40px;
  }
  #heros {
    margin-top: -20px;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding-top: 100px;
    width: 1.5rem;
    height: 1.5rem;
  }
  .carousel-control-prev-icon::before,
  .carousel-control-next-icon::before {
    width: 1.2rem;
    height: 1.2rem;
  }
  .hero-content .text-content {
    justify-content: center !important;  /* 가로 중앙 */
    text-align: center !important;       /* 텍스트 중앙 */
    padding-left: 0;
    padding-right: 0;
  }
  .hero-content .text-content img {
    max-width: 300px;
  }  
}

@media (max-width: 768px) {  
  .pg-nav {
    height: 60px;
    padding-left:6px;
  }
  img.pg-logo-img {
    height: 40px;
  }
  .m_money_box {
    display: block;
    padding: 10px 5px;
    list-style: none;
    background: #181818;
  }
  .m_money_box{
    position: sticky;
    top: 60px;        /* 상단 50px 위치에 닿으면 고정 */
    z-index: 3000;
  }  
  .m_money_box ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;        /* 2칸 가로배치 */
    width: 100%;
  }
  .m_money_box li {
    width: 50%;              /* 50%, 50% */
    display: flex;
    padding: 0 4px;          /* li끼리 간격 */
    box-sizing: border-box;
  }
  .m_money_box li a {
    width: 100%;
    padding: 8px 4px;
    display: flex;
    justify-content: center; /* 아이콘 + 텍스트 중앙 정렬 */
    align-items: center;
    gap: 4px;
    text-align: center;
    text-decoration: none;
    background-color: #333;  
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  }
  /* 아이콘 조금만 여유 */
  .m_money_box li a i {
    font-size: 1rem;
  }
  /* 글자 크기 모바일에 맞게 살짝 줄이기 */
  .m_money_box li a span,
  .m_money_box li a {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .f_section_web {
    display: none;
  }
  .pg-header-top {
    background-color: #333;
  }
  #heros {
    max-height: 420px;
    overflow: hidden;
  }
}