/* ============================================================
   new_style.css  —  index.asp 전용 (new_style_n.css 병합)
   ============================================================ */

/* ── clearfix ── */
.clearfix { *zoom: 1; }
.clearfix:after { clear: both; display: block; content: ""; }

/* ── Home Container ── */
#homeContainer {
  width: 100%;
  margin-bottom: 60px;
  float: left;
}
#homeContainer .bottom {
  max-width: 1745px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ── Mission Section ── */
.mission-section {
  padding: 34px 0 12px;
}
.homeContent {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 15px;
}
.homeContent .ttl {
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
  letter-spacing: -0.4px;
}
.homeContent .sentence {
  max-width: 820px;
  margin: 10px auto 18px;
  font-size: 18px;
  text-align: center;
  line-height: 1.55;
  color: #2d2d2d;
}

/* ── Icon Banner ── */
.ico_banner {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 15px 24px;
  text-align: center;
}
.ico_banner ul.ico-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 230px));
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: stretch;
}
.ico_banner ul.ico-grid li {
  float: none !important;
  width: auto !important;
  list-style: none;
}
.ico_banner ul.ico-grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  padding: 10px 10px;
  min-height: 128px;
  transition: transform .15s ease, box-shadow .15s ease;
  color: #333;
  text-decoration: none;
}
.ico_banner ul.ico-grid li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  color: #390;
}
.ico_banner ul.ico-grid li a img {
  width: 72px !important;
}
.ico_banner ul.ico-grid li.ico-admissions a img {
  width: 62px !important;
  height: auto !important;
  display: block;
  margin: 0;
}
.ico_banner ul.ico-grid li a span {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1.2;
  word-break: keep-all;
}

/* ── Video / Gallery Box ── */
.bottom .main-tit {
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: 33px;
  font-weight: 700;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
}
.video_box {
  margin-top: 50px;
  text-align: center;
}
.video_box .ttl {
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: 33px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 7px;
}
.video_box .desc {
  text-align: center;
  margin-top: 5px;
  font-style: oblique;
  font-size: 19px;
}
.gallary_box {
  float: left;
  width: 640px;
  margin-top: 50px;
}
.gallary_box .ttl {
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: 33px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5px;
}

/* ── News & Event ── */
.main-new-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.main-news-video {
  flex: 0 0 auto;
}
.main-news-video video {
  width: 560px;
  height: auto;
  display: block;
}
.main-news-video .yt-iframe {width:560px; height:315px; display:block;}
.main-news-video .video-fallback-img {width:560px; height:315px; display:block;}
.main-news-list {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  align-content: start;
}
.main-news-inner a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  height: 100%;
  box-sizing: border-box;
}
.main-news-inner a:hover {
  background: #f7f9fc;
  border-color: #dde2ea;
}
.main-news-img {
  flex: 0 0 110px;
  width: 110px;
  height: 72px;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f4f7;
}
.main-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.main-news-inner-text {
  flex: 1 1 auto;
  min-width: 0;
}
.main-news-inner-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: #081d3e;
  letter-spacing: -0.25px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.main-news-inner-text p {
  display: none;
}

/* ── Icon ── */
#icon { position: absolute; right: 0; top: 12px; }
#icon > div { display: inline-block; margin: 0 2px; }
#icon > div a { padding: 0 !important; }

/* =========================
   Responsive
   ========================= */

/* Tablet */
@media screen and (min-width: 767px) {
  #subContainer, #subContents, #subContents .contents,
  .sign, .tb_curriculum, .view_img img, .forms .tb_forms,
  .tb_regulation, .sitemap1, .sitemap1 .sitemap1_1,
  .sitemap2, .counselor, .counselor .tb_tests,
  .homeContent, .ico_banner, header .inner {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
  }
}
@media screen and (min-width: 1024px) {
  .toggle-menu { display: none; }
}

/* Tablet max */
@media (max-width:1024px) {
  .homeContent .ttl { font-size: 34px; }
  .homeContent .sentence { font-size: 16px; }
  .ico_banner ul.ico-grid { grid-template-columns: repeat(4, 1fr); }

  /* News: 좌/우 → 위/아래 스택 */
  .main-new-container { flex-direction: column; }
  .main-news-video { width: 100%; margin-bottom: 18px; }
  .main-news-video video { width: 100%; }
  .main-news-video .yt-iframe { width: 100%; height: auto; aspect-ratio: 16/9; }
  .main-news-video .video-fallback-img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .main-news-list { width: 100%; grid-template-columns: 1fr; }

  /* Mobile scroll lock */
  html, body { height: auto !important; overflow: auto !important; }
  body.mobile-nav-open { overflow: hidden !important; }
}

/* Mobile */
@media (max-width:740px) {
  .mission-section { padding: 22px 0 10px; }
  .homeContent .ttl { font-size: 30px; line-height: 1.1; margin-top: 6px; }
  .homeContent .sentence { font-size: 15px; margin-bottom: 16px; }
  .ico_banner { padding: 10px 15px 24px; }
  .ico_banner ul.ico-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .ico_banner ul.ico-grid li a { min-height: 160px; padding: 16px 10px; }
  .ico_banner ul.ico-grid li a img { width: 72px !important; }
  .ico_banner ul.ico-grid li a span { font-size: 12px; }

  .main-news-img { width: 90px; height: 62px; }
  .main-news-inner-text h3 { font-size: 14px; }
  .main-news-inner-text p { font-size: 12px; }
}

/* ── Animations ── */
@keyframes fadeSlideUp   { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeScaleUp   { from { opacity:0; transform:scale(.88);       } to { opacity:1; transform:scale(1);      } }
@keyframes fadeSlideLeft { from { opacity:0; transform:translateX(-28px);} to { opacity:1; transform:translateX(0); } }
@keyframes fadeInOnly    { from { opacity:0; }                              to { opacity:1; }                          }

/* page load — Mission */
.homeContent { animation: fadeSlideUp .75s ease both; }

/* scroll — 공통 초기 hidden */
.ico-stagger,
.anim-scroll,
.anim-scroll-l,
.anim-scroll-u { opacity:0; }

.ico-stagger.is-visible   { animation: fadeScaleUp   .5s  ease both; animation-delay: var(--anim-delay, 0s); }
.anim-scroll.is-visible   { animation: fadeInOnly    .65s ease both; }
.anim-scroll-l.is-visible { animation: fadeSlideLeft .7s  ease both; }
.anim-scroll-u.is-visible { animation: fadeSlideUp   .55s ease both; animation-delay: var(--anim-delay, 0s); }

/* Small phones */
@media (max-width:390px) {
  .homeContent .ttl { font-size: 26px; }
  .ico_banner ul.ico-grid li a { min-height: 150px; }
  .main-news-img { width: 80px; height: 56px; }
}

/* Mobile base padding */
@media screen and (min-width: 320px) {
  #subContents, #homeContainer { padding: 0 15px; }
  .ico_banner ul { display: flex; justify-content: space-around; flex-wrap: wrap; }
  .ico_banner ul li { width: 50%; }
}
