/* Site Migration: styles for the helper shortcodes and converted components */

/* [post_listing] */
.sm-posts { display: grid; gap: 24px; grid-template-columns: repeat(var(--sm-columns, 3), minmax(0, 1fr)); }
.sm-posts--list { grid-template-columns: 1fr; }
.sm-posts--list .sm-post-card { flex-direction: row; }
.sm-posts--list .sm-post-card__image { flex: 0 0 33%; }
.sm-posts--carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.sm-posts--carousel .sm-post-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.sm-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.sm-post-card__image img { display: block; width: 100%; height: 220px; object-fit: cover; }
.sm-post-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sm-post-card__title { margin: 0; font-size: 1.15rem; }
.sm-post-card__title a { color: inherit; text-decoration: none; }
.sm-post-card__date { font-size: .85rem; opacity: .7; }
.sm-post-card__excerpt { margin: 0; }
.sm-post-card__more { margin-top: auto; font-weight: 600; }
.sm-pagination { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.sm-pagination .page-numbers { padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 4px; text-decoration: none; }
.sm-pagination .current { background: #111827; color: #fff; }

@media (max-width: 1024px) {
    .sm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm-posts--carousel .sm-post-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 767px) {
    .sm-posts { grid-template-columns: 1fr; }
    .sm-posts--list .sm-post-card { flex-direction: column; }
    .sm-posts--carousel .sm-post-card { flex-basis: 85%; }
}

/* [faq_list] */
.sm-faqs__search { width: 100%; padding: 10px 12px; margin-bottom: 16px; border: 1px solid #d1d5db; border-radius: 4px; }
.sm-faq { border-bottom: 1px solid #e5e7eb; }
.sm-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq summary::after { content: "+"; font-weight: 400; }
.sm-faq[open] summary::after { content: "\2212"; }
.sm-faq__answer { padding-bottom: 14px; }

/* [site_menu] */
.sm-menu { position: relative; }
.sm-menu__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.sm-menu__list li { position: relative; }
.sm-menu__list a { text-decoration: none; color: inherit; }
.sm-menu__list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 100; }
.sm-menu__list .sub-menu a { display: block; padding: 8px 16px; color: #111827; }
.sm-menu__list li:hover > .sub-menu, .sm-menu__list li:focus-within > .sub-menu { display: block; }
.sm-menu__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.sm-menu__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; }
@media (max-width: 1024px) {
    .sm-menu__toggle { display: block; margin-left: auto; }
    .sm-menu__list { display: none; flex-direction: column; gap: 0; }
    .sm-menu.is-open .sm-menu__list { display: flex; }
    .sm-menu__list a { display: block; padding: 10px 0; }
    .sm-menu__list .sub-menu { display: block; position: static; box-shadow: none; padding-left: 16px; background: transparent; }
}

/* [site_breadcrumbs] */
.sm-breadcrumbs { font-size: .9rem; }
.sm-breadcrumbs__sep { margin: 0 8px; opacity: .5; }

/* HTML slider used for text carousels on Elementor Free */
.sm-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.sm-slider::-webkit-scrollbar { display: none; }
.sm-slide { flex: 0 0 100%; min-height: 480px; display: flex; align-items: center; scroll-snap-align: start; background: #1f2937 center / cover no-repeat; color: #fff; position: relative; }
.sm-slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.sm-slide-inner { position: relative; max-width: 1140px; width: 100%; margin: 0 auto; padding: 48px 24px; }
.sm-slide-inner h2 { color: inherit; margin: 0 0 12px; }
.sm-slide-button { display: inline-block; margin-top: 16px; padding: 12px 24px; background: #fff; color: #111827; text-decoration: none; border-radius: 4px; }

/* Contact Form 7 groups */
.sm-cf7-group { border: 0; padding: 0; margin: 0 0 1em; }
.sm-cf7-group legend { padding: 0; margin-bottom: .4em; }
.wpcf7 label { display: block; }
.wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]), .wpcf7 select, .wpcf7 textarea { width: 100%; }
