/* 1. 스코프 스위치: 홈에서는 기업 헤더 노출, 블로그 헤더 숨김 */
#blog-header { display: none !important; }
#corp-header { display: block !important; }

/* 2. 기업 헤더 디자인 (블로그 헤더와 동일한 블러 효과 및 간격 적용) */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaeaea;
  z-index: 9999;
}
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.logo a { 
  font-size: 1.4rem; font-weight: 800; color: #111; text-decoration: none; 
  letter-spacing: -0.5px;
}
.nav-desktop { display: flex; gap: 30px; align-items: center; }
.nav-btn { 
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: #555; 
  text-decoration: none; text-transform: uppercase; transition: color 0.2s; 
}
.nav-btn:hover { color: #2563eb; }

.nav-right { display: flex; }
.btn-blog {
  padding: 8px 22px; background-color: #111; color: #fff !important;
  border-radius: 20px; text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: transform 0.2s, background-color 0.2s;
}
.btn-blog:hover { background-color: #333; transform: translateY(-2px); }

/* 기업 모바일 메뉴 초기 숨김 */
.mobile-toggle, .nav-mobile { display: none; }

/* 기업 모바일 반응형 */
@media (max-width: 768px) {
  .nav-desktop, .nav-right { display: none; }
  .mobile-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; width: 30px; height: 30px; padding: 0;
  }
  .mobile-toggle span { display: block; width: 25px; height: 2px; background: #111; transition: all 0.3s ease; }
  .nav-mobile {
    position: absolute; top: 70px; left: 0; width: 100%;
    background: #fff; flex-direction: column; padding: 10px 0 20px;
    border-bottom: 1px solid #eee; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }
  .nav-mobile.active { display: flex; }
  .nav-mobile .nav-btn { 
    padding: 15px 20px; border-bottom: 1px solid #f9f9f9; width: 100%; 
    text-align: left; font-size: 1rem;
  }
  .mobile-blog { margin: 20px 20px 0; text-align: center; display: block; }
}
/* =========================================================
   에디터 픽: 매거진 히어로 레이아웃 (PC & 모바일)
========================================================= */
/* PC 데스크톱 뷰 (그리드 레이아웃) */
.mag-desktop-view {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 좌측 66%, 우측 33% */
  gap: 24px;
}

/* 좌측 커다란 메인 화면 */
.mag-main-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  text-decoration: none;
  display: block;
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease-in-out;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
/* 어두운 반투명 그라데이션 */
.mag-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 50px 30px 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.mag-badge {
  align-self: flex-start;
  background: #2563eb;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.mag-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.4;
  color: #fff;
}
.mag-excerpt {
  font-size: 1rem;
  color: #e5e7eb;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* 우측 작은 리스트 화면 */
.mag-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mag-list-item {
  display: flex;
  gap: 15px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background: #fff;
  border: 1px solid transparent;
}
.mag-list-item:hover, .mag-list-item.active {
  background: #f8f9fa;
  border-color: #eaeaea;
}
.mag-list-thumb {
  width: 110px;
  height: 80px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.mag-list-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mag-list-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.mag-list-date { font-size: 0.8rem; color: #888; }

/* 모바일 뷰 (가로 슬라이드 스와이프) */
.mag-mobile-view { display: none; }

@media (max-width: 900px) {
  .mag-desktop-view { display: none; } /* PC 화면 숨김 */
  .mag-mobile-view {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* 자석처럼 칸에 착착 붙음 */
    gap: 16px;
    padding-bottom: 20px;
    scrollbar-width: none;
  }
  .mag-mobile-view::-webkit-scrollbar { display: none; }
  
  .mag-mobile-card {
    min-width: 85vw; /* 화면의 85% 차지 */
    height: 380px;
    scroll-snap-align: center;
  }
  .mag-title { font-size: 1.5rem; }
}