/* Layout */
.ha-grid-section {
    font-family: "DM Sans", sans-serif;
}

/* Search Bar */
.ha-search-container {
    margin-bottom: 160px;
    display: flex;
    justify-content: center;
}

.widget-category .ha-search-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
    max-width: 500px;
    display: flex;
    align-items: center;
    padding: 5px 20px;
    background: #fff;
    border: 1px solid #d7eeff;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin: 0;
}

.ha-search-wrapper input {
    width: 100%;
    margin: 0;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.search-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23aaa"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg>') no-repeat center;
}

/* Navigation */
.ha-cat-nav {
    display: flex;
    justify-content: center;
    gap: 19px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ha-cat-item {
    font-family: "DM Sans", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid #d7eeff;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.ha-cat-item span {
    color: #0a0d11;
}

.ha-cat-item:hover span {
    color: #ffffff;
}

.ha-cat-item:hover {
    background: #0960ec;
    color: #fff;
    border-color: #0061ff;
}

/* SVG icon stroke color change on hover */
.ha-cat-item:hover svg path {
    stroke: #fff;
}

/* Category Section */
.ha-category-block {
    margin-bottom: 156px;
    text-align: left;
    scroll-margin-top: 50px;
}

.ha-section-title {
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 66px 0;
    color: #1a1a1b;
}

/* Grid */
.ha-main-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 34px;
}

.ha-grid-card {
    background: #fff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    text-decoration: none;
    display: block;
    aspect-ratio: 1 / 1;
}

.ha-grid-card:before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    opacity: 0;
    content: "";
    border-radius: 12px;
    position: absolute;
    background-color: #0853ff;
    transition: opacity 250ms, transform 250ms;
}

.ha-grid-card:hover:before {
    opacity: 1;
    transform: scale(1.05);
}

.ha-grid-card:hover:after {
    opacity: 1;
    transform: translate(-50%, 22px);
}

.ha-grid-card:after {
    top: 50%;
    left: 50%;
    opacity: 0;
    z-index: 4;
    color: #ffffff;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    position: absolute;
    font-family: "DM Sans", sans-serif;
    content: "View Demo";
    transform: translate(-50%, 35px);
    width: 100%;
}

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.card-inner:before {
    top: 50%;
    left: 50%;
    z-index: 5;
    opacity: 0;
    content: "";
    width: 60px;
    height: 60px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    background-size: 100% 100%;
    transform: translate(-50%, -100%);
    background-image: url("https://hugeaddons.com/wp-content/uploads/2026/03/circle-arrow-right-01.svg");
    pointer-events: none;
}

.ha-grid-card:hover .card-inner:before {
    opacity: 1;
    transform: translate(-50%, -70%);
}

.card-inner h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    color: #0a0d11;
    margin: 35px 0 0 0;
}

.card-icon-placeholder {
    position: relative;
}

.card-icon-placeholder img {
    max-width: 100%;
    height: auto;
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.badge-new {
    background: #ff5e00;
}

.badge-pro {
    background: #0061ff;
}

.badge-upcoming {
    background: #D4FFBF;
    color: #378310;
}

@media all and (max-width: 1024px) {
    .ha-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media all and (max-width: 768px) {
    .ha-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media all and (max-width: 430px) {
    .ha-main-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}