/*
 Theme Name:   Alam Mo Ba Baguio
 Theme URI:    https://li2.cc
 Description:  Alam Mo Ba Baguio
 Author:       litopj
 Author URI:   https://li2.cc
 Template:     my-listing
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  alam-mo-ba
*/
.alf-listings.thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.alf-listings.thumbs a { width: 100%; height: 100%; display: block; }
.alf-listings.thumbs a img { width: 100%;  object-fit: cover; border-radius: 10px; aspect-ratio: 1 / 1;}

.latest-blog-posts { display: flex; flex-direction: column; gap: 10px; }
.latest-blog-posts a { display: block; width: 100%; height: 100%; }
.latest-blog-posts a img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px;}
.alf-listings.thumbs a > strong { display: inline-block; text-overflow: ellipsis; white-space: nowrap; width: 150px; overflow: hidden; max-width: 100%; margin: 10px auto 0; font-size: 10px;}
.latest-blog-posts a > strong { display: inline-block; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-width: 100%; margin: 10px auto 0; }

#masthead .e-con{
    align-content: center;
}

.site-views-widget{
    text-align: center;
    color: #FFF;
    font-size: 20px;
    font-weight: bold;
}


/* 5-col row listings */
@media (min-width: 1200px) {
    .col-lg-5th {
        width: 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }

    .elementor-widget-case27-listing-feed-widget .col-md-3{
        width: 20%;
    }
}


@media (max-width: 1200px) {
    .profile-cover.profile-cover-no-img {
        display: none !important;
    }

}


#event-filter-buttons{
    margin-bottom: 30px;
}

#event-filter-buttons a.btn{
    padding: 5px;
    margin-bottom: 5px; 
    margin-right: 10px;
    border-bottom: solid 2px #ccc;

    font-weight: bold;
}

#event-filter-buttons a.btn:hover,
#event-filter-buttons a.btn.active{
    color: #ffbc11;
    border-bottom: solid 2px #ffbc11;
}

@media (max-width: 767px) {
    #event-filter-buttons a.btn{
        display: inline-block;
        margin-bottom: 10px;
    }

    .elementor-699 .elementor-element.elementor-element-b635898 .hfe-nav-menu-icon {
        margin-bottom: -3px;
    }
}


/* home page row 1, listings boxes */
.elementor-element-f4edd12{
    
}

@media (min-width: 1024px) and (max-width: 1400px) {
    .alf-listings.thumbs .alf-listing{
        width: 90%;
    }
}

@media (max-width: 1400px) {
    /*.elementor-element-f4edd12{
        max-width: 1025px;
    }*/

    .elementor-132 .elementor-element.elementor-element-bf9d6d9 {
        --e-con-grid-template-columns: repeat(3, 1fr);
        --e-con-grid-template-rows: repeat(3, 1fr);
        --grid-auto-flow: row;
    } 
    
}

@media (max-width: 1024px) {
    /*.elementor-element-f4edd12{
        max-width: 768px;
    }*/

    .elementor-132 .elementor-element.elementor-element-bf9d6d9 {
        --e-con-grid-template-columns: repeat(2, 1fr);
        --e-con-grid-template-rows: repeat(2, 1fr);
        --grid-auto-flow: row;
    }
}

@media (max-width: 768px) {
    /*.elementor-element-f4edd12{
        max-width: 425px;
    }*/

    .elementor-132 .elementor-element.elementor-element-bf9d6d9 {
        --e-con-grid-template-columns: repeat(1, 1fr);
        --e-con-grid-template-rows: repeat(1, 1fr);
        --grid-auto-flow: row;
    }
}

@media (max-width: 480px) {
    .lf-item-info-2>ul.lf-contact li{
        font-size: 12px;
    }
    .lf-item-container .event-host{
        font-size: 12px;
    }
}




/* adjustment for mobile screens */
@media (max-width: 480px) {
    p{
        font-size: 14px;
    }

    .profile-cover.profile-cover-no-img{
        height: 0px;
    }

    .profile-name h1{
        font-size: 16px;
    }

    .profile-name h2{
        font-size: 14px;
    }

    .price-or-date .lmb-label{
        font-size: 14px;
    }

    .price-or-date .value{
        font-size: 14px;
    }

    .title-style-1 h5{
        font-size: 14px;
    }

    .quick-listing-actions>ul>li>a{
        padding: 7px 10px;
        font-size: 14px;
    }
}


.blog-featured-image{
    max-width: 800px;
    margin: 30px auto;
}



/* listings list */
.form-group.fc-search {
    z-index: 98 !important;
}

.lf-item-info-2 h4 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.lf-item{
    /*height: 426px;*/
}

.lf-type-2 .lf-item{
    height: 365px;
    background: #FFF;
}

.lf-type-2 .lf-item .overlay {
    height: auto;
    aspect-ratio: 1 / 1;
}

.lf-type-2 .lf-item>a{
    /*height: 309px;*/
    height: auto;
    aspect-ratio: 1 / 1;
}

.no-logo.has-tagline.has-info-fields .lf-item-info-2{
    transform: translateY(calc(100% - 120px));
    height: 120px;
}

.lf-item-container{
    box-shadow: 0 1px 4px rgb(0 0 0 / 21%);
}

.lf-item-container .lf-item-info-2{
    transform: translateY(0);
}

.lf-type-2 .lf-item-info-2{
    position: relative;
}

.block-field-job_gallery .gallerySlider .owl-carousel.owl-drag .owl-item{
    aspect-ratio: 1 / 1;
    height: auto;
}

.block-field-job_gallery .gallerySlider .galleryPreview a{
    height: auto;
    aspect-ratio: 1 / 1;
}

.block-field-job_gallery .gallerySlider .galleryPreview a img{
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.block-field-job_gallery .gallerySlider .gallery-thumb a {
    aspect-ratio: 1 / 1;
}

@media (max-width: 1440px) {
    .lf-type-2 .lf-item{
        height: 316px;
    }
}

@media (max-width: 1200px) {
    .lf-type-2 .lf-item{
        height: 420px;
    }
}

@media (max-width: 1024px) {
    
    .lf-type-2 .lf-item{
        height: 360px;
    }

    /*
    .lf-type-2 .lf-item>a{
        height: 225px;
    }*/

    /*.no-logo.has-tagline.has-info-fields .lf-item-info-2{
        transform: translateY(calc(100% - 120px));
        height: 120px;
    }*/

}

@media (max-width: 768px) {
    .lf-type-2 .lf-item{
        height: 325px;
    }

    /*
    .lf-type-2 .lf-item>a{
        height: 177px;
    }*/

    /*.no-logo.has-tagline.has-info-fields .lf-item-info-2{
        transform: translateY(calc(100% - 120px));
        height: 120px;
    }*/
}

@media (max-width: 480px) {
    .lf-type-2 .lf-item{
        height: 305px;
    }

    .fc-type-2-results .listing-details .category-name{
        font-size: 12px;
    }

    .lf-item-info-2>ul.lf-contact li{
        font-size: 12px;
    }
}

@media (min-width: 1601px) {
    .lf-type-2 .lf-item{
        height: 315px;
    }
}




/* grid overide */
@media (min-width: 992px) {
    .col-md-3 {
        width: 33.333%;
    }
}

@media (min-width: 1200px) {
    .col-md-3 {
        width: 25%;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .elementor-132 .elementor-element.elementor-element-288d355 > .elementor-container,
    .elementor-132 .elementor-element.elementor-element-d1b35fa > .elementor-container{
        max-width: 970px !important;
    }
}





/* single listing */
.profile-cover.profile-cover-no-img {
    /*min-height: 115px;*/
    height: auto;
    background: #FFF;
    color: #000;
    padding: 10px 0;

    display: none;
}

.single-job-listing .listing-main-info{
    position: relative;
    left: auto;
    bottom: 0;
    transform: translateX(0%);
    left: auto;
}

.listing-main-info h1, 
.listing-main-info h2{
    color: #000;
}

.listing-details-title .pf-head{
    display: none;
}

.listing-details-title .pf-body{
    padding: 0px;
}

.listing-details-title .pf-body p{
    font-size: 22px; font-weight: bold;
    padding: 0; margin: 0;
}

.profile-body{
    padding-top: 0px;
}


@media only screen and (max-width: 1024px) {
    .listing-main-buttons>ul{
        display: block;
    }
}

@media only screen and (max-width: 425px) {
    .profile-cover.profile-cover-no-img{
        display: block;
    }

    .listing-details-title{
        display: none;
    }
}



/* single listing ad */
.lpj_single_listing_featured{
    background: #dddddd;
    min-height: 60px;
    text-align: center;
    color: #444;
}

.lpj_single_listing_featured .featured_item{
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpj_single_listing_featured .featured_img_wrap{
    display: inline-block;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.lpj_single_listing_featured a.featured_link{
    display: inline-block;
    line-height: 1.5;
}


.lpj_listing_terms{
    max-width: 1270px;
    margin: 0 auto;
    padding: 10px;
    padding: 10px; font-size: 10px;
}




/*explore page*/

@media only screen and (max-width: 1200px) {
    .finder-three-columns .explore-type-4 .container .explore-classic-content .fc-type-2-results .col-md-6 {
        width: 33.3% !important;
    }
}

@media only screen and (max-width: 579px) {
    .cts-explore .explore-classic-content .results-view .col-md-12, 
    .cts-explore .explore-classic-content .results-view.fc-type-2-results .col-sm-6,
    .finder-three-columns .explore-type-4 .container .explore-classic-content .fc-type-2-results .col-md-6 {
        width: 50% !important;
        float: left;
    }

    .cts-explore .results-view .col-md-12, 
    .cts-explore .results-view.fc-type-2-results .col-sm-6 {
        width: 50% !important;
        float: left;
    }
}


@media only screen and (min-width: 1201px) {
    .finder-three-columns .explore-type-4 .container .explore-classic-content .fc-type-2-results .col-md-6 {
        width: 25% !important;
    }
}

@media (min-width: 1450px) {
    .elementor-widget-case27-explore-widget .finder-three-columns .explore-type-4 .container {
        width: 100% !important;
    }
}


/* announcement lists */
#announcement-category-buttons {
    margin-bottom: 20px;
}
.category-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.category-button:hover {
    background-color: #0F7341;
    color: #fff;
    border-color: #0F7341;
}
.category-button.active {
    background-color: #0F7341;
    color: #fff;
    border-color: #0F7341;
}

/* Announcement cards */
.announcement-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.announcement-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.announcement-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.announcement-image img {
    width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}
.announcement-content {
    flex: 1;
}
.announcement-content h3 {
    margin: 0 0 10px;
}
.announcement-content h3 a {
    color: #000;
    text-decoration: none;
}
.announcement-content h3 a:hover {
    /*text-decoration: underline;*/
    color: #0F7341;
}
.announcement-meta {
    font-size: 14px;
    margin-bottom: 10px;
}
.announcement-meta a {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #FEBE0B;
    color: #FFF;
    text-decoration: none;
    font-weight: 500;
}
.announcement-meta a:hover {
    background-color: #0F7341;
    color: #fff;
}

#announcement-loading-spinner {
    text-align: center;
    margin: 20px 0;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.announcement-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

/* Pagination container */
.announcement-card-list + .page-numbers,
.announcement-card-list ~ .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

/* Individual pagination links */
.page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}


/* single announcement */ 
.announcement .title-style-1 h1{
    margin-top: 0px; 
    margin-bottom: 30px;
}
.announcement-featured-image{
    max-width: 900px;
    margin: 0 auto;
    height: auto;
}

.announcement-featured-image img{
    width: 100%;
    height: auto;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    background: #ccc;
}

.elementor-element .swiper .elementor-swiper-button svg{
    fill: #0f7341 !important;
}



/* blog sidebar  */
.wp-singular .sidebar-widgets label{
    width: 100%;
    display: block;
}

.wp-singular .sidebar-widgets .search-field{
    border: solid 1px #ccc;
    padding: 10px;
    background: #FFF;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wp-singular .sidebar-widgets .search-submit{
    padding: 10px;
    border-radius: 5px;
    background: #0f7341;
    color: #FFF;
}

.wp-singular .sidebar-widgets .c_widget{
    background: #FFF;
    padding: 10px;
}

.wp-singular .sidebar-widgets .c_widget ul li a{
    display: block;
    padding: 10px;
    border-bottom: solid 1px #e3e3e3;
    border-radius: 6px;
}

.wp-singular .sidebar-widgets .c_widget ul li a:hover{
    background: #0f7341;
    color: #FFF;
}



@media only screen and (max-width: 579px) {
    .page .metaslider a.metaslider_image_link{
        /*display: block;*/

        display: flex;
        align-items: center; 
        justify-content: center; 

        height: 120px;
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    .page .metaslider .slides img{
        width: auto;
        display: block;
        height: 100%;
        max-width: none;
        /*margin-left: -50% !important;*/
    }
}
