.elementor-1524 .elementor-element.elementor-element-752e86e{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-1524 .elementor-element.elementor-element-20e874e > .elementor-widget-container{margin:20px 0px 0px 0px;}.elementor-1524 .elementor-element.elementor-element-20e874e{text-align:left;}.elementor-1524 .elementor-element.elementor-element-20e874e .elementor-heading-title{font-family:"Open Sans", Sans-serif;font-size:40px;font-weight:700;color:#213768;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-1524 .elementor-element.elementor-element-fd1fb38 > .elementor-widget-container{margin:0px 0px 0px 0px;}.elementor-1524 .elementor-element.elementor-element-fd1fb38{text-align:left;font-family:"Open Sans", Sans-serif;font-size:18px;font-weight:600;color:#213768;}.elementor-1524 .elementor-element.elementor-element-6df983a{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-weight:var( --e-global-typography-secondary-font-weight );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-1524 .elementor-element.elementor-element-5b5c1cf{--divider-border-style:solid;--divider-color:#BB1731;--divider-border-width:1px;width:100%;max-width:100%;}.elementor-1524 .elementor-element.elementor-element-5b5c1cf .elementor-divider-separator{width:100%;}.elementor-1524 .elementor-element.elementor-element-5b5c1cf .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-1524 .elementor-element.elementor-element-97d23c6{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-1524 .elementor-element.elementor-element-8065137 > .elementor-widget-container{margin:20px 0px 0px 0px;}.elementor-1524 .elementor-element.elementor-element-8065137{text-align:left;}.elementor-1524 .elementor-element.elementor-element-8065137 .elementor-heading-title{font-family:"Open Sans", Sans-serif;font-size:40px;font-weight:700;color:#213768;}@media(min-width:768px){.elementor-1524 .elementor-element.elementor-element-752e86e{--content-width:570px;}}/* Start custom CSS */.page-content-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
.main-listing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


.search-keyword-container {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

#keyword-search {
    width: 44%;
    padding: 10px;
    border: 1px solid #213768;
    border-radius: 1px 1px 1px 20px;
    font-size: 16px;
    padding-right: 40px;
    box-sizing: border-box;
}



@media (max-width: 767px) {
    #keyword-search {
        width: 100%;
    }
}



.search-icon {
    position: absolute;
    top: 55%;
    right: 29%;
    transform: translateY(-50%);
    cursor: pointer;
}

@media (max-width: 767px) {
    .search-icon {
        right: 3%;
    }
}

.search-icon img {
    width: 28px;
    height: 28px;
}


#search-button {
    padding: 10px 20px;
    background-color: #FF6B6B;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
}

#search-button:hover {
    background-color: #FF8F8F;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 180px;
    overflow: hidden;
}

.filter-title {
    width: 100%;
    background-color: #bb1731;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 8px;
    box-sizing: border-box;
    margin-bottom: 12px;
    border: 1px solid #ddd; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 1px 1px 1px 20px;
    text-align: left;
}


.filter-item select {
    width: 100%;
    padding: 10px;
    border: 2px solid transparent; /* Default border */
    background-color: #d6dcea;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #213768;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2216%22%20height%3D%2220%22%20viewBox%3D%220%200%2018%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M8%200L15.7942%208.37028H0.205773L8%200Z%22%20fill%3D%22%23213768%22/%3E%3Cpath%20d%3D%22M8%2020L15.7942%2011.6297H0.205773L8%2020Z%22%20fill%3D%22%23213768%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 20px;
    cursor: pointer;
    box-sizing: border-box;
    transition: border 0.3s, box-shadow 0.3s; /* Smooth transition */
}

/* Hover effect */
.filter-item select:hover {
    border-color: #213768; /* Highlight border on hover */
    box-shadow: 0 0 8px rgba(33, 55, 104, 0.5); /* Subtle shadow */
}

/* Active/focus state */
.filter-item select:focus {
    border-color: #FF6B6B; /* Bright border on focus */
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.6); /* Stronger shadow */
    outline: none; /* Remove default focus outline */
}


.filter-item select:disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    border-color: transparent;
    cursor: not-allowed;
}




@media (max-width: 1024px) {
    .filters-container {
        flex-direction: column;
        align-items: center;
    }
    .filter-item {
        width: 100%;
        max-width: 300px;
    }
}


.adoption-children-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.adoption-child-item {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    background-color: white;
    border: 1px solid #213768;
    border-radius: 1px 1px 1px 20px;
    padding: 15px;
    box-sizing: border-box;
    text-align: left;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.6), 
                0px 4px 8px rgba(0, 0, 0, 0.2);
}

.adoption-child-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 1px 1px 1px 20px;
    margin-bottom: 10px;
}

.adoption-child-item h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #213768;
    margin: 0 0 10px 0;
}

.adoption-child-item p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #213768;
    margin: 5px 0;
    font-weight: normal;
}

.adoption-child-item a.view-details-button {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #D32F2F;
    text-decoration: none;
    margin-top: 10px;
}

.adoption-child-item a.view-details-button:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .adoption-child-item {
        flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 767px) {
    .adoption-child-item {
        flex: 1 1 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}

/* Loading icon */
#loading-icon {
    display: block;
    text-align: center;
    padding: 250px;
}

#loading-icon img {
    max-width: 100px;
}

@media (max-width: 767px) {
    #loading-icon {
        padding: 120px;
    }
}

/* Results section */
#adoption-children-results {
    position: relative;
    min-height: 150px;
    width: 100%;
    text-align: center;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    padding: 0 20px;
}

.filter-label {
    font-size: 20px;
    font-weight: bold;
    color: #213768;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: -20px;
}

.reset-filters {
    font-size: 20px;
    color: #8b8bab;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: bold;
}

.reset-filters:hover {
    color: #ca1835;
}

@media (max-width: 767px) {
    /* Keep your existing CSS that's working */
    .filters-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .filter-item {
        display: flex;
        flex-direction: row; 
        width: 100%;
        margin: 0;
    }
    
    .filter-title {
        flex: 0 0 50%;
        width: 50%;
        padding: 12px;
        text-align: center;
        background-color: #bb1731;
        color: white;
        box-sizing: border-box;
        display: flex;
    }
    
    .filter-select {
        flex: 0 0 50%;
        width: 50%;
        box-sizing: border-box;
    }
    
    #gender, #dob, #orphanage, #year, #dna {
        margin-left: 5px;
        width: 100%;
        padding: 12px;
        border: none;
        box-sizing: border-box;
    }
    
.adoption-child-item {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "image title"
        "image gender"
        "image birth"
        "image link";
    padding: 8px;
    box-shadow: none;
    min-height: 120px;
    background-color: white;
}

.adoption-child-item img {
    grid-area: image;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    align-self: center;
}

.adoption-child-item h2 {
    grid-area: title;
    margin: 0;
    padding: 0 0 0 10px;
    font-size: 14px;
    color: #213768;
}

.adoption-child-item p:nth-of-type(1) {
    grid-area: gender;
    width: 100%;
    padding: 0 0 0 10px;
    margin: 3px 0;
    font-size: 14px;
    box-sizing: border-box;
}

.adoption-child-item p:nth-of-type(2) {
    grid-area: birth;
    width: 100%;
    padding: 0 0 0 10px;
    margin: 3px 0;
    font-size: 14px;
    box-sizing: border-box;
}

.adoption-child-item a.view-details-button {
    grid-area: link;
    margin: 5px 0 0 10px;
    font-size: 14px;
    color: #D32F2F;
    padding-bottom: 8px;
}
}/* End custom CSS */