:root {
    --custom-page-max: 72rem;
}

.page-custom-page .p-custom-page__body {
    padding: 1.5rem 0 2.5rem;
}

.page-custom-page .p-custom-page__body-inner {
    width: min(var(--custom-page-max), calc(100% - 2 * var(--container-padding, 1.5rem)));
    margin: 0 auto;
}

.page-custom-page .p-custom-page__article {
    min-width: 0;
}

.page-custom-page .custom-page__row {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.page-custom-page .custom-page__row--cols-1 {
    grid-template-columns: 1fr;
}

.page-custom-page .custom-page__row--cols-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .page-custom-page .custom-page__row--cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.page-custom-page .custom-page__row--cols-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .page-custom-page .custom-page__row--cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.page-custom-page .custom-page__row--cols-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .page-custom-page .custom-page__row--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .page-custom-page .custom-page__row--cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.page-custom-page .custom-page__col {
    min-width: 0;
}

.page-custom-page .custom-page__block {
    margin-bottom: 1rem;
}

.page-custom-page .custom-page--py-none {
    padding-top: 0;
    padding-bottom: 0;
}

.page-custom-page .custom-page--py-sm {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.page-custom-page .custom-page--py-md {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.page-custom-page .custom-page--py-lg {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.page-custom-page .custom-page--bg-default {
    background: transparent;
}

.page-custom-page .custom-page--bg-muted {
    background: var(--color-bg-alt, #f8f9fa);
    border-radius: var(--radius-md, 8px);
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-custom-page .custom-page--bg-subtle {
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md, 8px);
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-custom-page .custom-page--layout-narrow .custom-page__richtext,
.page-custom-page .custom-page--layout-narrow.custom-page__richtext {
    max-width: 45rem;
}

.page-custom-page .custom-page--layout-wide .custom-page__richtext,
.page-custom-page .custom-page--layout-wide.custom-page__richtext {
    max-width: 60rem;
}

.page-custom-page .custom-page--layout-full .custom-page__richtext,
.page-custom-page .custom-page--layout-full.custom-page__richtext {
    max-width: none;
}

.page-custom-page .custom-page__richtext {
    color: var(--color-text, #111827);
    line-height: 1.65;
}

.page-custom-page .custom-page__richtext h2,
.page-custom-page .custom-page__richtext h3,
.page-custom-page .custom-page__richtext h4 {
    margin: 1.25em 0 0.5em;
    line-height: 1.25;
    color: var(--color-text, #111827);
}

/* Satırda textColor: içerikteki başlık ve paragraflar satır rengini miras alır */
.page-custom-page .custom-page--styled-text .custom-page__richtext,
.page-custom-page .custom-page--styled-text .custom-page__richtext h2,
.page-custom-page .custom-page--styled-text .custom-page__richtext h3,
.page-custom-page .custom-page--styled-text .custom-page__richtext h4 {
    color: inherit;
}

.page-custom-page .custom-page__richtext p {
    margin: 0 0 1em;
}

.page-custom-page .custom-page__richtext ul,
.page-custom-page .custom-page__richtext ol {
    margin: 0 0 1em 1.25rem;
    padding: 0;
}

.page-custom-page .custom-page__richtext table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.9375rem;
}

.page-custom-page .custom-page__richtext th,
.page-custom-page .custom-page__richtext td {
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.page-custom-page .custom-page__richtext th {
    background: var(--color-bg-alt, #f8f9fa);
}

.page-custom-page .custom-page__figure {
    margin: 0 0 1rem;
}

.page-custom-page .custom-page__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: var(--radius-md, 8px);
}

.page-custom-page .custom-page__divider {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.page-custom-page .custom-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition, 0.25s ease);
}

.page-custom-page .custom-page__btn--primary {
    background: var(--color-secondary, #e94560);
    color: #fff;
}

.page-custom-page .custom-page__btn--secondary {
    background: var(--color-primary, #1a1a2e);
    color: #fff;
}

.page-custom-page .custom-page__btn--ghost {
    background: transparent;
    color: var(--color-text, #111827);
}

.page-custom-page .custom-page__btn--outline {
    background: transparent;
    color: var(--color-text, #111827);
    border: 1px solid var(--color-border, #e5e7eb);
}

.page-custom-page .custom-page__btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}
