#google-ad-1 {
    margin-top: 8vh;
    padding: 5px 5%; /* Padding 설정 */
    height: 150px;
}

#container {
    padding: 5px 5%; /* Padding 설정 */
    background-color: #f9fafb; /* 배경색 설정 */
    display: flex;
    flex-direction: column;
    gap: 20px; /* 상단과 하단 패널 간격 */
}

#inner-container {
    display: flex;
    padding: 20px 0; /* 상하 패딩 */
}

/* Mobile layout */
@media screen and (max-width: 768px) {
    #inner-container {
        display: flex;
        flex-direction: column-reverse; /* Stack elements vertically, but reverse the order */
        margin: 0;
        padding: 0;
    }

    #right-panel, #left-panel {
        width: 100%; /* Full width on mobile */
        margin: 10px 0;
        padding: 0;
        box-sizing: border-box;
    }
}

#left-panel {
    flex: 8; /* 80% */
    padding: 10px;
    background-color: #ffffff; /* 흰색 */
    border-radius: 8px; /* 동그란 테두리 */
    overflow-y: auto; 
}

#right-panel {
    flex: 2; /* 20% */
    padding: 10px;
    background-color: #ffffff; /* 흰색 */
    border-radius: 8px; /* 동그란 테두리 */
    margin-bottom: 5%;
}

.btn-custom {
    width: 100%; /* 버튼 크기 맞춤 */
}

.input-group {
    width: 100%;
}

.input-group .input-group-text {
    background-color: white; /* 돋보기 아이콘의 배경색 */
}

.pagination {
    justify-content: center;
}

/* 기본 메뉴 아이템 스타일 */
.menu-item {
    position: relative;
    margin-left: 20px;
}

/* 드롭다운 메뉴 스타일 */
.dropdown {
    display: flex;
    border-radius: 8px;
    border: 1px solid #EEE;
    background: #FFF;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    position: relative;
    min-width: 180px;
    height: 40px;
}

.dropdown:hover,
.dropdown:focus {
    outline: 2px solid #007bff; /* 파란색 윤곽선 */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 약간의 그림자 */
}



.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 12px 12px 12px 16px;
    align-items: center;
    box-sizing: border-box;
    color: #242424;
    text-align: justify;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 21px */
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #EEE;
    background: #FFF;
    box-shadow: 0px 0px 34px 0px #EEE;
    z-index: 1000;
}

.dropdown li {
    list-style: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    height: 21px;
}

.dropdown li:hover {
    background-color: #F8F8FA;
}

.filter-option li:hover {
    background-color: #F8F8FA;
}

.dropdown.active .dropdown-menu {
    display: block;
}
/* .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid gray;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 150px;
    z-index: 1001;
} */

/* 드롭다운 메뉴 항목 스타일 */
/* .dropdown-item {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
    font-weight: normal;
    white-space: nowrap;
} */

/* .dropdown-item:hover {
    background-color: #f0f0f0;
    color: black;
}

/* 마우스 오버 시 드롭다운 메뉴 표시 */
.menu-item:hover .dropdown {
    display: block;
} */
#container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh; /* Ensures full viewport height */
    padding-bottom: 80px; /* To avoid overlap with footer */
}

#inner-container {
    flex: 1; /* Allow inner content to take up remaining space */
    padding-bottom: 50px; /* Padding to push the content above the footer */
}

#footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 400px 20px;
    position: relative;
    width: 100%;
    background-color: #f8f8fa;
}

.pagination {
    justify-content: center;
    margin-bottom: 20px;
    position: relative; /* Keeps pagination in normal flow */
    z-index: 1; /* Lower than footer */
}

.sort-icon {
    margin-left: 5px;
    transition: color 0.2s ease;
}
.sort-icon.text-muted {
    color: #adb5bd;
}

.sort-icon.active{
    color: #000;
}
