/* ============================================
   포스텍 스타일 홈페이지 CSS
   ============================================ */

/* 폰트 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&display=swap');

/* 기본 변수 */
:root {
  --primary-color: #003366;
  --accent-color: #0066cc;
  --gold-color: #c9a227;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
}

/* 히어로 섹션 */
.hero-visual {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-visual video,
.hero-visual .hero-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--gold-color);
  color: #1a1a2e;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 스크롤 다운 인디케이터 */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 25px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

/* 메인 헤더 */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.main-header.scrolled {
  background: white;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.main-header .logo-text {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 메가 메뉴 */
.mega-nav {
  display: flex;
  gap: 0;
}

.mega-nav > li {
  position: relative;
}

.mega-nav > li > a {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.mega-nav > li > a:hover,
.mega-nav > li.active > a {
  color: var(--accent-color);
  background: linear-gradient(to bottom, transparent, rgba(0,102,204,0.05));
  border-bottom-color: var(--accent-color);
}

/* 뉴스 카드 슬라이더 */
.news-section {
  padding: 6rem 0;
  background: white;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gold-color);
  border-radius: 2px;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-card .card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-image img {
  transform: scale(1.1);
}

.news-card .card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
}

.news-card .card-body {
  padding: 1.5rem;
}

.news-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-date {
  font-size: 0.85rem;
  color: #888;
}

/* 통계 섹션 */
.stats-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.stat-sublabel {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* 프로그램 섹션 */
.programs-section {
  padding: 6rem 0;
  background: var(--light-bg);
}

.program-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid #eee;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.program-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-color), #0099ff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.program-icon i {
  font-size: 1.75rem;
  color: white;
}

.program-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.program-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

/* 마퀴 텍스트 */
.marquee-section {
  padding: 3rem 0;
  background: #1a1a2e;
  overflow: hidden;
}

.marquee-container {
  display: flex;
  animation: marquee 30s linear infinite;
}

.marquee-text {
  display: flex;
  white-space: nowrap;
}

.marquee-text span {
  font-size: 3rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  padding: 0 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 푸터 */
.main-footer {
  background: #0a0a14;
  color: white;
  padding-top: 4rem;
}

.footer-top {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-color);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--gold-color);
  transform: translateY(-3px);
}

/* 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 25px;
  }
}

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

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* 라인 클램프 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 반응형 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .marquee-text span {
    font-size: 2rem;
  }
}

