/* 
Theme Name: Custom Hello Theme Child
Theme URI: https://archicoders.com/
Description: Custom Child Theme for Hello Elementor
Author: Archicoders Team
Author URI: https://archicoders.com/
Template: hello-elementor
Version: 1.1.2
Text Domain: archicoders-child-master
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

html {
    font-size: clamp(9px, 0.521vw, 10px);
}

body {
    font-size: 1.6rem;
}

p:last-child {
    margin-bottom: 0;
}

/*
    Add your custom styles here
*/
.elementor-35 .elementor-element.elementor-element-808304e,
.elementor-1459 .elementor-element.elementor-element-3a34d2a9,
.elementor-button {
    cursor: pointer;
}

.page-header {
    text-align: center;
    margin-top: 100px;
}

.page-content {
    text-align: center;
}

/* ADD GAURAV CSS */

body header {
    height: auto !important;
}

/*
 * The Elementor header is designed as a transparent, absolutely-positioned
 * overlay with white navigation. Search uses a light hero, so give this route
 * a real dark header band and reserve its height for the existing menu.
 */
body.search .elementor-location-header {
    display: block;
    position: relative;
    z-index: 20;
    height: 11.2rem !important;
    min-height: 11.2rem;
    background: #0f0f0f;
}

body.search .elementor-location-header .elementor-9 .elementor-element.elementor-element-8ab4eb2 {
    width: 100%;
}

/* Search results */
.creatorx-search {
    --creatorx-search-accent: #2385ff;
    --creatorx-search-text: #090909;
    --creatorx-search-muted: #9a9a9a;
    background: #f8f8f8;
    color: var(--creatorx-search-text);
    font-family: "Poppins", Arial, sans-serif;
    min-height: 60vh;
}

.creatorx-search__container {
    width: calc(100% - 4rem);
    max-width: 129.6rem;
    margin-inline: auto;
}

.creatorx-search__hero {
    display: flex;
    position: relative;
    top: auto;
    z-index: auto;
    height: auto;
    min-height: 25.5rem;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    border: 0;
    background: #f4f4f4;
    text-align: center;
}

.creatorx-search .creatorx-search__title,
.creatorx-search .creatorx-search__count {
    margin: 0;
    color: var(--creatorx-search-text);
    font-family: "Poppins", Arial, sans-serif;
    font-style: normal;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

.creatorx-search .creatorx-search__title {
    font-size: clamp(3rem, 3vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
}

.creatorx-search .creatorx-search__count {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 2vw, 3.2rem);
    font-weight: 600;
    line-height: 1.25;
}

.creatorx-search__results {
    padding: 7.4rem 0 9rem;
}

.creatorx-search__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 3rem;
    align-items: stretch;
}

.creatorx-search-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 2px 3px rgb(0 0 0 / 6%);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.creatorx-search-card:hover {
    box-shadow: 0 10px 28px rgb(0 0 0 / 12%);
    transform: translateY(-2px);
}

.creatorx-search-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ededed;
}

.creatorx-search-card__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.creatorx-search-card:hover .creatorx-search-card__image > img {
    transform: scale(1.025);
}

.creatorx-search-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 2.8rem;
    background: #111;
}

.creatorx-search-card__placeholder img {
    width: min(82%, 21rem);
    height: auto;
    object-fit: contain;
}

.creatorx-search-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.8rem 1.8rem 2.2rem;
}

.creatorx-search .creatorx-search-card__title {
    margin: 0;
    color: var(--creatorx-search-text);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.creatorx-search .creatorx-search-card__title a {
    color: var(--creatorx-search-text);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-decoration: none;
}

.creatorx-search-card__title a:hover,
.creatorx-search-card__title a:focus-visible {
    color: var(--creatorx-search-text);
    text-decoration: underline;
}

.creatorx-search-card__type {
    margin: auto 0 0;
    padding-top: 0.8rem;
    color: var(--creatorx-search-muted);
    font-size: 1.5rem;
    line-height: 1.4;
}

.creatorx-search__pagination {
    margin-top: 5.5rem;
}

.creatorx-search__pagination > ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.creatorx-search__pagination a,
.creatorx-search__pagination span {
    display: grid;
    min-width: 4rem;
    min-height: 4rem;
    place-items: center;
    padding: 0.6rem 1.2rem;
    border: 1px solid #dedede;
    background: #fff;
    color: var(--creatorx-search-text);
    text-decoration: none;
}

.creatorx-search__pagination .current,
.creatorx-search__pagination a:hover,
.creatorx-search__pagination a:focus-visible {
    border-color: var(--creatorx-search-accent);
    background: var(--creatorx-search-accent);
    color: #fff;
}

.creatorx-search__empty {
    max-width: 64rem;
    margin-inline: auto;
    padding: 5rem;
    background: #fff;
    text-align: center;
}

.creatorx-search__empty h2 {
    margin: 0 0 1rem;
    color: var(--creatorx-search-text);
    font-family: inherit;
    text-transform: none;
}

.creatorx-search__empty p {
    margin-bottom: 2.5rem;
}

.creatorx-search__empty .search-form {
    display: flex;
    gap: 1rem;
}

.creatorx-search__empty .search-field {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .creatorx-search__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.search .elementor-location-header {
        height: 8rem !important;
        min-height: 8rem;
    }

    .creatorx-search__container {
        width: calc(100% - 3rem);
    }

    .creatorx-search__hero {
        min-height: 20rem;
        padding: 4.5rem 0;
    }

    .creatorx-search__results {
        padding: 4rem 0 6rem;
    }

    .creatorx-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 520px) {
    .creatorx-search__grid {
        grid-template-columns: 1fr;
    }

    .creatorx-search__empty {
        padding: 3rem 2rem;
    }

    .creatorx-search__empty .search-form {
        flex-direction: column;
    }
}
