.epi_introduction .statistic .label
{
    font-size: 0.9em!important;

}

.epi_introduction .statistic .value
{
    font-size: 2.2em!important;
}

.epi_introduction .definition_desc
{
    font-size: 1.4em!important;
    line-height: 1.4;
}

.no_top_padding
{
    padding-top:0!important;
}

.no_top_margin
{
    margin-top:0!important;
}

.epi_constituent_district_table tr td
{
    font-size: 1.25em;
}

.homepage_search_epi::after
{
    content: '';
    background-image: url(/assets/images/epi_bg3.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: -1;
}

.homepage_search_epi::before
{
    content: '';
    background-color: #f8f9fa;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.homepage_search_epi {
    position: relative;
    overflow: hidden;
}

.epi_introduction .ui.segment
{
    background-color: rgba(249, 249, 249, 0.8) !important
}

.epi_introduction .ui.segment .statistic .label{
    text-transform: unset!important;
}

.epi_introduction .intro_words{
    font-size: 1.2em!important;
}

.epi_introduction_eng .definition_desc{
    font-size: 1.2em!important;
}

h2.ui.header{
    font-weight: bold!important;
}

.color-buy{
    color: #c92a2a!important;
}

.color-rent{
    color: #23814C!important;
}

.color-positive{
    color: #28a745!important;
}

.color-negative{
    color: #dc3545!important;
}

.color-zero{
    color: #6c757d!important;
}

.news-description {
    margin-top: 10px!important;
    font-size: 14px!important;
    color: #555!important;
    text-align: left!important;
}

.news-description .news-title {
    font-size: 1.3em!important;
    font-weight: bold!important;
    margin-bottom: 10px!important;
}

.news-description .news-title-mobile {
    font-weight: bold!important;
    margin-bottom: 10px!important;
}


.ui.dropdown#query-option {
    width: 100% !important;
    box-sizing: border-box !important;
}

.ui.dropdown#query-option .menu {
    width: 100% !important;
    box-sizing: border-box !important;
}

.ui.dropdown#query-option {
    border: 1px solid #d4d4d5 !important;
    border-radius: 0px !important;
    padding: 10px !important;
    box-shadow: none !important;
}

.ui.dropdown#query-option .default.text {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5em !important;
}

.ui.dropdown#query-option:hover {
    border-color: #85b7d9 !important;
}

.ui.dropdown#category-option {
    width: 100% !important;
    box-sizing: border-box !important;
}

.ui.dropdown#category-option .menu {
    width: 100% !important;
    box-sizing: border-box !important;
}

.ui.dropdown#category-option {
    border: 1px solid #d4d4d5 !important;
    border-radius: 0px !important;
    padding: 10px !important;
    box-shadow: none !important;
}

.ui.dropdown#category-option .default.text {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5em !important;
}

.ui.dropdown#category-option:hover {
    border-color: #85b7d9 !important;
}

.ui.horizontal.divider.desktop {
    font-size: 1.3rem !important;
    font-weight: bold !important;
}

.ui.horizontal.divider.desktop {
    font-weight: bold !important;
}




.bordered-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    overflow: hidden;
    font-size: 11px; /* Smaller font size */
}
.bordered-table .row {
    display: flex;
    border-bottom: 1px solid #ccc;
}
.bordered-table .row:last-child {
    border-bottom: none;
}
.bordered-table .cell {
    flex: 1;
    padding: 2px; /* Reduced padding */
    text-align: center;
    border-right: 1px solid #ccc;
}
.bordered-table .cell:last-child {
    border-right: none;
}
.bordered-table .header {
    background-color: #f9f9f9;
    font-weight: bold;
}
.up-rate {
    color: green;
}
.down-rate {
    color: red;
}

.font-color-black
{
    color:black!important;
}


.historical.wide.column {
    display: flex!important;
    flex-wrap: nowrap!important;
    gap: 4px!important;
}

.epi_historical_district_btn {
    padding: 10px 19px!important;
    font-size: 14px!important;
    margin: 0!important;
    white-space: nowrap!important;
}

.search_download.wide.column {
    display: flex!important;
    justify-content: flex-end!important;
    align-items: center!important;
}

.ui.buttons.switcher {
    margin-bottom: 10px!important;
    margin-left: 10px!important;
}

.custom-legend {
    position: absolute;
    left: 0;
    bottom: -40px;
    display: flex;
    align-items: center;
    gap: 20px; /* spacing between the two pairs */
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.legend-pair {
    display: flex;
    align-items: center;
}

.legend-item {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    margin-right: 4px; /* reduce gap between icon and text */
}

.legend-item.green {
    background-color: #23814C;
}

.legend-item.grey {
    background-color: #808080;
}



.custom-legend-mobile {
    position: absolute;
    left: 0;
    bottom: -30px;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.legend-pair-mobile {
    display: flex;
    align-items: center;
}

.legend-item-mobile {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
}

.legend-item-mobile.green {
    background-color: #23814C;
}

.legend-item-mobile.grey {
    background-color: #808080;
}

@media screen and (max-width: 767px) {
    .custom-legend-mobile {
        font-size: 12px;
        gap: 16px;
        bottom: -24px;
    }

    .legend-item-mobile {
        width: 10px;
        height: 10px;
        margin-right: 3px;
    }
}