/* =====================
   기본 변수 & 리셋
===================== */
:root {
  --primary: #ffb300;
  --hover: #ffcc00;
  --blog-green: #03c75a;
  --kakao-yellow: #fee500;
  --black: #1c1c1c;
  --white: #ffffff;
  --gray: #f7f7f7;
  --font: 'Pretendard', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--gray); color: var(--black); line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* =====================
      Header
===================== */
.main-header {
  background: var(--white); border-bottom: 1px solid #eee;
  padding: 12px 0; position: sticky; top: 0; z-index: 1000;
}
.nav-container {
  max-width: 1200px; margin: auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { font-size: 20px; font-weight: bold; }
.nav-menu { display: flex; gap: 20px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); font-weight: 700; }
.nav-actions { display: flex; gap: 10px; }
.btn { padding: 6px 14px; border-radius: 24px; font-size: 14px; font-weight: 700; : .2s; }
.kakao { background: var(--kakao-yellow); }
.blog { background: var(--blog-green); color: white; }
.shelter {
  background: #b5ff6f;      /* 밝은 연두색 */
  color: #1c1c1c;
}

.shelter:hover {
  background: #ccffaa;      /* 조금 더 밝은 연두색 */
}


/* =====================
   메인 상담 섹션 공통
===================== */
.consult-section {
  padding: 80px 20px; background: #fff;
}
.container {
  display: flex; justify-content: center; gap: 40px;
  max-width: 1200px; margin: auto; flex-wrap: wrap;
}
.form-area, .list-area { flex: 1; min-width: 320px; max-width: 500px; }
h2 { margin-bottom: 20px; font-size: 22px; }
form input {
  width: 100%; padding: 10px 14px; margin-bottom: 12px;
  border: 1px solid #ccc; border-radius: 8px; font-size: 15px;
}

/* 스팸방지 코드 박스 */
.captcha-box {
  display: flex; gap: 10px; align-items: center; width: 100%;
}
.captcha-box input {
  flex: 1; height: 44px; font-size: 15px;
  border: 1px solid #ccc; border-radius: 8px; padding: 0 10px;
}
.captcha-code {
  background: #111; color: #fff; padding: 10px 14px;
  border-radius: 8px; font-weight: bold; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* 개인정보 체크 텍스트 */
.form-area form {
  display: flex; flex-direction: column;
  align-items: flex-start; width: 100%;
}
label.privacy {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 8px; font-size: 14px;
  margin: 4px 0 14px 4px; width: 100%;
}
label.privacy input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer;
}

/* 상담 신청 버튼 */
.btn.submit {
  width: 100%; background: linear-gradient(to bottom, #ffd000, #e6a700);
  color: white; padding: 16px; border-radius: 10px;
  font-size: 17px; font-weight: bold; cursor: pointer;
  border: none; box-shadow: 0 4px 0 #c48f00; transition: all 0.2s ease;
}
.btn.submit:hover {
  background: linear-gradient(to bottom, #ffe100, #f5b800);
}

/* 자동 스크롤 상담 내역 */
.scroll-list {
  height: 360px; overflow: hidden; position: relative;
}
.scroll-list ul {
  list-style: none; padding: 0;
  animation: scrollList 40s linear infinite;
}
.scroll-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
@keyframes scrollList {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* =====================
      카드 공통
===================== */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* =====================
     Notice
===================== */
.notice-section {
  background: #fff; padding: 80px 20px;
}
.notice-section .container {
  max-width: 900px; margin: auto;
  display: flex; flex-direction: column; gap: 25px;
}
.notice-card {
  background: #fff;
  border: 1px solid #eee;
  border-left: 6px solid var(--primary);
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}
.notice-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--hover);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.notice-card h3 { color: var(--primary); font-size: 20px; margin-bottom: 10px; }
.notice-card p { color: #444; font-size: 15px; margin-bottom: 12px; line-height: 1.7; }
.notice-card .date { font-size: 13px; color: #888; text-align: right; display: block; }

/* 공지 없음 */
.no-notice {
  text-align: center; padding: 80px 0;
  opacity: 0; transform: translateY(20px); transition: .6s;
}
.no-notice.visible { opacity: 1; transform: translateY(0); }
.no-notice-img { width: 120px; opacity: .7; margin-bottom: 20px; }

/* 공지 작성 UI */
#adminWriteSection {
  background: #fff; padding: 25px;
  border: 1px solid #eee; border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* =====================
     FAQ
===================== */
.faq-section { background: #fff; padding: 80px 20px; }
.faq-section .container { max-width: 900px; margin: auto; }

.faq-item {
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: 0.3s ease;
}
.faq-item:hover { 
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-left: 6px solid var(--primary);
}
.faq-question:hover { 
  background: #fff6d8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  transition: max-height .4s ease;
}
.faq-answer p {
  padding: 15px 20px;
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

.faq-item.active .faq-answer { 
  max-height: 500px; 
}


/* =====================
    About / Vision
===================== */
.about-section, .about-vision {
  background: #fff; padding: 80px 20px;
}
.about-vision {
  background: #f7f7f7; text-align: center;
}
.about-section .container {
  display: flex; gap: 40px; max-width: 1100px;
  margin: auto; align-items: center; flex-wrap: wrap;
}
.about-left { flex: 1; min-width: 300px; }
.about-left h2 { font-size: 28px; margin-bottom: 20px; color: #222; }
.about-left p { font-size: 16px; line-height: 1.8; color: #444; }
.about-right { flex: 1; min-width: 300px; text-align: center; }
.about-right img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-vision h2 { font-size: 30px; margin-bottom: 40px; }
.vision-grid {
  display: flex; gap: 30px; justify-content: center;
  flex-wrap: wrap;
}
.vision-card {
  background: #fff; padding: 30px 25px; border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08); width: 300px;
  transition: 0.3s ease;
}
.vision-card h3 { color: var(--primary); margin-bottom: 14px; font-size: 20px; }
.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* =====================
     Service
===================== */
.service-section { padding: 80px 20px; background: #fff; }
.service-section .container {
  max-width: 1200px; margin: auto;
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px 25px; text-align: center;
  overflow: hidden; transition: 0.3s ease;
}
.service-card img {
  width: 100%; height: 180px; object-fit: cover;
}
.service-card h2 { margin: 20px 0 10px; color: var(--primary); font-size: 20px; }
.service-card p {
  font-size: 15px; color: #555;
  padding: 0 20px 30px; line-height: 1.7;
}
.service-card .icon {
  font-size: 46px; color: var(--primary); margin-bottom: 18px;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* CTA */
.service-cta {
  background: var(--primary); color: #fff;
  text-align: center; padding: 80px 20px;
}
.service-cta h2 { font-size: 30px; margin-bottom: 14px; }
.service-cta p { font-size: 16px; margin-bottom: 24px; }
.service-cta .btn.consult {
  background: #fff; color: var(--black);
  font-size: 18px; padding: 14px 32px;
  border-radius: 30px; font-weight: bold; box-shadow: none;
}
.service-cta .btn.consult:hover {
  background: var(--hover); color: #fff;
}

/* =====================
     Location
===================== */
.location-section {
  background: #fff; padding: 100px 20px;
}
.location-section .container {
  max-width: 1100px; margin: auto;
  display: flex; gap: 50px; flex-wrap: wrap; align-items: center;
}
.location-image {
  max-width: 500px; width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: .4s;
}
.location-image:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.info-area { flex: 1; min-width: 320px; }
.info-area h2 { color: var(--primary); font-size: 28px; margin-bottom: 18px; }
.info-area ul { list-style: none; margin-bottom: 20px; }
.info-area li { font-size: 17px; color: #333; margin-bottom: 10px; line-height: 1.6; }
.info-area strong { color: var(--primary); }

/* =====================
     Input + Form UI
===================== */
#formContent input,
#formContent select {
  width: 100%; height: 45px;
  border: 1px solid #ccc; border-radius: 6px;
  padding: 0 10px; font-size: 15px;
  appearance: none; background: #fff;
  margin-bottom: 14px;
}

/* =====================
     Footer
===================== */
.footer {
  background: #f4f4f4; text-align: center;
  padding: 30px; color: #666; font-size: 14px;
}

/* =====================
    Mobile
===================== */
@media (max-width: 768px) {
  .nav-container { flex-direction: column; gap: 12px; align-items: flex-start; }
  .container { flex-direction: column; align-items: center; }
  .service-hero, .about-hero { height: 60vh; }
}

/* =========================================
   Home Hero (video background)
========================================= */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
.hero .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: -2;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}
.hero .hero-text {
  position: relative;
  z-index: 1;
}
.hero .hero-text h1 {
  font-size: 40px;
  font-weight: 800;
}
.hero .hero-text p {
  font-size: 20px;
  margin: 14px 0 24px;
}

/* 메인 상담 CTA 버튼 */
.btn.consult {
  background: linear-gradient(to bottom, #ffd000, #e6a700);
  color: #fff;
  padding: 18px 40px;
  border-radius: 40px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  box-shadow: 0 6px 0 #c48f00;
  transition: all 0.2s ease;
}
.btn.consult:hover {
  background: linear-gradient(to bottom, #ffe100, #f5b800);
  transform: scale(1.05);
}

/* =========================================
   About / Service / FAQ Hero (video)
========================================= */
.about-hero,
.service-hero,
.faq-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.about-hero { height: 80vh; }
.service-hero { height: 80vh; }
.faq-hero { height: 70vh; }

.about-hero .bg-video,
.service-hero .bg-video,
.faq-hero .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: -2;
}

.about-hero .overlay,
.service-hero .overlay,
.faq-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.about-hero .hero-inner,
.service-hero .hero-inner,
.faq-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.about-hero h1,
.service-hero h1,
.faq-hero h1 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 14px;
}
.about-hero p,
.service-hero p,
.faq-hero p {
  font-size: 20px;
  line-height: 1.7;
  opacity: 0.9;
}

/* =========================================
   Location Hero (static image + overlay)
========================================= */
.location-hero {
  position: relative;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.location-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: -2;
}
.location-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}
.location-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}
.location-hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 10px;
}
.location-hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* =========================================
   등장 애니메이션 공통 (아래 → 위)
========================================= */
.fade-up,
.about-left,
.about-right,
.vision-card,
.service-card {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s ease-out;
}
.fade-up.visible,
.about-left.visible,
.about-right.visible,
.vision-card.visible,
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   공지사항 보조 스타일
========================================= */
.notice-card {
  margin-bottom: 25px;
}

/* 공지 없음 박스 */
#noNoticeBox {
  display: none;
  min-height: 200px;
  margin-top: 40px;
}
#noNoticeBox.visible {
  display: block;
}

/* =========================================
   Hero / 애니메이션 반응형 조정
========================================= */
@media (max-width: 768px) {
  .hero .hero-text h1,
  .about-hero h1,
  .service-hero h1,
  .faq-hero h1,
  .location-hero h1 {
    font-size: 28px;
  }
  .btn.consult {
    padding: 14px 28px;
    font-size: 18px;
  }
}

.notice-hero {
  position: relative;
  height: 45vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.notice-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  z-index: -2;
}

.notice-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

.notice-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.nav-menu a.active {
  color: var(--primary);
  font-weight: 700;
}