/* Sama Builder — public styles. Typography and base colors are inherited from the active theme. */
.sb-root {
	--sb-accent: var(--navy, #0b2f55);
	--sb-accent-2: var(--blue-bright, #2e9cca);
	--sb-line: #dbe6ed;
	--sb-soft: #f4f9fc;
}
.sb-root *, .sb-root *::before, .sb-root *::after { box-sizing: border-box; }

/* Structure */
.sb-section { position: relative; padding: 60px 0; background-size: cover; background-position: center; }
.sb-section::before { position: absolute; inset: 0; pointer-events: none; }
.sb-container { position: relative; width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.sb-row { display: flex; flex-wrap: wrap; gap: 24px; }
.sb-col { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0%; }
.sb-col--shadow { box-shadow: 0 10px 30px rgba(11, 47, 85, .1); }
.sb-widget { min-width: 0; }
.sb-widget + .sb-widget { margin-top: 16px; }
.sb-has-color :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* Heading + text */
.sb-heading { margin: 0; color: inherit; }
.sb-heading a { color: inherit; text-decoration: none; }
.sb-text > *:first-child { margin-top: 0; }
.sb-text > *:last-child { margin-bottom: 0; }

/* Image */
.sb-image { margin: 0; }
.sb-image img { display: inline-block; vertical-align: middle; max-width: 100%; height: auto; }
.sb-image a { display: inline-block; max-width: 100%; }
.sb-image figcaption { margin-top: 8px; font-size: .9em; opacity: .75; }

/* Button */
.sb-button-wrap { display: flex; }
.sb-button {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
	padding: 13px 26px; border-radius: 999px; border: 2px solid var(--sb-accent);
	background-color: var(--sb-accent); color: #fff; transition: filter .2s, transform .2s;
}
.sb-button:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }
.sb-button--sm { padding: 9px 18px; font-size: .92em; }
.sb-button--lg { padding: 17px 34px; font-size: 1.1em; }
.sb-button--full { display: flex; width: 100%; }

/* Icon box */
.sb-iconbox { display: flex; flex-direction: column; gap: 14px; }
.sb-iconbox--side { flex-direction: row; align-items: flex-start; }
.sb-iconbox__media { display: flex; flex: none; }
.sb-iconbox__media img { display: block; height: auto; max-width: 100%; }
.sb-iconbox__title { margin: 0 0 .3em; font-size: 1.2em; }
.sb-iconbox__title a { color: inherit; text-decoration: none; }
.sb-iconbox__text { margin: 0; opacity: .85; }

/* List */
.sb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; --sb-marker: var(--sb-accent-2); counter-reset: sb; }
.sb-list li { position: relative; padding-inline-start: 1.9em; }
.sb-list li::before { position: absolute; inset-inline-start: 0; top: 0; color: var(--sb-marker); font-weight: 800; }
.sb-list--check li::before { content: "✓"; }
.sb-list--dot li::before { content: "●"; font-size: .7em; top: .35em; }
.sb-list--number li { counter-increment: sb; }
.sb-list--number li::before { content: counter(sb) "."; }
.sb-list--none li { padding-inline-start: 0; }
.sb-list a { color: inherit; }

/* Accordion */
.sb-acc { display: grid; gap: 10px; }
.sb-acc__item { border: 1px solid var(--sb-line); border-radius: 12px; background: #fff; overflow: hidden; }
.sb-acc__item summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--sb-accent); }
.sb-acc__item summary::-webkit-details-marker { display: none; }
.sb-acc__item summary::after { content: "+"; font-size: 1.3em; line-height: 1; }
.sb-acc__item[open] summary::after { content: "–"; }
.sb-acc__body { padding: 0 20px 18px; }
.sb-acc__body > *:last-child { margin-bottom: 0; }

/* Gallery */
.sb-gallery { display: grid; gap: 12px; }
.sb-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-gallery a { display: block; height: 100%; }
.sb-lightbox-view { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: rgba(8, 20, 34, .9); padding: 24px; cursor: zoom-out; }
.sb-lightbox-view img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* Video + map */
.sb-video { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.sb-video iframe, .sb-video video { width: 100%; height: 100%; border: 0; display: block; }
.sb-map { height: 360px; overflow: hidden; }
.sb-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Counter */
.sb-counter__num { font-size: 44px; font-weight: 800; line-height: 1.15; color: var(--sb-accent); font-variant-numeric: tabular-nums; }
.sb-counter__label { opacity: .85; }

/* Testimonial */
.sb-testimonial { margin: 0; }
.sb-testimonial blockquote { margin: 0 0 16px; padding: 0; border: 0; font-size: 1.12em; line-height: 1.8; }
.sb-testimonial blockquote::before { content: "“"; display: block; font-size: 3em; line-height: .6; color: var(--sb-accent-2); }
.sb-testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.sb-testimonial figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.sb-testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.4; }
.sb-testimonial small { opacity: .7; }

/* Divider + spacer */
.sb-divider { display: flex; }
.sb-divider span { display: block; width: 100%; border-top: 1px solid var(--sb-line); }
.sb-spacer { height: 40px; }

/* Tabs */
.sb-tabs__nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--sb-line); }
.sb-tabs__nav button {
	font: inherit; font-weight: 700; padding: 12px 20px; border: 0; background: none; cursor: pointer;
	color: inherit; opacity: .7; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.sb-tabs__nav button[aria-selected="true"] { opacity: 1; color: var(--sb-accent); border-bottom-color: var(--sb-accent); }
.sb-tabs__panel { padding: 20px 4px 0; }
.sb-tabs__panel > *:last-child { margin-bottom: 0; }

/* Pricing */
.sb-pricing { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 32px 28px; background: #fff; color: #1c2b3a; border: 1px solid var(--sb-line); border-radius: 16px; text-align: center; }
.sb-pricing--featured { background: var(--sb-accent); color: #fff; border-color: var(--sb-accent); }
.sb-pricing--featured .sb-button { background: #fff; border-color: #fff; color: var(--sb-accent); }
.sb-pricing__badge { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--sb-accent-2); color: #fff; font-size: .8em; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
[dir="rtl"] .sb-pricing__badge { transform: translateX(50%); }
.sb-pricing__title { margin: 0; font-size: 1.2em; color: inherit; }
.sb-pricing__price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.sb-pricing__price strong { font-size: 3em; line-height: 1; font-weight: 800; }
.sb-pricing__per { opacity: .7; font-size: .9em; }
.sb-pricing__list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.sb-pricing__list li::before { content: "✓ "; font-weight: 800; color: var(--sb-accent-2); }

/* Posts */
.sb-posts { display: grid; gap: 22px; }
.sb-post { display: flex; flex-direction: column; background: #fff; color: #1c2b3a; border: 1px solid var(--sb-line); border-radius: 14px; overflow: hidden; }
.sb-post__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sb-post__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.sb-post__body time { font-size: .85em; opacity: .65; }
.sb-post__title { margin: 0; font-size: 1.15em; }
.sb-post__title a { color: inherit; text-decoration: none; }
.sb-post__body p { margin: 0; opacity: .8; font-size: .95em; }
.sb-post__more { margin-top: auto; font-weight: 700; }

/* Slider */
.sb-slider { position: relative; height: 460px; overflow: hidden; color: #fff; }
.sb-slider__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.sb-slider__track::-webkit-scrollbar { display: none; }
.sb-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; background: var(--sb-accent); }
.sb-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-slide::after { content: ""; position: absolute; inset: 0; }
.sb-slide__content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 64px; text-align: center; }
.sb-slide__content h3 { margin: 0; color: inherit; font-size: clamp(1.5em, 3.4vw, 2.6em); }
.sb-slide__content p { margin: 0; max-width: 60ch; font-size: 1.08em; }
.sb-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #0b2f55; font-size: 24px; line-height: 1; cursor: pointer; }
.sb-slider__nav--prev { inset-inline-start: 12px; }
.sb-slider__nav--next { inset-inline-end: 12px; }
[dir="rtl"] .sb-slider__nav { transform: translateY(-50%) scaleX(-1); }
.sb-slider__dots { position: absolute; bottom: 14px; inset-inline: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.sb-slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; }
.sb-slider__dots button.is-on { background: #fff; }

/* Countdown */
.sb-countdown { display: flex; flex-wrap: wrap; gap: 12px; }
.sb-countdown__box { min-width: 78px; padding: 14px 10px; text-align: center; background: var(--sb-soft); border-radius: 12px; }
.sb-countdown__box strong { display: block; font-size: 2em; line-height: 1.1; color: var(--sb-accent); font-variant-numeric: tabular-nums; }
.sb-countdown__box span { font-size: .85em; opacity: .75; }

/* Social */
.sb-social { display: flex; flex-wrap: wrap; gap: 10px; --sb-size: 40px; }
.sb-social__link { display: grid; place-items: center; width: var(--sb-size); height: var(--sb-size); background: var(--sb-accent); color: #fff; text-decoration: none; transition: transform .2s; }
.sb-social__link:hover { transform: translateY(-2px); color: #fff; }
.sb-social__link .dashicons { font-size: calc(var(--sb-size) * .5); width: auto; height: auto; }
.sb-social--circle .sb-social__link { border-radius: 50%; }
.sb-social--rounded .sb-social__link { border-radius: 10px; }

/* Progress */
.sb-progress { display: grid; gap: 16px; }
.sb-progress__head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.sb-progress__track { height: 10px; border-radius: 999px; background: var(--sb-line); overflow: hidden; }
.sb-progress__track i { display: block; height: 100%; border-radius: 999px; background: var(--sb-accent-2); }

/* Form */
.sb-form { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
.sb-form__field { flex: 1 1 100%; margin: 0 0 16px; min-width: 0; }
.sb-form__field--half { flex: 1 1 calc(50% - 10px); }
.sb-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.sb-form__field--check label { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.sb-form input:not([type="checkbox"]), .sb-form select, .sb-form textarea {
	width: 100%; font: inherit; color: #1c2b3a; background: #fff; padding: 12px 14px; min-height: 48px;
	border: 1.5px solid #c3d3de; border-radius: 10px;
}
.sb-form input[type="checkbox"] { width: 20px; height: 20px; margin-top: 4px; flex: none; }
.sb-form textarea { resize: vertical; min-height: 120px; }
.sb-form input[type="file"] { padding: 9px 12px; cursor: pointer; border-style: dashed; background: var(--sb-soft); }
.sb-form input[type="file"]::file-selector-button { font: inherit; font-weight: 700; margin-inline-end: 12px; padding: 7px 14px; border: 0; border-radius: 8px; background: var(--sb-accent); color: #fff; cursor: pointer; }
.sb-form__hint { display: block; margin-top: 6px; font-size: .86em; opacity: .7; }
.sb-form input:focus, .sb-form select:focus, .sb-form textarea:focus { outline: none; border-color: var(--sb-accent-2); box-shadow: 0 0 0 4px rgba(46, 156, 202, .2); }
.sb-form__req { color: #b3382c; }
.sb-form__submit { flex: 1 1 100%; margin: 4px 0 0; }
.sb-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sb-form__notice { flex: 1 1 100%; padding: 14px 18px; border-radius: 10px; font-weight: 600; border: 1px solid; margin: 0 0 16px; }
.sb-form__notice--ok { color: #1b7a4b; background: #eaf7f0; border-color: #b9e2cb; }
.sb-form__notice--err { color: #b3382c; background: #fcefed; border-color: #f0c5bf; }

/* Visibility + entrance animation */
@media (min-width: 768px) { .sb-hide-d { display: none !important; } }
.sb-anim { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.sb-anim--up { transform: translateY(28px); }
.sb-anim.sb-in { opacity: 1; transform: none; }

@media (max-width: 767px) {
	.sb-hide-m { display: none !important; }
	.sb-section { padding: 40px 0; }
	.sb-container { padding-inline: 16px; }
	.sb-row { flex-direction: column; }
	.sb-root .sb-row > .sb-col { flex: 1 1 auto; width: 100%; }
	.sb-reverse-m > .sb-container > .sb-row { flex-direction: column-reverse; }
	.sb-form__field--half { flex-basis: 100%; }
	.sb-posts { grid-template-columns: 1fr !important; }
	.sb-slide__content { padding: 24px 52px; }
	.sb-iconbox--side { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.sb-anim { opacity: 1; transform: none; transition: none; }
	.sb-slider__track { scroll-behavior: auto; }
}
