/*
Theme Name: locall-pro
Description: locall.pro is a Broad Niche Directory Website that targets the All niche for All City in All Country
Author: Imran Chhipa
Theme URI: https://blogsbank.com/
Author URI: https://imranchhipa.com/
Version: 2025-A
Template: citations-network
License: Themeforest Split Licence
License URI: https://themeforest.net/user/scriptsbundle/
Text Domain: locall-pro
Tags: translation-ready,theme-options, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo,featured-images,  sticky-post,  threaded-comments
*/

#userForm .select2-container.select2-container--locall-pro-modal {
    width: 100% !important;
}

.select2-container--locall-pro-modal.select2-container .select2-dropdown .select2-results__option--highlighted {
    background-color: #000;
    color: #fff;
}

:is(input, textarea).form-control {
    font-weight: 400;
}

#userForm :is(select, input) {
    height: 40px;
    font-size: 14px;
}

#userForm textarea {
    resize: none;
    font-size: 14px;
}

#popmake-20252 {
    background: url(/wp-content/uploads/2025/09/Sample-Image.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 740px;
}

#popmake-20252 .form-body {
    width: 80%;
    margin: 0 auto;
}

.form-body .notification-wrapper {
    display: none;
    background: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
}

.form-body .notification-wrapper #msg {
    margin-bottom: 0;
    font-weight: 600;
}

.form-body .notification-wrapper .success-msg {
    color: green;
}

/* Popup Style 2 */
:is(#popmake-22029, #popmake-22031) .pum-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    column-gap: 15px
}

#popmake-22031 .pum-content {
    flex-direction: row-reverse;
}

:is(#popmake-22029, #popmake-22031) .pum-content .popup-image {
    width: 48%;
}

:is(#popmake-22029, #popmake-22031) .pum-content .form-body {
    width: 50%;
}

.category-grid {
    display: grid;
    gap: 20px;
    margin: 40px 15px;
}

/* Setting Layout as per number of terms */
.three-terms-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
}

.four-terms-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 350px;
}

.five-terms-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    max-width: 90%;
    margin: 40px auto;
}

/* Make the first item larger */
.five-terms-grid .category-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.six-terms-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
}

.seven-terms-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
}

/* Make the fourth item larger */
.seven-terms-grid .category-item:nth-child(4) {
    grid-column: span 2;
}

.seven-terms-grid .category-item:nth-child(5) {
    grid-row: span 2;
}

.category-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-item:hover {
    transform: scale(1.02);
}

.overlay {
    position: absolute;
    top: 25px;
    left: 25px;
    right: auto;
    bottom: auto;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    color: #fff;
    padding: 20px;
    width: 80%;
    max-width: 300px;
}

.overlay h3 {
    color: #fff;
    margin: 0;
}

.overlay p {
    margin: 5px 0 10px;
    color: #dddddd;
    font-weight: 700;
    font-size: 14px;
}

.view-all {
    color: #ff0077;
    font-weight: 600;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* Browse All button */
.browse-all {
    text-align: center;
    margin-top: 30px;
}

.browse-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #ff0077;
    color: #ff0077;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.browse-btn:hover {
    background: #ff0077;
    color: #fff;
}

/* Responsive behavior */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-item.featured {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .category-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media screen and (max-width:767px) {
    #popmake-20252 .form-body {
        width: 100%;
    }
}