.factor-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* title+count left, arrow right */
    cursor: pointer;
    padding: 0.9rem 1.1rem 0.9rem 0.7rem;
    font-size: 1.13rem;
    font-weight: 600;
    background: #FBFBFB;
    border-bottom: 1px solid #eee;
    position: relative;
    outline: none;
}

.factor-accordion-left {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* spacing between title and count */
}

.factor-accordion-title {
    font-weight: bold;
    color: #222;
    font-family: 'Roboto', sans-serif;
}

.factor-accordion-count {
    color: #888;
    font-size: 1rem;
    font-weight: 400;
}

.factor-accordion-chevron {
    display: flex;
    align-items: center;
    margin-left: auto; /* ensure it sticks to far right */
    font-size: 1.3rem;
    color: #888;
    transition: transform 0.2s ease;
}

/* Optional: rotate arrow when expanded */
.factor-accordion-header.active .factor-accordion-chevron {
    transform: rotate(180deg);
}

.factor-archive {
    margin: 2rem auto;
    max-width: 800px;
}
.factor-category-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.factor-category-tab {
    border: none;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
}
.factor-category-tab.is-active {
    background: #2196f3;
    color: #fff;
}
.factor-category-views {
    margin-top: 0.5rem;
}
.factor-category-view {
    display: none;
}
.factor-category-view.is-active {
    display: block;
}
.factor-subcategory-title {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.factor-subsubcategory-title {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #555;
}
.factor-all-cards-category-block {
    margin-top: 1.5rem;
}
.factor-all-cards-category-block:first-child {
    margin-top: 0;
}
.factor-all-cards-category-title {
    font-size: 1.05em;
}
.factor-accordion-list {
    margin: 0;
    padding: 0;
}
.factor-accordion {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    background: #fff;
}
.main-card-content {
    line-height: 22px;
}
.factor-accordion-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--cat-color, #f5f5f5);
    border-radius: 8px 8px 0 0;
}
.factor-accordion-content {
    display: none;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}
.factor-accordion.active .factor-accordion-content {
    display: block;
}
.factor-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.factor-card-list-item {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}
.factor-card-list-item:last-child {
    border-bottom: none;
}
.factor-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.2s;
}
.factor-card-link:hover {
    color: #2196f3;
}
/* Wider thumbnail area for landscape images; contain avoids corner cropping */
.factor-card-thumbnail {
    flex-shrink: 0;
    width: 72px;
    height: 44px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.factor-card-thumbnail img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.factor-card-link-text {
    flex: 1;
    min-width: 0;
}
.factor-card-arrow {
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.factor-card-arrow img {
    display: block;
    height: 1em;
    width: auto;
}
.f-top-border {
    padding: 8px 0px 0px 0px;
    width: 97%;
    margin: 19px 0px -18px 18px;
    border-radius: 5px;
}
@media (max-width: 820px) {
    .main-card {
        max-width: 95vw !important;
    }
    .f-top-border {
    padding: 16px 0px 0px 0px;
    width: 95%;
    margin: 18px  0px -25px 18px;
}
}
@media (max-width: 768px) {
    .main-card {
        max-width: 95vw !important;
    }
    .f-top-border {
    padding: 16px 0px 0px 0px;
    width: 95%;
    margin: 18px  0px -25px 18px;
}
}
@media (max-width: 541px) {
    .main-card {
        max-width: 93.4vw !important;
    }
    .f-top-border {
    padding: 16px 0px 0px 0px;
    width: 93.5%;
    margin: 63px  0px -25px 18px;
}
}
@media (max-width: 431px) {
    .main-card {
        max-width: 91vw !important;
    }
    .f-top-border {
    padding: 16px 0px 0px 0px;
    width: 91%;
    margin: 63px  0px -25px 18px;
}
}

@media (max-width: 480px) {
  .wp-block-columns {
 
    font-size: 16px !important;
  }

}
.custom-dose-table th:first-child {
    position: relative;
    background-color: #f0f0f0; /* to match your table header */
}

.custom-dose-table th:first-child::after {
    content: "";
    position: absolute;
    top: 25%;   /* adjust to match Figma */
    bottom: 25%;
    right: 0;
    width: 1px;
    background-color: #e0e0e0; /* Light gray like in your image */
}
