/* ============================================================
   DENEX - RadioDNS Page Stylesheet
   ============================================================ */

/* ── 배너 ────────────────────────────────────────────────── */
.banner--radiodns { background-image: url('/images/banner/sub_visual03.jpg'); }

/* ── 활동 카드 그리드 ────────────────────────────────────── */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.activity-card {
    background: var(--white);
    border: 1px solid rgba(52,44,42,.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(52,44,42,.12);
}
.activity-card-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--gray-lt);
}
.activity-card-thumb-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a2d40, #0d2137);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.activity-card-body   { padding: 20px; }
.activity-card-tag    { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .5px; margin-bottom: 8px; }
.activity-card-title  { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; line-height: 1.4; }
.activity-card-desc   { font-size: 13px; color: var(--char-lt); line-height: 1.6; margin-bottom: 14px; }
.activity-card-meta   { display: flex; align-items: center; justify-content: space-between; }
.activity-card-loc    { font-size: 12px; color: var(--gray); }
.activity-card-btn    { font-size: 12px; font-weight: 700; color: var(--red); }

/* ── 탭 패널 ─────────────────────────────────────────────── */
.tab-panel  { display: none; }
.tab-panel.active { display: block; }

/* ── RadioDNS 모달 — 좌(이미지) / 우(텍스트) 레이아웃 ────── */
#activityModal .modal-box {
    max-width: 1280px;
    width: 96vw;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    position: relative;
}

/* product.css .modal-body 간섭 제거 후 2단 그리드 재정의 */
#activityModal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    gap: 0;
    align-items: stretch;
    min-height: 0;
}

/* 닫기 버튼 */
#activityModal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    background: rgba(20,20,20,.65);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 왼쪽 이미지 패널 — 슬라이드쇼 ──────────────────────── */
.modal-img-panel {
    position: relative;
    background: #0f1a25;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.modal-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.modal-slide.active { display: flex; }
.modal-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* 슬라이드 버튼 */
.modal-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 5;
}
.modal-slide-btn:hover { background: rgba(255,255,255,.3); }
.modal-slide-btn.prev  { left: 12px; }
.modal-slide-btn.next  { right: 12px; }

/* 슬라이드 점 */
.modal-slide-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 5;
}
.modal-slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .15s;
}
.modal-slide-dot.active { background: #fff; }

/* ── 오른쪽 텍스트 패널 ───────────────────────────────────── */
.modal-text-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 92vh;
}

/* 헤더 */
.modal-activity-header {
    padding: 32px 32px 20px;
    border-bottom: 1px solid rgba(52,44,42,.08);
    margin-bottom: 0;
}
.modal-activity-tag   { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .5px; margin-bottom: 8px; }
.modal-activity-title { font-size: 24px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; line-height: 1.4; }
.modal-activity-meta  { font-size: 13px; color: var(--gray); }

/* 섹션 */
.modal-activity-section {
    padding: 20px 32px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(52,44,42,.06);
}
.modal-activity-section:last-child { border-bottom: none; }
.modal-activity-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* 소개 텍스트 */
.modal-intro-text {
    font-size: 14px;
    color: var(--char-lt);
    line-height: 1.8;
    margin: 0;
}

/* 하이라이트 */
.modal-highlights { display: flex; flex-direction: column; gap: 10px; }
.modal-highlight {
    display: flex;
    gap: 12px;
    background: var(--gray-lt);
    border-radius: 10px;
    padding: 12px 14px;
    align-items: flex-start;
}
.modal-highlight-icon  { font-size: 18px; flex-shrink: 0; }
.modal-highlight-text  { font-size: 13px; color: var(--charcoal); line-height: 1.7; }
.modal-highlight-text strong { color: var(--red); }

/* 인용문 */
.modal-quote {
    background: var(--gray-lt);
    border-left: 3px solid var(--red);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.modal-quote:last-child { margin-bottom: 0; }
.modal-quote p    { font-size: 13px; color: var(--charcoal); line-height: 1.8; font-style: italic; margin-bottom: 6px; }
.modal-quote cite { font-size: 12px; color: var(--gray); font-style: normal; }

/* 바로가기 버튼 */
.modal-quote-link {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    border: 1px solid var(--red);
    border-radius: 6px;
    padding: 4px 12px;
    width: fit-content;
    transition: background .15s, color .15s;
}
.modal-quote-link:hover { background: var(--red); color: #fff; }

/* 태그 */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 32px;
    margin: 0;
    border-top: 1px solid rgba(52,44,42,.06);
}
.modal-tag {
    font-size: 11px;
    color: var(--red);
    background: rgba(200,34,41,.06);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* 반응형 */
@media (max-width: 768px) {
    #activityModal .modal-body { grid-template-columns: 1fr; }
    #activityModal .modal-box  { overflow-y: auto; max-height: 95vh; }
    .modal-img-panel { border-radius: 20px 20px 0 0; max-height: 260px; }
    .modal-text-panel { max-height: none; }
}