/* 전체 헤더 스타일 */
#header {
    width: 100%;
    position: relative;
}

/* 최상단 컨테이너 설정 */
.top-container {
    width: 100%;
    display: flex;
    flex-direction: column; /* 세로로 정렬 */
}

/* 첫 번째 컨테이너 설정 */
.first-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5%;
    padding: 5px;
    background: #A5FF93;
}

/* 두 번째 컨테이너 - 로고와 검색 영역 중앙 정렬 */
.second-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.5rem;
    background-color: #FF6600;
    gap: 1rem; /* 요소 간 좌우 간격 설정 (1rem: 간격 조정 가능) */
    color: black; /* 글씨 색깔을 검정색으로 */;
    border-top: 3px solid black;
    border-bottom: 3px solid black;
}

.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: 3rem;
    font-weight: bold;
    color: black !important;
    text-decoration: none !important; /* 밑줄 제거 */

    /* 흰색 테두리 효과 */
    text-shadow: -2px -2px 0 white,
    2px -2px 0 white,
    -2px 2px 0 white,
    2px 2px 0 white;
}

.search-input {
    padding: 0 1rem;
    width: 30rem;
    height: 3rem;
    border: 1px solid #a8a8a8;
    border-radius: 5px;
}

.search-button {
    font-size: 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-custom {
    background-color: #ff6600;
    border: 1px solid #ff6600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-custom:hover {
    background-color: #e65c00;
    border-color: #e65c00;
}

.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;
    }

}
