/* Existing styles... */

/* Glassmorphism Variables */
:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --primary-color: #0073aa;
    --text-color: #333;
}

.hps-app-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* Sidebar */
.hps-sidebar {
    flex: 0 0 300px;
    padding: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    height: fit-content;
}

.hps-sidebar h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.hps-filter-group {
    margin-bottom: 20px;
}

.hps-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

/* Custom Select */
.hps-custom-select {
    position: relative;
    width: 100%;
}

.hps-select-trigger {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hps-select-trigger:after {
    content: '▼';
    font-size: 0.7rem;
    color: #999;
}

.hps-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    padding: 10px;
}

.hps-custom-select.open .hps-select-options {
    display: block;
}

.hps-select-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    cursor: pointer;
    font-weight: 400;
}

.hps-select-options label:hover {
    background: #f9f9f9;
}

/* Main Area */
.hps-main {
    flex: 1;
}

.hps-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 25px;
    background: var(--glass-bg);
    border-radius: 10px;
    border: var(--glass-border);
}

.hps-results-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.hps-sort-wrapper label {
    margin-right: 10px;
    font-weight: 600;
}

.hps-sort-wrapper select {
    padding: 8px 30px;
    border-radius: 6px;
    border: 1px solid #ccc;
    line-height: 1.2;
    font-size: 18px;
    height: auto;
}

/* Grid & Cards */
.hps-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.hps-result-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.hps-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hps-card-header {
    padding: 15px;
    background: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
}

.hps-card-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #eee;
}

.hps-card-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.hps-card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.hps-card-title a:hover {
    color: var(--primary-color);
}

.hps-card-subtitle {
    font-size: 0.85rem;
    color: #777;
}

.hps-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.hps-stat {
    text-align: center;
    font-size: 0.85rem;
}

.hps-stat .hps-icon {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.hps-card-details {
    padding: 15px;
    flex-grow: 1;
}

.hps-detail-row {
    margin-bottom: 5px;
    font-size: 16px;
    color: #555;
}

.hps-card-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.hps-btn-download {
    flex: 1;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.hps-btn-download:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Sliders */
.ui-slider-horizontal {
    height: 6px;
    background: #ddd;
    border: none;
    margin-top: 10px;
}

.ui-slider .ui-slider-handle {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: none;
    top: -4px;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

.hps-app-container #hps-search-form {
    width: 100%;
}

.hps-app-container #hps-search-form .hps-sidebar {
    display: flex;
    flex-flow: wrap;
    align-items: center;
    gap: 20px;
}

.hps-app-container #hps-search-form .hps-sidebar>div {
    width: calc(25% - 20px);
}


/* Separate Styles */
.hps-search-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.hps-search-btn:hover {
    background: #005177;
}

.hps-results-only-wrapper .hps-main {
    flex: 1;
    width: 100%;
}

#hps-reset-btn {
    font-family: "Outfit", Sans-serif;
    padding:20px 40px;
    display: inline-block;
    line-height: 1;
    height: auto;
    background:#68813C;
    border:none;
}

#hps-reset-btn:hover{
    background:#000000;
}

.hps-filter-group .ui-slider-handle {
    background:#68813C !important;
}
.hps-filter-group .ui-widget-content{
        width:calc(100% - 20px);
    margin:15px auto 0;
}

#hps-search-form *{
    font-family: "Outfit", Sans-serif;
}

.hps-card-actions a{
    border:1px solid #68813C !important;
}

.hps-card-actions a:hover{
    background:#68813C;
    color:#fff !important;
}

.hps-card-title a:hover{
    color:#68813C !important;
}

/* Responsive */
@media (max-width: 900px) {
    .hps-app-container {
        flex-direction: column;
    }

    .hps-sidebar {
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
.hps-app-container #hps-search-form .hps-sidebar{
gap:0;
}

    .hps-app-container #hps-search-form .hps-sidebar>div {
        width: calc(50% - 20px);
    }

    .hps-results-header {
        flex-flow: column;
    }
}

@media (max-width: 600px) {
    .hps-app-container #hps-search-form .hps-sidebar>div {
        width: 100%;
    }
}



/* Single Page Styles */
.hps-single-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.hps-single-header {
    margin-bottom: 30px;
}

.hps-single-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hps-hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
    padding: 30px;
    color: #fff;
}

.hps-single-title-block {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}

.hps-single-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    color: inherit;
}

.hps-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.hps-single-content-wrap {
    display: flex;
    gap: 40px;
}

.hps-main-content {
    flex: 1;
}

.hps-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hps-stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hps-stat-box .hps-label {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hps-stat-box .hps-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hps-description {
    line-height: 1.8;
    color: #333;
}

.hps-description h2 {
    margin-top: 0;
}

.hps-sidebar {
    flex: 0 0 320px;
}

.hps-widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hps-widget h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.hps-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hps-details-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    justify-content: space-between;
}

.hps-details-list li:last-child {
    border-bottom: none;
}

.hps-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hps-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.hps-btn:hover {
    transform: translateY(-2px);
}

.hps-btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.hps-btn-secondary {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.site-content .ast-container {
    display: block !important;
    padding: 20px 0 !important;
}


@media (max-width: 900px) {
    .hps-single-content-wrap {
        flex-direction: column;
    }

    .hps-sidebar {
        width: 100%;
        flex: none;
    }

    .hps-single-hero {
        height: 250px;
    }

    .hps-single-header h1 {
        font-size: 1.8rem;
    }
}