@charset "utf-8";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: #191919;
  -webkit-font-smoothing: antialiased;
}

/* 📸 메인 슬라이드 - 풀스크린 히어로 */
.imgslide {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.imgslide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.7);
}

.imgslide img.active {
  opacity: 1;
  z-index: 1;
}

/* 🎯 섹션 타이틀 - 카카오 스타일 */
h1, h2 {
  font-size: 48px;
  font-weight: 650;
  color: #191919;
  position: relative;
  line-height: 1.3;
}

/*+ 버튼*/
i {
  float: right;
  position: relative;
  top: 20px;
  right: 0;
  color: #191919;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

i:hover {
  transform: translateX(4px);
  color: #000;
}

/*콘텐츠 영역*/
.art1{
  width: 100%;
  max-width: 1400px;
  margin: 120px auto 0;
}

.content {
  width: 100%;
}

/* h2를 h1으로 변경 */
.content h1 {
  margin-bottom: 48px;
}


.box {
  width: calc(25% - 24px);
  margin: 0 32px 32px 0;
  float: left;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  cursor: pointer;
}
.content-grid .box:nth-child(4n) {
  margin-right: 0;
}
.box img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}


/* 📝 공지사항 - 리스트 스타일 */
.art2{
  width: 100%;
  padding: 0 20px;
}

.art2-grid{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.note {  
  flex: 1;
  width: 50%;
  padding: 30px 60px 30px 0;
  box-shadow: none;
}

/* 두 번째 note 요소의 오른쪽 패딩 제거 */
.note:nth-child(2) {
  padding-right: 0;
}

.note h2{
  border-bottom: solid 2px #000; 
  padding-bottom: 20px; 
}

.note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note li{
  border-bottom: solid 1px #818181;
  padding: 22px 0;
  transition: all 0.3s ease;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.note li:hover {
  padding-left: 8px;
  background: #fafafa;
}

.note li a {
  text-decoration: none;
  display: block;
}

.note li span{
  font-size: 20px;
  color: #999;
  font-weight: 300;
  display: block;
}

.note li h3 {
  color: #191919;
  font-size: 27px;
  font-weight: 600;
  transition: color 0.25s ease;
  line-height: 1.3;
  overflow: hidden;
}

.note li:hover h3 {
  color: #4285f4;
}

/* 📷 갤러리 - 2열 그리드 */
.gel { 
  width: 60%;
  float: right;
  padding: 30px 0px 0px 0px;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.gel img{
  width:50%; 
  height: 300px; 
  padding:10px;
  float: left;
  overflow: hidden;
  cursor: pointer; 
  object-fit: cover;
}

.gel h2 {
  border-bottom: solid 2px #000; 
  padding-bottom: 20px; 
  margin-bottom: 20px;
}


/* 🏢 지원기관 - 심플한 슬라이더 */
aside {
  width: 100%;
  overflow: hidden;
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
  padding: 80px 0;
  margin-top: 140px;
  clear: both;
}

.organ {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 0 60px;
}

.organlist {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.organlist:hover {
  animation-play-state: paused;
}

.slide {
  display: flex;
  gap: 40px;
}

.organbox {
  width: 200px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-radius: 0;
  border: none;
  transition: all 0.3s ease;
}

.organbox:hover {
  transform: translateY(-2px);
  background: transparent;
  box-shadow: none;
}

.organbox img {
  width: 70%;
  max-height: 50%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.organbox:hover img {
  filter: grayscale(0%);
  opacity: 0.8;
}

/* 🎭 무한 텍스트 슬라이더 - "전북우리사이" */
.text-slider {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  padding: 60px 0;
  position: relative;
}

.text-slider-inner {
  display: flex;
  width: max-content;
  animation: textScroll 50s linear infinite;
  gap: 0;
}

.text-slider-inner:hover {
  animation-play-state: paused;
}

.text-item {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 0;
}

.text-item span {
  font-size: 72px;
  font-weight: 800;
  color: #e9e9e9;
  letter-spacing: -0.03em;
  padding: 0 10px;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
}

.text-item .dot {
  font-size: 150px;
  font-weight: 300;
  color: #e9e9e9;
  opacity: 0.6;
  padding: 0 40px;
  line-height: 0.8;
}

/* 애니메이션 정의 */
@keyframes textScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===========================================
   반응형 스타일 (header 제외)
   =========================================== */

/* 📱 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  /* 메인 슬라이드 */
  .imgslide {
    height: 70vh;
    min-height: 500px;
  }

  /* 타이틀 */
  h1, h2 {
    font-size: 36px;
  }

  /* 콘텐츠 영역 */
  .art1 {
    max-width: 100%;
    padding: 0 30px;
    margin: 80px auto 0;
  }

  /* 박스 그리드 - 2열 */
  .box {
    width: calc(50% - 16px);
    margin: 0 32px 32px 0;
  }

  .content-grid .box:nth-child(4n) {
    margin-right: 32px;
  }

  .content-grid .box:nth-child(2n) {
    margin-right: 0;
  }

  /* 공지사항 & 갤러리 영역 */
  .art2 {
    padding: 0 30px;
  }

  .art2-grid {
    gap: 40px;
  }

  .note {
    padding: 30px 40px 30px 0;
  }

  .note:nth-child(2) {
    padding-right: 0;
  }

  .note li h3 {
    font-size: 24px;
  }

  .note li span {
    font-size: 18px;
  }

  /* 지원기관 */
  .organ {
    padding: 0 30px;
  }

  .organbox {
    width: 160px;
    height: 70px;
  }
}

/* 📱 모바일 (800px 이하) */
@media (max-width: 800px) {
  /* 메인 슬라이드 */
  .imgslide {
    height: 60vh;
    min-height: 450px;
  }

  /* 타이틀 */
  h1, h2 {
    font-size: 28px;
  }

  /* + 버튼 */
  i {
    font-size: 18px;
    top: 10px;
  }

  /* 콘텐츠 영역 */
  .art1 {
    padding: 0 20px;
    margin: 60px auto 0;
  }

  /* h2를 h1으로 변경 */
  .content h1 {
    margin-bottom: 32px;
  }

  /* 박스 그리드 - 1열 */
  .box {
    width: 100%;
    margin: 0 0 24px 0;
  }

  .content-grid .box:nth-child(4n),
  .content-grid .box:nth-child(2n) {
    margin-right: 0;
  }

  .box img {
    height: 240px;
  }

  /* 공지사항 & 갤러리 영역 - 세로 배치 */
  .art2 {
    padding: 0 20px;
  }

  .art2-grid {
    flex-direction: column;
    gap: 40px;
  }

  .note {
    width: 100%;
    flex: none;
    padding: 0;
    margin-bottom: 30px;
  }

  .note:nth-child(2) {
    padding-right: 0;
  }

  .note h2 {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .note li {
    padding: 18px 0;
  }

  .note li h3 {
    font-size: 20px;
  }

  .note li span {
    font-size: 16px;
  }

  /* 갤러리 */
  .gel {
    width: 100%;
    float: none;
    padding: 20px 0 0 0;
  }

  .gel h2 {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .gel img {
    width: 100%;
    height: 200px;
    padding: 5px 0;
  }

  /* 지원기관 */
  aside {
    padding: 60px 0;
    margin-top: 100px;
  }

  .organ {
    padding: 0 20px;
  }

  .organbox {
    width: 140px;
    height: 60px;
  }

  .slide {
    gap: 30px;
  }

  /* 텍스트 슬라이더 */
  .text-slider {
    padding: 40px 0;
  }

  .text-item span {
    font-size: 40px;
    padding: 0 15px;
  }
  
  .text-item .dot {
    font-size: 60px;
    padding: 0 20px;
  }
}

/* 📱 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
  /* 메인 슬라이드 */
  .imgslide {
    min-height: 350px;
  }

  /* 타이틀 */
  h1, h2 {
    font-size: 24px;
  }

  /* + 버튼 */
  i {
    font-size: 16px;
    top: 8px;
  }

  /* 콘텐츠 영역 */
  .art1 {
    padding: 0 15px;
    margin: 40px auto 0;
  }

  /* h2를 h1으로 변경 */
  .content h1 {
    margin-bottom: 24px;
  }

  .box {
    margin-bottom: 20px;
  }

  .box img {
    height: 200px;
  }

  /* 공지사항 & 갤러리 */
  .art2 {
    padding: 0 15px;
  }

  .art2-grid {
    gap: 30px;
  }

  .note {
    margin-bottom: 20px;
  }

  .note li {
    padding: 15px 0;
  }

  .note li h3 {
    font-size: 18px;
  }

  .note li span {
    font-size: 14px;
  }

  .gel img {
    height: 160px;
    padding: 3px 0;
  }

  /* 지원기관 */
  aside {
    padding: 40px 0;
    margin-top: 80px;
  }

  .organ {
    padding: 0 15px;
  }

  .organbox {
    width: 120px;
    height: 50px;
  }

  .slide {
    gap: 20px;
  }

  /* 텍스트 슬라이더 */
  .text-slider {
    padding: 30px 0;
  }

  .text-item span {
    font-size: 32px;
    padding: 0 10px;
  }
  
  .text-item .dot {
    font-size: 48px;
    padding: 0 15px;
  }
}