/* === J Life School Custom CSS === */

/* 네비게이션 바 */
.site-header {
  background: #1a0533 !important;
  border-bottom: 1px solid rgba(139,92,246,0.3);
  padding: 0 40px;
}
.site-branding .site-title a {
  color: #ffffff !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}
.main-navigation a {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: color 0.3s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: #8b5cf6 !important;
}

/* 풀 너비 레이아웃 */
.site-content {
  max-width: 100% !important;
  padding: 0 !important;
}
.entry-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.page .entry-header {
  display: none !important;
}
.breadcrumb-wrapper {
  display: none !important;
}

/* 사이드바 제거 */
.widget-area,
.sidebar,
#secondary {
  display: none !important;
}
.content-area,
#primary {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
.site-main {
  padding: 0 !important;
}

/* 푸터 */
.site-footer {
  background: #1a0533 !important;
  color: #999 !important;
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(139,92,246,0.2);
}
.site-footer a {
  color: #8b5cf6 !important;
}
.site-info {
  text-align: center !important;
}

/* 버튼 호버 효과 */
a[href*='courses']:hover,
a[href*='lecture']:hover,
a[href*='contact']:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(139,92,246,0.4);
  transition: all 0.3s ease;
}

/* 강의 카드 호버 */
.entry-content div[style*='border-radius:12px'] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.entry-content div[style*='border-radius:12px']:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a0533;
}
::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 4px;
}

/* 반응형 */
@media (max-width: 768px) {
  .site-header {
    padding: 0 15px;
  }
  .entry-content h1 {
    font-size: 2rem !important;
  }
  .entry-content div[style*='grid-template-columns'] {
    grid-template-columns: 1fr !important;
  }
}

/* WooCommerce 어드민바 숨기기 (프론트) */
.woocommerce-store-alert {
  display: none !important;
}

/* === 강의 카드 이미지 수정 === */
.entry-content img[style*='object-fit'] {
  display: block !important;
  overflow: visible !important;
}
.entry-content img {
  max-width: 100% !important;
}

/* 로고 스타일 */
.site-branding .custom-logo {
  max-height: 40px !important;
  width: auto !important;
}
.site-branding .site-title {
  display: none !important;
}

/* 메뉴 아래 흰줄 제거 */
.site-header {
  margin-bottom: 0 !important;
  border-bottom: none !important;
}
.site-content,
.site-main,
#content,
#primary {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.coachify-breadcrumb-wrapper,
.breadcrumb-wrapper {
  display: none !important;
}
/* 페이지 상단 여백 제거 */
.page .site-content {
  padding-top: 0 !important;
}
.page .entry-content {
  margin-top: 0 !important;
}
.page .content-area {
  padding-top: 0 !important;
}

/* 헤더-콘텐츠 간 완전 여백 제거 */
.site-header + *,
.site-header ~ .site-content,
.site-header ~ #content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.coachify-header-wrapper + *,
header + * {
  margin-top: 0 !important;
}
body.page .site-content .content-area {
  padding-top: 0 !important;
}

/* 푸터 테마 크레딧 숨기기 */
.site-info,
.site-footer .site-info,
.footer-b {
  display: none !important;
}
/* 커스텀 푸터 */
.site-footer::after {
  content: '제이라이프스쿨 주식회사 ⓒ 2026. J LIFE SCHOOL. All rights reserved.';
  display: block;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  padding: 30px 0;
}

/* 시작하기 버튼 스타일 */
.main-navigation li:last-child a {
  background: transparent !important;
  border: 1.5px solid #8b5cf6 !important;
  border-radius: 20px !important;
  padding: 6px 20px !important;
  color: #8b5cf6 !important;
  transition: all 0.3s ease !important;
}
.main-navigation li:last-child a:hover {
  background: #8b5cf6 !important;
  color: #fff !important;
}

/* 로그인/회원가입 페이지 스타일 */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.woocommerce-account h2 {
  text-align: center;
  margin-bottom: 30px;
}
.woocommerce-account .button {
  background: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
  border-radius: 25px !important;
  padding: 12px 30px !important;
  width: 100%;
}
.woocommerce-account .button:hover {
  background: #7c3aed !important;
}

/* 카카오 로그인 버튼 */
.nsl-container {
  text-align: center;
  margin-top: 20px;
}

/* 로그인/회원가입 버튼 보라색 */
.woocommerce-account .woocommerce-form .button,
.woocommerce .button,
.woocommerce-Button {
  background-color: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
  color: #fff !important;
  border-radius: 25px !important;
}
.woocommerce-account .woocommerce-form .button:hover {
  background-color: #7c3aed !important;
}
/* 로그인/회원가입 2컬럼 레이아웃 */
.woocommerce-account .u-columns {
  display: flex;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 {
  flex: 1;
}

/* 버튼 보라색 강제 적용 */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.woocommerce-button,
.woocommerce-form-login .button,
.woocommerce-form-register .button,
button.woocommerce-Button.button {
  background: #8b5cf6 !important;
  border: none !important;
  color: #fff !important;
  border-radius: 25px !important;
  font-size: 1rem !important;
  padding: 14px 30px !important;
}
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #7c3aed !important;
}

/* 테마 CSS 변수 오버라이드 */
:root {
  --g-primary-accent-color: #8b5cf6 !important;
  --g-secondary-accent-color: #7c3aed !important;
  --primary-accent-color: #8b5cf6 !important;
  --secondary-accent-color: #7c3aed !important;
}

/* 테마 버튼 CSS 변수 강제 오버라이드 */
:root {
  --btn-bg-initial-color: #8b5cf6 !important;
  --btn-bg-hover-color: #7c3aed !important;
  --btn-border-initial-color: #8b5cf6 !important;
  --btn-border-hover-color: #7c3aed !important;
  --g-primary-color: #8b5cf6 !important;
  --g-primary-color-rgb: 139, 92, 246 !important;
}

/* 카카오 로그인 버튼 스타일 */
.nsl-container-block {
  margin-top: 20px !important;
  text-align: center;
}
.nsl-button-kakao {
  background: #FEE500 !important;
  color: #3C1E1E !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  padding: 12px 20px !important;
  width: 100% !important;
}
/* 동의 체크박스 스타일 */
.woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.woocommerce-form__label-for-checkbox input[type="checkbox"] {
  margin-top: 3px;
  min-width: 18px;
  min-height: 18px;
  accent-color: #8b5cf6;
}
