/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Author: Soroosh Taqiabadi
Description: قالب فرزند برای Hello Elementor
Version: 1.0
*/

@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSansWeb_Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSansWeb_Medium.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSansWeb_Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body,
button,
input,
select,
textarea {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif;
}

.sp-header,
.sp-header * {
    box-sizing: border-box;
}

.sp-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    min-height: 88px;
    background: #fff;
    border-bottom: 1px solid #d8dbe0;
    box-shadow: 0 5px 16px rgba(25, 38, 58, 0.13);
    direction: rtl;
}

.sp-header a {
    text-decoration: none;
}

.sp-header__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.sp-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #222;
}

.sp-header__brand img,
.sp-header__brand .custom-logo {
    width: 175px;
    height: 50px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.sp-header__brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: #3e3e3e;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.sp-header__brand-text {
    display: grid;
    gap: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.sp-header__brand-text small {
    font-size: 10px;
    font-weight: 400;
    color: #555;
}

.sp-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.sp-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-nav__item {
    position: relative;
}

.sp-nav__link {
    min-height: 88px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-bottom: 2px solid transparent;
    color: #111111;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.sp-nav__arrow {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms ease;
}

.sp-nav__item:hover > .sp-nav__link .sp-nav__arrow,
.sp-nav__item:focus-within > .sp-nav__link .sp-nav__arrow {
    transform: rotate(180deg);
}

.sp-nav__item:hover > .sp-nav__link,
.sp-nav__item:focus-within > .sp-nav__link {
    color: #111111;
    background-color: rgba(17, 17, 17, 0.045);
    border-bottom-color: #a3a3a3;
}

.sp-header .sp-nav__link:link,
.sp-header .sp-nav__link:visited,
.sp-header .sp-nav__link:hover,
.sp-header .sp-nav__link:focus,
.sp-header .sp-nav__link:active {
    color: #111111;
}

.sp-nav__hamburger {
    width: 16px;
    height: 12px;
    display: inline-block;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
}

.sp-nav__hamburger::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 3px;
    border-top: 2px solid currentColor;
}

.sp-header__tools {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
}

.sp-header__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-icon-btn,
.sp-account-btn {
    display: inline-grid;
    place-items: center;
    color: #103b75;
    transition: transform 160ms ease, color 160ms ease;
}

.sp-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #173d76;
    color: #fff;
}

.sp-icon-btn svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.sp-account-btn svg,
.sp-account-btn img {
    width: 42px;
    height: 42px;
    display: block;
    fill: currentColor;
}

.sp-icon-btn:hover,
.sp-account-btn:hover {
    transform: translateY(-1px);
    color: #1783e7;
}

.sp-consult-btn,
.sp-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 0 24px;
    background: linear-gradient(135deg, #168cff 0%, #13366e 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 5px 12px rgba(20, 95, 177, 0.18);
    white-space: nowrap;
    transition: filter 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.sp-consult-btn {
    transform-origin: center;
    animation: sp-consult-nudge 5s ease-in-out infinite;
}

@keyframes sp-consult-nudge {
    0%, 12%, 100% { transform: translateX(0) rotate(0); }
    2% { transform: translateX(-2px) rotate(-1.5deg); }
    4% { transform: translateX(2px) rotate(1.5deg); }
    6% { transform: translateX(-2px) rotate(-1deg); }
    8% { transform: translateX(2px) rotate(1deg); }
    10% { transform: translateX(0) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
    .sp-consult-btn {
        animation: none;
    }
}

.sp-header .sp-consult-btn:link,
.sp-header .sp-consult-btn:visited,
.sp-header .sp-consult-btn:hover,
.sp-header .sp-consult-btn:focus,
.sp-header .sp-consult-btn:active,
.sp-header .sp-btn:link,
.sp-header .sp-btn:visited,
.sp-header .sp-btn:hover,
.sp-header .sp-btn:focus,
.sp-header .sp-btn:active {
    color: #fff;
    font-weight: 700;
}

.sp-header .sp-btn:link,
.sp-header .sp-btn:visited,
.sp-header .sp-btn:hover,
.sp-header .sp-btn:focus,
.sp-header .sp-btn:active {
    color: #e2e6eb;
}

.sp-consult-btn:hover,
.sp-btn:hover {
    filter: brightness(1.04);
}

.sp-consult-btn--mobile {
    display: none;
}

.sp-mobile-menu-toggle,
.sp-mobile-menu-backdrop,
.sp-nav__mobile-tools {
    display: none;
}

.sp-mega,
.sp-dropdown {
    position: absolute;
    top: 100%;
    background: #fff;
    border: 1px solid #d9dce1;
    box-shadow: 0 9px 22px rgba(23, 36, 52, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 280ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1), visibility 280ms ease;
}

.sp-nav__item:hover > .sp-mega,
.sp-nav__item:focus-within > .sp-mega,
.sp-nav__item:hover > .sp-dropdown,
.sp-nav__item:focus-within > .sp-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sp-mega {
    right: -180px;
    left: auto;
    width: min(1120px, calc(100vw - 54px));
    min-height: 420px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 0 0 7px 7px;
}

.sp-mega__tabs {
    background: #f6f6f7;
    border-left: 1px solid #e4e6ea;
    padding: 0;
}

.sp-mega__tab {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #eceef1;
    transition: background-color 220ms ease, color 220ms ease;
}

.sp-mega__tab span {
    color: inherit;
    font-size: 24px;
    line-height: 1;
}

.sp-mega__tab img {
    width: 25px;
    height: 25px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.sp-mega__tab:hover,
.sp-mega__tab.is-active {
    background: #1d82ee;
    color: #111111;
}

.sp-mega__content {
    position: relative;
    min-height: 420px;
    background: #fff;
}

.sp-mega__panel {
    display: none;
    min-height: 420px;
    padding: 26px 24px 20px;
}

.sp-mega__panel.is-active {
    display: block;
    animation: sp-mega-panel-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sp-mega-panel-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sp-mega__panel-head {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #8c9298;
    margin-bottom: 24px;
}

.sp-mega__panel-head a,
.sp-mega__panel-head h2,
.sp-mega__panel > h2 {
    color: #414851;
    font-size: 20px;
    font-weight: 700;
}

.sp-mega__panel-head h2 {
    margin: 0;
}

.sp-header .sp-mega__panel-head a {
    font-weight: 700;
}

.sp-mega__panel-head a::before {
    content: "←";
    margin-left: 14px;
    color: #343a40;
}

.sp-mega__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px;
    min-height: 245px;
}

.sp-mega__columns--compact {
    width: min(610px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 0;
    margin-left: auto;
    margin-top: 26px;
}

.sp-mega__columns--single {
    width: min(320px, 100%);
    grid-template-columns: 1fr;
    margin-right: 0;
    margin-left: auto;
    margin-top: 24px;
}

.sp-mega__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    text-align: right;
}

.sp-mega__column h3 {
    width: 100%;
    margin: 0 0 8px;
    padding-inline-start: 12px;
    border-inline-start: 3px solid #11466f;
    color: #414851;
    font-size: 18px;
    font-weight: 700;
}

.sp-mega__column h3 > a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.sp-mega__column h3::before {
    content: "›";
    float: left;
    color: #125886;
}

.sp-mega__column--gold h3 {
    border-inline-start-color: #e7cf29;
    color: #414851;
}

.sp-mega__column--gold h3::before {
    color: #e7cf29;
}

.sp-mega__column a {
    color: #111111;
    font-size: 15px;
    line-height: 1.7;
    transition: background-color 180ms ease, color 180ms ease;
}

.sp-header .sp-mega__panel-head a:link,
.sp-header .sp-mega__panel-head a:visited,
.sp-header .sp-mega__column a:link,
.sp-header .sp-mega__column a:visited,
.sp-header .sp-mega__column a:hover,
.sp-header .sp-mega__column a:focus,
.sp-header .sp-mega__column a:active {
    color: #111111;
}

.sp-header .sp-mega__panel-head a:link,
.sp-header .sp-mega__panel-head a:visited,
.sp-header .sp-mega__column h3 > a:link,
.sp-header .sp-mega__column h3 > a:visited {
    color: #414851;
}

.sp-header .sp-mega__content .sp-mega__column a:hover,
.sp-header .sp-mega__content .sp-mega__column a:focus {
    color: #737373;
    background-color: transparent;
}

.sp-mega__column a:hover,
.sp-dropdown a:hover {
    color: #737373;
    background-color: rgba(17, 17, 17, 0.045);
}

.sp-mega__callout,
.sp-mega__actions {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 18px;
    padding: 14px 16px;
    background: #f8f8f8;
    border-radius: 8px;
}

.sp-mega__callout p {
    margin: 0;
    color: #9aa0a8;
    font-size: 14px;
    line-height: 1.9;
}

.sp-mega__actions {
    justify-content: space-between;
}

.sp-btn--wide {
    min-width: 190px;
}

.sp-dropdown {
    right: 0;
    width: 172px;
    padding: 8px 0;
    border-radius: 4px;
    direction: rtl;
    text-align: right;
}

.sp-dropdown a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 14px;
    color: #111111;
    font-size: 13px;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
    transition: background-color 180ms ease, color 180ms ease;
}

.sp-header .sp-dropdown a:link,
.sp-header .sp-dropdown a:visited,
.sp-header .sp-dropdown a:hover,
.sp-header .sp-dropdown a:focus,
.sp-header .sp-dropdown a:active {
    color: #111111;
}

.sp-dropdown a::before {
    content: none;
}

@media (max-width: 1180px) {
    .sp-header__inner {
        width: calc(100% - 20px);
        gap: 14px;
    }

    .sp-nav__link {
        padding: 0 7px;
        font-size: 13px;
    }

    .sp-header__tools {
        gap: 12px;
    }

    .sp-mega {
        right: -180px;
        left: auto;
        transform: translateY(8px);
    }

    .sp-nav__item:hover > .sp-mega,
    .sp-nav__item:focus-within > .sp-mega {
        transform: translateY(0);
    }
}

/* Panel content only: keep the global header untouched. */
.sp-panel-page #content {
    font-size: 14px;
}

.sp-panel-page #content :where(h1, h2, h3, h4, h5, h6, .title, .heading) {
    color: #4b5563 !important;
}

.sp-panel-page #content :where(button, .button, [type="button"], [type="submit"]) {
    min-height: 34px !important;
    padding: 7px 14px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.sp-panel-page #content :where(input, select, textarea) {
    font-size: 13px !important;
}

.sp-panel-page .sp-panel-auto-title-field {
    display: none !important;
}

.sp-panel-page .sp-panel-native-file {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sp-panel-page .sp-panel-file-picker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    direction: rtl;
}

.sp-panel-page .sp-panel-file-picker__button {
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid #168cff;
    border-radius: 6px;
    background: transparent;
    color: #168cff;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.sp-panel-page .sp-panel-file-picker__button:hover,
.sp-panel-page .sp-panel-file-picker__button:focus {
    background: #168cff;
    color: #fff;
    outline: none;
}

.sp-panel-page .sp-panel-file-picker__status {
    min-width: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .sp-panel-page #content {
        font-size: 13px;
    }

    .sp-panel-page #content :where(button, .button, [type="button"], [type="submit"]) {
        min-height: 32px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 1016px) {
    .sp-header {
        position: sticky;
    }

    .sp-header__inner {
        min-height: 72px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "menu brand consult";
        gap: 10px;
        padding: 8px 0;
        position: relative;
    }

    .sp-header__brand {
        grid-area: brand;
        justify-self: center;
        min-width: 0;
    }

    .sp-header__brand img,
    .sp-header__brand .custom-logo {
        width: 150px;
        height: 44px;
    }

    .sp-mobile-menu-toggle {
        grid-area: menu;
        position: absolute;
        right: 0;
        justify-self: auto;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #168cff;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .sp-mobile-menu-toggle:hover,
    .sp-mobile-menu-toggle:focus,
    .sp-mobile-menu-toggle:active {
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #168cff;
        outline: none;
    }

    .sp-mobile-menu-toggle span,
    .sp-mobile-menu-toggle span::before,
    .sp-mobile-menu-toggle span::after {
        width: 25px;
        height: 2px;
        display: block;
        position: relative;
        border-radius: 2px;
        background: currentColor;
        transition: transform 220ms ease, opacity 220ms ease;
    }

    .sp-mobile-menu-toggle span::before,
    .sp-mobile-menu-toggle span::after {
        content: "";
        position: absolute;
        right: 0;
    }

    .sp-mobile-menu-toggle span::before {
        transform: translateY(-8px);
    }

    .sp-mobile-menu-toggle span::after {
        transform: translateY(8px);
    }

    .sp-header.is-mobile-menu-open .sp-mobile-menu-toggle span {
        background: transparent;
    }

    .sp-header.is-mobile-menu-open .sp-mobile-menu-toggle span::before {
        transform: rotate(45deg);
    }

    .sp-header.is-mobile-menu-open .sp-mobile-menu-toggle span::after {
        transform: rotate(-45deg);
    }

    .sp-header__tools {
        grid-area: consult;
        position: absolute;
        left: 0;
        justify-self: auto;
        gap: 0;
    }

    .sp-header__tools > .sp-header__search,
    .sp-header__tools > .sp-account-btn {
        display: none;
    }

    .sp-consult-btn--desktop {
        display: none;
    }

    .sp-consult-btn--mobile {
        display: inline-flex;
        width: 44px;
        min-width: 44px;
        min-height: 40px;
        padding: 0;
    }

    .sp-consult-btn--mobile img {
        width: 25px;
        height: 25px;
        display: block;
        filter: brightness(0) invert(1);
    }

    .sp-mobile-menu-backdrop {
        position: fixed;
        z-index: 10;
        inset: var(--sp-mobile-overlay-top, 72px) 0 0;
        display: block;
        background: rgba(8, 15, 25, 0.48);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    .sp-header.is-mobile-menu-open .sp-mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sp-nav {
        position: absolute;
        z-index: 20;
        top: 100%;
        right: 5%;
        width: 90%;
        max-height: calc(100vh - 72px);
        display: flex;
        flex-direction: column;
        overflow: auto;
        padding: 12px;
        background: #fff;
        border-top: 1px solid #e4e7eb;
        box-shadow: 0 14px 24px rgba(23, 36, 52, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    }

    .sp-header.is-mobile-menu-open .sp-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .sp-nav__list {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .sp-nav__link {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 0 10px;
        border-bottom: 1px solid #edf0f3;
        font-size: 14px;
    }

    .sp-nav__hamburger {
        display: none;
    }

    .sp-nav__arrow {
        margin-right: auto;
    }

    .sp-nav__item:hover > .sp-nav__link .sp-nav__arrow,
    .sp-nav__item:focus-within > .sp-nav__link .sp-nav__arrow {
        transform: none;
    }

    .sp-nav__item.is-mobile-submenu-open > .sp-nav__link .sp-nav__arrow {
        transform: rotate(180deg);
    }

    .sp-mega,
    .sp-dropdown {
        position: static;
        width: 100%;
        min-height: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        transition: none;
    }

    .sp-nav__item.is-mobile-submenu-open > .sp-mega {
        display: grid;
    }

    .sp-nav__item.is-mobile-submenu-open > .sp-dropdown {
        display: block;
    }

    .sp-mega {
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
        border-radius: 0 0 7px 7px;
    }

    .sp-mega__tabs {
        display: flex;
        overflow-x: auto;
        border: 0;
        border-bottom: 1px solid #e4e6ea;
    }

    .sp-mega__tab {
        min-width: max-content;
        min-height: 48px;
        padding: 0 14px;
        font-size: 13px;
    }

    .sp-mega__tab span {
        font-size: 18px;
    }

    .sp-mega__content,
    .sp-mega__panel {
        min-height: 0;
    }

    .sp-mega__panel {
        padding: 20px 14px;
    }

    .sp-mega__columns,
    .sp-mega__columns--compact {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sp-mega__callout,
    .sp-mega__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-nav__mobile-tools {
        order: -1;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 8px;
        padding: 6px 10px 12px;
        border-bottom: 1px solid #e4e7eb;
    }

    .sp-nav__mobile-tools .sp-header__search {
        display: inline-flex;
    }

    .sp-nav__mobile-tools .sp-account-btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 360px) {
    .sp-header__inner {
        gap: 6px;
    }

    .sp-header__brand img,
    .sp-header__brand .custom-logo {
        width: 120px;
        height: 40px;
    }

    .sp-consult-btn--mobile {
        padding: 0;
    }
}

.sp-search-page,
.sp-search-page * {
    box-sizing: border-box;
}

.sp-search-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 72px;
    direction: rtl;
    color: #172033;
}

.sp-search-page a {
    text-decoration: none;
}

.sp-search-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
    padding: 26px;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96)),
        linear-gradient(135deg, #168cff, #18b37a);
    box-shadow: 0 12px 34px rgba(20, 43, 78, 0.08);
}

.sp-search-hero__eyebrow {
    margin: 0 0 8px;
    color: #1476f3;
    font-size: 13px;
    font-weight: 700;
}

.sp-search-hero h1 {
    margin: 0;
    color: #111827;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.65;
}

.sp-search-hero p {
    margin: 8px 0 0;
    color: #5b6678;
    font-size: 15px;
    line-height: 1.9;
}

.sp-search-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sp-search-form input {
    min-width: 0;
    flex: 1 1 auto;
    height: 44px;
    border: 0;
    outline: 0;
    padding: 0 12px;
    color: #172033;
    background: transparent;
    font-size: 14px;
}

.sp-search-form button,
.sp-search-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    padding: 0 22px;
    background: linear-gradient(135deg, #168cff 0%, #13366e 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(20, 95, 177, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.sp-search-form button:hover,
.sp-search-card__button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 11px 22px rgba(20, 95, 177, 0.24);
}

.sp-search-results {
    display: grid;
    gap: 16px;
}

.sp-search-card {
    display: flex;
    align-items: stretch;
    gap: 22px;
    min-height: 166px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 32, 53, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sp-search-card:hover {
    border-color: #bfd2ec;
    box-shadow: 0 16px 36px rgba(18, 32, 53, 0.1);
    transform: translateY(-2px);
}

.sp-search-card__thumb {
    width: 220px;
    min-height: 138px;
    flex: 0 0 220px;
    display: block;
    overflow: hidden;
    border: 1px solid #e5ebf3;
    border-radius: 7px;
    background: #f5f8fc;
}

.sp-search-card__thumb img {
    width: 100%;
    height: 100%;
    min-height: 138px;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.sp-search-card:hover .sp-search-card__thumb img {
    transform: scale(1.035);
}

.sp-search-card__placeholder {
    height: 100%;
    min-height: 138px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef6ff, #f6fbf8);
}

.sp-search-card__placeholder img {
    width: 46px;
    height: 46px;
    min-height: 0;
    object-fit: contain;
    opacity: 0.48;
}

.sp-search-card__body {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    column-gap: 18px;
    row-gap: 8px;
    padding: 4px 0;
}

.sp-search-card__meta,
.sp-search-card__title,
.sp-search-card__excerpt {
    grid-column: 1 / -1;
}

.sp-search-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #697588;
    font-size: 12px;
}

.sp-search-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #e0e7f0;
    border-radius: 999px;
    background: #f8fafc;
}

.sp-search-card__title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.65;
}

.sp-search-card__title a {
    color: #10223d;
}

.sp-search-card__title a:hover {
    color: #1476f3;
}

.sp-search-card__excerpt {
    margin: 0;
    color: #4f5b6d;
    font-size: 14px;
    line-height: 2;
}

.sp-search-card__button {
    grid-column: 2;
    justify-self: end;
    align-self: end;
    min-width: 104px;
    margin-top: 4px;
}

.sp-search-pagination {
    margin-top: 30px;
}

.sp-search-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-search-pagination a,
.sp-search-pagination span {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #dce5f1;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
}

.sp-search-pagination a:hover,
.sp-search-pagination .current {
    border-color: #1476f3;
    background: #1476f3;
    color: #fff;
}

.sp-search-empty {
    padding: 44px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 34px rgba(20, 43, 78, 0.06);
}

.sp-search-empty h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
}

.sp-search-empty p {
    margin: 0;
    color: #5b6678;
}

@media (max-width: 820px) {
    .sp-search-page {
        width: min(100% - 24px, 1180px);
        padding: 28px 0 48px;
    }

    .sp-search-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 20px;
    }

    .sp-search-hero h1 {
        font-size: 24px;
    }

    .sp-search-card {
        gap: 14px;
    }

    .sp-search-card__thumb {
        width: 150px;
        flex-basis: 150px;
    }
}

@media (max-width: 600px) {
    .sp-search-form {
        flex-direction: column;
    }

    .sp-search-form button {
        width: 100%;
    }

    .sp-search-card {
        flex-direction: column;
    }

    .sp-search-card__thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
        flex-basis: auto;
    }

    .sp-search-card__body {
        display: block;
    }

    .sp-search-card__title {
        margin-top: 8px;
        font-size: 18px;
    }

    .sp-search-card__excerpt {
        margin-top: 8px;
    }

    .sp-search-card__button {
        width: 100%;
        margin-top: 14px;
    }
}
