/* ============================================================
   ontact_annual.css — 온택트 교육 연간 교육일정 페이지 전용 스타일
   ============================================================ */

/* ===== PAGE HERO (simple banner) ===== */
.ann-hero {
    padding-top: 150px;
    background: var(--black);
    min-height: 210px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.ann-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 15% 60%, rgba(232,97,60,0.09) 0%, transparent 55%);
}
.ann-hero-grid {
    position: absolute; right: 0; top: 0; bottom: 0; width: 44%;
    background: repeating-linear-gradient(90deg, transparent 1px, transparent 59px, rgba(255,255,255,0.022) 59px, rgba(255,255,255,0.022) 60px);
    pointer-events: none;
}
.ann-hero-grid::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent 1px, transparent 59px, rgba(255,255,255,0.013) 59px, rgba(255,255,255,0.013) 60px);
}
.ann-hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 1320px;
    margin: 0 auto; padding: 40px 40px 36px;
}
.ann-hero-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
}
.ann-hero-title {
    font-size: 34px; font-weight: 800;
    color: var(--white); line-height: 1.2;
    letter-spacing: -0.5px; margin-bottom: 8px;
}
.ann-hero-sub {
    font-size: 15px; color: rgba(255,255,255,0.6);
    font-weight: 340;
}

@media (max-width: 768px) {
    .ann-hero { min-height: 170px; padding-top: 60px; }
    .ann-hero-inner { padding: 24px 20px 24px; }
    .ann-hero-title { font-size: 24px; }
}

/* ===== FILTER / TAB SECTION ===== */
.ann-filter-section {
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    position: sticky; top: 150px; z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
@media (max-width: 768px) { .ann-filter-section { top: 60px; } }

.ann-tab-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
}
.ann-view-tabs {
    display: flex;
    margin-bottom: -2px;
}
.ann-view-tab {
    display: inline-flex; align-items: center;
    padding: 15px 22px;
    font-size: 16px; font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-family: 'Noto Sans KR', sans-serif;
}
.ann-view-tab:hover { color: var(--gray-800); }
.ann-view-tab.active { color: var(--black); font-weight: 700; border-bottom-color: var(--accent); }

.ann-year-form {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 0;
}
.ann-year-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gray-400);
}
.ann-year-sel {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px; color: var(--gray-700);
    border: 1px solid var(--gray-200);
    padding: 6px 28px 6px 11px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 9px center / 8px;
    appearance: none; cursor: pointer;
}
.ann-year-sel:focus { outline: none; border-color: var(--black); }

.ann-search-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 0;
    flex-wrap: wrap;
    border-top: 1px solid var(--gray-100);
}
.ann-filter-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gray-400); flex-shrink: 0; padding-right: 8px;
}
.ann-filter-select {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px; color: var(--gray-700);
    border: 1px solid var(--gray-200);
    padding: 7px 28px 7px 11px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 9px center / 8px;
    appearance: none; cursor: pointer;
}
.ann-filter-select:focus { outline: none; border-color: var(--black); }

.ann-search-wrap {
    flex: 1; min-width: 180px; max-width: 380px;
    display: flex; align-items: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}
.ann-search-wrap:focus-within { border-color: var(--black); }
.ann-search-type {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px; border: none;
    border-right: 1px solid var(--gray-200);
    padding: 7px 22px 7px 11px;
    background: var(--gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 7px center / 8px;
    appearance: none; color: var(--gray-700); cursor: pointer; flex-shrink: 0;
}
.ann-search-type:focus { outline: none; }
.ann-search-kw {
    flex: 1; border: none;
    padding: 7px 11px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px; color: var(--black);
    background: transparent; min-width: 0;
}
.ann-search-kw::placeholder { color: var(--gray-400); }
.ann-search-kw:focus { outline: none; }
.ann-btn-reset {
    padding: 7px 13px;
    background: none; border: 1px solid var(--gray-200);
    color: var(--gray-500); cursor: pointer;
    font-size: 15px; font-family: 'Noto Sans KR', sans-serif;
    transition: var(--transition-fast); flex-shrink: 0;
}
.ann-btn-reset:hover { border-color: var(--gray-400); color: var(--gray-700); }
.ann-btn-search {
    padding: 7px 16px;
    background: var(--black); border: none;
    color: var(--white); cursor: pointer;
    font-size: 15px; transition: var(--transition-fast); flex-shrink: 0;
}
.ann-btn-search:hover { background: var(--accent); }
.ann-result-row {
    padding: 9px 0 11px;
    border-top: 1px solid var(--gray-100);
    font-size: 15px; color: var(--gray-500);
}
.ann-result-row strong { color: var(--black); font-weight: 700; }

@media (max-width: 768px) {
    .ann-view-tab { padding: 13px 14px; font-size: 15px; }
    .ann-search-row { gap: 6px; }
    .ann-filter-label { display: none; }
    .ann-filter-select { display: none; }
    .ann-search-wrap { max-width: none; }
    .ann-year-label { display: none; }
}

/* ===== ANNUAL TABLE SECTION ===== */
.ann-section { padding: 32px 0 80px; background: var(--gray-100); }
.ann-outer {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Month filter bar */
.ann-month-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 0 14px;
    background: #FFF4F1;
    border: 1px solid #FFCFBD;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 15px; color: #B84020; font-weight: 500;
    opacity: 0; max-height: 0; overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}
.ann-month-bar.visible {
    opacity: 1; max-height: 60px;
    padding: 8px 14px;
}
.ann-month-bar i { font-size: 14px; }
.ann-btn-showall {
    margin-left: auto;
    padding: 4px 14px;
    background: var(--accent); color: var(--white);
    border: none; border-radius: 4px;
    font-size: 14px; font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer; white-space: nowrap;
    transition: background 0.18s;
}
.ann-btn-showall:hover { background: var(--accent-hover); }

/* Mobile scroll hint */
.ann-scroll-hint {
    display: none;
    align-items: center; gap: 7px;
    padding: 9px 16px;
    background: var(--accent-soft);
    border-bottom: 1px solid rgba(232,97,60,0.1);
    font-size: 14px; color: var(--accent); font-weight: 500;
}
.ann-scroll-hint i { animation: swipeHint 1.6s ease-in-out infinite; }
@keyframes swipeHint { 0%,100%{transform:translateX(0)} 50%{transform:translateX(5px)} }
@media (max-width: 900px) { .ann-scroll-hint { display: flex; } }

/* Scroll wrapper */
.ann-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}
.ann-scroll-wrap::-webkit-scrollbar { height: 5px; }
.ann-scroll-wrap::-webkit-scrollbar-track { background: transparent; }
.ann-scroll-wrap::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.ann-scroll-wrap::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Table */
.ann-table {
    width: 100%; min-width: 860px;
    border-collapse: collapse;
    table-layout: fixed;
}
.ann-table .col-badge { width: 76px; }
.ann-table .col-name  { width: auto; min-width: 220px; }
.ann-table .col-month { width: 57px; }

/* Header */
/* 세로 고정(헤더 행)은 CSS sticky로는 어긋나서 annual.php 스크립트가
   transform: translateY 로 직접 처리한다. 가로 고정(배지·과정명 열)만 sticky.
   그때 헤더가 본문 위에 오도록 z-index 를 본문(3)보다 높게 둔다. */
.ann-table thead th {
    z-index: 4;
    background: var(--gray-900);
    color: rgba(255,255,255,0.8);
    font-size: 14px; font-weight: 600;
    padding: 11px 6px; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
}
.ann-table thead th.th-badge {
    position: sticky; left: 0; z-index: 6;
    background: var(--gray-900);
}
.ann-table thead th.th-name {
    position: sticky; left: 76px; z-index: 6;
    background: var(--gray-900);
    text-align: left; padding-left: 16px;
    border-right: 2px solid rgba(255,255,255,0.14);
}
.ann-table thead th.th-month {
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.2px;
}
.ann-table thead th.th-month:hover { background: var(--gray-700); color: var(--white); }
.ann-table thead th.th-month.month-selected { background: var(--accent); color: var(--white); }

/* Body rows */
.ann-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.12s;
}
.ann-table tbody tr:last-child { border-bottom: none; }
.ann-table tbody tr:hover { background: #fdf9f8; }

.ann-table tbody td {
    padding: 9px 6px; vertical-align: middle;
    text-align: center;
    border-right: 1px solid var(--gray-100);
    font-size: 15px;
}

/* Sticky badge column */
.ann-table tbody td.td-badge {
    position: sticky; left: 0; z-index: 3;
    background: var(--white);
    border-right: 1px solid var(--gray-100);
    padding: 10px 6px; vertical-align: middle;
}
.ann-table tbody tr:hover td.td-badge { background: #fdf9f8; }

/* Sticky name column */
.ann-table tbody td.td-name {
    position: sticky; left: 76px; z-index: 3;
    background: var(--white);
    text-align: left; padding: 12px 16px;
    border-right: 2px solid var(--gray-200);
    box-shadow: 3px 0 8px -3px rgba(0,0,0,0.08);
}
.ann-table tbody tr:hover td.td-name { background: #fdf9f8; }

/* Month cell (empty) */
.ann-table tbody td.td-month { padding: 4px; height: 54px; }

/* Month cell (active) */
.ann-table tbody td.td-month-active {
    padding: 0;
    background: #FFE0D4; cursor: pointer;
    transition: background 0.15s;
}
.ann-table tbody td.td-month-active:hover { background: #FFCFBD; }
.ann-table tbody td.td-month-active .mdate {
    display: flex; align-items: center; justify-content: center;
    height: 100%; min-height: 54px;
    color: #B84020;
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 700;
    line-height: 1.3; text-align: center; padding: 4px 2px;
    text-decoration: none;
}

/* Badges */
.a-badge {
    display: block;
    font-size: 12px; font-weight: 700;
    padding: 2px 5px; margin-bottom: 3px;
    text-align: center; letter-spacing: 0.2px;
    line-height: 1.4; white-space: nowrap;
}
.a-badge:last-child { margin-bottom: 0; }
.a-badge-closed   { background: var(--gray-200); color: var(--gray-600); }
.a-badge-ongoing  { background: #FFE0D4; color: #B84020; }
.a-badge-soon     { background: #FFF0C8; color: #8A5E10; }
.a-badge-refund   { background: #D0E8FF; color: #1A5FA8; }
.a-badge-norefund { background: var(--gray-600); color: #fff; }

/* Course name link */
.course-link {
    display: block;
    font-size: 15px; font-weight: 500;
    color: var(--black); text-decoration: none;
    line-height: 1.45; transition: color 0.18s;
}
.course-link:hover { color: var(--accent); }
.course-teacher {
    font-size: 13px; color: var(--gray-500);
    margin-top: 3px; font-weight: 330;
}
.course-teacher i { font-size: 12px; }

/* Empty state */
.ann-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-400);
}
.ann-empty i {
    font-size: 42px; display: block; margin-bottom: 16px;
    color: var(--gray-300);
}
.ann-empty p { font-size: 16px; color: var(--gray-500); }

/* ===== CTA BANNER ===== */
.ann-cta {
    background: var(--dark); padding: 72px 0;
    position: relative; overflow: hidden;
}
.ann-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(232,97,60,0.07) 0%, transparent 60%);
}
.ann-cta .container { position: relative; z-index: 2; text-align: center; }
.ann-cta-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.ann-cta h2 {
    font-size: 32px; font-weight: 800;
    color: var(--white); line-height: 1.35;
    margin-bottom: 10px; letter-spacing: -0.5px;
}
.ann-cta p {
    font-size: 16px; color: var(--gray-500);
    font-weight: 330; margin-bottom: 32px;
}
.ann-cta-btns {
    display: flex; justify-content: center;
    gap: 12px; flex-wrap: wrap;
}
.ann-cta-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px;
    background: var(--accent); color: var(--white);
    text-decoration: none; font-size: 16px; font-weight: 600;
    transition: var(--transition); font-family: 'Noto Sans KR', sans-serif;
}
.ann-cta-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.ann-cta-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.75);
    text-decoration: none; font-size: 16px; font-weight: 400;
    transition: var(--transition); font-family: 'Noto Sans KR', sans-serif;
}
.ann-cta-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4); color: var(--white);
}
