/* ==========================================
            [ GLOBAL VARIABLES & TYPOGRAPHY ]
            ========================================== */
:root {
  --snu-navy: #0a192f;
  /* 깊은 네이비 (메인) */
  --snu-blue: #112240;
  /* 서브 네이비 */
  --snu-orange: #f08200;
  /* 포인트 오렌지 */
  --snu-orange-hover: #d17100;
  --text-dark: #212529;
  --text-gray: #6c757d;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f2f5;
  --border-color: #dee2e6;
  --bs-border-color: #ccc;
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 100px;
  /* Header space expanded to 100px */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--snu-orange);
}


.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}


/* ==========================================
            [ LAYOUT: HEADER & FOOTER ]
            ========================================== */
/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  height: 100px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  height: 80px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--snu-navy) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .logo-accent {
  color: var(--snu-orange);
}

.navbar-brand img {max-width:320px}
.mo-logo {max-width:300px}

@media (max-width: 400px) {
  .navbar-brand img {max-width:280px}
  .mo-logo {max-width:280px}
}


@media (max-width: 360px) {
  .navbar-brand img {max-width:260px}
  .mo-logo {max-width:260px}
}



#mainNav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1.2rem !important;
  position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--snu-orange) !important;
}

/* PC 버전 드롭다운 화살표(Caret) 제거 */
@media (min-width: 992px) {
  .dropdown-toggle::after {
    display: none !important;
    content: none !important;
  }
}

/* Desktop specific Nav & Dropdown styling */
@media (min-width: 992px) {
  #mainNav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--snu-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  #mainNav .nav-pills .nav-link::after {
    height: 0px;
  }

  #mainNav .nav-link:hover::after,
  #mainNav .nav-link.active::after {
    width: 80%;
  }

  /* 2-Depth Hover Dropdown for PC */
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease;
  }

  .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem 0;
    min-width: 200px;
  }

  .dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s;
  }

  .dropdown-item:hover,
  .dropdown-item.active {
    color: var(--snu-orange) !important;
    background-color: rgba(240, 130, 0, 0.05);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-login-nav {
  border: 1px solid var(--snu-navy);
  color: var(--snu-navy);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-login-nav:hover,
.btn-login-nav.active {
  background-color: var(--snu-navy);
  color: #fff !important;
}

/* Mobile Offcanvas Enhancements */
@media (max-width: 991.98px) {
  .offcanvas-body {
    padding: 1.5rem;
  }

  #mainNav .nav-item {
    border-bottom: 1px solid var(--border-color);
  }

  #mainNav .nav-item:last-child {
    border-bottom: none;
  }

  #mainNav .nav-link {
    padding: 1.2rem 0 !important;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* 모바일 전용 드롭다운 화살표 및 애니메이션 */
  .dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    transition: transform 0.3s ease;
  }

  .dropdown-toggle.show::after {
    transform: rotate(-180deg);
  }

  /* 부드러운 하위 메뉴 스와이프 다운 (Max-height 트랜지션) */
  .dropdown-menu {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  }

  .dropdown-menu.show {
    max-height: 400px;
    /* 내부 요소가 들어갈 충분한 높이 */
    opacity: 1;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }

  .dropdown-item {
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    color: var(--text-gray);
  }

  .dropdown-item:hover,
  .dropdown-item.active {
    color: var(--snu-orange) !important;
    background-color: rgba(240, 130, 0, 0.05);
  }

  .btn-login-nav {
    margin-top: 2rem;
    display: none;
    text-align: center;
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
  }
}

/* Footer */
.site-footer {
  background-color: var(--snu-navy);
  padding: 4rem 0;
  margin-top: 0;
  /* 불필요한 상단 여백 5rem 제거하여 밀착시킴 */
  color: #a8b2d1;
  font-size: 0.95rem;
}

.footer-logo {
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links a {
  margin-right: 1.5rem;
  color: #ccd6f6;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--snu-orange);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--snu-navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.scroll-top-btn:hover {
  background-color: var(--snu-orange);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 25px rgba(240, 130, 0, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* ==========================================
            [ COMPONENTS ]
            ========================================== */
.subpage-header {
  /*background: linear-gradient(135deg, #0a192f 0%, #112240 100%);*/
  border-bottom: 0px solid var(--border-color);
  padding: 45px 0 45px;
  margin-bottom: 4rem;
  position: relative;
}

.bg-dot-matrix {
  background-color: #112240;
  background-image:
    /* 1. 도트 패턴: 투명도 15%의 흰색 점 */
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    /* 2. 베이스 그라데이션 */
    linear-gradient(135deg, #091221 0%, #112240 60%, #203e73 100%);
  /* 도트 간격 설정 (24px) */
  background-size:
    24px 24px,
    100% 100%;
  background-position:
    0 0,
    0 0;
}

.bg-blueprint {
  background-color: #112240;
  background-image:
    /* 1. 메인 그리드 (큰 격자) */
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    /* 2. 서브 그리드 (작은 격자) */
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    /* 3. 은은한 블루 베이스 그라데이션 */
    linear-gradient(135deg, #091221 0%, #112240 50%, #1c3664 100%);
  /* 각각의 배경에 대한 사이즈 지정 */
  background-size:
    100px 100px, 100px 100px,
    /* 메인 그리드 간격 */
    20px 20px, 20px 20px,
    /* 서브 그리드 간격 */
    100% 100%;
  /* 베이스 그라데이션 꽉 차게 */
  /* 격자 선이 잘리지 않도록 위치 조정 */
  background-position:
    -1px -1px, -1px -1px,
    -1px -1px, -1px -1px,
    0 0;
}


.subpage-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0px;
  background-color: var(--snu-orange);
}

.subpage-title {
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.03em;
}

.subpage-title i {
  color: var(--snu-orange);
   !important;
  font-size: 120%;
}

.subpage-desc {
  font-size: 1rem;
  color: #94a3ab;
  font-weight: 400;
  margin-bottom: 0;
}

/* 기존 Section Titles (메인 페이지용으로 유지) */
.section-title-wrap {
  margin-bottom: 3rem;
  position: relative;
}

.section-title-wrap.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--snu-navy);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title-wrap::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background-color: var(--snu-orange);
  margin-top: 1rem;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 400;
}

@media (max-width: 767.98px) {

  .section-title {
    font-size: 1.7rem;
  }
  .section-subtitle {
    font-size:1rem;
  }

}


/* Custom Cards (For Gallery & HOF) */
.gallery-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-gray);
  flex-shrink: 0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.badge-category {
  display: inline-flex;
  align-items: center;
  background: var(--bg-gray);
  color: var(--snu-navy);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  align-self: flex-start;
  word-break: keep-all;
  line-height: 1.4;
}

.card-body {
  padding: 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-body.tops {
  border-top: 1px solid #ddd;
}


.card-title {
  font-weight: 700;
  font-size: 1.2rem;line-height:1.3;
  margin-bottom: 0.5rem;

  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-custom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Custom Tabs (HOF) */
.custom-tabs {
  border-bottom: none;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
}

.custom-tabs .nav-link {
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0.6rem 2rem;
  color: var(--text-gray) !important;
  font-weight: 600;
  background: #fff;
}

.custom-tabs .nav-link.active {
  background-color: var(--snu-orange);
  color: #fff !important;
  border-color: var(--snu-orange);
  box-shadow: 0 4px 10px rgba(240, 130, 0, 0.3);
}

.custom-tabs .nav-link.active::after {
  display: none;
}

/* Buttons */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--snu-orange);
  border-color: var(--snu-orange);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background-color: var(--snu-orange-hover);
  border-color: var(--snu-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 130, 0, 0.3);
}

.btn-outline-light-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-outline-light-custom:hover {
  background: #fff;
  color: var(--snu-navy);
}

/* ==========================================
            [ LATEST WINNERS CAROUSEL (GRID BASED) ]
            ========================================== */
.latest-winners {
  padding: 5rem 0 2rem;
  background-color: #ffffff;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 1rem 0 2rem 0;
  align-items: stretch;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .slider-track {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

@media (min-width: 992px) {
  .slider-track {
    grid-auto-columns: calc((100% - 48px) / 3);
  }
}

@media (min-width: 1200px) {
  .slider-track {
    grid-auto-columns: calc((100% - 72px) / 4);
  }
}

.slider-item {
  scroll-snap-align: start;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-gray);
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: var(--snu-orange);
  color: #fff;
  border-color: var(--snu-orange);
}

.slider-btn.prev {
  left: -24px;
}

.slider-btn.next {
  right: -24px;
}

/* ==========================================
            [ PAGES (SPA Scoping) ]
            ========================================== */
.page-section {
  min-height: calc(100vh - 100px - 200px);
  padding-bottom: 5rem;
}

/* 1. Main Home */
#page-home {
  padding: 0;
}

.hero-section {
  position: relative;
  /*background: linear-gradient(135deg, var(--snu-navy) 0%, var(--snu-blue) 100%);*/
  color: #fff;
  padding: 50px 0 50px;
  overflow: hidden;
}

.hero-section {
  background-color: #312e81;
  /* Fallback */
  /* CSS 다중 배경: 위에서부터 아래 순서로 레이어가 쌓입니다. */
  background-image:
    /* 1. 메인 그리드 (큰 격자) */
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    /* 2. 서브 그리드 (작은 격자) */
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    /* 3. 은은한 블루 베이스 그라데이션 */
linear-gradient(135deg, #091221 0%, #312e81 50%, #1c3664 100%);

  /* 각각의 배경에 대한 사이즈 지정 */
  background-size:
    100px 100px, 100px 100px,
    /* 메인 그리드 간격 */
    20px 20px, 20px 20px,
    /* 서브 그리드 간격 */
    100% 100%;
  /* 베이스 그라데이션 꽉 차게 */
  /* 격자 선이 잘리지 않도록 위치 조정 */
  background-position:
    -1px -1px, -1px -1px,
    -1px -1px, -1px -1px,
    0 0;
}


.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.05;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-title span {
  color: var(--snu-orange);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  opacity: 0.7;
  margin-bottom: 1.75rem;
  max-width: 600px;
}

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-5deg);
  cursor: pointer;
  /* 클릭 가능한 요소임을 나타냄 */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-wrap:hover {
  transform: perspective(1000px) rotateY(-5deg) scale(1.02);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
}

.hero-image-wrap::after {
  content: '\F52B';
  /* Bootstrap icon bi-zoom-in */
  font-family: bootstrap-icons !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hero-image-wrap:hover::after {
  opacity: 1;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 750px;
  display: block;
}

/* 신규: 히어로 정보 박스 (글래스모피즘) */
.hero-info-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.hero-info-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.hero-info-list li:last-child {
  margin-bottom: 0;
}

.hero-info-title {
  font-weight: 700;
  color: #fff;
  width: 85px;
  flex-shrink: 0;
}

.hero-info-text {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.quick-links {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.quick-card {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.quick-card:hover {
  border-color: var(--snu-orange);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.quick-icon {
  font-size: 2.5rem;
  color: var(--snu-orange);
  margin-bottom: 1rem;
}

/* ==========================================
            [ ABOUT EVENT SECTION (창의설계축전이란?) ]
            ========================================== */
.about-section {
  padding: 6rem 0;
  background-color: var(--bg-gray);
}

.about-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-icon-wrap {
  width: 50px;
  height: 50px;
  background-color: rgba(240, 130, 0, 0.1);
  color: var(--snu-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.info-list-table {
  width: 100%;
  border-top: 2px solid var(--snu-navy);
}

.info-list-table th,
.info-list-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.info-list-table th {
  width: 20%;
  font-weight: 700;
  color: var(--snu-navy);
  background-color: rgba(17, 34, 64, 0.03);
  text-align: center;
}

.info-list-table td {
  color: var(--text-dark);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .info-list-table table,
  .info-list-table thead,
  .info-list-table tbody,
  .info-list-table tr,
  .info-list-table th,
  .info-list-table td {
    display: block;
    width: 100%;
  }
  .info-list-table th { padding: 0.5rem 1rem;text-align:left}

}



.sponsor-banner {
  background: linear-gradient(135deg, #1a365d 0%, #0a192f 100%);
  color: #fff;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin: 5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.2);
}

.sponsor-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 130, 0, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.history-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 9;
}

.history-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-value-card {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.db-value-card:hover {
  border-color: var(--snu-orange);
  transform: scale(1.05);
}

/* Video Player (신규 추가) */
.video-wrapper {
  position: relative;
  z-index: 2;
  /* 배경 그라데이션 위에 배치 */
}

.custom-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(240, 130, 0, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  padding-left: 5px;
  /* 재생 아이콘 시각적 중앙 정렬 */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(240, 130, 0, 0.5);
  animation: pulse-play 2s infinite;
  z-index: 3;
}

.custom-play-btn:hover {
  background-color: var(--snu-orange);
  transform: translate(-50%, -50%) scale(1.1);
  animation: none;
}

.custom-play-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes pulse-play {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 130, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(240, 130, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(240, 130, 0, 0);
  }
}

/* 4. 서류양식 및 FAQ */
.table-custom th {
  background-color: var(--bg-light);
  border-bottom: 2px solid var(--snu-navy);
  font-weight: 600;
  padding: 1rem;
}

.table-custom td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.table-custom tr:hover td {
  background-color: rgba(240, 130, 0, 0.02);
}

/* 6. 로그인 */
.login-wrap {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.login-tabs .nav-link {
  border-radius: 0;
  color: var(--text-gray);
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1rem;
}

.login-tabs .nav-link.active {
  color: var(--snu-orange) !important;
  background: transparent;
  border-bottom: 2px solid var(--snu-orange);
}

.form-control-custom {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
}

.form-control-custom:focus {
  border-color: var(--snu-orange);
  box-shadow: 0 0 0 0.25rem rgba(240, 130, 0, 0.1);
}


.fc-green {
  color: #00db7a !important;
}

.fc-orange {
  color: var(--snu-orange) !important;
}

.vision-svg img {
  max-width: 660px;
}

.trophy-wrap {
  font-size: 0.9rem;
  line-height: 1;
  margin-bottom: 1rem
}

.trophy-wrap .part {
  color: #003282 !important;
  padding: 2px 0;
  margin-right: 4px;
}

.trophy-wrap .award {
  color: #fff;
  background: #00854a;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem
}

.card-body.tops a {
  color: #444;
}

.card-body.tops a:hover {
  color: #003282 !important;
}

.card-body.tops .teams {
  font-size: 0.875rem;
  margin-top: 14px;
  border-top: 1px dotted #ccc;
  padding-top: 14px;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bg-grand {
  background: #003282 !important;
}

.bg-gold {
  background: #CDA528 !important;
}

.bg-silver {
  background: #A0A0A0 !important;
}

.bg-bronze {
  background: #A5693C !important;
}


/** web Font **/
@font-face {
  font-family: 'GmarketSansLight';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GmarketSansBold';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.ff-gl {
  font-family: 'GmarketSansLight' !important;
}

.ff-gm {
  font-family: 'GmarketSansMedium' !important;
}

.ff-gb {
  font-family: 'GmarketSansBold' !important;
}


.select-wrap {
  width: auto;
  min-width: 400px;
}

@media (max-width: 768px) {
  .select-wrap {
    width: auto;
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }
}

.fw-500 {
  font-weight: 500 !important
}

.fw-700 {
  font-weight: 700 !important
}

.fw-900 {
  font-weight: 900 !important
}


/* ==========================================================
       List view
       ========================================================== */
:root {
  --brand-primary: #112240;
  --brand-secondary: #1c3664;
  --text-main: #212529;
  /* 조금 더 명확한 대비를 위한 다크 그레이 */
  --text-muted: #6c757d;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  /* 명확한 경계를 위한 보더 컬러 */
  --hover-shadow: 0 8px 16px rgba(17, 34, 64, 0.08);
  /* 브랜드 컬러 기반의 그림자 */
}

/* 공통 버튼 스타일 */
.btn-brand {
  background-color: var(--brand-primary);
  color: #fff !important;
  border: none;
  transition: all 0.2s ease;
}

.btn-brand:hover {
  background-color: var(--brand-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 34, 64, 0.2);
}

/* 카테고리 뱃지 공통 */
.badge-cate {
  background-color: #;
  color: #fff;
  font-weight: 600;
  padding: 0.6em 0.9em;
  border-radius: 6px;
}

.badge-cate.research {
  background-color: #16a085;
}

.badge-cate.creative {
  background-color: #8e44ad;
}


.badge-cate.honors {
  background-color: #00296f;
}


/* ==========================================================
       1. List Wraps Section (#list-wraps) - 가로형 리스트 UI
       ========================================================== */
#list-wraps .list-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* 리스트 간격 */
}

#list-wraps .gallery-list-item {
  display: flex;
  flex-direction: column;
  /* 모바일: 세로 배치 */
  border: 1px solid var(--border-color);
  /* 명확한 박스 경계 */
  border-radius: 12px;
  background: var(--bg-white);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  /*cursor: pointer;*/
}

/* 데스크톱/태블릿: 가로 배치 */
@media (min-width: 768px) {
  #list-wraps .gallery-list-item {
    flex-direction: row;
    align-items: stretch;
    /* 썸네일과 텍스트 영역 높이 맞춤 */
    min-height: 220px;
    /* 제목 길이에 따라 카드가 자연스럽게 늘어나도록 변경 (height -> min-height) */
  }
}

#list-wraps .gallery-list-item:hover {
  transform: translateY(-2px);
  border-color: #aaa;
  /* 호버 시 보더 살짝 진하게 */
  box-shadow: var(--hover-shadow);
}

#list-wraps .img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* 모바일용 비율 */
  overflow: hidden;
  background-color: #f8f9fa;
  position: relative;
}

@media (min-width: 768px) {
  #list-wraps .img-wrapper {
    width: 320px;
    /* 데스크톱 썸네일 고정 너비 */
    flex-shrink: 0;
    /* 이미지 영역 찌그러짐 방지 */
    aspect-ratio: auto;
    /* 높이는 flex align-items: stretch 에 의해 텍스트 영역 높이와 동일하게 자동 할당됨 */
  }
}

/* 이미지 왜곡 방지 및 줌 효과 */
#list-wraps .img-wrapper img {
  position: absolute;
  /* 부모 영역의 늘어난 높이에 완벽히 맞추기 위해 추가 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#list-wraps .gallery-list-item:hover .img-wrapper img {
  transform: scale(1.02);
}

#list-wraps .item-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  /* Flexbox 내부 텍스트 말줄임표 작동을 위한 필수 속성 */
  border-left: 1px solid #ddd;
}


@media (max-width: 768px) {
  #list-wraps .item-content {
    border-left: 0px solid #ddd;
    border-top: 1px solid #ddd;
  }
}

#list-wraps .content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

/* 긴 제목 처리 (말줄임표 해제 및 전체 노출) */
#list-wraps .work-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--text-main);
  word-break: keep-all;
  /* 한글 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
  /* 매우 긴 단어(영문 등)가 영역을 뚫고 나가지 않도록 처리 */
}

/* 리스트용 작품 요약글 */
#list-wraps .work-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
  /* 말줄임표 처리 (2줄) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#list-wraps .team-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: auto;
  /* 하단으로 밀어냄 */
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 1rem;
}


/* ==========================================================
       2. View Wraps Section (#view-wraps)
       ========================================================== */
#view-wraps .view-container {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 3rem;
  border: 1px solid var(--border-color);
  /* 뷰 화면도 명확한 경계 적용 */
}

/* 뷰 화면 헤더 영역 */
#view-wraps .view-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

/* 뷰 화면의 제목은 길어져도 다 보이도록 처리 */
#view-wraps .view-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 1.2rem 0;
  line-height: 1.3;
  color: var(--text-main);
  word-break: keep-all;
}

#view-wraps .meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

#view-wraps .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 메인 첨부 이미지 */
#view-wraps .main-image-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
  /* 뷰 썸네일에도 경계 추가 */
  background-color: #f8f9fa;
}

#view-wraps .main-image-wrapper img {
  width: 100%;
  height: auto;
  max-height:50vh;
  object-fit: contain;
  display: block;
}

/* 작품 요약글 */
#view-wraps .summary-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 3.5rem;
  white-space: pre-line;
  word-break: keep-all;
}

/* 섹션 타이틀 공통 (팀원, 첨부파일 등) */
#view-wraps .section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--text-main);
  /* 섹션 구분선 강화 */
  display: inline-flex;
}

/* 팀원 목록 리스트 */
#view-wraps .team-member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

#view-wraps .member-card {
  background: var(--bg-white);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  /* 명확한 경계 */
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background-color 0.2s;
}

#view-wraps .member-card:hover {
  background: #f8f9fa;
}

#view-wraps .member-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

#view-wraps .member-dept {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 첨부파일 리스트 */
#view-wraps .attachment-list {
  margin-bottom: 3rem;
}

#view-wraps .attachment-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s;
}

#view-wraps .attachment-item:hover {
  background-color: #f8f9fa;
  border-color: #ced4da;
}

#view-wraps .attachment-icon {
  font-size: 1.4rem;
  margin-right: 1rem;
  color: var(--brand-primary);
}

/* 반응형 여백 조정 */
@media (max-width: 768px) {
  #view-wraps .view-container {
    padding: 1.5rem;
  }

  #view-wraps .view-title {
    font-size: 1.75rem;
  }

  #list-wraps .work-title {
    font-size: 1.15rem;
  }
}



.card.awards-list {margin: 0 auto 30px;padding:30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card.awards-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);color:#000;
}

.card.awards-list .card-img-wrap {width: 100%; max-width: 450px; aspect-ratio: 16/9;position:relative;}
.card.awards-list .card-img-wrap span{position:absolute;top:0;left:0;padding:10px 16px;font-size:0.9rem;font-weight:700;line-height:1;color:#fff;background:#00296f;}

.awards-title {font-size:1.5rem;margin-bottom:18px;font-weight:700;line-height:1.3;
    display: -webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}
.awards-text {
    font-size:1rem;
    display: -webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.awards-team {margin-top:16px;font-weight:500;color:#00296f}


@media (max-width: 767.98px) {
  .awards-title {font-size:1.1rem;}
  .awards-text {
  font-size:0.875rem;
      -webkit-line-clamp:3;
  }
}


.honors.nav-pills .nav-link {
  color: var(--snu-gray);
  background-color: white;
  border-radius: 50px;
  padding: 0.6rem 1.8rem;
  margin: 0.3rem;
  font-weight: 600;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}
.honors.nav-pills .nav-link.active {
  background-color: var(--snu-dark) !important;
  color: #ffffff !important; /* 활성화 시 텍스트 명시성 확보 */
  border-color: var(--snu-dark) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.honors.nav-pills .nav-link:hover:not(.active) {
  border-color: var(--snu-orange);
  color: var(--snu-orange);
  background-color: #fffaf5;
}

@media (max-width: 767.98px) {
  .honors.nav-pills .nav-link {
    font-size:0.9rem;
    padding: 0.6rem 1.1rem;
    margin: 0.3rem;
  }
}


@media (min-width: 1500px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1460px;
  }
}



@media (min-width: 768px) {
  .board .search-select {
    min-width: 120px;
  }
  .board .search-input-group {
    width: 300px; /* PC 화면에서 인풋박스의 적당하고 깔끔한 너비 지정 */
  }
}