@charset "utf-8";
/**
 * 관리의 달인 - 최신 인터페이스 통합 스타일
 */

/* 구 레이아웃 요소 정리 */
#wrapper.sub_visual_default,
#wrapper .header,
#wrapper .footer,
#wrapper .q_banner,
#section_banner,
.old-header,
.old-footer {
    display: none !important;
}

body {
    padding-top: 0 !important;
}

/* 구 레이아웃 #hd 흰 배경 제거 - 메뉴 가림 방지 */
#hd {
    background: transparent !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: visible !important;
}

/* 헤더 - 서브페이지는 항상 배경, 메인은 costac-main.css에서 투명 처리 */
.costac-sub .gc-header,
.gc-header.gc-header-sub {
    background: rgba(30, 58, 95, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: none !important;
}

.costac-sub .gc-header.scrolled,
.gc-header.gc-header-sub.scrolled {
    background: rgba(30, 58, 95, 0.98) !important;
}

/* 메인 페이지도 서브와 동일하게 메뉴 표시 */
.costac-sub .gc-header .gc-nav > ul > li > a,
.costac-main .gc-header .gc-nav > ul > li > a {
    color: #fff !important;
}

.costac-sub .gc-header .gc-util-link,
.costac-main .gc-header .gc-util-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 로고는 원본 색상 유지 (네이비 배경 위) */
.gc-header-utils {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gc-util-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
}

.gc-util-link:hover {
    color: var(--gold);
}

.gc-btn-sm {
    padding: 8px 16px !important;
    font-size: 12px !important;
}

.gc-btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    border-radius: 30px;
    background: transparent;
}

.gc-btn-outline-white:hover {
    background: #fff;
    color: var(--primary-dark);
}

.gc-logo img {
    height: 48px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)) !important;
}

.gc-logo-text {
    display: inline-block;
    color: #fff;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 33px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.gc-logo-text:hover {
    color: #fff;
    opacity: 0.9;
}

.gc-logo-text-footer {
    font-size: 30px;
}

.gc-header.scrolled .gc-logo img,
.gc-header-sub .gc-logo img {
    height: 48px;
}

/* 메인 히어로 + 슬라이더 통합 */
.costac-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #60a5fa 100%);
    margin-top: 0;
    padding-top: 80px;
}

.costac-hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.costac-hero-slider .visual_slider,
.costac-hero-slider .slick-list,
.costac-hero-slider .slick-track,
.costac-hero-slider .slider {
    height: 100% !important;
}

.costac-hero-slider .slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.costac-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.55) 0%, rgba(30, 58, 95, 0.82) 100%);
}

.costac-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 140px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

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

.costac-hero-content .gc-hero-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 64px);
    margin-bottom: 16px;
}

.costac-hero-content .gc-hero-desc {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 28px;
}

/* 메인 서비스 카드 */
.costac-services {
    padding: 100px 0;
    background: var(--bg-light);
}

.costac-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.costac-service-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
    text-align: center;
}

.costac-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold);
}

.costac-service-card.costac-accent {
    border-top-color: #4844BA;
}

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

.costac-service-icon img {
    width: 36px;
    height: 36px;
}

.costac-service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.costac-service-card .costac-service-tag {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 20px;
    min-height: 40px;
}

.costac-service-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.costac-service-links a {
    display: block;
    padding: 10px 16px;
    background: #f0f4f8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
}

.costac-service-links a:hover {
    background: var(--primary);
    color: #fff;
}

.costac-service-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* 현황판 섹션 */
.costac-status {
    padding: 100px 0;
    background: #fff;
}

.costac-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.costac-status-panel {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--light-gray);
}

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

.costac-status-head h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

.costac-status-head h3 span {
    color: var(--primary);
}

.costac-status-head .costac-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.costac-status-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.costac-stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.costac-stat-box p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 6px;
}

.costac-stat-box strong {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* 건물관리 + 공지 */
.costac-board-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f4f8 0%, #fff 100%);
}

.costac-board-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.costac-board-panel {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.costac-board-panel h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.costac-board-panel h3 span {
    color: var(--primary);
}

.costac-board-panel .mbtn a {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* CTA */
.costac-cta-inline {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    text-align: center;
    color: #fff;
}

.costac-cta-inline h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
}

.costac-cta-inline p {
    opacity: 0.9;
    margin-bottom: 32px;
}

.costac-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--gold);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.gc-btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* 서브페이지 */
#wrapper {
    padding-top: 80px;
    min-height: 100vh;
    background: #fff;
}

#wrapper.costac-sub {
    padding-top: 0 !important;
    background: #fff;
}

#container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

#container .hTitle h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 32px;
}

#container .hTitle .subTitle {
    display: block;
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 8px;
}

#content {
    background: #fff;
    border-radius: 12px;
}

.sub_visual {
    margin-top: 80px;
    min-height: 280px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 70%, #60a5fa 100%) !important;
    display: flex;
    align-items: center;
    position: relative;
}

.sub_visual .txt_box h2,
.sub_visual .txt_box p {
    color: #fff !important;
    text-shadow: none !important;
}

.sub_visual .txt_box span {
    color: #93c5fd !important;
}

.visualBtn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--gold) !important;
    color: var(--primary-dark) !important;
    border-radius: 50px;
    font-weight: 700;
    border: none !important;
}

.visualBtn:hover {
    background: #fff !important;
}

/* 배너 */
.costac-banner-section {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--light-gray);
}

.costac-banner-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.costac-banner-list img {
    max-height: 48px;
    opacity: 0.8;
    transition: var(--transition);
}

.costac-banner-list img:hover {
    opacity: 1;
}

/* 푸터 보조 */
.costac-footer-sub {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

.costac-biz-info {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.6;
}

.gc-footer-logo img {
    filter: none;
    height: 44px;
}

.gc-footer-logo .gc-logo-text {
    color: #fff;
}

/* 퀵메뉴 */
.costac-quick {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.costac-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}

.costac-quick-item i {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--primary);
}

.costac-quick-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.costac-quick-item:hover i {
    color: #fff;
}

.costac-quick-primary {
    background: linear-gradient(135deg, #2563eb, #4844BA);
    color: #fff;
}

.costac-quick-primary i {
    color: #fff;
}

/* 게시판/폼 현대화 */
#main_board .left,
#main_board .right,
.costac-status-panel .latest_area,
.costac-board-panel .lt {
    font-size: 14px;
}

.costac-status-panel table,
.costac-board-panel table {
    width: 100%;
}

.costac-status-panel a,
.costac-board-panel a {
    color: var(--dark);
}

.costac-status-panel a:hover,
.costac-board-panel a:hover {
    color: var(--primary);
}

/* 반응형 */
@media (max-width: 1200px) {
    .gc-header-utils .gc-util-link,
    .gc-header-utils .gc-btn-outline-white {
        display: none;
    }

    /* 모바일에서도 햄버거 버튼 보이게 */
    .gc-mobile-toggle {
        display: block !important;
    }
}

@media (min-width: 1201px) {
    .gc-nav {
        display: block !important;
    }

    .gc-mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .costac-services-grid,
    .costac-status-grid,
    .costac-board-grid {
        grid-template-columns: 1fr;
    }

    .gc-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .costac-hero-content {
        padding: 120px 16px 60px;
    }

    .costac-quick {
        right: 12px;
        bottom: 80px;
    }

    .costac-quick-item {
        width: 52px;
        height: 52px;
        font-size: 9px;
    }

    .costac-biz-info {
        display: none;
    }
}

@media (max-width: 576px) {
    .costac-status-stats {
        grid-template-columns: 1fr;
    }
}
