/* =============================================================
   services02.css — 세미나 일정 페이지 전용
   ============================================================= */

/* ── 히어로 배경 ── */
.s02-hero-bg {
    position: absolute;
    top: -90px;
    right: 0;
    width: 42%;
    height: calc(55vh + 90px);
    background:
        linear-gradient(to right, #0b0b0b 0%, rgba(11,11,11,0.7) 18%, transparent 45%),
        url('/img/3_services/service_1.png') top center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* ── 세미나 일정 히어로 전용 정렬 ── */
.s02-page .s01-first-view {
    min-height: clamp(280px, 32vh, 340px);
    isolation: isolate;
    z-index: 0;
}
.s02-page .s01-hero-section {
    padding: 118px 0 12px;
}
.s02-page .s01-hero-section .lc-section-inner {
    display: flex;
    flex-direction: column;
}
.s02-page .s01-hero-shape {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    object-position: center center;
}
.s02-page .s01-hero-shape.s01-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}
.s02-page .s01-hero-title {
    justify-content: center;
    align-items: center;
    min-height: auto;
    font-size: clamp(34px, 4.6vw, 68px);
    text-align: center;
}
.s02-page .s01-typing-title .s01-typing-text {
    white-space: nowrap;
}

/* ══════════════════════════════════════
   달력 섹션
══════════════════════════════════════ */
.s02-cal-section {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: 0 0 32px;
}

.s02-cal-wrap {
    position: relative;
    z-index: 3;
    max-width: 1400px; margin: 0 auto; padding: 0 80px;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1);
}
.s02-cal-section.is-visible .s02-cal-wrap {
    opacity: 1;
    transform: none;
}

/* 달력 위 컨트롤바 (박스 바깥) */
.s02-cal-topbar {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    margin-bottom: 26px; padding: 0 4px;
}
.s02-cal-month-label {
    font-size: 30px; font-weight: 700; color: #fff;
    letter-spacing: -0.03em; padding: 0 10px;
}
.s02-cal-nav {
    width: 40px; height: 40px; border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: rgba(255,255,255,0.6); font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.22s; line-height: 1;
    flex-shrink: 0;
}
.s02-cal-nav:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

/* 달력 컨테이너 */
.s02-calendar {
    background: rgba(9, 11, 16, 0.7);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 10px;
    overflow: hidden;
    opacity: 1;
    transform: none;
}
.s02-calendar.is-visible { opacity: 1; transform: none; }

/* 달력 바디 — 단일 그리드로 정렬 보정 */
.s02-cal-body { padding: 30px 42px; }

.s02-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 열 간격 없음 → 요일 헤더 & 날짜 완벽 정렬 */
}

/* 요일 헤더 */
.s02-day-hd {
    text-align: center;
    font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.3);
    padding: 0 0 14px;
}
.s02-day-hd.sun { color: rgba(234,76,56,0.75); }
.s02-day-hd.sat { color: rgba(110,150,255,0.65); }

/* 요일 헤더 아래 구분선 */
.s02-hd-line {
    grid-column: 1 / -1;
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin-bottom: 6px;
}

/* 주 구분선 */
.s02-week-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.07) 10%,
        rgba(255,255,255,0.07) 90%,
        transparent 100%);
    margin: 2px 0;
}

/* 날짜 셀 */
.s02-cal-date {
    position: relative;
    height: 58px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-size: 16px; font-weight: 400;
    color: rgba(255,255,255,0.65);
    border-radius: 8px; cursor: default;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    user-select: none;
}
.s02-cal-date:not(.other-month) { cursor: pointer; }
.s02-cal-date {
    position: relative;
    isolation: isolate;
}
/* 공통: hover · today · selected 모두 동일한 50×50 박스 */
.s02-cal-date:not(.other-month):not(.selected):hover,
.s02-cal-date.today,
.s02-cal-date.selected {
    background: transparent !important;
    box-shadow: none !important;
}
.s02-cal-date:not(.other-month):not(.selected):hover { color: #fff; }
.s02-cal-date:not(.other-month):not(.selected):hover::before,
.s02-cal-date.today::before,
.s02-cal-date.selected::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 8px; z-index: -1;
}
.s02-cal-date:not(.other-month):not(.selected):hover::before {
    background: rgba(255,255,255,0.09);
}
.s02-cal-date.today {
    color: #ea4c38; font-weight: 700;
}
.s02-cal-date.today::before {
    background: rgba(234,76,56,0.15);
    box-shadow: inset 0 0 0 1.5px rgba(234,76,56,0.5);
}
.s02-cal-date.selected {
    color: #fff !important; font-weight: 700;
}
.s02-cal-date.selected::before {
    background: #ea4c38;
}
.s02-cal-date.other-month { color: rgba(255,255,255,0.14); cursor: default; }
.s02-cal-date.sunday   { color: rgba(234,76,56,0.82); }
.s02-cal-date.saturday { color: rgba(110,150,255,0.72); }
.s02-cal-date.has-event::after {
    content: '';
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%;
    background: #ea4c38; opacity: 0.9;
}

/* ── 이벤트 패널 ── */
.s02-event-panel {
    margin-top: 8px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 10px;
    padding: 24px 42px;
    display: none;
}
.s02-event-panel.active {
    display: block;
    animation: s02SlideIn 0.32s cubic-bezier(0.16,1,0.3,1);
}
@keyframes s02SlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
}
.s02-panel-date-text {
    display: block;
    font-size: 22px; font-weight: 700;
    color: #ea4c38; letter-spacing: -0.025em; margin-bottom: 20px;
}
.s02-event-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.s02-event-item:first-of-type { border-top: none; }
.s02-event-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ea4c38; flex-shrink: 0; margin-top: 6px;
    box-shadow: 0 0 6px rgba(234,76,56,0.4);
}
.s02-event-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.s02-event-meta  { font-size: 13px; color: rgba(255,255,255,0.48); }
.s02-event-empty { font-size: 15px; color: rgba(255,255,255,0.6); padding: 2px 0; }

/* ══════════════════════════════════════
   콘텐츠 섹션
══════════════════════════════════════ */
.s02-sections {
    position: relative;
    z-index: 3;
    max-width: 1400px; margin: 0 auto;
    padding: 92px 80px 140px;
    box-sizing: border-box;
    display: flex; flex-direction: column; gap: 24px;
}

.s02-glass-card {
    position: relative; overflow: hidden;
    z-index: 3;
    background: rgba(255,255,255,0.032);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 64px 72px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.2);
    /* 등장 애니메이션 */
    opacity: 0; transform: translateY(36px);
    transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1),
                transform 0.72s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s;
}
.s02-glass-card.is-visible { opacity: 1; transform: none; }
.s02-glass-card:hover { border-color: rgba(255,255,255,0.16); }

/* 우하단 레드 글로우 */
.s02-glass-card::before {
    content: "";
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 95% 98%, rgba(234,76,56,0.09) 0%, transparent 50%);
}
.s02-glass-card > * { position: relative; z-index: 1; }

/* 두 열 나란히 */
.s02-two-row {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 24px;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1);
}
.s02-two-row .s02-glass-card { opacity: 1; transform: none; transition-delay: 0s; }
.s02-two-row.is-visible { opacity: 1; transform: none; }

/* ── 카드 텍스트 ── */
.s02-card-label {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: #ea4c38; margin-bottom: 18px; font-weight: 700;
}
.s02-card-label::before {
    content: "";
    display: inline-block; width: 3px; height: 14px;
    background: #ea4c38; border-radius: 2px; flex-shrink: 0;
}
.s02-card-title {
    font-size: clamp(26px, 3vw, 44px); font-weight: 700;
    letter-spacing: -0.03em; color: #fff;
    margin: 0 0 24px; line-height: 1.2;
}
.s02-card-desc {
    font-size: clamp(15px, 1.15vw, 17px); color: rgba(255,255,255,0.55);
    line-height: 1.92; margin: 0 0 14px;
    overflow-wrap: break-word;
}
.s02-card-desc:last-child { margin-bottom: 0; }

/* ── 서브 카드 그리드 ── */
.s02-sub-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 40px; }
.s02-sub-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }

.s02-sub-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px; padding: 32px 28px;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.s02-sub-card:hover {
    background: #ea4c38;
    border-color: transparent;
    box-shadow: none;
}
.s02-sub-card:hover .s02-sub-card-title { color: #fff; }
.s02-sub-card:hover .s02-sub-card-desc  { color: rgba(255,255,255,0.82); }
.s02-sub-card-title {
    font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.35;
}
.s02-sub-card-desc {
    font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.78; margin: 0;
    overflow-wrap: break-word;
}
.s02-sub-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; padding: 9px 18px;
    border: 1px solid rgba(234,76,56,0.35);
    border-radius: 8px; color: rgba(255,255,255,0.78);
    background: rgba(234,76,56,0.08);
    font-size: 13px; text-decoration: none; letter-spacing: 0.04em;
    font-family: inherit; cursor: pointer;
    transition: all 0.22s;
}
.s02-sub-btn:hover {
    background: rgba(234,76,56,0.2);
    border-color: rgba(234,76,56,0.6);
    color: #fff;
}

/* ══════════════════════════════════════
   반응형
══════════════════════════════════════ */
@media (max-width: 1100px) {
    .s02-cal-wrap, .s02-sections { padding-left: 40px; padding-right: 40px; }
    .s02-cal-body { padding: 26px 32px; }
    .s02-event-panel { padding: 24px 32px; }
    .s02-glass-card { padding: 48px; }
    .s02-sub-grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .s02-page .s01-first-view { min-height: clamp(220px, 30vh, 280px); }
    .s02-page .s01-hero-section { padding: 86px 0 8px; }
    .s02-page .s01-hero-shape { height: 44px; margin-bottom: 12px; }
    .s02-page .s01-hero-title { font-size: clamp(24px, 7vw, 42px); }
    .s02-hero-bg { width: 100%; }
    .s02-cal-section { margin-top: 0; padding: 0 0 24px; }
    .s02-cal-wrap, .s02-sections { padding-left: 20px; padding-right: 20px; }
    .s02-cal-topbar { gap: 6px; margin-bottom: 18px; }
    .s02-cal-month-label { font-size: 24px; padding: 0 6px; }
    .s02-cal-nav { width: 34px; height: 34px; font-size: 18px; }
    .s02-cal-body { padding: 14px; }
    .s02-event-panel { padding: 18px 16px; }
    .s02-sections { padding-top: 64px; padding-bottom: 80px; gap: 16px; }
    .s02-glass-card { padding: 36px 28px; }
    .s02-two-row { grid-template-columns: 1fr; }
    .s02-sub-grid-2, .s02-sub-grid-3 { grid-template-columns: 1fr; gap: 14px; }
    .s02-cal-date { height: 42px; font-size: 14px; }
    .s02-cal-date.selected::before,
    .s02-cal-date.today::before,
    .s02-cal-date:not(.other-month):not(.selected):hover::before { width: 34px; height: 34px; }
    .s02-day-hd { font-size: 12px; }
    .s02-panel-date-text { font-size: 18px; margin-bottom: 12px; }
}
