/* NetScaler.php(NetScaler.css)와 동일한 컬러 팔레트로 통일 */
:root {
  --aps-text: #222222;
  --aps-muted: #565b62;
  --aps-line: #c9cdd2;
  --aps-teal: #00687b;
  --aps-teal-deep: #004f5e;
  --aps-gray-bg: #f3f3f3;
  --aps-blue-light: #b5e3ff;
  --aps-max: 1200px;
}

.aps-page {
  overflow: hidden;
  color: var(--aps-text);
  background: #fff;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  word-break: keep-all;
}

.aps-page *,
.aps-page *::before,
.aps-page *::after {
  box-sizing: border-box;
}

.aps-page h1,
.aps-page h2,
.aps-page h3,
.aps-page h4,
.aps-page p {
  margin-top: 0;
  letter-spacing: 0;
}

.aps-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.aps-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aps-container {
  width: min(calc(100% - 48px), var(--aps-max));
  margin: 0 auto;
}

.aps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aps-teal);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

/* Hero : 원본 페이지 구조 재현 — 사진 밴드(틴트 없음) + 좌측 하단에 겹쳐지는 진한 틸 패널, 전체는 연한 블루 배경 */
.aps-hero-wrap {
  position: relative;
  padding-bottom: 56px;
  background: var(--aps-blue-light);
}

.aps-hero-photo {
  height: 460px;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.aps-hero-panel {
  position: relative;
  max-width: 640px;
  margin-top: -170px;
  padding: 48px 52px;
  color: #fff;
  background: var(--aps-teal-deep);
}

.aps-hero-eyebrow {
  margin: 0 0 16px;
  color: var(--aps-blue-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aps-hero-panel h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.28;
}

.aps-hero-lead {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.aps-hero-intro {
  max-width: 760px;
  padding-top: 40px;
}

.aps-hero-intro p {
  margin: 0;
  color: var(--aps-text);
  font-size: 17px;
  line-height: 1.8;
}

/* Executive summary : 흰 배경 위에 옅은 회색 카드로 구성 */
.aps-summary {
  padding: 80px 0;
  background: #fff;
}

.aps-summary-inner {
  max-width: 900px;
}

.aps-summary h2 {
  margin: 0 0 32px;
  color: var(--aps-text);
  font-size: 32px;
  line-height: 1.35;
}

.aps-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.aps-summary-list li {
  position: relative;
  padding: 28px 28px 28px 56px;
  border-radius: 10px;
  background: var(--aps-gray-bg);
  color: var(--aps-text);
  font-size: 16px;
  line-height: 1.7;
}

.aps-summary-list li::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aps-teal);
}

/* 구분용 배경 사진 : 틴트 없이 그대로, 텍스트 없는 순수 디바이더 */
.aps-divider-photo {
  height: 300px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Benefits : 회색 밴드 위에 흰 카드로 얹힌 그룹 타이틀 + 좌우 교차 행 (두 그룹 공용) */
.aps-benefits {
  padding-bottom: 24px;
  background: #f3f3f3;
}

.aps-benefits-alt {
  background: var(--aps-gray-bg);
}

.aps-benefits-band {
  padding: 48px 0 48px;
  background: var(--aps-gray-bg);
}

.aps-benefits-head {
  position: relative;
  max-width: 840px;
  width: 100%;
  padding: 40px 0px;
  background: #fff;
}

/* 두 번째(회색, 사진 없는) Benefits 그룹의 카드도 첫 번째 그룹처럼 흰 배경이
   화면 왼쪽 끝까지 이어지도록 한다. 다만 이쪽은 사진과 겹칠 필요가 없어서
   (position:absolute 로 flow에서 빼지 않고) 카드는 원래 자리에 그대로 두고,
   왼쪽으로 흰 배경만 화면 끝까지 채워주는 가짜 배경(pseudo-element)을 붙인다.
   → 텍스트 위치는 전혀 안 바뀌고(다른 섹션과 이미 grid 정렬 맞음), 배경만 이어짐 */
.aps-benefits-alt .aps-benefits-head::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background: #fff;
}

/* 첫 번째 Benefits 그룹만 바로 위 구분 사진(.aps-divider-photo)과 이어지므로,
   원본처럼 흰 카드가 그 사진 위로 실제로 겹쳐 올라가도록 처리.
   주의: 카드를 감싼 .aps-benefits-band가 section의 첫 자식이라, 카드에 음수
   margin-top만 주면 마진이 상위(container→band→section)로 collapse되어 버려서
   밴드(회색 배경) 전체가 함께 밀려 올라갈 뿐 카드는 사진과 겹치지 않는 문제가 있었음.
   그래서 카드만 절대 위치로 빼서 밴드는 사진 바로 아래 고정하고, 카드만 그 위로 띄운다. */
.aps-divider-photo + .aps-benefits .aps-benefits-band {
  position: relative;
  padding-top: 0;
  padding-bottom: 80px;
}

.aps-divider-photo + .aps-benefits .aps-benefits-head {
  position: absolute;
  top: -84px;
  left: 0;
  /* 카드 배경(흰 박스)은 화면 왼쪽 끝부터 이어지되, 안쪽 텍스트 시작점은
     다른 섹션의 .aps-container 텍스트 시작점(그리드 좌측 여백)과 맞춤 */
  padding-left: max(24px, calc((100% - var(--aps-max)) / 2));
}

.aps-benefits-eyebrow {
  margin: 0 0 12px;
  color: var(--aps-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aps-benefits-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
}

.aps-benefits > .aps-container {
  padding-top: 40px;
}

.aps-benefit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--aps-line);
}

.aps-benefit-row:last-child {
  border-bottom: 0;
}

.aps-benefit-row.is-reverse .aps-benefit-media {
  order: -1;
}

.aps-benefit-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.aps-benefit-copy h3 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.4;
}

.aps-benefit-copy p {
  margin: 0 0 20px;
  color: var(--aps-muted);
  font-size: 18px;
  line-height: 1.8;
}

.aps-benefit-links li {
  margin: 0 0 10px;
}

.aps-benefit-links li:last-child {
  margin-bottom: 0;
}

.aps-benefit-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aps-teal);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

/* Other solutions : 2개 카드 */
.aps-solutions {
  padding: 100px 0;
  background: #fff;
}

.aps-solutions-eyebrow {
  margin: 0 0 10px;
  color: var(--aps-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aps-solutions h2 {
  margin: 0 0 40px;
  font-size: 32px;
  line-height: 1.35;
}

.aps-solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.aps-solution-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--aps-line);
  border-radius: 10px;
}

.aps-solution-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.aps-solution-body {
  padding: 28px;
}

.aps-solution-body h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.aps-solution-body p {
  margin: 0 0 20px;
  color: var(--aps-muted);
  font-size: 16px;
  line-height: 1.7;
}

.aps-solution-body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aps-teal);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* Resources : 3개 카드 + 커뮤니티 콜아웃 */
.aps-resources {
  padding: 100px 0;
  background: var(--aps-gray-bg);
}

.aps-resources-eyebrow {
  margin: 0 0 10px;
  color: var(--aps-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aps-resources-head {
  margin-bottom: 44px;
}

.aps-resources-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
}

.aps-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.aps-resource-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.aps-resource-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.aps-resource-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 180px;
  padding: 28px 28px 24px;
}

.aps-resource-tag {
  margin: 0 0 16px;
  color: var(--aps-muted);
  font-size: 13px;
  font-weight: 700;
}

.aps-resource-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.aps-resource-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--aps-teal);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* NetScaler Community 콜아웃 : 원본처럼 어두운(블랙) 배경 + 흰 텍스트 + 알약형 버튼 */
.aps-community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 72px;
  border-radius: 16px;
  background: #0a0a0a;
}

.aps-community-icon {
  flex: none;
  width: 320px;
}

.aps-community-copy {
  max-width: 480px;
}

.aps-community-copy h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 26px;
}

.aps-community-copy p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.aps-community-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--aps-teal-deep);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .aps-hero-photo {
    height: 380px;
  }

  .aps-hero-panel {
    max-width: none;
    margin-top: -120px;
    padding: 36px 32px;
  }

  .aps-hero-panel h1 {
    font-size: 32px;
  }

  .aps-benefits-head {
    max-width: none;
  }

  .aps-benefit-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .aps-benefit-row.is-reverse .aps-benefit-media {
    order: 0;
  }

  .aps-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aps-community-icon {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .aps-container {
    width: min(calc(100% - 32px), var(--aps-max));
  }

  .aps-hero-photo {
    height: 220px;
  }

  .aps-hero-panel {
    margin-top: -70px;
    padding: 28px 24px;
  }

  .aps-hero-panel h1 {
    font-size: 26px;
  }

  .aps-hero-lead {
    font-size: 16px;
  }

  .aps-hero-intro {
    padding-top: 28px;
  }

  .aps-divider-photo {
    height: 180px;
  }

  /* 모바일에서는 구분 사진 높이가 180px로 줄어드므로, 데스크톱과 동일한 오프셋을
     그대로 쓰면 사진이 거의 가려짐 — 사진 높이 축소 비율에 맞춰 겹침도 줄임 */
  .aps-divider-photo + .aps-benefits .aps-benefits-head {
    top: -80px;
  }

  .aps-summary,
  .aps-solutions,
  .aps-resources {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .aps-benefits-band {
    padding: 56px 0 32px;
  }

  .aps-benefits-head {
    padding: 28px 24px;
  }

  .aps-divider-photo + .aps-benefits .aps-benefits-head {
    padding-left: max(16px, calc((100% - var(--aps-max)) / 2));
  }

  .aps-summary-list {
    grid-template-columns: 1fr;
  }

  .aps-benefits-head h2,
  .aps-summary h2,
  .aps-solutions h2,
  .aps-resources-head h2 {
    font-size: 26px;
  }

  .aps-solutions-grid {
    grid-template-columns: 1fr;
  }

  .aps-resource-grid {
    grid-template-columns: 1fr;
  }

  .aps-community {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 28px;
  }

  .aps-community-icon {
    width: 100%;
    max-width: 260px;
  }
}
