/* ============================================================
   index.php 전용 스타일
   공통 reset/nav/button/footer는 style.css 사용
   모바일 공통 보정은 mobile.css 사용
   ============================================================ */

/*
  INDEX_CSS_CLEAN_MOBILE_SLIDE_20260709 | MOBILE_SLIDE_HEIGHT_REDUCED_20260709
  - 본문/문구/DB 연동 내용은 유지
  - 흩어진 CSS를 섹션별로 정리
  - 모바일 슬라이드 글자 크기와 높이 조정
  - 모바일에서 슬라이드 문구가 잘리지 않도록 복사 영역을 위쪽 배치
*/

/* 01. 기본 변수 */
.home-page {
  --main-green: #4f9634;
  --dark-green: #356f43;
  --light-green: #e8f2e5;
  --ivory: #faf7f0;
  --ivory-deep: #f3ede1;
  --dark: #2f312b;
  --mid: #6e7068;
  --light: #969890;
  --border: #e5e0d7;
  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", sans-serif;
  --slide-bg: #2d3228;
}







body.popup-open {
  overflow: hidden;
}



/* 03. 메인 상단 슬라이더 */
.top-slide {
  position: relative;
  width: 100%;
  height: calc(100vh - 88px);
  min-height: 620px;
  max-height: 900px;
  overflow: hidden;
  background: var(--slide-bg);
}

.top-slide-track,
.top-slide-item,
.top-slide-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.top-slide-item {
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}

.top-slide-item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.top-slide-item img {
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 6s ease;
}

.top-slide-item.is-active img {
  transform: scale(1.07);
}

.top-slide-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 27, 20, .62) 0%, rgba(18, 27, 20, .40) 42%, rgba(18, 27, 20, .10) 72%, rgba(18, 27, 20, .04) 100%);
}

.top-slide-content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
}

.top-slide-copy {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  color: #fff;
}

.top-slide-kicker {
  margin: 0 0 18px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.top-slide-title {
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(40px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.055em;
  text-shadow: 0 3px 18px rgba(0,0,0,.28);
}

.top-slide-title span {
  display: block;
}

.top-slide-text {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.top-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 14px 21px;
  border-radius: 4px;
  background: #fff;
  color: var(--main-green);
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.top-slide-link::after {
  content: "→";
  font-size: 19px;
}

.top-slide-link:hover {
  background: var(--main-green);
  color: #fff;
  transform: translateY(-3px);
}

.top-slide-prev,
.top-slide-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 100px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.9);
  font-size: 80px;
  font-weight: 200;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease;
  text-shadow: 0 3px 12px rgba(0,0,0,.3);
}

.top-slide-prev {
  left: 0;
}

.top-slide-next {
  right: 0;
}

.top-slide:hover .top-slide-prev,
.top-slide:hover .top-slide-next {
  opacity: 1;
}

.top-slide-dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 13px;
  transform: translateX(-50%);
}

.top-slide-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.top-slide-dot.is-active {
  background: #fff;
  transform: scale(1.16);
}

/* 04. 소개 섹션 */
.intro-section {
  padding: 96px 24px;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
}

.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  gap: 78px;
  align-items: center;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.section-eyebrow {
  margin: 0 0 12px;
  color: var(--main-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.section-title {
  margin: 0 0 18px;
  color: var(--dark);
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.045em;
}

.section-title span {
  color: var(--main-green);
}

.section-desc {
  margin: 0;
  color: var(--mid);
  font-size: 15px;
  line-height: 1.95;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.intro-card {
  position: relative;
  overflow: hidden;
  padding: 38px 34px;
  border: 1px solid #dbe4d7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(52, 64, 44, .08);
}

.intro-card::before {
  content: "“";
  position: absolute;
  top: -35px;
  right: 16px;
  color: #e3efe0;
  font-family: var(--serif);
  font-size: 170px;
  font-weight: 700;
  line-height: 1;
}

.intro-card p {
  position: relative;
  margin: 0 0 25px;
  color: var(--dark);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.intro-card-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.intro-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--light-green);
  font-size: 20px;
}

.intro-card-bottom strong,
.intro-card-bottom span {
  display: block;
}

.intro-card-bottom strong {
  color: var(--dark);
  font-size: 14px;
}

.intro-card-bottom span {
  margin-top: 2px;
  color: var(--light);
  font-size: 12px;
}

/* 05. 프로그램 섹션 */
.program-section {
  padding: 96px 24px;
  background: #fff;
}

.program-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.program-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.program-head .section-desc {
  max-width: 450px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.program-card {
  position: relative;
  display: flex;
  min-height: 315px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 29px;
  border-radius: 18px;
  background: var(--ivory);
  transition: transform .2s ease, box-shadow .2s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(41, 55, 35, .12);
}

.program-card::before {
  position: absolute;
  top: -32px;
  right: -12px;
  color: rgba(255,255,255,.46);
  font-family: var(--serif);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
}

.program-card.play {
  background: #edf4e8;
}

.program-card.play::before {
  content: "놀이";
}

.program-card.school {
  background: #eef2e4;
}

.program-card.school::before {
  content: "학교";
}

.program-card.village {
  background: #f3ebe1;
}

.program-card.village::before {
  content: "마을";
}

.program-card-label {
  position: relative;
  margin: 0 0 11px;
  color: var(--dark-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.program-card h3 {
  position: relative;
  margin: 0 0 10px;
  color: var(--dark);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.program-card p {
  position: relative;
  margin: 0 0 19px;
  color: var(--mid);
  font-size: 13px;
  line-height: 1.75;
}

.program-card a {
  position: relative;
  color: var(--dark-green);
  font-size: 13px;
  font-weight: 800;
}

/* 06. 놀 권리 섹션 */
.rights-section {
  padding: 96px 24px;
  background: var(--ivory-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rights-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.rights-card {
  padding: 37px 34px;
  border: 2px solid var(--main-green);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(62, 92, 46, .08);
}

.rights-card h3 {
  margin: 0 0 22px;
  color: var(--dark-green);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.48;
  letter-spacing: -.04em;
}

.rights-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rights-list li {
  display: flex;
  gap: 10px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.rights-list li::before {
  content: "✓";
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--main-green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rights-text p {
  margin: 0 0 17px;
  color: var(--mid);
  font-size: 15px;
  line-height: 1.95;
}

.rights-text p:last-child {
  margin-bottom: 0;
}

.rights-text strong {
  color: var(--dark);
}

/* 07. 문의 CTA */
.main-cta {
  padding: 84px 24px;
  background: var(--dark-green);
  text-align: center;
}

.main-cta-inner {
  width: min(700px, 100%);
  margin: 0 auto;
}

.main-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.05em;
}

.main-cta p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.85;
}

.main-cta-text {
  word-break: keep-all;
  overflow-wrap: normal;
  text-align: center;
}

.main-cta-text span {
  display: block;
}

.main-cta-text .no-break {
  display: inline-block;
  white-space: nowrap;
}

.main-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.main-cta .main-cta-buttons a {
  min-width: 180px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  line-height: 1.25;
}

.main-cta .btn-main {
  border: 1px solid #fff;
  background: #fff;
  color: var(--dark-green);
}

.main-cta .btn-main:hover {
  border-color: #fff;
  background: #f4f8f2;
  color: var(--dark-green);
}

.main-cta .btn-line {
  border: 1px solid rgba(255,255,255,.72);
  background: transparent;
  color: #fff;
}

.main-cta .btn-line:hover {
  border-color: #fff;
  background: rgba(255,255,255,.10);
  color: #fff;
}

/* 08. 홈페이지 팝업 */
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 28, 23, .6);
  backdrop-filter: blur(4px);
}

.site-popup.is-visible {
  display: flex;
  animation: popupDimIn .25s ease both;
}

.site-popup-dialog {
  position: relative;
  width: min(100%, 445px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 25px 65px rgba(0,0,0,.34);
  animation: popupDialogIn .28s cubic-bezier(.22,.8,.28,1) both;
}

.site-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 36, 31, .72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.site-popup-close:hover {
  background: var(--main-green);
  transform: rotate(90deg);
}

.site-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  background: #fff;
  object-fit: contain;
}

.site-popup-fallback {
  position: relative;
  display: flex;
  min-height: 215px;
  align-items: flex-end;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.1) 1px, transparent 1px) 0 0 / 25px 25px,
    linear-gradient(135deg, #3d7552 0%, #2e573e 100%);
}

.site-popup-fallback::before,
.site-popup-fallback::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
}

.site-popup-fallback::before {
  top: -90px;
  right: -50px;
  width: 195px;
  height: 195px;
}

.site-popup-fallback::after {
  right: 35px;
  bottom: -76px;
  width: 110px;
  height: 110px;
}

.site-popup-fallback span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.04em;
}

.site-popup-body {
  padding: 26px 28px 21px;
}

.site-popup-eyebrow {
  margin: 0 0 9px;
  color: var(--main-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.site-popup-title {
  margin: 0 0 10px;
  color: var(--dark);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.04em;
}

.site-popup-text {
  margin: 0;
  color: var(--mid);
  font-size: 14px;
  line-height: 1.75;
}

.site-popup-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 9px;
  background: var(--main-green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease;
}

.site-popup-link:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

.site-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 28px;
  border-top: 1px solid var(--border);
  background: #fcfbf8;
}

.site-popup-hide-today {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mid);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.site-popup-hide-today input {
  width: 15px;
  height: 15px;
  accent-color: var(--main-green);
  cursor: pointer;
}

.site-popup-footer-close {
  padding: 0;
  border: 0;
  background: none;
  color: var(--light);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.site-popup-footer-close:hover {
  color: var(--dark-green);
}

/* 09. 애니메이션 */
@keyframes popupDimIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupDialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 10. 태블릿 */
@media (max-width: 900px) {
  .intro-inner,
  .rights-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .program-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-slide {
    min-height: 560px;
  }
}
