@charset "utf-8";

/* hosting 톤과 비슷한 그린 계열 토큰 */
:root{
  --sp-green: #2f6f6a;
  --sp-green-dark: #244f4b;
  --sp-green-soft: #e6f1ef;

  --sp-ink: #111;
  --sp-text: #374151;
  --sp-muted: #6b7280;

  --sp-line: #e6ecec;
  --sp-card: #ffffff;
}

/* =========================
   Section Head (공통)
========================= */
.spam-section-head{
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 18px;
  text-align: center;
}

.spam-kicker{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(230,241,239,0.7);
  color: var(--sp-green);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
  margin: 0 0 10px;
}

.spam-h3{
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.4px;
}

.spam-sub{
  margin: 10px 0 0;
  color: var(--sp-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
}

/* =========================
   1) Intro Box
   - 90% 폭
   - 큰글씨 아래 구분선
   - 같은 박스 안에 설명
========================= */
.spam-intro{
  margin: 70px auto 0;
  padding: 0 14px;
}

.spam-intro-box{
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--sp-card);
  border: 1px solid rgba(47,111,106,0.18);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 10px 24px rgba(36,79,75,0.06);
}

.spam-intro-title{
  margin: 0 0 14px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.4px;
}

.spam-intro-lead{
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  color: #1f2a2a;
  line-height: 1.65;
  word-break: keep-all;
  padding : 20px 0;
}

.spam-intro-lead p{ margin: 0; }

.spam-intro-divider{
  height: 1px;
  width: 100%;
  margin: 16px 0 14px;
  background: rgba(47,111,106,0.18);
}

.spam-intro-desc{
  color: var(--sp-text);
  padding-top: 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
  word-break: keep-all;
}

.spam-intro-desc p{ margin: 0; }
.spam-intro-desc b{ color:#111827; font-weight: 900; }

/* =========================
   2) Features 6
========================= */
.spam-features{
  margin: 70px auto 0;
  padding: 30px 14px 20px;
}

.spam-feature-grid{
  width: 90%;
  max-width: 1200px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
}

.spam-feature-card{
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(36,79,75,0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.spam-feature-card:hover{
  transform: translateY(-2px);
  border-color: rgba(47,111,106,0.35);
  box-shadow: 0 14px 32px rgba(36,79,75,0.10);
}

.spam-ico{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(230,241,239,0.8);
  color: var(--sp-green);
  display: grid;
  place-items: center;
}

.spam-ico svg{
  width: 22px;
  height: 22px;
}

.spam-feature-title{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.3px;
}

.spam-feature-desc{
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.7;
  word-break: keep-all;
}

/* =========================
   4) Need (디자인 강화)
========================= */
.spam-need{
  margin: 70px auto 0;
  padding: 0 14px 110px;
}

.spam-need-inner{
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--sp-line);
  padding-top: 50px;
}

.spam-need-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.need-card{
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(36,79,75,0.06);
}

.need-card h4{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.25px;
}

.need-card p{
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.7;
  word-break: keep-all;
}

.spam-need-banner{
  margin-top: 18px;
  border: 1px solid rgba(47,111,106,0.18);
  background: rgba(230,241,239,0.6);
  border-radius: 16px;
  padding: 16px 16px;
  text-align: center;
  line-height: 1.65;
}

.spam-need-banner strong{
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--sp-green-dark);
}

.spam-need-banner span{
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px){
  .spam-h3{ font-size: 24px; }
  .spam-feature-grid{ grid-template-columns: 1fr; }
  .spam-need-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .spam-intro-box,
  .spam-section-head,
  .spam-feature-grid,
  .spam-need-inner{
    width: 100%;
  }

  .spam-intro-title{ font-size: 22px; }
  .spam-intro-lead{ font-size: 15px; }
  .spam-sub{ font-size: 15px; }
}

/* =========================
   Intro Split (좌 이미지 / 우 카드)
========================= */
.spam-intro{
  margin: 70px auto 0;
  padding: 0 14px;
}

/* 타이틀이 박스 밖이므로 여백만 정리 */
.spam-intro .spam-section-head{
  margin-bottom: 18px;
}

/* ✅ 2분할 래퍼 */
.spam-intro-split{
  width: 100%;
  max-width: 1200px;
  padding-top: 30px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr; /* 좌 이미지 / 우 카드 비율 */
  gap: 18px;
  align-items: stretch;
}

/* 왼쪽 이미지 카드 */
.spam-intro-media{
  background: #fff;  
  overflow: hidden;
  min-height: 260px; /* 높이 확보(필요시 조절) */
  display: flex;
}

.spam-intro-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 오른쪽 기존 카드 폭을 100%로(기존 90% 설정 무시) */
.spam-intro-box{
  width: 100%;
  max-width: none;
  margin: 0;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px){
  .spam-intro-split{
    grid-template-columns: 1fr; /* 태블릿/모바일은 세로 스택 */
    width: 100%;
  }
  .spam-intro-media{
    min-height: 220px;
  }
}

@media (max-width: 768px){
  .spam-intro-media{
    min-height: 200px;
  }
}

/* =========================
   Text wrapping fix (카드 글 자연 줄바꿈)
   - 하이픈(-) 자동 삽입 없음
   - 한글은 단어 단위 유지
   - 영문/숫자/긴 토큰은 영역 밖으로 튀지 않게 처리
========================= */

/* 카드/그리드 내부에서 텍스트가 튀는 걸 막는 기본값 */
.spam-intro-box,
.spam-feature-card,
.need-card,
.ar-info-card { /* 다른 페이지 카드도 같이 쓸 경우 */
  min-width: 0; /* grid/flex 환경에서 매우 중요 */
}

/* 카드 안 텍스트 공통 줄바꿈 규칙 */
.spam-intro-lead,
.spam-intro-desc,
.spam-feature-desc,
.need-card p,
.spam-need-banner span,
.spam-need-banner strong {
  white-space: normal;        /* nowrap 방지 */
  word-break: keep-all;       /* 한글 단어 유지 */
  overflow-wrap: anywhere;    /* 긴 영문/숫자/토큰(예: DDoSAttack)도 잘리기 전에 줄바꿈 */
  word-wrap: break-word;      /* 구형 브라우저 대응 */
  hyphens: none;              /* 하이픈 자동 삽입 금지 */
}

/* 혹시 상위 공통 CSS에서 p에 nowrap/letter-spacing 등을 강제할 때 대비 */
.spam-feature-desc,
.need-card p,
.spam-intro-desc p {
  max-width: 100%;
}

/* 본문(소개 설명)은 영문을 가능하면 단어 단위로 줄바꿈 */
.spam-intro-desc,
.spam-intro-desc p{
  overflow-wrap: break-word;  /* anywhere -> break-word */
  word-break: keep-all;
  hyphens: none;
}
