/**
Theme Name: Astra Child
Author: Brainstorm Force
Template: astra
*/

/* Elementor 레이아웃 강제 정렬 */
body.elementor-page .elementor-inner,
body.elementor-page .elementor-section-wrap {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
}

/* ★ 메인 배너 제목 흰색 강제 적용 */
.main-banner h1 {
  color: #ffffff !important;
}

/* 본문 중앙 정렬 */
.entry-content,
.entry-content p,
.entry-content img,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.page-title,
.entry-title,
.ast-single-post .entry-title,
.ast-page-title,
.blog .entry-title,
.archive .entry-title,
.entry-meta,
.entry-meta .posted-on,
.entry-meta .byline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 통계 카드 레이아웃 */
.stats-inner {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .stats-inner {
    justify-content: center;
    gap: 30px;
  }
  .stat-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
  }
}

/* 포스트 카드 레이아웃 */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 카드 스타일 */
.post-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background: #fff;
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

/* 카드 썸네일 비율 유지 */
.thumbnail-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 카드 제목 */
.post-card h2 {
  font-size: 18px;
  color: #333;
  padding: 15px;
  margin: 0;
}

/* 페이지네이션 */
.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 15px;
  background: #eee;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a:hover {
  background: #0073aa;
  color: #fff;
}

/* Astra 기본 구조 강제 리셋 */
body, #page, #content {
  margin: 0 !important;
  padding: 0 !important;
}
#full-page-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 메인 배너 */
.main-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 배경 줌인 효과 */
.main-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1);
  animation: zoomInBanner 6s ease forwards;
}

/* 텍스트는 위로 보이도록 */
.main-banner h1 {
  position: relative;
  z-index: 1;
  font-size: 36px;
  font-weight: bold;
}

/* 배경 확대 애니메이션 정의 */
@keyframes zoomInBanner {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}


/* 본문 너비 */
.page-content {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* 여행 통계 */
.site-statistics {
  margin-bottom: 50px;
  text-align: center;
}
.site-statistics h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.site-statistics p {
  font-size: 18px;
  margin: 5px 0;
}

.post-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* 카드 레이아웃 */
.card-item {
  position: relative;
  flex: 1;
  min-width: 280px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: #eee;
  display: block;
  transition: transform 0.3s ease;
}

/* 썸네일 이미지 배경 처리 대신 내부 div로 */
.card-item::before {
  content: "";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: transform 0.5s ease;
}

/* 카드 아이템 기본 구조 */
.card-item {
  position: relative;
  flex: 1;
  min-width: 280px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 카드 안의 이미지 레이어 */
.card-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  z-index: 0;
}

/* 마우스 호버 시 이미지 줌인 */
.card-item:hover::before {
  transform: scale(1.1);
}

/* 카드 텍스트 오버레이 */
.card-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  padding: 20px;
  color: #fff;
}

.card-overlay h3,
.card-overlay p {
  margin: 0;
  color: #fff;
}

/* 하단 색상줄 공통 */
.card-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: #999;
  transition: height 0.3s ease;
  z-index: 2;
}
.card-item:hover::after {
  height: 8px;
}

/* 카테고리별 색상줄 */
.card-item.category-domestic::after {
  background-color: #3498db;
}
.card-item.category-overseas::after {
  background-color: #8e44ad;
}
.card-item.category-food::after {
  background-color: #e67e22;
}

/* 카드 썸네일 이미지 전용 레이어 */
.thumb-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  z-index: 0;
}

/* 마우스 오버 시 이미지 확대 */
.card-item:hover .thumb-bg {
  transform: scale(1.08);
}

/* 카드 기본 구조 보완 */
.card-item {
  position: relative;
  flex: 1;
  min-width: 280px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 카드 텍스트 오버레이 */
.card-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  padding: 20px;
  color: #fff;
}

.card-overlay h3, .card-overlay p {
  margin: 0;
  color: #fff;
}

/* 하단 색상줄 */
.card-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: #ccc;
  transition: height 0.3s ease;
  z-index: 2;
}
.card-item:hover::after {
  height: 8px;
}

/* 카테고리별 줄 색상 */
.card-item.category-domestic::after {
  background-color: #3498db; /* 파랑 */
}
.card-item.category-overseas::after {
  background-color: #8e44ad; /* 보라 */
}
.card-item.category-food::after {
  background-color: #e67e22; /* 오렌지 */
}

/* PC/기본용 */
.about-me .about-photo img {
  box-shadow: none !important;
  background: transparent !important;
}

/* 모바일 대응용 */
@media (max-width: 767px) {
  .about-me .about-photo img {
    box-shadow: none !important;
    background: transparent !important;
  }
}

