@charset "utf-8";
/**
 * 관리의 달인 - 메인페이지 (tonature mercury 기반)
 */

/* ── 메인 헤더: 반투명 배경으로 로고 가독성 확보 ── */
.tong-main .gc-header {
    background: rgba(30, 58, 95, 0.82) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.tong-main .gc-header.scrolled {
    background: rgba(30, 58, 95, 0.98) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12) !important;
}

.tong-main #wrapper,
#wrapper.tong-main {
    padding-top: 0;
    min-height: 100vh;
    background: #fff;
}

.tong-main #container_main {
    overflow: hidden;
}

/* ── 히어로 보완 ── */
.tong-main .gc-hero {
    margin-top: 0;
}

.tong-main .gc-hero-content .gc-hero-subtitle {
    color: #93c5fd;
}

/* ── 서비스 카드 아이콘 ── */
.tong-main-services {
    grid-template-columns: repeat(3, 1fr) !important;
}

.tong-main-service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tong-main-service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tong-main-service-sub {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.tong-main-service-sub a {
    display: block;
    padding: 10px 14px;
    background: #f4f7fc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
    transition: var(--transition);
}

.tong-main-service-sub a:hover {
    background: var(--primary);
    color: #fff;
}

/* ── 실시간 현황 ── */
.tong-main-dashboard {
    background: var(--bg-light, #f4f7fc);
}

.tong-main-dashboard-grid,
.tong-main-boards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.tong-main-panel,
.tong-main-board-panel {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.06);
}

.tong-main-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.tong-main-panel-head h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.tong-main-panel-head h3 span {
    color: var(--primary);
}

.tong-main-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tong-main-more:hover {
    color: var(--primary-dark);
}

/* 현황 테이블 */
.tong-main-table-wrap .lt table,
.tong-main-notice .lt table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.tong-main-table-wrap .lt thead th,
.tong-main-notice .lt thead th {
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}

.tong-main-table-wrap .lt thead th:first-child,
.tong-main-notice .lt thead th:first-child {
    border-radius: 10px 0 0 0;
}

.tong-main-table-wrap .lt thead th:last-child,
.tong-main-notice .lt thead th:last-child {
    border-radius: 0 10px 0 0;
}

.tong-main-table-wrap .lt tbody td,
.tong-main-notice .lt tbody td {
    padding: 11px 10px;
    border-bottom: 1px solid #eef2f7;
    color: var(--gray);
    text-align: center;
}

.tong-main-table-wrap .lt tbody tr:hover td,
.tong-main-notice .lt tbody tr:hover td {
    background: #f8fafc;
}

.tong-main-table-wrap .lt tbody a,
.tong-main-notice .lt tbody a {
    color: var(--dark);
    font-weight: 500;
}

.tong-main-table-wrap .lt tbody a:hover,
.tong-main-notice .lt tbody a:hover {
    color: var(--primary);
}

/* 갤러리 현황 */
.tong-main-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.tong-main-gallery ul {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tong-main-gallery .service {
    list-style: none;
    margin: 0;
}

.tong-main-gallery .service a {
    display: block;
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    transition: var(--transition);
}

.tong-main-gallery .service a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12);
    border-color: var(--primary);
}

.tong-main-gallery .service img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
}

.tong-main-gallery .cate {
    display: block;
    padding: 8px 12px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}

.tong-main-gallery .thumb_subject {
    padding: 4px 12px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tong-main-gallery .thumb_content {
    display: none;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .tong-main-services {
        grid-template-columns: 1fr !important;
    }

    .tong-main-dashboard-grid,
    .tong-main-boards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tong-main-panel,
    .tong-main-board-panel {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .tong-main-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
