/*
Theme Name:     Divi Child
Theme URI:      https://example.com/
Description:    A child theme for the Divi theme.
Author:         Your Name
Author URI:     https://example.com/
Template:       Divi
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    divi-child
*/

.company-loop {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.company-card {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.company-col {
    padding: 20px;
    box-sizing: border-box;
}

/* Desktop Layout (3 Columns) */
.image-col,
.info-col,
.button-col {
    width: 33.33%;
}

/* Featured Image */
.company-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ccc;
    color: #fff;
    font-size: 18px;
    height: 100%;
}

/* Title and Metadata */
.company-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.company-meta-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 10px;
    column-gap: 10px;
}

/* Buttons */
.button-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    padding-right: 30px;
}

.company-btn {
    display: block;
    background: #276f4a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 80%;
    text-align: center;
}

.company-btn:hover {
    background: #005bb5;
}

/* 🔁 Responsive Layout for Mobile */
@media screen and (max-width: 768px) {
    .company-card {
        flex-direction: column;
    }

    .image-col,
    .info-col,
    .button-col {
        width: 100%;
        padding: 15px;
    }

    .button-col {
        align-items: stretch;
        padding-right: 15px;
    }

    .company-btn {
        width: 100%;
    }
}
.filter-card {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.icon-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.icon-checkbox input {
  display: none;
}

.icon-checkbox i,
.icon-checkbox .text-icon {
  font-size: 1.5rem;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #f0f0f0;
}

.icon-checkbox:hover i,
.icon-checkbox:hover .text-icon {
  background-color: #e0e0e0;
  border-color: #999;
}

.icon-checkbox input:checked + i,
.icon-checkbox input:checked + .text-icon {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.price-tier {
    font-weight: bold;
    font-size: 1.25em;
    font-family: var(--font-family-icon, sans-serif);
}



.apply-filter-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #2e89ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.apply-filter-btn:hover {
    background: #1d6edb;
}
