/* ===========================================
   9가지 주요 변경사항
   =========================================== */

/* 1. 히어로 슬라이드 버튼 삭제 (PHP에서 처리) */

/* 2. 블로그 플로팅 버튼 숨기기 */
.naver-blog-floating-btn {
    display: none !important;
}

/* 3. 메뉴 드롭다운 스타일 */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

.sub-menu li {
    margin: 0;
    padding: 0;
}

.sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.sub-menu a:hover {
    background: #f5f5f5;
    color: #099F97;
}

/* 4. 푸터 가운데 정렬 */
.footer-content-centered {
    text-align: center;
    padding: 3rem 0;
}

.footer-brand-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-centered {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-centered p {
    margin: 0.5rem 0;
}

/* 9. 회사소개 주요실적 프리뷰 */
.portfolio-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.portfolio-preview-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.portfolio-preview-item:hover {
    transform: translateY(-5px);
}

.portfolio-preview-content h3 {
    font-size: 1.5rem;
    color: #1B3559;
    margin-bottom: 1.5rem;
    text-align: center;
}

.portfolio-preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #099F97;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.portfolio-preview-cta {
    text-align: center;
    margin-top: 3rem;
}

/* 모바일 반응형 */
@media (max-width: 968px) {
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        border-top: 1px solid #eee;
    }
    
    .menu-item-has-children.active .sub-menu {
        display: block;
    }
}

/* 파인싱크 소식 미리보기 */
.news-preview {
    padding: 80px 0;
    background: #fff;
}

.news-preview .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.news-preview .section-title {
    margin: 0;
}

.news-preview .view-all {
    color: #099F97;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.news-preview .view-all:hover {
    color: #1B3559;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #099F97;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-preview .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
