/* topNav.css  */

.body {
  width:100%;  
  margin:auto;
  background: #110d1e;
  background-image: url('/dist/images/body_bg.png');  
  background-repeat: repeat;
}

/* 전체 헤더 레이아웃 */
.pg-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000; /* 로고 아래지만 모든 요소 위 */
  width: 100%;
  height:108px;    
  background-image: url(/dist/images/gnb_bg.png);
  background-repeat: repeat-x;
}

.pg-header-pc { display: block; }
.pg-header-mo { height: 60px; display: none; }
.pg-header-logo {
  max-width: 1400px;
  margin: 0 auto;    
  position: relative;
  margin:auto;
  background-image: url('/dist/images/menu_bg.png');
  background-repeat: no-repeat;    
}

/* ====== 로고_FIXED ====== */
.pg-logo-fixed {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5001;
}
.pg-logo-fixed img {
  max-height: 90px;
  height: auto;
}
.mobile-site-name {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  gap: 8px;
}

/* ===== 상단 검정 영역 ===== */
.pg-header-top {
  position: relative;
  padding: 8px 0;
  height: 41px;
  z-index: 10;
}

/* ===== 골드 메뉴 영역 ===== */
.pg-header-bottom {
  height: 67px;  
  z-index: 8;
}
.pg-header-bottom .container{
  padding-top: 1px;
} 

/* 좌측 알림 박스 */
.pg-search-box { 
  padding: 6px 10px;
  color: #e7eaf0;
  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: 1px solid #999;
  padding: 8px 18px;
  height: 32px;
  color: #fff;
  /* background-color: #333; */
  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: 1px 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 {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.6rem;
  padding: 8px 4px;
}


/* 전체 Hero 섹션 높이 */
#heros {
  margin-top: 110px;  
  height: 550px
}
/* 슬라이드/아이템 높이 통일 */
#heros .carousel-item{
  height: 550px;
  max-height: 550px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}

/* hero-content가 "바닥 기준"이 되게 */
.hero-content{
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;              /* ✅ 추가 */
  justify-content: flex-end;  /* 세로 아래 */
  flex-direction: column;     /* 아래로 밀기 */
}

/* 이미지 박스는 바닥에서 정렬 */
.hero-content .image-content{
  display:flex;
  justify-content:center;     /* 가로 중앙 */
  align-items:flex-end;
  width:100%;
  margin-top:auto;            /* ✅ 남는 공간을 위로 */
  padding-bottom: 0;          /* 필요하면 20~40px */
}

/* 이미지 */
.hero-content .image-content img{
  max-width: 100%;
  height: auto;
  display:block;
}

.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);
}

.m_castegory {
  display: none;
}

.pg-header .btn, .pg-header button {
  height:24px; font-size:0.85em; padding:2px 12px 0 12px; margin:-3px 0 -3px 3px;
}
.form-id, .form-pw {
  width:130px;
  font-size: 12px;
  border-radius: 6px;
  height:24px; font-size:0.85em; padding:2px 12px 0 12px; margin:-3px 0 -3px 3px;
  outline: none;
  border:none;
  padding-left:5px;
  margin-right:3px;
  color: #eee;
  background-color: rgb(31, 32, 44);
}

/* 배경 영역 */
#quickmenu-pc {
  width:100%;
  height:111px;
  margin:0 auto;
  background: url('/dist/images/quick_menu_bg.png') repeat-x 0 0;

  /* ✅ 내부를 가운데로 */
  display:flex;
  justify-content:center;
}

#quickmenu-mo {
  width:100%;
  height:auto;
  margin:0 auto;
  display: none;
  justify-content:center;
}

#footer-wrap-mobile {
  background-color: #221622;
  color: #999;
  display: none;
}

/* 바 영역 (기존 1400px 고정폭 제거) */
#quick_menu_bar{
  width:100%;
  height:110px;

  /* ✅ quick_menu를 가운데로 */
  display:flex;
  justify-content:center;
  align-items:center;
}

/* 버튼 2개 래퍼 */
#quick_menu_bar .quick_menu{
  display:flex;
  justify-content:center;
  align-items:center;
  /* gap:12px; */
}

/* 버튼 박스(이미지 래핑 div) */
#quick_menu_bar .quick_menu > div{
  line-height:0;      /* 이미지 아래 여백 제거 */
}

/* 이미지 반응 */
#quick_menu_bar .quick_menu img{
  display:block;      /* 이미지 아래 여백 제거 */
  max-width:100%;
  height:auto;
}

#notice-wrap {
  width:100%;  
  min-height:346px;
  margin:auto;
  background-image: url('/dist/images/main_notice_bg.png?1');  
  background-repeat: repeat-x;
  text-align: center;
  justify-content: center;
  border: 1px solid #333333;
}

#notice_box {
  width:1200px;
  height:347px;  
  text-align: center;
  justify-content: center;
  margin: auto;
}

.notice_01 {
  width:400px;
  height:347px;
  float:left;
  background-image: url('/dist/images/notice_bg01.png?');  
  background-repeat: no-repeat;
  padding:140px 0 0 128px;
  text-align: left;
  font-size:0.9em;
}

.notice_02 {
  width:400px;
  height:347px;
  float:left;
  background-image: url('/dist/images/notice_bg02.png?');  
  background-repeat: no-repeat;
  padding:140px 0 0 128px;
  text-align: left;
  font-size:0.9em;
}

.notice_03 {
  width:400px;
  height:347px;
  float:left;
  background-image: url('/dist/images/notice_bg03.png?');  
  background-repeat: no-repeat;
  padding:140px 0 0 128px;
  text-align: left;
  font-size:0.9em;
}

#footer-wrap {
  width:100%;
  height:565px;    
  margin:auto;
  background-image: url('/dist/images/footer_bg.png?1');  
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  justify-content: center;
  text-align: center;
}

#footer-wrap-mo {
  width:100%;
  height:85px;    
  margin:auto;
  background-image: url('/dist/images/footer_bg.png?1');  
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  justify-content: center;
  text-align: center;
}

/* quick_menu 버튼 이미지 보정 */
.footer-logo {padding-top:60px}
.footer-logo img {
  filter: saturate(0) brightness(0.5) contrast(1.15);

}

/* 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);
  }
}

/* 반응형 */
@media (max-width: 1280px) {
  .pg-header { height: 110px;}
  .pg-logo-fixed img.pg-logo-img {
    max-height: 90px;
    height: auto;
  }
  .pg-header-bottom {
    height: 60px;  
  }
  .pg-header-bottom .container{
    padding-top: 1px;
  } 
}
@media (max-width: 1024px) {
  .pg-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000; /* 로고 아래지만 모든 요소 위 */
    width: 100%;
    height: 60px;    
    background-image: url(/dist/images/gnb_bg_mo.png);
    background-repeat: repeat-x;
  }
  .pg-header-pc { display: none; }
  .pg-header-mo { display: block; }
  .pg-header-bottom {display: none;}
  img.navar-logo-mobile {
    position: fixed;
    top: 4px;
    left: 12px;
    max-height: 45px;
    margin-right: 10px;
    z-index: 5002;
  }
  .m_castegory {
    display: block;
  }

  #heros {
    top: 0px;
    height: 330px;
    overflow: hidden;
    /* border: 1px solid orange; */
    margin-top: 0px;  
  }
  #heros .carousel-item.hero-slide{    
    height: 330px;
    /* border: 1px solid green; */
  }
  #heros .hero-content{ height:100%; }
  /* 캐러셀 좌우 버튼 (PC 공통) */
  .carousel-control-prev,
  .carousel-control-next {
    height: 200px;
    top: 120px;
  }
  /*  기본 아이콘 & 필터 제거 */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background: none !important;      /* 기본 SVG 날리기 */
    background-image: none !important;
    filter: none !important;          /* invert(1) 제거 */
    width: 1rem;
    height: 1rem;
    position: relative;
  }
  /* ✅ 왼쪽 기준 + 넘치면 오른쪽 잘림 */
  #heros .hero-content .image-content{
    padding-top: 50px;
    height: 300px;
    overflow:hidden;
    display:flex;
  }
  #heros .hero-content .image-content img{
    max-width: 95%;
    margin:0; /* 중앙정렬 방지 */
  }
  #quick_menu_bar{
    width:100%;
    height:auto;
    display:flex;
    justify-content:center;
    align-items:center;
  }  
  #quickmenu-pc {
    height:auto;
    margin:0 auto;
    display:flex;
    justify-content:center;
  }
  #footer-wrap,
  #notice-wrap {display: none;}
  #quickmenu-mo, 
  #footer-wrap-mobile {display: block;} 
}

