/* topNav.css  */

/* 전체 헤더 레이아웃 */
.pg-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000; /* 로고 아래지만 모든 요소 위 */
}

/* ====== 로고_FIXED ====== */
.pg-logo-fixed {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5001;
}

.pg-logo-fixed img {
  max-height: 100px;
  height: auto;
}

/* ===== 상단 검정 영역 ===== */
.pg-header-top {
  position: relative;
  background-color: #151515;
  padding: 8px 0;
  z-index: 10;
}

/* ===== 골드 메뉴 영역 ===== */
.pg-header-bottom {
  height: 90px;  
  z-index: 8;
  /* background: linear-gradient(90deg, #023544 0%, #015974 50%, #023544 100%); */
  /* border-bottom: 1px solid #333; */
  background: #021826;
  background: linear-gradient(to right, #021826 0%, #02475b 40%, #021826 100%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.85);
}
.pg-header-bottom .container{
  padding-top: 30px;
}

/* 좌측 알림 박스 */
.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: 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: 140px;
}
.carousel-item { 
  width: 100%;
  height: 40vh; /* 필요시 50vh, 60vh 로 변경 가능 */
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #333;
}

/* 슬라이드 배경이미지 */
.hero-slide {
  height: 40vh;
  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: -20px;
  width: 100%;
  height: 100%;
  /* 기존 상하 중앙 배치 제거 */
  top: 0;
  transform: none;
  /* border: 1px solid orange; */
}

/* 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: 1px 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);
}


.m_castegory {
  display: none;
}

/* 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 {
    top: 20px;
  }
  .pg-logo-fixed img.pg-logo-img {
    max-height: 100px;
    height: auto;
  }
  .pg-header-bottom {
    height: 60px;  
  }
  .pg-header-bottom .container{
    padding-top: 15px;
  }
  #heros {
    margin-top: 0px;
  }
  .carousel-item {
    margin-top: 50px;
  }
  .hero-section {
    margin-top: 80px;
    height: 40vh;
  }
  .hero-slide {
    height: 40vh;
  }
  .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;
  }
}

@media (max-width: 1024px) {
  .pg-header { height: 110px;} 
  .pg-logo-fixed {
    top: 35px;
  }
  .pg-logo-fixed img.pg-logo-img {
    max-height: 80px;
    height: auto;
  }
  .pg-header-bottom {
    height: 50px;  
  }
  .pg-header-bottom .container{
    padding-top: 10px;
  }
}
@media (max-width: 768px) {  
  .pg-header {
    padding-top: 0;
  }
  .pg-header-bottom {
    display: none;
  }
   .pg-logo-fixed {
    top: 8px;
  }
  .pg-logo-fixed img.pg-logo-img {
    max-height: 42px;
    height: auto;
  }
  #heros {
    top: 0px;
    height: 300px;
    overflow: hidden;
    /* border: 1px solid orange; */
    margin-top: 0px;  
  }
  #heros .carousel-item.hero-slide{    
    height: 300px;
    /* border: 1px solid green; */
  }
  #heros .hero-content{ height:100%; }
  /* 캐러셀 좌우 버튼 (PC 공통) */
  .carousel-control-prev,
  .carousel-control-next {
    height: 250px;
    top: 0px;
  }
  /*  기본 아이콘 & 필터 제거 */
  .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; /* 중앙정렬 방지 */
  }
  .m_castegory {
    display: block;
  }
  
}
