.member-article {
    max-width: 800px;
    margin: 0 auto;
}

.member-header {
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid #ebebeb;
}

.member-header-content {
    display: flex;
}

.member-thumbnail {
    width: 300px;
    max-width: 30%;
    margin-right: 20px;
}

.member-categories {
    margin-bottom: 1rem;
}

.member-category {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: #0072c6;
    color: #fff;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-category:hover {
    opacity: 0.9;
    color: #fff;
}

article ul.member-badges {
    display: flex;
    justify-content: flex-start;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    max-width: 100%;   
}

@media (min-width: 1024px) {
    article ul.member-badges {
        max-width: 245px;
    }
}


.member-badge {
    width: 50px;
    max-width: 20%;
    display: inline-block;
}

.member-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.member-thumbnail {
    margin-bottom: 1.25rem;
    text-align: center;
}

.member-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.member-title {
    font-size: 2rem;
    margin: 0;
    line-height: 1.15;
}

.member-tags {
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.95rem;
}

.member-info-section {
    padding: 1rem 1rem 0;
}

.member-info-section dl {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.member-info-row {
    display: table-row;
    margin-bottom: 0;
}

.member-info-row dt,
.member-info-row dd {
    display: table-cell;
    padding: 0.85rem 1rem;
    vertical-align: top;
    border: 1px solid #eee;
}

.member-info-row dt {
    width: 28%;
    background-color: #f4f4f4;
    font-weight: 700;
    color: #222;
}

.member-info-row dd {
    background-color: #fff;
    color: #444;
    line-height: 1.8;
    overflow: scroll;
}

.member-info-row dd a {
    display: flex;
    align-items: center;
}

.member-info-icon {
    flex-shrink: 0;
    display: inline-block;
    height: 1.25rem;
    width: 1.5rem;
    margin-right: 0.25rem;
    position: relative;
}

.member-info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.member-info-row a {
    color: #0068b4;
}

.member-back-link {
    text-align: center;
    margin: 2rem 0 3rem;
}

.member-back-link a {
    display: block;
    padding: 0.85rem 2.6rem;
    background: #0072c6;
    color: #fff;
    text-decoration: none;
    margin: 0 auto;
    max-width: 300px;
}

.member-back-link a:hover {
    color: #fff;
    opacity: 0.9;
}

.archive-member-header {
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 1.5rem;
}

.archive-member-heading {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0;
}

.archive-member-description {
    color: #666;
    margin: 0;
    line-height: 1.75;
}

.archive-member-search {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.archive-member-search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #222;
}

.archive-member-search button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    background: #0072c6;
    color: #fff;
    cursor: pointer;
}

.member-matching-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .member-matching-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .member-matching-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.member-matching-category-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid #0072c6;
    border-radius: 10px;
    background: #0072c6;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.member-matching-category-card:hover {
    opacity: 0.9;
    color: #fff;
}

.member-matching-category-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

.member-matching-category-card p {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.archive-member-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 840px) {
    .archive-member-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .archive-member-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.archive-member-list .article>a {
    color: inherit;
    text-decoration: none;
}

.archive-member-list .article>a:hover {
    opacity: 0.9;
}

.archive-member-item {
    padding: 1.25rem 0.75rem;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
}

.archive-member-item-content {
    display: block;
}

.archive-member-item-content-image {
    max-width: 100%;
    width: 100%;
    margin-right: 0;
}

@media (min-width: 440px) and (max-width: 839px),
       (min-width: 1024px) {
    .archive-member-item-content {
        display: flex;
    }

    .archive-member-item-content-image {
        max-width: 40%;
        width: 240px;
        flex-shrink: 0;
        margin-right: 1rem;
    }
}

@media (min-width: 840px) and (max-width: 1023px) {
    .archive-member-item-content {
        display: block;
    }

    .archive-member-item-content-image {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
    }
}

.archive-member-item-content-text {
    width: 100%;
}

.archive-member-list .article .archive-member-category {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: #0072c6;
    font-size: 0.88rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-member-list .article .archive-member-category:hover {
    color: #fff;
}

.archive-member-thumbnail {
    margin-bottom: 1rem;
}

.archive-member-thumbnail img,
.archive-member-thumbnail.archive-member-thumbnail--placeholder {
    width: 100%;
    border-radius: 8px;
}

.archive-member-thumbnail.archive-member-thumbnail--placeholder {
    min-height: 180px;
    display: grid;
    place-items: center;
    background: #f4f4f4;
    color: #666;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.archive-member-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

h2.archive-member-title.entry-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    line-height: 1.3;
}

h2.archive-member-title.entry-title::after {
    display: none;
}

.archive-member-title a {
    color: #222;
    text-decoration: none;
}

.archive-member-title a:hover {
    text-decoration: underline;
}

.archive-member-tag {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.archive-member-company {
    text-align: right;
    margin-top: 0.5rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #444;
}

.member-contact-form {
    padding: 1.5rem;
    margin-top: 1.5rem;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
}

.member-contact-form .wpcf7-form {
    display: grid;
    gap: 1rem;
}

.contact-form__row>p>br {
    display: none;
}

.member-contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: #222;
    cursor: auto;
}

.member-contact-form label .required {
    display: inline-block;
    margin-left: 0.15rem;
    padding: 0rem 0.35rem;
    background-color: #d2232a;
    font-weight: 400;
    color: #fff;
    vertical-align: middle;
}

.member-contact-form input[type="text"],
.member-contact-form input[type="email"],
.member-contact-form input[type="tel"],
.member-contact-form textarea,
.member-contact-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.member-contact-form textarea {
    min-height: 140px;
}

.member-contact-form input[type="submit"],
.member-contact-form .wpcf7-submit {
    display: block;
    margin: 0 auto;
    padding: 0.85rem 1.6rem;
    max-width: 300px;
    background: #0072c6;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.member-contact-form input[type="submit"]:hover,
.member-contact-form .wpcf7-submit:hover {
    opacity: 0.92;
}

@media (max-width: 768px) {
    .wp-singular .member-section h2 {
        font-size: 1.5rem;
    }

    .member-article {
        padding: 0;
    }

    .member-header-content {
        display: block;
    }

    .member-thumbnail {
        width: 100%;
        max-width: none;
        margin-right: 0px;
    }

    .entry-title.member-title {
        font-size: 1.7rem;
        padding: 0;
    }

    .member-contact-form {
        padding: 1rem;
    }

    .member-info-section dl {
        display: block;
    }

    .member-info-row {
        display: block;
        margin-bottom: 0.5rem;
    }

    .member-info-row dt,
    .member-info-row dd {
        display: block;
        width: auto;
        padding: 0rem 0rem;
        border-left: none;
        border-right: none;
        background: none;
        border: none;
    }

    .member-info-row dd {
        border-bottom: 1px solid #eee;
        padding-bottom: 0.25rem;
    }

    .member-info-icon {
        display: none;
    }
}