/* === Heading & Search === */
.vfg-heading {
    font-size: 32px;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.vfg-search-bar {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #000;
    margin-bottom: 30px;
}

.vfg-search-input {
    border: none;
    flex: 1;
    padding: 10px;
    font-size: 20px;
    outline: none;
    background: white;
    color: #333;
}

.vfg-search-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px;
}

/* === Filter Group === */
.vfg-filter-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.vfg-filter {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.vfg-filter label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.vfg-filter select,
#vfg-filters select {
    padding: 10px;
    font-size: 16px;
    min-width: 240px;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    appearance: none;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
}

/* Prevent option truncation */
#vfg-filters select option {
    white-space: normal;
}

/* Choices.js override (optional) */
.choices__inner {
    font-size: 16px;
    padding: 10px;
}

/* === Vacancy Cards === */
.vfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.vfg-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
}

.vfg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.vfg-card-header h3,
.vfg-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.3;
    margin-top: 0;
}

.vfg-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vfg-card-meta p {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    margin: 0;
}

.vfg-icon {
    font-size: 16px;
    line-height: 1;
}


.vfg-team-tag {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 12px;
    background-color: #eee;
    color: #333;
    font-weight: 500;
    margin-top: 10px;
}
.vfg-tag-Product { background-color: #e5f0ff; color: #2b6cb0; }
.vfg-tag-Sales { background-color: #fff0f0; color: #c53030; }
.vfg-tag-Engineering { background-color: #f0fff4; color: #2f855a; }

.vfg-card {
    animation: fadeInUp 0.3s ease-in;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vfg-card::after {
    content: "→";
    opacity: 0;
    font-size: 16px;
    position: absolute;
    bottom: 16px;
    right: 16px;
    transition: opacity 0.2s ease;
}
.vfg-card:hover::after {
    opacity: 1;
}

.vfg-message,
.vfg-no-more {
  text-align: center;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #e3e3e3;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 300px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.vfg-message.show,
.vfg-no-more.show {
  opacity: 1;
  transform: translateY(0);
}


/* === Responsive === */
@media (max-width: 600px) {
    .vfg-filter-group,
    #vfg-filters {
        flex-direction: column;
    }

    .vfg-filter select,
    #vfg-filters select {
        width: 100%;
    }

    .vfg-search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .vfg-search-input {
        font-size: 18px;
        padding: 8px;
    }

    .vfg-search-btn {
        font-size: 24px;
        align-self: flex-end;
        padding: 8px 0;
    }
}
