/* Benefit page - info-card accordion ("חשוב לדעת") */

.info-cards-container {
    display: grid;
    z-index: 2;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    width: 100%;
    margin-bottom: 100px;
}

.info-cards-container:has(.info-card):has(.supplier-details-card) {
    grid-template-columns: 1fr 1fr;
}

/* Egged's global `.shadow { height: 100% }` stretches the shorter (closed) card
   to match its taller sibling in the grid row. Pin grid children to natural
   height so align-items: start keeps the closed card compact. */
.info-cards-container .info-card,
.info-cards-container .supplier-details-card {
    height: auto;
}

@media (max-width: 768px) {
    .info-cards-container,
    .info-cards-container:has(.info-card):has(.supplier-details-card) {
        grid-template-columns: 1fr;
        margin-bottom: 50px;
    }
}

.info-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .info-card {
        max-width: 100%;
        padding: 16px;
    }
}

.info-card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 500;
    line-height: 50px;
    color: #0B0427;
    margin: 0;
}

/* Brand color applied via _benefit_dynamic_styles.php */
.info-card-title i {
    font-size: 18px;
    color: #2020B3;
}

@media (max-width: 768px) {
    .info-card-title {
        font-size: 18px;
        line-height: 1.4;
    }
}

.info-card-toggle {
    background: #2020B3;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.info-card.open .info-card-toggle {
    transform: rotate(180deg);
}

/* Accordion content */
.info-card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.info-card.open .info-card-content {
    max-height: 4000px;
    opacity: 1;
    margin-top: 20px;
}

/* Info list */
.info-list {
    list-style-type: disc;
    padding-right: 20px;
    margin: 0;
    text-align: right;
}

.info-list li {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #0B0427;
    margin-bottom: 4px;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-link {
    color: #0B0427;
    text-decoration: underline;
}

/* When the limits string is HTML (not a list), preserve formatting */
.info-card-content .raw-html {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #0B0427;
    text-align: right;
}

.info-card-content .raw-html p {
    margin: 0 0 8px;
}

.info-card-content .raw-html a {
    color: inherit;
    text-decoration: underline;
}
