.wr-section {
    padding: 60px 24px;
}

/*
 * 테마(dashwall/style.css)의 '.entry ol, .entry ul { margin: 0 0 15px 30px; }'을 덮어쓴다.
 * 이 플러그인 CSS가 테마 CSS보다 <head>에서 먼저 로드되기 때문에(wp_enqueue_style 순서상),
 * 완전히 동일한 셀렉터·동일한 specificity로는 나중에 로드되는 테마 쪽이 이긴다 — 그래서
 * !important로 확실히 이기게 한다.
 */
.entry ol,
.entry ul {
    margin: 0 0 45px 30px !important;
}

/*
 * 현재까지 채워진 마지막 섹션 밑에 이 기본 패딩(60px)이 그대로 남아서 카드 하단에 여백이
 * 생긴다. 섹션이 계속 추가되는 중이라 "마지막 섹션"이 계속 바뀌므로, 특정 섹션 ID를 지정하는
 * 대신 :last-of-type으로 "그 순간에 실제로 마지막인 <section>"을 항상 자동으로 잡는다
 * (wpautop이 샷코드 사이에 끼워넣는 빈 <p> 태그는 다른 태그 종류라 :last-of-type 판정에
 * 영향을 주지 않는다).
 */
.entry .wr-section:last-of-type {
    padding-bottom: 0;
}

/*
 * 테마 style.css의 '.entry a { text-decoration: underline; }'가 클래스 1개+엘리먼트 1개라서
 * specificity가 (0,1,1)로, 우리 .wr-btn/.wr-card 단일 클래스(0,1,0)보다 높아 밑줄 제거가
 * 먹히지 않는다. '.entry'를 우리 쪽에서도 셀렉터에 포함시켜(0,2,0) 확실히 이기게 한다.
 * 개별 버튼/카드 클래스를 일일이 나열하는 대신 .wr-section 하위 모든 링크에 한 번에 적용해서,
 * 나중에 섹션 안에 새 링크가 추가돼도 자동으로 적용되게 한다.
 */
.entry .wr-section a {
    text-decoration: none;
}

.wr-section-title {
    font-size: 26px;
    margin: 0 0 32px;
    text-align: center;
}

/* Banner slider */
.wr-banner-slider {
    position: relative;
    height: 420px;
    padding: 0;
    overflow: hidden;
}

.wr-banner-slider-track {
    position: relative;
    height: 100%;
}

.wr-banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 24px 60px;
    color: #fff;
    background: linear-gradient(135deg, var(--wr-accent-1, #00c196), var(--wr-accent-2, #1b6da0));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.wr-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.wr-banner-slide-placeholder-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    margin-bottom: 14px;
}

.wr-banner-slide h2 {
    position: relative;
    z-index: 2;
    font-size: 44px;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #fff;
}

.wr-banner-slide p {
    position: relative;
    z-index: 2;
    font-size: 15px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* 실제 업로드 이미지가 있는 슬라이드: 그라디언트 대신 사진을 깔고, 글자 가독성용
   어두운 오버레이를 그 위에 얹는다. h2/p/배지/버튼은 z-index로 둘 다보다 위에 둔다. */
.wr-banner-slide.has-image {
    background: #000;
}

.wr-banner-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.wr-banner-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1) 60%);
    z-index: 1;
}

.wr-banner-slide-btn {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 14px;
    padding: 10px 24px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.wr-banner-slide-btn:hover {
    transform: translateY(-2px);
    color: #111;
}

.wr-banner-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s ease;
}

.wr-banner-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.wr-banner-slider-prev { left: 20px; }
.wr-banner-slider-next { right: 20px; }

.wr-banner-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.wr-banner-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.wr-banner-slider-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 600px) {
    .wr-banner-slider { height: 320px; }
    .wr-banner-slide h2 { font-size: 30px; }
}

/* Hero */
.wr-hero {
    background: linear-gradient(135deg, var(--wr-accent-1, #00c196), var(--wr-accent-2, #1b6da0));
    color: #fff;
    text-align: center;
    padding: 90px 24px;
}

.wr-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.wr-hero-inner h1 {
    font-size: 40px;
    margin: 0 0 16px;
    color: #fff;
}

.wr-hero-tagline {
    font-size: 18px;
    opacity: 0.92;
    margin: 0 0 32px;
}

.wr-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.wr-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wr-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.wr-btn-primary {
    background: #fff;
    color: var(--wr-accent-2, #1b6da0);
}

.wr-btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

/* Card grid (services + recent posts) */
.wr-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.wr-card {
    display: block;
    background: var(--wr-card-bg, #ffffff);
    border: 1px solid var(--wr-border, #e5e7eb);
    border-radius: 12px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.wr-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.wr-card-icon {
    display: block;
    font-size: 34px;
    width: 34px;
    height: 34px;
    color: var(--wr-hover, #0e979b);
    margin-bottom: 14px;
}

.wr-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.wr-card p {
    margin: 0;
    font-size: 14px;
    color: var(--wr-text-muted, #6b7280);
    line-height: 1.6;
}

.wr-card-date {
    display: block;
    font-size: 12px;
    color: var(--wr-text-faint, #9ca3af);
    margin-bottom: 6px;
}

/* SynapsCore spotlight */
.wr-synapscore {
    background: var(--wr-dark-bg, #0b1220);
    color: var(--wr-dark-text, #e5e7eb);
}

.wr-synapscore-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 768px) {
    .wr-synapscore-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/*
 * col-right는 지금은 서술문(임시)을 담고 있지만, 곧 SMIL 애니메이션(synapscore.xyz 우측 상단과
 * 비슷한 정사각형 비주얼)으로 교체될 자리라서 미리 그 형태에 맞춰 카드 패널 + 중앙 정렬로
 * 잡아둔다 — 내용물이 바뀌어도 이 틀은 그대로 재사용된다.
 */
.wr-synapscore-col-right {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

/* SynapsCore SMIL 미니 다이어그램 (synapscore.xyz 헤더 비주얼을 단순화한 버전) */
/*
 * 위성 3개 색은 일부러 페이지 브랜드 팔레트(accent-1/accent-2/hover, 전부 그린/틸 계열이라
 * 나란히 놓으면 비슷해 보인다는 피드백)를 그대로 안 쓰고, 이 다이어그램 전용으로 확실히
 * 구분되는 그린/블루/퍼플 3색을 따로 정의한다.
 */
.wr-smil {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 320px;
    margin: 0 auto;
    display: block;
    --wr-smil-c1: #378152;
    --wr-smil-c2: #3b82f6;
    --wr-smil-c3: #a855f7;
}

.wr-smil-spoke {
    stroke-width: 1.4;
    opacity: 0.5;
}

.wr-smil-spoke.wr-smil-c1 { stroke: var(--wr-smil-c1); }
.wr-smil-spoke.wr-smil-c2 { stroke: var(--wr-smil-c2); }
.wr-smil-spoke.wr-smil-c3 { stroke: var(--wr-smil-c3); }

.wr-smil-flow {
    opacity: 0.9;
}

.wr-smil-flow.wr-smil-c1 { fill: var(--wr-smil-c1); }
.wr-smil-flow.wr-smil-c2 { fill: var(--wr-smil-c2); }
.wr-smil-flow.wr-smil-c3 { fill: var(--wr-smil-c3); }

/*
 * 큐브 3면(top/right/left) 입체감은 색상별 hex 변형을 따로 준비하는 대신, 어두운 카드 배경
 * 위에서 opacity만 다르게 줘서(진할수록 배경과 섞여 어두워 보임) 표현한다. wr-smil-sub(서브
 * 위성)는 본체보다 한 단계 더 옅게 만들어 시각적 위계를 준다.
 */
.wr-smil-cube-face {
    stroke-width: 0.6;
    stroke-linejoin: round;
}

.wr-smil-cube-face.wr-smil-cube-top { opacity: 1; }
.wr-smil-cube-face.wr-smil-cube-right { opacity: 0.72; }
.wr-smil-cube-face.wr-smil-cube-left { opacity: 0.5; }

.wr-smil-cube-face.wr-smil-sub.wr-smil-cube-top { opacity: 0.8; }
.wr-smil-cube-face.wr-smil-sub.wr-smil-cube-right { opacity: 0.55; }
.wr-smil-cube-face.wr-smil-sub.wr-smil-cube-left { opacity: 0.36; }

.wr-smil-cube-face.wr-smil-c1 { fill: var(--wr-smil-c1); stroke: var(--wr-smil-c1); }
.wr-smil-cube-face.wr-smil-c2 { fill: var(--wr-smil-c2); stroke: var(--wr-smil-c2); }
.wr-smil-cube-face.wr-smil-c3 { fill: var(--wr-smil-c3); stroke: var(--wr-smil-c3); }

/*
 * 허브 전용 육각기둥. 큐브와 같은 opacity 셰이딩 원리(어두운 배경 위에서 면마다 다른 투명도로
 * 입체감)를 쓰되, 면이 4개(top/right/front/left)라 3단계 대신 4단계로 좀 더 세밀하게 나눴다.
 */
.wr-smil-hex-face {
    stroke-width: 0.6;
    stroke-linejoin: round;
}

.wr-smil-hex-face.wr-smil-hex-top { opacity: 1; }
.wr-smil-hex-face.wr-smil-hex-right { opacity: 0.7; }
.wr-smil-hex-face.wr-smil-hex-left { opacity: 0.48; }

.wr-smil-hex-face.wr-smil-hub { fill: var(--wr-dark-heading, #ffffff); stroke: var(--wr-dark-heading, #ffffff); }

.wr-smil-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    fill: var(--wr-dark-text-muted, #9ca3af);
    font-family: Consolas, Monaco, monospace;
}

.wr-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--wr-accent-1, #00c196);
    margin-bottom: 14px;
    font-family: Consolas, Monaco, monospace;
}

.wr-synapscore-inner h2 {
    color: var(--wr-dark-heading, #ffffff);
    font-size: 32px;
    margin: 0 0 16px;
}

.wr-synapscore-lead {
    font-size: 17px;
    color: var(--wr-dark-text, #e5e7eb);
    margin: 0 0 14px;
}

.wr-synapscore-desc {
    color: var(--wr-dark-text-muted, #9ca3af);
    line-height: 1.75;
    margin: 0 0 28px;
}

.wr-synapscore-points {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wr-synapscore-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--wr-dark-text, #e5e7eb);
}

.wr-synapscore-points .dashicons {
    color: var(--wr-accent-1, #00c196);
}

.wr-synapscore .wr-btn-outline {
    border: 2px solid var(--wr-accent-1, #00c196);
    color: var(--wr-dark-heading, #ffffff);
}

.wr-synapscore .wr-btn-outline:hover {
    background: var(--wr-accent-1, #00c196);
    color: var(--wr-dark-bg, #0b1220);
}

/*
 * SayOrder spotlight — SynapsCore 섹션과 짝을 이루는 두 번째 FLAGSHIP PRODUCT 섹션.
 * 일부러 반대 톤(밝은 배경 + 따뜻한 오렌지 액센트)으로 가서 "결제 인프라(다크/추상)" vs
 * "현장 키오스크 플랫폼(밝음/구체적)"이 시각적으로도 구분되게 한다. 오렌지는 사이트
 * 기본 그린/틸 팔레트와 무관하게 이 섹션 전용으로 고정 — wr_home_palettes()의 'warm'
 * 예시 팔레트에서 쓴 것과 같은 색조라 톤이 어긋나지 않는다.
 */
.wr-sayorder {
    background: #fff7ed;
}

.wr-sayorder-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .wr-sayorder-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.wr-eyebrow-sayorder {
    color: #c2410c;
}

.wr-sayorder-inner h2 {
    color: #1f2937;
    font-size: 32px;
    margin: 0 0 16px;
}

.wr-sayorder-points {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wr-sayorder-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: #374151;
}

.wr-sayorder-points .dashicons {
    color: #f97316;
}

.wr-btn-outline-sayorder {
    border: 2px solid #f97316;
    color: #c2410c;
}

.wr-btn-outline-sayorder:hover {
    background: #f97316;
    color: #fff;
}

/* 실제 SayOrder 관리자 화면 + SynapsCore 연동 통계 인포그래픽(어태치먼트 654). 이미지 자체가
   이미 카드/그림자 디자인을 포함한 완성된 비주얼이라 추가 프레임 없이 라운드만 맞춰 얹는다. */
.wr-sayorder-visual-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Works */
.wr-works {
    background: var(--wr-bg-muted, #f9fafb);
    text-align: center;
}

.wr-works-inner {
    max-width: 640px;
    margin: 0 auto;
}

.wr-works-inner p {
    color: var(--wr-text-muted, #6b7280);
    margin: 0 0 20px;
}

.wr-works .wr-btn-primary {
    background: var(--wr-accent-2, #1b6da0);
    color: #fff;
}

/* Contact */
.wr-contact {
    text-align: center;
    background: var(--wr-bg, #ffffff);
}

.wr-contact-intro {
    color: var(--wr-text-muted, #6b7280);
    margin: 0 0 32px;
}

.wr-contact-form-wrap {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

/*
 * 이 섹션은 테마 자체 블로그 카드 템플릿을 그대로 불러쓰느라(get_template_part('content'))
 * .page-grid 클래스를 그대로 쓰는데, 테마 기본값은 auto-fill이라 카드 개수가 딱 맞게 안 채워지고
 * 남는 트랙만큼 폭이 안 찬 것처럼 보인다. 여기서만 3열(3x2 = 6개)로 고정한다(사용자 요청).
 * 제목 폰트 크기도 테마 기본값(22px)의 1.5배로 키운다 — 실제 블로그 목록 페이지의
 * .blog-card-title에는 영향 안 주도록 #wr-recent-posts로 스코프.
 */
#wr-recent-posts .page-grid {
    grid-template-columns: repeat(3, 1fr);
}

#wr-recent-posts .blog-card-title {
    font-size: 15px;
}

@media (max-width: 900px) {
    #wr-recent-posts .page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .wr-hero-inner h1 {
        font-size: 30px;
    }

    .wr-section {
        padding: 40px 16px;
    }

    #wr-recent-posts .page-grid {
        grid-template-columns: 1fr;
    }
}
