.shz-faq-section,
.shz-faq-categories,
.shz-selected-section {
    margin-top: 80px;
    width: 100%;
}

.shz-section-title {
    display: flex;
    gap: 16px;
    align-items: center;
}

.shz-section-title > span {
    color: var(--primary-color, #d14e24);
    flex: 0 0 auto;
    font-size: var(--font-size-dextop-3xl, 24px);
    font-weight: 600;
}

.shz-section-title .line {
    background: var(--gray-500, #404040);
    border-radius: 2px;
    flex: 1 1 auto;
    height: 2px;
}

.shz-faq-list,
.shz-category-grid {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.shz-faq-item,
.shz-category-card {
    background-color: var(--gray-900, #171717);
    background-image:
        linear-gradient(var(--gray-900, #171717), var(--gray-900, #171717)),
        linear-gradient(to bottom, var(--gray-700, #2f2f2f), var(--bg-color, #0a0a0a));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
    border-radius: 16px;
}

.shz-faq-item {
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}

.shz-faq-item:hover,
.shz-faq-item.is-open {
    background-image:
        linear-gradient(var(--gray-900, #171717), var(--gray-900, #171717)),
        linear-gradient(to bottom, var(--primary-color, #d14e24), var(--bg-color, #0a0a0a));
}

.shz-faq-question,
.shz-category-copy h3 {
    margin: 0;
}

.shz-faq-question button {
    align-items: center;
    background: transparent;
    color: var(--text-color, #e5e5e5);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: var(--font-size-dextop-xl, 16px);
    font-weight: 600;
    gap: 20px;
    justify-content: space-between;
    padding: 20px 22px;
    text-align: right;
    width: 100%;
}

.shz-faq-question button:focus-visible,
.shz-category-card:focus-visible {
    outline: 2px solid var(--primary-color, #d14e24);
    outline-offset: 3px;
}

.shz-faq-question i {
    align-items: center;
    background: color-mix(in srgb, var(--primary-color, #d14e24) 16%, transparent);
    border-radius: 50%;
    color: var(--primary-color, #d14e24);
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 20px;
    height: 34px;
    justify-content: center;
    transition: transform .25s ease, background-color .25s ease;
}

.shz-faq-item.is-open .shz-faq-question i {
    background: var(--primary-color, #d14e24);
    color: var(--gray-900, #171717);
    transform: rotate(45deg);
}

.shz-faq-answer {
    border-top: 1px solid var(--gray-500, #404040);
    color: #b7b7b7;
}

.shz-faq-answer[hidden] {
    display: none;
}

.shz-faq-answer-inner {
    font-size: var(--font-size-dextop-xl, 16px);
    font-weight: 300;
    line-height: 1.9;
    padding: 18px 22px 22px;
    text-align: justify;
}

.shz-faq-answer-inner > :first-child {
    margin-top: 0;
}

.shz-faq-answer-inner > :last-child {
    margin-bottom: 0;
}

.shz-faq-answer-inner a {
    color: var(--primary-color, #d14e24);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shz-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.shz-category-card {
    align-items: center;
    color: var(--text-color, #e5e5e5);
    display: grid;
    gap: 16px;
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    min-height: 152px;
    padding: 22px;
    transition: transform .2s ease, background-image .2s ease;
}

.shz-category-card:hover {
    background-image:
        linear-gradient(var(--gray-900, #171717), var(--gray-900, #171717)),
        linear-gradient(to bottom, var(--primary-color, #d14e24), var(--bg-color, #0a0a0a));
    transform: translateY(-3px);
}

.shz-category-icon {
    align-items: center;
    background: color-mix(in srgb, var(--primary-color, #d14e24) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color, #d14e24) 45%, transparent);
    border-radius: 14px;
    color: var(--primary-color, #d14e24);
    display: flex;
    font-size: 28px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.shz-category-copy h3 {
    color: var(--text-color, #e5e5e5);
    font-size: var(--font-size-dextop-xl, 16px);
    font-weight: 600;
    line-height: 1.5;
}

.shz-category-copy p {
    color: #b7b7b7;
    display: -webkit-box;
    font-size: var(--font-size-dextop-l, 14px);
    font-weight: 300;
    line-height: 1.6;
    margin: 8px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shz-category-count {
    color: var(--primary-color, #d14e24);
    display: inline-block;
    font-size: var(--font-size-dextop-m, 12px);
    margin-top: 10px;
}

.shz-category-arrow {
    color: var(--gray-500, #404040);
    font-size: 24px;
    transition: color .2s ease, transform .2s ease;
}

.shz-category-card:hover .shz-category-arrow {
    color: var(--primary-color, #d14e24);
    transform: translateX(-3px);
}

.shz-selected-section .shz-selected-container {
    margin-top: 0;
}

.shz-selected-section .shz-selected-card {
    background: var(--gray-900, #171717);
    border: 1px solid #262626;
    border-radius: 16px;
    display: block;
    margin-top: 32px;
    min-height: 200px;
    overflow: hidden;
    width: 100%;
}

.shz-selected-section .img-continer {
    border-bottom: 1px solid #262626;
    border-radius: 16px 16px 0 0;
    display: block;
    height: 192px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.shz-selected-section .img-continer::after {
    background-color: var(--primary-color, #d14e24);
    content: "";
    height: 100%;
    inset: 0;
    opacity: .2;
    pointer-events: none;
    position: absolute;
    transition: opacity .3s ease;
    width: 100%;
}

.shz-selected-section .shz-selected-card:hover .img-continer::after {
    opacity: .35;
}

.shz-selected-section .img-continer img {
    display: block;
    filter: grayscale(100%);
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.shz-selected-section .item-continer {
    padding: 10px 20px;
}

.shz-selected-section .titel {
    display: -webkit-box;
    font-size: var(--font-size-dextop-xl, 16px);
    font-weight: 600;
    height: 46px;
    line-height: 1.5;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shz-selected-section .Calendar {
    align-items: center;
    border-top: 1px solid var(--gray-500, #404040);
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
}

.shz-selected-section .Calendar i {
    color: var(--primary-color, #d14e24);
    font-size: var(--font-size-dextop-3xl, 24px);
}

.shz-selected-section .Calendar div {
    font-size: var(--font-size-dextop-xl, 16px);
    line-height: 1;
}

.shz-selected-carousel:not(.owl-loaded) {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shz-selected-carousel .owl-nav .owl-next::before,
.shz-selected-carousel .owl-nav .owl-prev::before {
    background: var(--bg-color, #0a0a0a);
    color: var(--primary-color, #d14e24);
    font-family: Phosphor !important;
    font-size: var(--font-size-dextop-4xl, 32px);
    padding: 8px;
    position: absolute;
    top: -38px;
}

.shz-selected-carousel .owl-nav .owl-next::before {
    content: "\e05a";
    left: -10px;
}

.shz-selected-carousel .owl-nav .owl-prev::before {
    content: "\e02e";
    left: 30px;
}

@media (max-width: 600px) {
    /* The theme positions each skill percentage above the progress bar. On a
       narrow screen that badge can collide with a long Persian skill name.
       Keep the endpoint relationship, but place the badge below the line. */
    .skills-bar .bar {
        padding-bottom: 28px;
    }

    .skills-bar .bar .progress-line .slider1::after {
        top: 12px !important;
    }

    .shz-faq-section,
    .shz-faq-categories,
    .shz-selected-section {
        margin-top: 40px;
    }

    .shz-category-grid,
    .shz-selected-carousel:not(.owl-loaded) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    /* The theme's mobile menu occupies the first 72px of the viewport. Give
       native text-led first sections a deliberate 24px breathing space so
       their title can never touch or sit beneath the menu button. */
    .blog-section,
    .skills-bar-section,
    html:has(.shz-job-form-section) .map-section:first-of-type {
        margin-top: 96px !important;
    }

    .shz-faq-section,
    .shz-faq-categories,
    .shz-selected-section {
        margin-top: 32px;
    }

    .shz-faq-question button,
    .shz-faq-answer-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .shz-category-card {
        gap: 12px;
        grid-template-columns: 44px minmax(0, 1fr) 22px;
        min-height: 132px;
        padding: 16px;
    }

    .shz-category-icon {
        border-radius: 12px;
        font-size: 24px;
        height: 44px;
        width: 44px;
    }
}

/* Rich article content, scoped to generated tax posts. */
.shz-article-content {
    color: var(--gray-300, #b3b3b3);
    font-size: 15px;
    line-height: 2.15;
}

.shz-article-content h2 {
    color: var(--text-color, #e5e5e5);
    font-size: clamp(20px, 4vw, 25px);
    line-height: 1.65;
    margin: 42px 0 14px;
}

.shz-article-content p {
    margin: 0 0 18px;
}

.shz-article-lead {
    border-right: 3px solid var(--primary-color, #d14e24);
    color: var(--gray-100, #e5e5e5) !important;
    font-size: 17px !important;
    padding: 4px 18px 4px 0;
}

.shz-article-content ul,
.shz-article-content ol {
    margin: 14px 0 24px;
    padding-right: 24px;
}

.shz-article-content li {
    margin-bottom: 9px;
}

.shz-article-content strong {
    color: var(--gray-100, #e5e5e5);
}

.shz-article-toc {
    background: var(--gray-900, #171717);
    border: 1px solid var(--gray-700, #262626);
    border-radius: 16px;
    display: grid;
    gap: 8px;
    margin: 28px 0;
    padding: 20px;
}

.shz-article-toc a {
    color: var(--gray-300, #b3b3b3);
    padding-right: 14px;
    position: relative;
}

.shz-article-toc a::before {
    background: var(--primary-color, #d14e24);
    border-radius: 50%;
    content: "";
    height: 5px;
    position: absolute;
    right: 0;
    top: 14px;
    width: 5px;
}

.shz-article-callout {
    background: color-mix(in srgb, var(--primary-color, #d14e24) 9%, var(--gray-900, #171717));
    border: 1px solid color-mix(in srgb, var(--primary-color, #d14e24) 42%, transparent);
    border-radius: 16px;
    margin: 28px 0;
    padding: 18px 20px;
}

.shz-article-callout > strong {
    color: var(--primary-color, #d14e24);
    display: block;
    margin-bottom: 5px;
}

.shz-article-callout p {
    margin: 0;
}

.shz-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
}

.shz-article-content table {
    border-collapse: collapse;
    min-width: 620px;
    width: 100%;
}

.shz-article-content th,
.shz-article-content td {
    border: 1px solid var(--gray-700, #262626);
    padding: 12px 14px;
    text-align: right;
    vertical-align: top;
}

.shz-article-content th {
    background: var(--gray-900, #171717);
    color: var(--text-color, #e5e5e5);
}

.shz-checklist {
    list-style: none;
    padding-right: 0 !important;
}

.shz-checklist li {
    padding-right: 28px;
    position: relative;
}

.shz-checklist li::before {
    color: var(--primary-color, #d14e24);
    content: "✓";
    font-weight: 700;
    position: absolute;
    right: 0;
}

.shz-article-note {
    border-top: 1px solid var(--gray-700, #262626);
    color: var(--gray-400, #737373) !important;
    font-size: 12px !important;
    margin-top: 38px !important;
    padding-top: 16px;
}

@media (max-width: 440px) {
    .shz-article-content {
        font-size: 14px;
    }

    .shz-article-lead {
        font-size: 15px !important;
    }

    .shz-article-toc,
    .shz-article-callout {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shz-faq-item,
    .shz-faq-question i,
    .shz-category-card,
    .shz-category-arrow {
        transition: none;
    }
}

/* Tax law library pages. */
.shz-law-page {
    direction: rtl;
    margin-bottom: 0;
    margin-top: 56px;
}

.shz-law-header {
    border-bottom: 1px solid var(--gray-700, #262626);
    margin-bottom: 28px;
    padding-bottom: 24px;
}

/* The theme styles its navigation with the bare `header` selector. Keep a
   defensive reset here so generated page headings can never inherit the
   fixed mobile navigation layout, even in older stored Elementor documents. */
.shz-law-page > .shz-law-header {
    display: block !important;
    flex-direction: initial !important;
    height: auto !important;
    inset: auto !important;
    overflow: visible !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    transition: none !important;
    width: auto !important;
    z-index: auto !important;
}

.shz-law-page *,
.shz-faq-section * {
    box-sizing: border-box;
    min-width: 0;
}

.shz-law-kicker {
    color: var(--primary-color, #d14e24);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.shz-law-header h1 {
    color: var(--text-color, #e5e5e5);
    font-size: clamp(25px, 5vw, 38px);
    line-height: 1.45;
    margin: 0 0 12px;
}

.shz-law-header p,
.shz-law-guidance p,
.shz-law-article-body,
.shz-law-source {
    color: var(--gray-300, #b3b3b3);
    font-size: 15px;
    line-height: 2;
}

.shz-law-header p,
.shz-law-guidance p {
    margin: 0;
    overflow-wrap: anywhere;
}

.shz-law-nav-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shz-law-nav-card {
    background: var(--gray-900, #171717);
    border: 1px solid var(--gray-700, #262626);
    border-radius: 18px;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 22px;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.shz-law-nav-card:hover,
.shz-law-nav-card:focus-visible {
    border-color: var(--primary-color, #d14e24);
    transform: translateY(-3px);
}

.shz-law-nav-title {
    color: var(--text-color, #e5e5e5);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.shz-law-nav-summary {
    color: var(--gray-400, #737373);
    font-size: 14px;
    line-height: 1.9;
    margin: 9px 0 18px;
}

.shz-law-nav-action {
    align-items: center;
    color: var(--primary-color, #d14e24);
    display: flex;
    font-size: 13px;
    gap: 7px;
    margin-top: auto;
}

.shz-law-guidance,
.shz-law-notice {
    background: color-mix(in srgb, var(--primary-color, #d14e24) 8%, var(--gray-900, #171717));
    border: 1px solid color-mix(in srgb, var(--primary-color, #d14e24) 38%, transparent);
    border-radius: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
}

.shz-law-guidance strong {
    color: var(--primary-color, #d14e24);
    display: block;
    margin-bottom: 5px;
}

.shz-law-articles {
    display: grid;
    gap: 16px;
}

.shz-law-article {
    background: var(--gray-900, #171717);
    border: 1px solid var(--gray-700, #262626);
    border-radius: 16px;
    overflow: hidden;
}

.shz-law-article h2 {
    background: rgba(255, 255, 255, .018);
    border-bottom: 1px solid var(--gray-700, #262626);
    color: var(--text-color, #e5e5e5);
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
    padding: 15px 20px;
}

.shz-law-article-body {
    overflow-wrap: anywhere;
    padding: 18px 20px;
}

.shz-law-article-body > :first-child {
    margin-top: 0;
}

.shz-law-article-body > :last-child {
    margin-bottom: 0;
}

.shz-law-article-body a,
.shz-law-source a {
    color: var(--primary-color, #d14e24);
}

.shz-law-source {
    border-top: 1px solid var(--gray-700, #262626);
    font-size: 12px;
    margin-top: 24px;
    padding-top: 16px;
}

@media (max-width: 600px) {
    .shz-law-page {
        margin-bottom: 0;
        margin-top: 40px;
    }

    .shz-law-nav-grid {
        grid-template-columns: 1fr;
    }

    .shz-law-nav-card {
        min-height: 0;
    }
}

@media (max-width: 440px) {
    .shz-law-page,
    .shz-faq-section {
        margin-top: 96px;
    }

    .shz-law-header {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .shz-law-header h1 {
        font-size: clamp(21px, 6.4vw, 24px);
        line-height: 1.55;
        margin-bottom: 10px;
        overflow-wrap: anywhere;
    }

    .shz-law-header p {
        font-size: 14px;
        line-height: 1.9;
        text-align: right;
    }

    .shz-law-nav-card,
    .shz-law-article-body,
    .shz-law-guidance,
    .shz-law-notice {
        padding: 16px;
    }

    .shz-law-article h2 {
        padding: 13px 16px;
    }
}

/* Keep the final content-to-footer distance compact and symmetrical on
   generated pages. The theme otherwise adds its own 72px footer gap on top
   of the page margin. */
html:has(.shz-law-page) .footer-section,
html:has(.shz-faq-section) .footer-section,
html.shz-compact-content-page .footer-section {
    margin-top: 56px;
}

@media (max-width: 600px) {
    html:has(.shz-law-page) .footer-section,
    html:has(.shz-faq-section) .footer-section,
    html.shz-compact-content-page .footer-section {
        margin-top: 40px;
    }
}

/* Employment form — deliberately reuses the theme's form-section,
   form-container, form-input, form-textarea and submitButton vocabulary. */
.shz-job-form-section {
    margin-top: 72px;
    scroll-margin-top: 96px;
    width: 100%;
}

html:has(.shz-job-form-section) .footer-section {
    margin-top: 56px;
}

.shz-job-form-intro {
    color: var(--gray-300, #808080);
    font-size: var(--font-size-dextop-xl, 16px);
    line-height: 1.9;
    margin: -14px 0 26px;
    max-width: 760px;
}

.shz-job-form {
    align-items: start;
}

.shz-job-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.shz-job-field > span:first-child {
    color: var(--gray-300, #808080);
    font-size: var(--font-size-dextop-l, 14px);
    line-height: 1.5;
}

.shz-job-field .form-input,
.shz-job-field .form-textarea {
    background-color: var(--bg-color, #0a0a0a);
    border: 1px solid var(--gray-500, #404040);
    border-radius: 8px;
    color: var(--text-color, #e5e5e5);
    font-family: PeydaWebFaNum, sans-serif !important;
    max-width: 100%;
    width: 100%;
}

.shz-job-field .form-input {
    height: 48px;
    padding: 8px 12px;
}

.shz-job-field .form-textarea {
    display: block;
    grid-column: auto;
    min-height: 140px;
    padding: 12px;
    resize: vertical !important;
}

.shz-job-field .form-input:focus,
.shz-job-field .form-textarea:focus {
    border-color: var(--primary-color, #d14e24);
    box-shadow: none !important;
    outline: 0;
}

.shz-form-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--gray-300, #808080) 50%), linear-gradient(135deg, var(--gray-300, #808080) 50%, transparent 50%);
    background-position: left 16px center, left 11px center;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    cursor: pointer;
    padding-left: 34px !important;
}

.shz-form-select option {
    background: var(--gray-900, #171717);
    color: var(--text-color, #e5e5e5);
}

.shz-job-field-wide,
.shz-job-form > .submitButton,
.shz-job-form > .shz-form-message {
    grid-column: 1 / -1;
}

.shz-resume-field {
    background: color-mix(in srgb, var(--gray-900, #171717) 88%, transparent);
    border: 1px dashed var(--gray-500, #404040);
    border-radius: 10px;
    padding: 14px;
}

.shz-resume-field input[type="file"] {
    color: var(--gray-300, #808080);
    cursor: pointer;
    font-family: PeydaWebFaNum, sans-serif;
    font-size: 13px;
    width: 100%;
}

.shz-resume-field input[type="file"]::file-selector-button {
    background: var(--gray-500, #404040);
    border: 0;
    border-radius: 7px;
    color: var(--text-color, #e5e5e5);
    cursor: pointer;
    font-family: inherit;
    margin-left: 12px;
    padding: 9px 14px;
    transition: background-color .2s ease;
}

.shz-resume-field input[type="file"]:hover::file-selector-button {
    background: var(--primary-color, #d14e24);
}

.shz-resume-file-name {
    color: var(--gray-300, #808080) !important;
    font-size: 12px !important;
}

.shz-job-honeypot {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.shz-form-message {
    border: 1px solid var(--gray-500, #404040);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 22px;
    padding: 12px 16px;
}

.shz-form-message.is-success {
    background: color-mix(in srgb, #16a34a 11%, var(--gray-900, #171717));
    border-color: color-mix(in srgb, #16a34a 55%, transparent);
    color: #86efac;
}

.shz-form-message.is-error {
    background: color-mix(in srgb, #dc2626 9%, var(--gray-900, #171717));
    border-color: color-mix(in srgb, #dc2626 48%, transparent);
    color: #fca5a5;
}

.shz-job-form .submitButton {
    background: var(--gray-500, #404040);
    cursor: pointer;
    font-family: PeydaWebFaNum, sans-serif;
}

.shz-job-form.is-valid .submitButton,
.shz-job-form .submitButton:hover,
.shz-job-form .submitButton:focus-visible {
    background: var(--primary-color, #d14e24);
}

@media (max-width: 600px) {
    .shz-job-form-section {
        margin-top: 56px;
    }

    .shz-job-form {
        grid-template-columns: 1fr;
    }

    .shz-job-field,
    .shz-job-field-wide,
    .shz-job-form > .submitButton {
        grid-column: 1 / -1;
    }

    .shz-job-form-intro {
        font-size: 14px;
        margin-bottom: 22px;
        text-align: right;
    }

    html:has(.shz-job-form-section) .footer-section {
        margin-top: 48px;
    }
}

@media (max-width: 440px) {
    .shz-job-form-section {
        margin-top: 48px;
    }

    .shz-job-field > span:first-child {
        font-size: 12px;
    }

    .shz-resume-field {
        padding: 12px;
    }
}
