/* =========================================================
 * newsletter.css — 완전 자립형 뉴스레터 스타일
 * variables.css / reset_2026.css / style_2026.css 참조 없음
 * ========================================================= */

/* ═══════════════════════════════════════════════════════
   1. CSS 변수 (variables.css 인라인)
═══════════════════════════════════════════════════════ */
:root {
  --font-pretendard: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-15: 1.5rem;
  --fs-13: 1.3rem;
  --fs-125: 1.25rem;
  --fs-12: 1.2rem;
  --fs-11: 1.1rem;
  --fs-10: 1rem;
  --fs-09: 0.9rem;
  --fs-08: 0.8rem;

  --color-text: #363636;
  --color-border-light: #d9d9d9;
  --radius-sm: 4px;
  --radius-md: 8px;
}

@media (max-width: 768px) {
  :root {
    --fs-15: 1.3rem;
    --fs-13: 1.1rem;
    --fs-11: 0.9rem;
  }
}

/* ═══════════════════════════════════════════════════════
   2. 리셋 (reset_2026.css 인라인)
═══════════════════════════════════════════════════════ */
html, body, div, span, h1, h2, h3, h4, h5, h6, p,
a, img, ul, ol, li, nav, header, footer, main, section, article {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  text-decoration: none;
  line-height: 1.3;
}

header, footer, main, nav, section, article { display: block; }

ul, ol { list-style: none; }

table { border-collapse: collapse; border-spacing: 0; }

a { color: #000; text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   3. 기본 전역 (style_2026.css 기반)
═══════════════════════════════════════════════════════ */
* {
  box-sizing: border-box;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  letter-spacing: -0.02em;
}

body {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #444;
  background-color: #f4f4f4;
  visibility: hidden;
}

body.loaded {
  visibility: visible;
}

p { font-size: 1.3rem; line-height: 1.6; color: #444; }

.hidden { display: none !important; }

/* 배경 이미지 공통 유틸 */
.section-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ═══════════════════════════════════════════════════════
   4. 섹션 공통 (style_2026.css 재정의)
═══════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-block {
  margin-bottom: 5rem;
}

.section-block:last-child {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #00093e;
  white-space: nowrap;
  border-bottom: 3px solid #f07030;
  padding-bottom: 0.2rem;
}

.section-desc {
  color: #353535;
  font-size: 1.1rem;
  font-weight: 700;
  word-break: keep-all;
}

/* ═══════════════════════════════════════════════════════
   5. 그리드 (style_2026.css 재정의)
═══════════════════════════════════════════════════════ */
.section-1-list {
  display: grid;
  gap: 1.25rem;
}

.section-2-grid {
  display: grid;
  gap: 1rem;
}

.section-3-grid {
  display: grid;
  gap: 1.25rem;
}

.section-4-grid {
  display: grid;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════
   6. 카드 스타일 (hover 없음, style_2026.css 재정의)
═══════════════════════════════════════════════════════ */

/* ── card-01 ── */
.card-01 {
  padding: 20px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e4e4;
}

.card-01__title {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.card-01__desc {
  word-break: keep-all;
  font-size: var(--fs-12);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-01__thumb {
  width: 100%;
  height: 20rem;
  margin-top: auto;
}

/* ── card-02 ── */
.card-02 {
  padding: 0.5rem;
  height: 24rem;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* 하단 그라디언트 — 텍스트 가독성 확보 */
.card-02::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.card-02__title {
  width: 100%;
  padding: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  margin-top: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.card-02__desc {
  padding-left: 15px;
  padding-right: 15px;
  color: #fff;
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 1;
  line-height: 1.4;
  word-break: keep-all;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1.4em * 2.5);
}

/* ── card-03 ── */
.card-03 {
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-03__thumb {
  width: 100%;
  height: 18rem;
  border-bottom: 1px solid #e0e0e0;
}

.card-03__body {
  padding: 1.25rem;
  background-color: #fff;
  flex: 1;
}

.card-03__title {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a1a1a;
  word-break: keep-all;
  line-height: 1.3;
}

.card-03__desc {
  color: #5c5c5c;
  line-height: 1.3;
  font-size: var(--fs-11);
  word-break: keep-all;
}

/* ── card-04 ── */
.card-04 {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
}

.card-04__thumb {
  width: 50%;
  height: 15rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
}

.card-04__body {
  padding: 1.25rem;
}

.card-04__title {
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: #0031b5;
}

.card-01__desc,
.card-02__desc,
.card-03__desc,
.card-04__desc {
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   7. 전체 래퍼
═══════════════════════════════════════════════════════ */
.nl-wrap {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════
   8. 헤더
═══════════════════════════════════════════════════════ */
.nl-header {
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
}

/* 1단: 로고 / 호수·날짜 */
.nl-header__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.nl-header__logo-link {
  display: inline-flex;
  align-items: center;
}

.nl-header__logo {
  height: 36px;
  width: auto;
}

.nl-header__vol {
  font-size: 1.3rem;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}

/* 2단: 웹진 제목 */
.nl-header__title-wrap {
  padding: 1.4rem 2rem 1.2rem;
  text-align: center;
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
  border-top: 1px solid #e8e8e8;
}

.nl-header__title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* 3단: 내비게이션 */
.nl-header__nav {
  background-color: #fff;
}

.nl-header__nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nl-header__nav-list li {
  position: relative;
}

.nl-header__nav-list a {
  display: block;
  padding: 0.9rem 1.6rem;
  color: #444;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   9. 고정 배너
═══════════════════════════════════════════════════════ */
.nl-banner {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.nl-banner__bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.nl-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 9, 62, 0.72) 0%,
    rgba(0, 9, 62, 0.3) 100%
  );
}

.nl-banner__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
}

.nl-banner__title {
  color: #fff;
  font-weight: 700;
  font-size: 2.8rem;
  word-break: keep-all;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.nl-banner__desc {
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  word-break: keep-all;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* ═══════════════════════════════════════════════════════
   10. 콘텐츠 본문
═══════════════════════════════════════════════════════ */
.nl-content {
  padding: 5rem 2rem 2rem;
}

/* ═══════════════════════════════════════════════════════
   11. 푸터
═══════════════════════════════════════════════════════ */
.nl-footer {
  background-color: #292929;
}

.nl-footer__inner {
  display: flex;
  align-items: center;
  gap: 7rem;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nl-footer__logo-link {
  flex-shrink: 0;
}

.nl-footer__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nl-footer__info {
  flex: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.8;
}

.nl-footer__info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

.btn-gudok {
  flex-shrink: 0;
  align-self: center;
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #292929;
  border: 1px solid #6d6d6d;
  color: #fff;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   12. 반응형
/* ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nl-header__topbar {
    padding: 0.8rem 1rem;
  }

  .nl-header__logo {
    height: 28px;
  }

  .nl-header__vol {
    font-size: 1.1rem;
  }

  .nl-header__title-wrap {
    padding: 1rem 1rem 0.8rem;
  }

  .nl-header__title {
    font-size: 1.8rem;
  }

  .nl-header__nav-list a {
    padding: 0.7rem 0.8rem;
    font-size: 1.1rem;
  }

  .nl-banner {
    height: 280px;
  }

  .nl-banner__text {
    padding: 0 1.5rem;
  }

  .nl-banner__title {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
  }

  .nl-banner__desc {
    font-size: 1.2rem;
  }

  .nl-content {
    padding: 3rem 1rem 1rem;
  }

  .section-block {
    margin-bottom: 3.5rem;
  }

  .section-header {
    display: block;
    margin-bottom: 1rem;
  }

  .section-desc {
    display: none;
  }

  .section-1-list,
  .section-2-grid,
  .section-3-grid,
  .section-4-grid {
    grid-template-columns: 1fr !important;
  }

  .card-01 {
    padding: 20px 0;
    border: 0;
  }

  .card-04 {
    flex-direction: column;
  }

  .card-04__thumb {
    width: 100%;
    height: 13rem;
  }

  .nl-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }

  .nl-footer__info {
    text-align: center;
    width: 100%;
  }

  .btn-gudok {
    align-self: auto;
  }
}
