/* hehe.css */
.paper {
    max-width: 1000px;
    margin: 100px auto 0; /* Add top margin to account for fixed header */
    padding: 3rem;
    background-color: #111;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23111111"/><path d="M0 0l100 100M100 0L0 100" stroke="%23222222" stroke-width="0.5"/></svg>');
    background-size: 10px 10px;
}

.paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.02) 75%);
    background-size: 20px 20px;
    pointer-events: none;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    display: inline-block;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.polaroid {
    background: #222;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: block;
    margin: 1rem;
    transition: all 0.3s ease;
    position: relative;
    width: calc(100% - 2rem);
}

.polaroid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 6L6 18M6 6l12 12" stroke="%23fff" stroke-width="2"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.2;
}

.polaroid img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin-bottom: 1rem;
}

.polaroid .caption {
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-weight: 500;
}

.info-box {
    background: #222;
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: calc(100% - 2rem);
}

.info-box h2 {
    padding: 1rem;
    color: #fff;
}

.course-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

.learning-path {
    display: flex;
    gap: 1rem;
    margin: 2rem 1rem;
    flex-wrap: wrap;
}

.path-step {
    flex: 1;
    min-width: 200px;
    background: #222;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-left: 4px solid var(--primary);
}

.path-step h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.path-step p {
    color: #ccc;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    opacity: 0.8;
}

.faq-section {
    margin: 2rem 1rem;
}

.faq-section h2 {
    color: #fff;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.faq-question {
    cursor: pointer;
    padding: 1rem;
    font-weight: 500;
    color: #fff;
}

.faq-answer {
    display: none;
    padding: 1rem;
    background: #222;
    border-radius: 0 0 8px 8px;
    color: #ccc;
}

@media (max-width: 768px) {
    .paper {
        padding: 1.5rem;
        margin-top: 80px; /* Adjust top margin for mobile */
    }

    .polaroid {
        margin: 1rem 0;
    }

    .learning-path {
        flex-direction: column;
    }
}

/* Studies 네비게이션 재디자인 */
.studies-nav {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 배경 패턴 추가 */
.studies-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23111111"/><path d="M0 0l100 100M100 0L0 100" stroke="%23222222" stroke-width="0.5"/></svg>');
  background-size: 10px 10px;
  opacity: 0.5;
  pointer-events: none;
}

.studies-nav .inner {
  max-width: 1400px;  /* 최대 너비 증가 */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.6rem;  /* 간격 살짝 증가 */
  padding: 1rem 2rem;  /* 좌우 패딩 증가 */
  position: relative;
}

.studies-nav a {
  color: #666666 !important;
  font-size: 0.95rem;
  font-size: 0.9rem;
    padding: 0.5rem 1.5rem;  /* 좌우 패딩 대폭 증가 */
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  white-space: nowrap;  /* 텍스트 개행 방지 */
}

.studies-nav a:hover {
  color: #999999 !important;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.studies-nav a.active {
  color: var(--accent) !important;
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.2);
}

/* 반응형 디자인 수정 */
@media (max-width: 1200px) {  /* 브레이크포인트 증가 */
  .studies-nav .inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .studies-nav a {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
  }
}