/* Grid layout */
.hsw-websites-grid {
    display: grid;
    grid-template-columns: repeat(var(--hsw-columns, 3), 1fr);
    gap: 30px;
    width: 100%;
}

/* Card container */
.hsw-website-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper */
.hsw-main-content {
    flex: 1;
}

/* Logo section */
.hsw-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.hsw-logo img {
    max-height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Title section */
.hsw-title {
    padding: 10px 15px;
    margin: 0;
    font-size: 18px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #32373c;
    display: none;
}

/* Search and Filter Layout */
.hsw-filters {
    position: relative;
    margin-bottom: 30px;
}

.hsw-search-prefix {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    padding-right: 10px;
}

.hsw-search {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

.hsw-category-filter {
    margin-top: 0px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

/* Content section */
.hsw-content {
    padding: 15px;
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.hsw-content p {
    margin: 0;
}

/* Contact section */
.hsw-contact {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Website link button */
.hsw-website-link {
    display: block;
    padding: 10px 16px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background 0.2s;
    margin-bottom: 5px;
}

.hsw-website-link:hover {
    background: #005177;
    text-decoration: none;
}

/* Phone number */
.hsw-phone {
    color: #666;
    font-size: 14px;
}

.hsw-phone a {
    color: inherit;
    text-decoration: none;
}


/* Mobile responsiveness */
@media (max-width: 767px) {
    /* Stack columns on mobile */
    .elementor-column {
        width: 100% !important;
    }
    
    /* Adjust spacing on mobile */
    .elementor-widget-shortcode .hsw-search-section,
    .elementor-widget-shortcode .hsw-filter-section {
        margin-bottom: 15px;
    }
    
    /* Make search and filter full width on mobile */
    .elementor-widget-shortcode .hsw-search,
    .elementor-widget-shortcode .hsw-category-filter {
        width: 100%;
        max-width: 100%;
    }
}


/* Better mobile grid layout */
@media (max-width: 767px) {
    .elementor-widget-shortcode .hsw-websites-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .elementor-widget-shortcode .hsw-website-card {
        margin-bottom: 15px;
    }
}

/* Tablet layout adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-widget-shortcode .hsw-websites-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}
/* Responsive adjustments */
@media (max-width: 1024px) {
    .hsw-websites-grid {
        grid-template-columns: repeat(var(--hsw-columns, 3), 1fr);
    }
}

@media (max-width: 768px) {
    .hsw-websites-grid {
        grid-template-columns: repeat(var(--hsw-columns, 2), 1fr);
    }

    .hsw-search-prefix {
        position: static;
        transform: none;
        display: block;
        margin-bottom: 8px;
    }

    .hsw-logo {
        padding: 15px;
        min-height: 100px;
    }

    .hsw-logo img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .hsw-websites-grid {
        grid-template-columns: repeat(var(--hsw-columns, 1), 1fr);
    }

    .hsw-content {
        padding: 12px;
    }

    .hsw-contact {
        padding: 12px;
    }
}