/* 전체 헤더 스타일 */
#header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 최상단 컨테이너 설정 */
.top-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 첫 번째 컨테이너 설정 */
.first-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white;
}

/* 두 번째 컨테이너 - 로고와 검색 영역 중앙 정렬 */
.second-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.second-container-content {
    display: flex;
    justify-content: space-between; /* 왼쪽과 오른쪽 정렬 */
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-menu {
    flex-shrink: 0; /* 크기 고정 */
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.second-container a {
    color: black; /* 링크 글씨도 검정색으로 */
    text-decoration: none; /* 링크 밑줄 제거 */
}

.second-container a:hover {
    text-decoration: underline; /* 링크 호버 시 밑줄 추가 (선택 사항) */
}


.logo-image {
    height: 4rem;
}

.site-brand {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-name {
    font-family: 'Headland One', serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.search-input {
    padding: 0 1.5rem;
    width: 30rem;
    height: 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button {
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button span {
    font-size: 1rem;
}

.btn-custom {
    background: white;
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.topKeywords-slider {
    padding: 0 !important;
}

.keyword-item {
    width: 140px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* 줄바꿈 방지 */
    overflow: hidden;
}

.keyword-item:hover {
    cursor: pointer;
    color: #111;
}

.rank-top {
    color: red;
}

@media screen and (max-width: 768px) {

    .logo-image {
        height: 3.5rem;
    }

    .site-name {
        font-size: 2.5rem;
        text-align: center;
        margin-right: 0;
    }

    .search-form {
        width: 100%;
    }

    .right-menu {
        gap: 0.5rem;
    }

    .first-container {
        height: 5%;
        padding: 1%;
    }

    .second-container-content {
        width: 100%;
        align-items: center; /* 가운데 정렬 */
        text-align: center;
        gap: 1rem; /* 요소 간 간격 */
        padding: 0 1rem;
    }

    .keyword-item {
        width: 100px;
    }

}
