/* column.css - 칼럼 페이지 스타일 */
/* 이 CSS는 칼럼 페이지 전용이며, 서브 헤더 스타일을 변경하지 않습니다 */

/* 서브 헤더 스타일은 sub-header.css에서만 정의합니다 */
/* 컨테이너 및 제목 스타일은 sub-header.css에서 처리합니다 */

body {
  font-family: 'Pretendard', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;
} 

/* h1 스타일은 sub-header.css에서 통일되어 적용됩니다 */

/* 칼럼 페이지 히어로 영역 */
.column-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3455b5 100%);
  padding: 100px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.column-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: none;
  opacity: 0.1;
  z-index: 1;
}

.column-hero-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.column-hero-text {
  max-width: 800px;
}

.pre-title {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.column-section h2 {
  font-size: 4.8rem;
  font-weight: 700;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #000, #333);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.column-section h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 4px;
  background: #0033cc;
}

.column-hero h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.column-hero p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.9;
  margin: 0;
}

/* 칼럼 카테고리 */
.column-category {
  display: flex;
  margin: 60px 0 40px;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-btn {
  padding: 10px 22px;
  background-color: #f5f5f7;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-btn:hover, .category-btn.active {
  background-color: #1e3a8a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

/* 칼럼 검색 영역 */
.column-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.search-box {
  display: flex;
  align-items: center;
  width: 350px;
  background: white;
  border: 1px solid #eee;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #1e3a8a;
  box-shadow: 0 2px 15px rgba(30, 58, 138, 0.1);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  outline: none;
  color: #333;
}

.search-box button {
  background: none;
  border: none;
  color: #777;
  padding: 0 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-box button:hover {
  color: #1e3a8a;
}

.column-count {
  font-size: 0.95rem;
  color: #666;
}

.column-count strong {
  color: #1e3a8a;
  font-weight: 600;
}

/* 칼럼 그리드 */
.column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 50px 40px;
  justify-items: center;
}

.column-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 80px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

/* 선택된 칼럼 강조 스타일 */
.column-item.active {
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.2);
  transform: translateY(-5px);
  border: 2px solid #1e3a8a;
}

.column-item:hover {
  transform: translateY(-10px);
}

.column-item .thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  aspect-ratio: 16/10;
}

.column-item .thumb-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
  opacity: 0.7;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.column-item:hover .thumb-wrap::before {
  opacity: 0.5;
}

.column-item .thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0px solid #1e3a8a;
  border-radius: 20px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}

.column-item:hover .thumb-wrap::after {
  border-width: 3px;
  opacity: 0.4;
}

.column-item .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.8s ease;
  display: block;
  filter: saturate(1.1);
}

.column-item:hover .thumb-wrap img {
  transform: scale(1.08) rotate(-1deg);
}

.info-bar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 12px;
  position: relative;
}

.badge {
  background-color: #0c3694;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 30px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(12, 54, 148, 0.2);
  position: absolute;
  top: -70px;
  left: 15px;
  z-index: 3;
  transition: all 0.3s ease;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.column-item:hover .badge {
  background-color: #0a2a6e;
  box-shadow: 0 6px 15px rgba(12, 54, 148, 0.25);
}

.title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  line-height: 1.5;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.column-item:hover .title {
  color: #1e3a8a;
}

.column-date {
  color: #777;
  font-size: 0.9rem;
  font-weight: 500;
  position: absolute;
  bottom: 15px;
  right: 15px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-top: 8px;
  overflow: hidden;
  display: -webkit-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.read-more {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-top: 10px;
  text-decoration: none;
}

.read-more svg, .read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.column-item:hover .read-more svg,
.column-item:hover .read-more i {
  transform: translateX(4px);
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 100px;
  gap: 8px;
}

.page-btn {
  border: none;
  background: #eee;
  color: #555;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #ddd;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-number {
  border: none;
  background: none;
  color: #555;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-number:hover {
  background: #eee;
}

.page-number.active {
  background: #1e3a8a;
  color: white;
}

/* 추천 칼럼 영역 */
.recommended-columns {
  background: #f0f4ff;
  padding: 100px 0;
  margin-bottom: 0px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1e3a8a;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 4px;
  color: #555;
  margin: 0 0 50px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.recommended-item {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.recommended-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.recommended-badge {
  display: inline-block;
  background: #1e3a8a;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.recommended-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 15px;
  color: #222;
  line-height: 1.4;
}

.recommended-item p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 25px;
  line-height: 1.6;
}

.recommended-item .read-more {
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.recommended-item:hover .read-more i {
  transform: translateX(4px);
}

/* 칼럼 상세 디자인 */
.column-detail {
  max-width: 800px;
  margin: 120px auto;
  background-color: white;
  padding: 60px 50px 70px;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  display: block;
}

.column-header {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

.column-header .category {
  color: #1e3a8a;
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin-bottom: 10px;
}

.column-header .title {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #000;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.column-meta {
  display: flex;
  gap: 20px;
  color: #777;
  font-size: 0.9rem;
}

.column-meta span {
  display: flex;
  align-items: center;
}

.column-meta svg {
  margin-right: 5px;
}

.column-detail-inner p {
  line-height: 1.9;
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: #333;
}

.column-detail-inner ul {
  padding-left: 20px;
  margin-bottom: 30px;
}

.column-detail-inner ul li {
  margin-bottom: 12px;
  line-height: 1.7;
  position: relative;
  padding-left: 20px;
}

.column-detail-inner ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1e3a8a;
  font-weight: bold;
}

.column-detail-inner h3 {
  font-size: 1.6rem;
  margin-top: 45px;
  margin-bottom: 20px;
  color: #111;
  font-weight: 700;
}

.column-detail-inner img {
  width: 100%;
  border-radius: 16px;
  margin: 25px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.column-detail-inner blockquote {
  border-left: 4px solid #1e3a8a;
  padding: 20px 25px;
  margin: 30px 0;
  background-color: #f8f9ff;
  font-style: italic;
  color: #444;
  border-radius: 0 8px 8px 0;
}

.post-footer-nav {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.post-nav-item {
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.post-nav-item:hover {
  transform: translateX(5px);
}

.post-nav-item .icon {
  display: inline-block;
  margin-right: 10px;
  color: #1e3a8a;
  font-weight: bold;
}

.post-nav-item a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.post-nav-item a:hover {
  color: #1e3a8a;
}

.back-to-list-wrap {
  text-align: center;
  margin-top: 20px;
}

.back-to-list-btn {
  display: inline-block;
  padding: 12px 35px;
  background-color: #1e3a8a;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-list-btn:hover {
  background-color: #152a5f;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
}

/* 미디어 쿼리 - 반응형 */
@media (max-width: 1200px) {
  .column-hero h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .column-hero {
    padding: 70px 0;
  }
  
  .column-hero h1 {
    font-size: 2.5rem;
  }
  
  .column-search {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  h1 {
    font-size: 3rem;
    margin-top: 100px;
    margin-bottom: 40px;
  }
  
  .column-grid {
    grid-template-columns: 1fr;
  }
  
  .column-detail {
    padding: 70px 20px 40px;
  }
  
  .column-detail-inner h2 {
    font-size: 1.8rem;
  }
  
  .recommended-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* survey 섹션의 h1에는 after 가상 요소 제거 */
.hero-text h1::after {
  display: none;
}

/* 메인페이지 칼럼 섹션 스타일 */
.column-section .container {
  padding: 0;
  max-width: 100%;
}





