/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 페이지 헤더 */
.page-header {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.page-title {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 18px;
  color: #666;
}

.section-title {
  color: var(--color-primary-yellow);
}

/* 유튜브 섹션 */
.youtube-section {
  padding: 80px 0;
  background: #fff;
}

.youtube-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}

.youtube-videos {
  display: flex;
  transition: transform 0.3s ease;
}

.youtube-video-item {
  min-width: 300px;
  margin-right: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.youtube-video-item:hover {
  transform: translateY(-5px);
}

.youtube-thumbnail {
  width: 100%;
  height: 169px;
  object-fit: cover;
}

.youtube-video-info {
  padding: 12px 16px;
}

.youtube-video-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.youtube-video-date {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.youtube-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.youtube-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.youtube-prev {
  left: 10px;
}

.youtube-next {
  right: 10px;
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-wrapper.menu-open .site-content {
    transform: translateY(500px);
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .main-navigation > ul > li {
    border-bottom: 1px solid #eee;
  }

  .main-navigation a {
    display: block;
    padding: 1rem 0;
  }

  .submenu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin: 0.5rem 0;
  }

  .submenu a {
    padding-left: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .youtube-carousel {
    padding: 0 50px;
  }

  /* 푸터 모바일 반응형 */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    margin-left: 0;
  }

  .footer-logos {
    justify-content: center;
  }

  .footer-info {
    text-align: center;
    max-width: none;
  }

  .footer-info p {
    text-align: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.youtube-channel-link {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto 0;
  padding: 15px;
  background: #f4e9c1;
  border-radius: 8px;
}

.youtube-channel-link a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.youtube-channel-link a:hover {
  color: #000;
}
