/*Main css*/
.hero {
  position: relative; /* ANCHOR: Keeps ::before strictly inside .hero */
  width: 100%; max-width: 1800px;  height: 80vh;  background-image: url('/fnc_images/hero-bg.png');
  background-size: cover; background-position: center; border-radius: 50px;
  overflow: hidden; padding: 30px 10%; display: flex; margin: 50px 0; 
  left: 50%; transform: translateX(-50%);}

/* Overlay layer */
.hero::before { content: ''; position: absolute; top: 0;
  left: 0; width: 100%; height: 100%;
  /* Fades from dark to transparent */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.26) 0%, rgba(29, 20, 8, 0.781) 100%);
  pointer-events: none;
}

.hero-text{align-self:flex-end; margin-bottom: 50px; color:white; 
  position:relative;}
.hero-text p{font-size:24px; margin-top: 10px;}
.hero-text .cta{width: 200px; min-height: 40px; text-align: center; font-weight: 700;
    font-size: 24px; padding: 12px 22px; margin-top: 20px; border-radius: 10px; 
    background:#4ca5a7;}




/* Base Container */
.content-section {display: flex; gap: 24px; width: 100%; margin: 0 auto; 
  font-family: 'S-CoreDream', 'Noto Sans KR', sans-serif; padding-bottom: unset;}

/* Left Featured Box */
.video-card { position: relative; flex: 1.2; border-radius: 24px; height:auto;
  overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); min-height: fit-content;
display: flex; align-items:center; justify-content:center;}
.video-card .thumb-img {width: 100%; height: 100%; object-fit: cover; display: block;}
.play-button {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 44px; background-color: #ff0000; border: none;
  border-radius: 12px; color: white; display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;}
.play-button svg {width: 28px; height: 28px;}
.play-button:hover {transform: translate(-50%, -50%) scale(1.08);  background-color: #cc0000;}
/* Right Grid Layout */
.card-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;}
/* Individual Cards */
.info-card {padding: 28px 24px; background-color: #e5e5e5; /* Light gray cards */
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;}
.mcard1{ border-radius: 20px 20px 0 20px;}
.mcard2{ border-radius: 20px 20px 20px 0;}
.mcard3{ border-radius: 20px 0 20px 20px;}
.mcard4{ border-radius: 0 20px 20px 20px;}


.info-card .icon-wrap {display: flex; justify-content: flex-end; margin-bottom: 24px;}
.info-card .icon-wrap img {width: 36px; height: 36px; opacity: 0.7;}
.info-card h5 {margin: 0 0 6px 0;}
.info-card p {margin: 0; font-size: 15px; color: #666666;}
.card-grid .info-card:hover {transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); background-color: #1e457e;}
.info-card:hover  h5 {color: #ffffff;}
.info-card:hover p {color: rgba(255, 255, 255, 0.8);}
.info-card:hover .icon-wrap img {opacity: 1; 
 filter: brightness(0) invert(1); /* Turns dark SVG icons white */
}
/* Responsive adjustment for small screens */
@media (max-width: 868px) {
  .content-section {flex-direction: column;  padding-bottom: 50px;}
}
/* Initial hidden states */
#introzone .head-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Visible states, triggered via JS */
#introzone .head-text.in-view {
  opacity: 1;
  transform: translateY(0);
}

.video-card.in-view {
  opacity: 1;
  transform: translateX(0);
}

.info-card.in-view {
  opacity: 1;
  transform: translateY(0);
}






.notice-sect{width:100%; height: auto; min-height:fit-content; padding:30px 80px; background: grey;
border-radius:40px; margin: 0 auto; position: relative;
background-image: url('/fnc_images/notice-bg.png');
  background-size: cover; background-position: center; border-radius: 50px;
  overflow: hidden;
}
/* Overlay layer */
.notice-sect::before { content: ''; position: absolute; top: 0;
  left: 0; width: 100%; height: 100%; padding: 10px 80px;
  /* Fades from dark to transparent */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.534) 0%, rgba(29, 20, 8, 0.781) 100%);
  pointer-events: none;
}
.notice-sect .head-text{text-align:center; padding: 20px 20px 50px 20px; color:white; 
  z-index:5; position: relative;}
.notice-sect .notice-box{display: flex; gap: 50px; position: relative; flex-direction:row;}
.notice-sect .notice-box .box1{flex:1; height:380px; background:white; border-radius:20px; overflow:hidden;}
.notice-sect .notice-box .box1 .top a{width:100%; height: 90px; padding: 30px 10%;
  border-bottom:solid 1px #5E5E5E; text-align:center;
  display:flex; align-items:center; justify-content: space-between;}
.notice-sect .notice-box .box1 ul{padding:8px;}
.notice-sect .notice-box .box1 ul li{height: 60px; padding: 10px 0; width: 90%; margin: 0 auto;
display:flex; justify-content:space-between; align-items: flex-end; border-bottom: solid 1px #B1B1B1;}
.notice-sect .notice-box .box1 ul li p{font-size: 20px;}
.notice-sect .notice-box .box1 ul li span{font-size:  18px;}
.notice-sect .notice-box .box1 .top a:hover{color:#23457D;}
.plus-icon {position: relative; width: 30px; height: 30px; transition: transform 0.3s ease;}
.plus-icon::before,
.plus-icon::after {content: ''; position: absolute; background: #4A90E2;}
.plus-icon::before {top: 50%; left: 0; width: 100%; height: 3px; 
  transform: translateY(-50%);}
.plus-icon::after {left: 50%; top: 0; width: 3px;
  height: 100%; transform: translateX(-50%);}
.notice-sect .notice-box .box1 .top a:hover .plus-icon{transform: rotate(90deg);}

.notice-sect .notice-box .shrts ul{display: flex; justify-content: space-between; 
flex-direction:column;  gap:20px; min-width: 400px;}
.notice-sect .notice-box .shrts ul li a {flex:1; display: flex;  justify-content:space-between; align-items:center;}
.notice-sect .notice-box .shrts ul li {min-height: 80px; background: white;
  border-radius: 20px 0 20px 20px;  z-index:5; padding:20px 40px;
display: flex; justify-content:space-between; align-items:center;}
.notice-sect .notice-box .shrts ul li a p{font-weight: 500; }
/* Base Icon Box (Defines dimensions, color fill, and mask properties) */
.notice-sect .notice-box .shrts ul li a .icon {
  display: inline-block;
  width: 35px;
  height: 35px;
  background-color: #333333; /* Default icon color */
  transition: background-color 0.2s ease;
  
  /* Shared Mask Settings */
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* Individual Icon Image Paths */
.notice-sect .notice-box .shrts ul li a .icon.noa {
  -webkit-mask-image: url('../fnc_images/not-icon1.svg');
  mask-image: url('../fnc_images/not-icon1.svg');
}
.notice-sect .notice-box .shrts ul li a .icon.nob {
  -webkit-mask-image: url('../fnc_images/not-icon2.svg');
  mask-image: url('../fnc_images/not-icon2.svg');
}
.notice-sect .notice-box .shrts ul li a .icon.noc {
  -webkit-mask-image: url('../fnc_images/not-icon3.svg');
  mask-image: url('../fnc_images/not-icon3.svg');
}
.notice-sect .notice-box .shrts ul li a .icon.nod {
  -webkit-mask-image: url('../fnc_images/not-icon4.svg');
  mask-image: url('../fnc_images/not-icon4.svg');
}
/* Hover Effect: Changes icon color to white when hovering the list item */
.notice-sect .notice-box .shrts ul li a:hover .icon {
  background-color: #ffffff;
}
.notice-sect .notice-box .shrts ul li:hover a .icona {background-color: white;}
.notice-sect .notice-box .shrts ul li:hover{background: linear-gradient(110deg, #2A8183 0%, #57CEBC 80%);}
.notice-sect .notice-box .shrts ul li:hover a h5{color: white;}


/*//////////////////////////           카드뉴스           //////////////////*/

.news-sect {width: 100%; height: auto; min-height:fit-content;
  margin: 0 auto; position: relative;  padding: 20px 10%;
  background: linear-gradient(60deg, #2A8183 60%, #57CEBC 100%);
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.news-title {
  margin-right: 120px;
  flex: 0 0 auto;
  width: 260px;
  color: white;
  font-weight: 700;
  line-height: 1.3;
}

.news-title.is-swapped {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#newsTitleText {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#newsTitleText.fade-out {opacity: 0; transform: translateY(6px);}


.news-track-wrap {flex: 1; overflow: hidden;}
.news-track { height: auto; min-height: 400px; display:flex; align-items:center;
  display: flex; gap: 20px; width: max-content;}
.news-card-home {flex: 0 0 300px; height: 320px; border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease;}
.news-card-home:hover {transform: translateY(-20px);}
.news-card-home img {width: 100%; height: 220px; object-fit: cover; 
  display: block;}
.news-card-home p {flex: 1; margin: 0; padding: 14px 16px; color: white;
  font-size: 15px; line-height: 1.4; background: rgba(0, 0, 0, 0.15);
  border-radius:0 0 16px 16px;}

.carousel-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #2A8183;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.carousel-btn svg {width: 20px; height: 20px;}
.carousel-btn:hover {transform: scale(1.08); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);}
.reveal-container {opacity: 0; transform: scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}










@media(max-width:640px){
  .hero { max-height: 70vh; border-radius: 0; padding: 20px 20px!important;}
  .hero-text h1{font-size: 24px;}
  .hero-text p{font-size: 16px;}
  .hero-content { padding: 20px 0;}
  .hero-content p {font-size: 15px;}
  .hero-text .cta {width: 120px; height:30px; font-size: 16px;
  padding: 7px 7px; font-weight: 500;}


.card-grid {display: flex; flex-direction:column; gap: 10px;}
/* Individual Cards */
.info-card {padding: 15px 24px; background-color: #e5e5e5; /* Light gray cards */ max-height:150px;
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; gap:20px;}
.mcad1{ border-radius: 20px 20px 0 20px;}
.mcard2{ border-radius: 20px 20px 20px 0;}
.mcard3{ border-radius: 20px 0 20px 20px;}
.mcard4{ border-radius: 0 20px 20px 20px;}

.news-sect {padding: 20px 5%;}
.news-track { height: auto; min-height: fit-content;}
.news-card-home { flex: 0 0 240px; height: 200px!important;}
.news-card-home:hover {transform: translateY(0px);}
.carousel-btn {width: 20px; height: 20px; border-radius: 50%;}

.notice-sect{padding:20px 15px; border-radius:20px}
.notice-sect .head-text{text-align:center; padding: 15px 20px 20px 20px;}
.notice-sect .notice-box{display: flex; flex-direction: column;}
.notice-sect .notice-box .box1{height:300px!important; background:white; border-radius:20px; overflow:hidden;}

.notice-sect .notice-box .box1 .top a{height: 60px;}
.notice-sect .notice-box .box1 ul li{height: 40px;}
.notice-sect .notice-box .box1 ul li p{font-size: 14px;}
.notice-sect .notice-box .box1 ul li span{display: none;}
.plus-icon {width: 20px; height: 20px;}
.notice-sect .notice-box .shrts ul{gap:15px; flex-direction: column;}


}

@media (max-width: 900px) {
  .news-sect {
    flex-wrap: wrap;
  }
  .news-card-home {
    flex: 0 0 240px;
    height: 260px;
  }
  .notice-sect .notice-box .shrts ul {
    min-width: 0;   /* let it shrink freely to fit the container */
    width: 100%;
  }
  .notice-sect .notice-box .shrts ul li {
    width: 100%;
    max-width: none; /* remove the 260px ceiling so it can reach full width */
  }
}
 @media (max-width: 1200px) and (min-width:639px) {
  .notice-sect .notice-box{flex-direction:column;}
 }
 @media (max-width: 1200px) and (min-width:639px) {
  .hero{height: 70vh;}
  .hero-text h1{font-size: 36px;}
  .hero-text p{font-size: 24px;}
  .hero-text .cta {width: 150px; height:50px; font-size: 20px;
  padding: 7px 7px; font-weight: 500;}

  .news-sect{padding:20px 5%;}
  .news-title {font-size: 48px; width:220px; margin-right: 5%;}
  .news-title.is-swapped {font-size: 24px;}
  .news-sect {flex-wrap: wrap;}

  .notice-sect{padding:20px 15px; border-radius:20px}
  .notice-sect .notice-box .box1{height:300px!important; background:white; border-radius:20px; overflow:hidden;}
.notice-sect .notice-box .box1 .top a{height: 60px;}
.notice-sect .notice-box .box1 ul li{height: 50px; overflow:hidden;}
.notice-sect .notice-box .box1 ul li p{font-size: 16px;}
.notice-sect .notice-box .box1 ul li span{font-size:12px;}
.plus-icon {width: 20px; height: 20px;}
.notice-sect .notice-box .shrts ul{gap:15px; flex-direction: column;}
 }