/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Template: kadence
Version: 1.0.0
Description: A custom child theme based on the Kadence theme.
*/

/* ====== Custom CSS ====== */
/* swiper 컨테이너와 슬라이드를 전체 화면으로 설정
전체 화면 캐로셀 구조
.my-swiper,
.my-swiper .swiper-container,
.my-swiper .swiper-wrapper,
.my-swiper .swiper-slide {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

슬라이드 이미지 - 전체 화면 채우기
.my-swiper .slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.swiper-button-prev,.swiper-rtl .swiper-button-next {
    left: var(--swiper-navigation-sides-offset,10px) !important;
    right: auto;
    color:rgba(255, 255, 255, 0.3) !important;
}

.swiper-button-next,.swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset,25px) !important;
    left: auto;
    color:rgba(255, 255, 255, 0.3) !important;
}

슬라이드 타이틀
.slide-title {
  position: absolute;
  bottom: 15%;
  left: 10%;
  font-size: 2.0rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  opacity: 0; 기본은 숨김
  z-index: 2; 이미지 위에 있도록
  pointer-events: none;
  transition: opacity 0.5s ease-out;
} */


/* 슬라이더가 있을 때만 entry-content-wrap 여백 제거 */
.page-id-22 .entry-content-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* -------------------- Main페이지 section css
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

섹션 1: 컨테이너 내부 콘텐츠
#section-1 {
    padding: 50px 0;
    background-color: #fff;
}

섹션 2: 전체 폭/
#section-2 {
    padding: 50px 0;
    background-color: #f8f8f8;
}




.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.col {
  flex: 1 !important;
}

.left-col {
  flex: 0 0 40%;
}

.right-col {
  flex: 0 0 60%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

1번 섹션: 이미지 + 텍스트 페이드인
#section-1 img,
#section-1 .right-col p {
  opacity: 0;처음에는 숨김 상태
  transform: translateY(20px);
}


2번 섹션: 아코디언 스타일
.accordion-section {
  background: #f7f7f7;
  text-align: center;
}

.accordion-header h2 {
  margin-bottom: 20px;
}

.accordion-columns {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  height: 400px;
}

.accordion-item {
  flex: 1;
  background: #ddd;
  padding: 20px;
  transition: flex 0.5s ease, transform 0.5s ease;
  cursor: pointer;
  overflow: hidden;
}

.accordion-item:hover {
  flex: 2;
  transform: scale(1.02) rotateZ(0.5deg); 살짝 흔들림 느낌
  background: #ccc;
}

3번 섹션: 이미지 스택 애니메이션
#section-3 {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: black;
}

.block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(50px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: white;
}

.block-1 { background: crimson; }
.block-2 { background: royalblue; }
.block-3 { background: seagreen; }

4번 섹션: 풀 커버 + 좌우 이미지 + CTA
.final-cover {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 100px 0;
  background: black;
  color: white;
  overflow: hidden;
}

배경 이미지
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

좌우 이미지 그룹
.left-images,
.right-images {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.left-images {
  left: 5%;
}

.right-images {
  right: 5%;
}

중앙 CTA 영역
.cta-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  opacity: 0; GSAP 애니메이션 전 초기값
}

.cta-center h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-center button {
  padding: 12px 30px;
  font-size: 1rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-center button:hover {
  background: white;
  color: black;
}
-------------------- Main페이지 section css -------------------------*/



/* Fix the submenu below the banner image instead of the sidebar in single pages */
/*.custom-submenu-bar {
    width: 100%;
    height: 60px;
    background-color: #f8f9fa; /* 배경색 */
    /*display: flex;
    justify-content: center; /* 메뉴 중앙 정렬 */
    /*align-items: center;
    gap: 20px; /* 메뉴 항목 간격 추가 */
    /*margin-bottom: 20px;
} */
.custom-submenu-bar {
    width: 100%;
    height: 60px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: nowrap; /* 데스크탑에서는 줄 바꿈 없이 유지 */
}
.custom-submenu-bar a {
    position: relative;
    text-decoration: none;
    color: #333;
    padding: 10px 20px; /* 좌우 여백 추가 */
    font-size: 1rem;
    transition: color 0.3s ease;
}

.custom-submenu-bar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #0073e6;
    transition: width 0.3s ease-in-out;
}

.custom-submenu-bar a:hover {
    color: #0073e6; /* 호버 시 텍스트 색상 변경 */
}

.custom-submenu-bar a:hover::after {
    width: 100%; /* 좌에서 우로 언더바가 길어지면서 나타남 */
}

.custom-submenu-bar a.active {
    font-weight: bold;
    color: #0056b3; /* 활성화 상태 색상 */
}

.custom-submenu-bar a.active::after {
    width: 100%;
    background-color: #0056b3; /* 활성화 상태일 때 강조 색상 */
}
/* Fix the submenu below the banner image instead of the sidebar in single pages */

/* Adjust banner image height and reposition the title and image container animation */
.entry-hero-container-inner {
    height: 400px !important; /* 배너 높이 고정 */
    display: flex;
    align-items: center; /* 내부 요소 정렬 */
    justify-content: flex-start; /* 왼쪽 정렬 */
    position: relative;
}

.page-id-92 .entry-hero-container-inner,
.page-id-122 .entry-hero-container-inner,
.page-id-197 .entry-hero-container-inner,
.page-id-226 .entry-hero-container-inner,
.page-id-230 .entry-hero-container-inner,
.page-id-234 .entry-hero-container-inner{
    height: 400px !important; /* 배너 높이 고정 */
    display: flex;
    align-items: center; /* 내부 요소 정렬 */
    justify-content: flex-start; /* 왼쪽 정렬 */
    position: relative;
    /* 배너 이미지 컨테이너 애니메이션 */
    opacity: 0.9;
    transform: scale(1.05); /* 약간 크게 시작 */
    animation: heroFadeIn 1s ease-out forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-container.site-container {
    height: 100% !important; /* 부모 컨테이너 높이 강제 설정 */
    width: 100%;
    display: flex;
    align-items: flex-end; /* 아래쪽 정렬 */
    justify-content: flex-start; /* 왼쪽 정렬 */
    position: relative;
}


.char-animate {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: calc(var(--char-index) * 0.3s);
  white-space: pre; /* 공백 유지 */
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 타이틀 텍스트 애니메이션 
.hero-container.site-container h1 {
    position: absolute !important;
    top: 65% !important;
    left: 30% !important;
    transform: translate(-30%, -50%) translateY(40px); /* translateY로 무빙 추가 */
   /* font-size: 36px !important;
    z-index: 10;
    width: auto;
    opacity: 0;
    animation: titleFadeUp 1.2s ease-out 0.8s forwards; /* 시간차 및 애니메이션 */
/*}

@keyframes titleFadeUp {
  to {
    opacity: 1;
    transform: translate(-30%, -50%) translateY(0); /* 원래 위치로 이동 */
  /*}
} */

/* Adjust banner image height and reposition the title */

.hero-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4) !important;
  z-index: 1;
  pointer-events: none;
}

.entry-hero-container-inner {
  position: relative;
  z-index: 2; /* 타이틀을 오버레이 위로 올림 */
}

.entry-title {
  position: relative;
  z-index: 2 !important;
}

.entry-content-wrap {
  padding-top: 0 !important;
}


/* Sticky menu 백그라운드 설정 */
/* 메인 페이지를 제외한 모든 페이지에서만 적용 */
body:not(.home) .site-main-header-wrap {
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

body:not(.home) .site-main-header-wrap.item-is-fixed {
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.15);
}


/* 122와 197페이지 레이아웃 수정*/
body.page-id-122 #inner-wrap {
  background-image: url('https://solomon9146.mycafe24.com/wp-content/uploads/2025/04/wildBanner-2.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body.page-id-197 #inner-wrap {
  background-image: url('https://solomon9146.mycafe24.com/wp-content/uploads/2025/04/newsBanner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

#post-122,
#post-197
{
  background-color: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;

  /* 회색 드롭 섀도우 추가 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Widget-latest-mb-cdbj.php에 스타일 조정 */
.page-id-122 .mb-widget .mb-latest-cdbj .mb-latest-title{
background-color:#bbb1a6;
}
.page-id-122 .mb-widget .mb-latest-cdbj .table-latest td{
border-bottom: 1px solid #918270;
}

.page-id-197 .mb-widget .mb-latest-cdbj .mb-latest-title{
background-color:#aab89a;
}
.page-id-197 .mb-widget .mb-latest-cdbj .table-latest td{
border-bottom: 1px solid #73865e;
}

/* Footer widget1 css start */
.site-middle-footer-inner-wrap {
  padding-bottom: 0 !important;
}

.site-bottom-footer-inner-wrap {
  padding-top: 10px !important;
}

/* 기본은 한줄 */
.mobile-break {
  display: inline;
}

.dot {
  margin-left: 6px; /* 동그라미랑 글자 사이 여백 */
  margin-right: 2px; /* 동그라미랑 글자 사이 여백 */
  color: #555; /* 동그라미 색상 (필요하면 변경 가능) */
}

/* 모바일(폭 768px 이하)에서는 줄바꿈 */
@media (max-width: 768px) {
    .custom-submenu-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        height: auto;
        padding-top: 2px; /* 배너 이미지와의 간격 조정 */
        padding-left: 2px;
        padding-right: 2px; /* 좌우 여백 추가 */
    }

    .custom-submenu-bar a {
        font-size: 0.8rem;
        padding: 12px;
        text-align: center;
        background-color: #edf2f7; /* 모바일에서만 배경색 적용 */
        border-radius: 10px; /* 버튼 스타일 */
        display: block; /* 버튼처럼 보이게 */
    }
    
    .custom-submenu-bar a:hover {
        background-color: #b0b0b0; /* 호버 시 배경색 변경 */
    }

    .custom-submenu-bar a.active {
        font-weight: bold;
        color: #0056b3;
        background-color: #cedcea; /* 활성화 버튼 스타일 */
    }

.custom-submenu-bar a.active::after {
    width: 0;
    background-color: transparent; /* 배경색 제거 */
}
  .mobile-break {
    display: block;
  }
}
/* Footer widget1 css end */