.martos-category {
    --martos-category-bg: #fffbe6;
    --martos-category-surface: #fffef8;
    --martos-category-surface-soft: #f7f2df;
    --martos-category-surface-muted: #eee8d2;
    --martos-category-border: #c9c2ab;
    --martos-category-outline: #8a8b80;
    --martos-category-text: #1d1c10;
    --martos-category-text-soft: #4f564d;
    --martos-category-primary: #063817;
    --martos-category-primary-soft: #234f2c;
    --martos-category-secondary: #456d0e;
    --martos-category-accent: #bff377;
    --martos-category-accent-strong: #f2bf2e;
    --martos-category-shadow: 0 24px 44px rgba(29, 28, 16, 0.07);
    background: var(--martos-category-bg);
    color: var(--martos-category-text);
    padding: 4.5rem 0 5rem;
}

.martos-category__hero,
.martos-category__layout {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
}

.martos-category__hero {
    display: grid;
    gap: 2rem;
    align-items: end;
}

.martos-category__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--martos-category-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.martos-category__title {
    margin: 0 0 1.25rem;
    color: var(--martos-category-primary);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.martos-category__description {
    max-width: 44rem;
    margin: 0;
    color: var(--martos-category-text-soft);
    font-size: 1.08rem;
    line-height: 1.85;
}

.martos-category__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 25rem;
    padding: 0.35rem;
    border-radius: 1.35rem;
    background: #ece9d4;
    box-shadow:
        0 18px 40px rgba(191, 243, 119, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.martos-category .martos-category__search input.martos-category__search-input {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--martos-category-text) !important;
    font-family: inherit !important;
    font-size: 0.98rem;
    line-height: 1.4;
    box-shadow: none !important;
    padding: 0.95rem 1.15rem !important;
    margin: 0 !important;
    height: auto !important;
}

.martos-category .martos-category__search input.martos-category__search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
}

.martos-category .martos-category__search input.martos-category__search-input::placeholder {
    color: var(--martos-category-text-soft) !important;
    opacity: 1;
}

.martos-category .martos-category__search button.martos-category__search-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--martos-category-primary) !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 3.2rem !important;
    min-height: 3.2rem !important;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.martos-category .martos-category__search button.martos-category__search-button:hover,
.martos-category .martos-category__search button.martos-category__search-button:focus {
    opacity: 0.92;
    transform: scale(1.03);
}

.martos-category__search-icon {
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 2rem;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.6rem 1.6rem;
}

.martos-category__divider {
    width: min(1280px, calc(100% - 2rem));
    margin: 3rem auto 0;
    border-bottom: 1.5px dashed rgba(114, 121, 112, 0.45);
}

.martos-category__layout {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.martos-category__results.is-loading {
    opacity: 0.88;
}

.martos-category__results-status {
    display: none;
    margin: 0 0 1.5rem;
    color: var(--martos-category-text-soft);
    font-size: 0.94rem;
    font-weight: 600;
}

.martos-category__results-status.is-visible {
    display: block;
}

.martos-category__results-status.is-error {
    color: #9e2d19;
}

.martos-category__ajax-results.is-hidden,
.martos-category__ajax-empty.is-hidden,
.martos-category__load-more.is-hidden,
.martos-category [data-category-default-content].is-hidden {
    display: none;
}

.martos-category__grid {
    display: grid;
    gap: 1.8rem;
}

.martos-category__card {
    margin: 0;
    border-radius: 1.6rem;
    overflow: hidden;
    background: var(--martos-category-surface);
    box-shadow: 0 0 0 1px rgba(201, 194, 171, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.martos-category__card:hover,
.martos-category__card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--martos-category-shadow);
}

.martos-category__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.martos-category__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: #d9d3bf;
}

.martos-category__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.martos-category__card:hover .martos-category__image,
.martos-category__card:focus-within .martos-category__image {
    transform: scale(1.05);
}

.martos-category__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(191, 243, 119, 0.38), transparent 32%),
        linear-gradient(135deg, #ebe4cf 0%, #d8cfb6 100%);
    color: var(--martos-category-primary);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.martos-category__date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(240, 236, 220, 0.8);
    backdrop-filter: blur(12px);
    color: var(--martos-category-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.martos-category__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 2rem;
}

.martos-category__card-title {
    margin: 0 0 1rem;
    color: var(--martos-category-primary);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.martos-category__card-excerpt {
    color: var(--martos-category-text-soft);
    font-size: 0.98rem;
    line-height: 1.8;
}

.martos-category__card-excerpt p {
    margin: 0;
}

.martos-category__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--martos-category-secondary);
    font-weight: 800;
}

.martos-category__arrow {
    transition: transform 0.2s ease;
}

.martos-category__card:hover .martos-category__arrow,
.martos-category__card:focus-within .martos-category__arrow {
    transform: translateX(2px);
}

.martos-category__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 3rem;
}

.martos-category__ajax-actions {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.martos-category__load-more {
    appearance: none;
    -webkit-appearance: none;
    min-height: 3.2rem;
    padding: 0.95rem 1.6rem;
    border: 1px solid rgba(201, 194, 171, 0.8);
    border-radius: 999px;
    background: rgba(247, 242, 223, 0.92);
    color: var(--martos-category-primary);
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.martos-category__load-more:hover,
.martos-category__load-more:focus {
    background: var(--martos-category-primary);
    color: #fff;
    transform: translateY(-1px);
}

.martos-category__load-more.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.martos-category__ajax-empty {
    margin-top: 1rem;
}

.martos-category__page-link {
    display: inline-flex;
}

.martos-category__page-link a,
.martos-category__page-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.martos-category__page-link a {
    color: var(--martos-category-text-soft);
}

.martos-category__page-link a:hover,
.martos-category__page-link a:focus {
    background: var(--martos-category-surface-soft);
    color: var(--martos-category-primary);
}

.martos-category__page-link--current .current {
    background: var(--martos-category-primary);
    color: #fff;
}

.martos-category__page-link--nav a {
    border: 1px solid rgba(201, 194, 171, 0.7);
    color: var(--martos-category-primary);
}

.martos-category__empty {
    padding: 2.5rem;
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: var(--martos-category-shadow);
}

.martos-category__empty-title {
    margin: 0 0 1rem;
    color: var(--martos-category-primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.martos-category__empty-text {
    margin: 0 0 1.5rem;
    color: var(--martos-category-text-soft);
    line-height: 1.75;
}

.martos-category__empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    background: var(--martos-category-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.martos-category__sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.martos-category__panel,
.martos-category__newsletter {
    border-radius: 1.6rem;
    padding: 2rem;
    box-shadow: var(--martos-category-shadow);
}

.martos-category__panel {
    background: rgba(247, 242, 223, 0.95);
}

.martos-category__panel-title,
.martos-category__newsletter-title {
    margin: 0 0 1.5rem;
    color: var(--martos-category-primary);
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.25;
}

.martos-category__panel-title--categories::before,
.martos-category__panel-title--popular::before {
    content: "";
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.55rem;
    vertical-align: -0.15rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.martos-category__panel-title--categories::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23456d0e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h7v5H4zM13 6h7v5h-7zM4 13h7v5H4zM13 13h7v5h-7z'/%3E%3C/svg%3E");
}

.martos-category__panel-title--popular::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23456d0e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16l5-5 4 4 7-8'/%3E%3Cpath d='M14 7h6v6'/%3E%3C/svg%3E");
}

.martos-category__category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.martos-category__category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--martos-category-text);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.martos-category__category-link:hover,
.martos-category__category-link:focus {
    background: var(--martos-category-accent);
    color: var(--martos-category-primary);
    transform: translateX(2px);
}

.martos-category__category-arrow {
    color: var(--martos-category-outline);
}

.martos-category__popular-list {
    display: grid;
    gap: 1.2rem;
}

.martos-category__popular-item {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.martos-category__popular-thumb {
    width: 5rem;
    height: 5rem;
    flex: 0 0 5rem;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #ddd6c2;
}

.martos-category__popular-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.martos-category__popular-image--placeholder {
    background:
        radial-gradient(circle at top right, rgba(191, 243, 119, 0.34), transparent 36%),
        linear-gradient(135deg, #efe8d5 0%, #d7cfb9 100%);
}

.martos-category__popular-item:hover .martos-category__popular-image,
.martos-category__popular-item:focus .martos-category__popular-image {
    transform: scale(1.08);
}

.martos-category__popular-title {
    margin: 0 0 0.45rem;
    color: var(--martos-category-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.martos-category__popular-item:hover .martos-category__popular-title,
.martos-category__popular-item:focus .martos-category__popular-title {
    color: var(--martos-category-secondary);
}

.martos-category__popular-label {
    color: var(--martos-category-text-soft);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.martos-category__newsletter {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0e3b1d 0%, #1c522d 100%);
    color: #f5f4eb;
}

.martos-category__newsletter::after {
    content: "";
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 9rem;
    height: 9rem;
    border-radius: 999px;
    background: rgba(191, 243, 119, 0.12);
    filter: blur(24px);
}

.martos-category__newsletter-title,
.martos-category__newsletter-text {
    position: relative;
    z-index: 1;
    color: inherit;
}

.martos-category__newsletter-text {
    margin: 0 0 1.35rem;
    font-size: 0.95rem;
    line-height: 1.75;
    opacity: 0.9;
}

.martos-category__newsletter-form {
    position: relative;
    z-index: 1;
}

.martos-category__newsletter-form .fluentform,
.martos-category__newsletter-form form {
    margin: 0;
}

.martos-category__newsletter-form .ff-t-container {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.martos-category__newsletter-form .ff-t-cell {
    flex: 1 1 auto !important;
    width: 100% !important;
    padding: 0 !important;
}

.martos-category__newsletter-form .ff-el-group {
    margin: 0 !important;
}

.martos-category .martos-category__newsletter .ff-el-form-control,
.martos-category .martos-category__newsletter input[type="email"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px solid rgba(142, 192, 147, 0.28) !important;
    border-radius: 1rem !important;
    background: #ffffff !important;
    color: var(--martos-category-primary) !important;
    font-family: inherit !important;
    font-size: 0.98rem;
    line-height: 1.4;
    box-shadow: none !important;
    padding: 0.95rem 1rem !important;
    margin: 0 !important;
    height: auto !important;
}

.martos-category .martos-category__newsletter .ff-el-form-control::placeholder,
.martos-category .martos-category__newsletter input[type="email"]::placeholder {
    color: #8ec093 !important;
    opacity: 1;
}

.martos-category .martos-category__newsletter .ff-el-form-control:focus,
.martos-category .martos-category__newsletter input[type="email"]:focus {
    outline: none !important;
    background: #ffffff !important;
    border-color: rgba(191, 243, 119, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(191, 243, 119, 0.16) !important;
}

.martos-category .martos-category__newsletter .ff_submit_btn_wrapper {
    margin: 0 !important;
}

.martos-category .martos-category__newsletter button.ff-btn-submit,
.martos-category .martos-category__newsletter .ff-btn-submit,
.martos-category .martos-category__newsletter form.fluent_form_2 .wpf_has_custom_css.ff-btn-submit {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 3rem;
    border: 0 !important;
    border-radius: 1rem !important;
    background: #f6bf22 !important;
    color: #372700 !important;
    font-family: inherit !important;
    font-size: 0.98rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(29, 28, 16, 0.08) !important;
    padding: 0.95rem 1rem !important;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.martos-category .martos-category__newsletter button.ff-btn-submit:hover,
.martos-category .martos-category__newsletter button.ff-btn-submit:focus,
.martos-category .martos-category__newsletter .ff-btn-submit:hover,
.martos-category .martos-category__newsletter .ff-btn-submit:focus,
.martos-category .martos-category__newsletter form.fluent_form_2 .wpf_has_custom_css.ff-btn-submit:hover,
.martos-category .martos-category__newsletter form.fluent_form_2 .wpf_has_custom_css.ff-btn-submit:focus {
    opacity: 0.95;
    transform: translateY(-1px);
    background: #ffd14f !important;
}

@media (min-width: 900px) {
    .martos-category__hero {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
    }

    .martos-category__layout {
        grid-template-columns: minmax(0, 1.8fr) minmax(310px, 0.9fr);
    }

    .martos-category__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .martos-category__sidebar {
        position: sticky;
        top: 2rem;
        align-self: start;
    }
}

@media (max-width: 767px) {
    .martos-category {
        padding-top: 3rem;
    }

    .martos-category__hero,
    .martos-category__layout,
    .martos-category__divider {
        width: min(100% - 1.5rem, 1280px);
    }

    .martos-category__card-body,
    .martos-category__panel,
    .martos-category__newsletter,
    .martos-category__empty {
        padding: 1.5rem;
    }

    .martos-category__search {
        max-width: 100%;
    }
}
