/* =========================================================
   WordPress integration layer
   ========================================================= */

:root {
    --qatreh-text: #312a46;
    --qatreh-muted: #6f657e;
    --qatreh-pink: #ff5ea8;
    --qatreh-blue: #46beff;
    --qatreh-mint: #4adebe;
    --qatreh-purple: #8b66f1;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    top: 8px;
    right: 8px;
    z-index: 99999;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    color: var(--qatreh-text);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(49, 42, 70, 0.18);
}

.alignwide,
.site-main {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.alignfull {
    width: 100%;
}

.wp-site-blocks,
.wp-block-group,
.site-main,
.entry-content {
    box-sizing: border-box;
}

.entry-content img,
.wp-post-image {
    max-width: 100%;
    height: auto;
}

.sticky,
.bypostauthor {
    position: relative;
}

.navbar-shell {
    display: flex;
    align-items: center;
    gap: 18px;
}

.custom-logo-link,
.navbar-brand {
    text-decoration: none;
}

.custom-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.navbar-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.navbar-search {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-search label {
    margin: 0;
}

.navbar-search .search-field {
    width: clamp(120px, 15vw, 210px);
}

.nav-backdrop[hidden] {
    display: none;
}

.admin-bar .navbar {
    top: 42px !important;
}

@media (max-width: 782px) {
    .admin-bar .navbar {
        top: 53px !important;
    }

    .admin-bar .mobile-nav-panel {
        top: 118px !important;
        max-height: calc(100dvh - 132px) !important;
    }
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    align-items: center;
    gap: clamp(24px, 5vw, 68px);
    padding-block: clamp(42px, 8vw, 95px);
}

.hero-copy h1 {
    max-width: 760px;
}

.hero-eyebrow {
    color: var(--qatreh-pink);
    font-weight: 800;
}

.hero-visual img {
    display: block;
    width: min(100%, 420px);
    margin-inline: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 35px rgba(90, 61, 124, 0.18));
}

.archive-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-block: 32px 20px;
}

.archive-header h1 {
    margin: 0;
}

.qatreh-feature-grid,
.content-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.content-card,
.single-card,
.wp-page-content,
.auth-card,
.empty-state {
    position: relative;
    padding: clamp(20px, 3vw, 34px);
    color: var(--qatreh-text);
    background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.38));
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(83, 62, 112, .11), inset 0 1px 0 #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.content-card {
    padding: 0;
    overflow: hidden;
}

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

.content-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.content-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.content-card:hover .content-card-media img {
    transform: scale(1.055);
}

.content-card-emoji {
    display: grid;
    place-items: center;
    min-height: 140px;
    font-size: 52px;
}

.content-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 20px;
}

.content-card-title {
    margin: 0;
}

.content-card-excerpt {
    color: var(--qatreh-muted);
    line-height: 1.9;
}

.content-card-action {
    margin-top: auto;
    color: var(--qatreh-pink);
    font-weight: 800;
}

.single-content,
.lesson-main,
.page-wrapper,
.cart-page {
    padding-block: 42px;
}

.single-card,
.wp-page-content {
    max-width: 900px;
    margin-inline: auto;
}

.entry-featured-image img {
    display: block;
    width: 100%;
    border-radius: 22px;
}

.entry-content {
    line-height: 2;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.auth-card {
    max-width: 560px;
    margin-inline: auto;
}

.profile-card {
    max-width: 820px;
}

.profile-header .profile-avatar img {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    border: 5px solid rgba(255,255,255,.72);
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(83,62,112,.16);
}

.profile-header p {
    color: var(--qatreh-muted);
}

.profile-form-grid,
.profile-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-form-grid > div {
    display: grid;
    gap: 8px;
}

.profile-readonly-grid > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 15px;
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(120,99,151,.12);
    border-radius: 14px;
}

.profile-readonly-grid span,
.form-help {
    margin: 0;
    color: var(--qatreh-muted);
    font-size: 12px;
    line-height: 1.8;
}

.password-fieldset {
    display: grid;
    gap: 11px;
    margin: 8px 0 2px;
    padding: 18px;
    border: 1px solid rgba(139,102,241,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.34);
}

.password-fieldset legend {
    padding-inline: 9px;
    color: var(--qatreh-text);
    font-weight: 900;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.profile-actions a {
    padding: 9px 14px;
    color: #5b4775;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255,255,255,.56);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 12px;
}

.profile-actions .profile-logout {
    color: #a32c65;
}

.auth-header {
    margin-bottom: 22px;
    text-align: center;
}

.auth-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    font-size: 30px;
    background: rgba(255,255,255,.72);
    border-radius: 21px;
    box-shadow: 0 12px 28px rgba(83, 62, 112, .12);
}

.auth-form {
    display: grid;
    gap: 11px;
}

.auth-form label {
    font-weight: 700;
}

.auth-form input:not([type="checkbox"]) {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    color: var(--qatreh-text);
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(120, 99, 151, .18);
    border-radius: 14px;
    outline: none;
}

.auth-form input:focus {
    border-color: rgba(70,190,255,.65);
    box-shadow: 0 0 0 4px rgba(70,190,255,.12);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-submit,
.wp-element-button,
.content-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--qatreh-pink), var(--qatreh-purple));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(255, 94, 168, .21);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.auth-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
}

.auth-message.error {
    color: #9b285c;
    background: rgba(255, 94, 168, .11);
    border: 1px solid rgba(255, 94, 168, .2);
}

.auth-message.success {
    color: #176e5b;
    background: rgba(74, 222, 190, .13);
    border: 1px solid rgba(74, 222, 190, .25);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
}

.nav-links,
.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-block: 28px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    padding: 18px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 24px;
    box-shadow: 0 15px 36px rgba(83, 62, 112, .10);
}

.woocommerce ul.products li.product img {
    border-radius: 18px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 12px 0 7px;
    color: var(--qatreh-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.8;
}

.woocommerce ul.products li.product .price {
    color: #6c4fc7;
    font-size: 14px;
    font-weight: 800;
}

.woocommerce ul.products li.product .button {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    padding: 10px 15px;
}

.page-p-product-product .woocommerce-result-count,
.page-p-product-product .woocommerce-ordering {
    margin-block: 18px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    color: #fff;
    background: linear-gradient(135deg, var(--qatreh-pink), var(--qatreh-purple));
    border-radius: 12px;
}

.woocommerce-main,
.qatreh-woocommerce-shell {
    padding-block: 42px;
}

@media (max-width: 900px) {
    .hero-section,
    .qatreh-feature-grid,
    .content-card-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-copy {
        order: 2;
    }
}

@media (max-width: 767px) {
    .nav-backdrop:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        background: rgba(35, 28, 52, .28);
        backdrop-filter: blur(4px);
    }

    .navbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-search .search-field {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .alignwide,
    .site-main {
        width: min(100% - 20px, 1180px);
    }

    .hero-section,
    .qatreh-feature-grid,
    .content-card-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .archive-header,
    .auth-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-form-grid,
    .profile-readonly-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Native WordPress output: comments, blocks and navigation
   ========================================================= */

body.qatreh-wordpress-theme .comments-area {
    position: relative;
    width: min(100%, 900px);
    margin: 34px auto 0;
    padding: clamp(20px, 4vw, 34px);
    color: var(--qatreh-text);
    background:
        radial-gradient(circle at 8% 0, rgba(255, 94, 168, .12), transparent 30%),
        radial-gradient(circle at 92% 100%, rgba(74, 222, 190, .13), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.36));
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(83,62,112,.11), inset 0 1px 0 rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

body.qatreh-wordpress-theme .comments-title,
body.qatreh-wordpress-theme .comment-reply-title {
    margin: 0 0 22px;
    color: var(--qatreh-text);
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 900;
    line-height: 1.6;
}

body.qatreh-wordpress-theme .comments-title::after,
body.qatreh-wordpress-theme .comment-reply-title::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--qatreh-mint), var(--qatreh-blue), var(--qatreh-pink));
    border-radius: 999px;
}

body.qatreh-wordpress-theme .comment-list,
body.qatreh-wordpress-theme .comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.qatreh-wordpress-theme .comment-list > li + li {
    margin-top: 14px;
}

body.qatreh-wordpress-theme .comment-list .children {
    margin: 12px clamp(12px, 4vw, 42px) 0 0;
}

body.qatreh-wordpress-theme .comment-list .children > li + li {
    margin-top: 10px;
}

body.qatreh-wordpress-theme .comment-body {
    position: relative;
    padding: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,255,255,.37));
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 20px;
    box-shadow: 0 10px 27px rgba(83,62,112,.075), inset 0 1px 0 rgba(255,255,255,.9);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.qatreh-wordpress-theme .comment-body::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 0;
    bottom: 13px;
    width: 3px;
    background: linear-gradient(180deg, var(--qatreh-mint), var(--qatreh-blue), var(--qatreh-pink));
    border-radius: 999px 0 0 999px;
    opacity: .72;
}

body.qatreh-wordpress-theme .comment-body:hover {
    border-color: rgba(255,255,255,.92);
    box-shadow: 0 14px 32px rgba(83,62,112,.11), inset 0 1px 0 #fff;
    transform: translateY(-2px);
}

body.qatreh-wordpress-theme .comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
}

body.qatreh-wordpress-theme .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

body.qatreh-wordpress-theme .comment-author .avatar {
    width: 50px;
    height: 50px;
    margin: 0;
    object-fit: cover;
    background: rgba(255,255,255,.64);
    border: 3px solid rgba(255,255,255,.82);
    border-radius: 50%;
    box-shadow: 0 7px 17px rgba(83,62,112,.13);
}

body.qatreh-wordpress-theme .comment-author .fn,
body.qatreh-wordpress-theme .comment-author .fn a {
    color: var(--qatreh-text);
    font-style: normal;
    font-weight: 900;
    text-decoration: none;
}

body.qatreh-wordpress-theme .comment-author .says {
    color: var(--qatreh-muted);
    font-size: 11px;
}

body.qatreh-wordpress-theme .comment-metadata {
    margin-inline-start: auto;
    font-size: 11px;
}

body.qatreh-wordpress-theme .comment-metadata a,
body.qatreh-wordpress-theme .comment-edit-link {
    color: var(--qatreh-muted);
    text-decoration: none;
}

body.qatreh-wordpress-theme .comment-content {
    color: #51475f;
    font-size: 13px;
    line-height: 2;
    overflow-wrap: anywhere;
}

body.qatreh-wordpress-theme .comment-content > *:first-child {
    margin-top: 0;
}

body.qatreh-wordpress-theme .comment-content > *:last-child {
    margin-bottom: 0;
}

body.qatreh-wordpress-theme .comment-awaiting-moderation {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 10px;
    color: #81531d;
    font-size: 11px;
    font-style: normal;
    background: rgba(255,210,118,.2);
    border: 1px solid rgba(226,166,58,.24);
    border-radius: 10px;
}

body.qatreh-wordpress-theme .reply {
    margin-top: 12px;
}

body.qatreh-wordpress-theme .reply a,
body.qatreh-wordpress-theme #cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    color: #67519b;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255,255,255,.56);
    border: 1px solid rgba(139,102,241,.16);
    border-radius: 11px;
    transition: transform .2s ease, background .2s ease;
}

body.qatreh-wordpress-theme .reply a:hover,
body.qatreh-wordpress-theme .reply a:focus-visible,
body.qatreh-wordpress-theme #cancel-comment-reply-link:hover,
body.qatreh-wordpress-theme #cancel-comment-reply-link:focus-visible {
    background: rgba(139,102,241,.12);
    transform: translateY(-1px);
}

body.qatreh-wordpress-theme .bypostauthor > .comment-body {
    border-color: rgba(74,222,190,.32);
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(74,222,190,.09));
}

body.qatreh-wordpress-theme .comment-respond {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(139,102,241,.12);
}

body.qatreh-wordpress-theme .comment-reply-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.qatreh-wordpress-theme .comment-reply-title small {
    margin-inline-start: auto;
}

body.qatreh-wordpress-theme .comment-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.qatreh-wordpress-theme .comment-form > p {
    margin: 0;
}

body.qatreh-wordpress-theme .comment-notes,
body.qatreh-wordpress-theme .logged-in-as,
body.qatreh-wordpress-theme .comment-form-comment,
body.qatreh-wordpress-theme .comment-form-cookies-consent,
body.qatreh-wordpress-theme .comment-form .form-submit {
    grid-column: 1 / -1;
}

body.qatreh-wordpress-theme .comment-notes,
body.qatreh-wordpress-theme .logged-in-as {
    color: var(--qatreh-muted);
    font-size: 12px;
    line-height: 1.8;
}

body.qatreh-wordpress-theme .logged-in-as a {
    color: #67519b;
    text-decoration: none;
}

body.qatreh-wordpress-theme .comment-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--qatreh-text);
    font-size: 12px;
    font-weight: 800;
}

body.qatreh-wordpress-theme .comment-form input[type="text"],
body.qatreh-wordpress-theme .comment-form input[type="email"],
body.qatreh-wordpress-theme .comment-form input[type="url"],
body.qatreh-wordpress-theme .comment-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--qatreh-text);
    font: inherit;
    font-size: 13px;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(120,99,151,.17);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    outline: none;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

body.qatreh-wordpress-theme .comment-form textarea {
    min-height: 145px;
    resize: vertical;
}

body.qatreh-wordpress-theme .comment-form input:focus,
body.qatreh-wordpress-theme .comment-form textarea:focus {
    background: rgba(255,255,255,.82);
    border-color: rgba(70,190,255,.6);
    box-shadow: 0 0 0 4px rgba(70,190,255,.11), inset 0 1px 0 #fff;
}

body.qatreh-wordpress-theme .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--qatreh-muted);
    font-size: 11px;
    line-height: 1.8;
}

body.qatreh-wordpress-theme .comment-form-cookies-consent input {
    flex: 0 0 auto;
    margin-top: 5px;
    accent-color: var(--qatreh-purple);
}

body.qatreh-wordpress-theme .comment-form-cookies-consent label {
    margin: 0;
    color: inherit;
    font-weight: 600;
}

body.qatreh-wordpress-theme .qatreh-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, var(--qatreh-pink), var(--qatreh-purple));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 11px 24px rgba(255,94,168,.2);
    transition: transform .22s ease, box-shadow .22s ease;
}

body.qatreh-wordpress-theme .qatreh-comment-submit:hover,
body.qatreh-wordpress-theme .qatreh-comment-submit:focus-visible {
    box-shadow: 0 15px 30px rgba(255,94,168,.27);
    transform: translateY(-2px);
}

body.qatreh-wordpress-theme .no-comments {
    margin: 20px 0 0;
    padding: 12px 14px;
    color: var(--qatreh-muted);
    font-size: 12px;
    text-align: center;
    background: rgba(255,255,255,.46);
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 13px;
}

body.qatreh-wordpress-theme .entry-content :where(.wp-block-comments, .wp-block-post-comments-form) {
    margin-block: 28px;
    padding: clamp(18px, 3vw, 28px);
    background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,255,255,.36));
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(83,62,112,.09), inset 0 1px 0 rgba(255,255,255,.92);
}

body.qatreh-wordpress-theme .entry-content .wp-block-comment-template {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.qatreh-wordpress-theme .entry-content .wp-block-comment-template > li {
    padding: 15px;
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 16px;
}

body.qatreh-wordpress-theme .entry-content .wp-block-comment-template > li + li {
    margin-top: 10px;
}

/* Pagination and previous/next navigation generated by WordPress. */
body.qatreh-wordpress-theme :where(.navigation.pagination, .comments-pagination) .nav-links,
body.qatreh-wordpress-theme .wp-block-query-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-block: 26px;
}

body.qatreh-wordpress-theme :where(.navigation.pagination, .comments-pagination) .page-numbers,
body.qatreh-wordpress-theme .wp-block-query-pagination a,
body.qatreh-wordpress-theme .wp-block-query-pagination .current {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 11px;
    color: var(--qatreh-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(83,62,112,.07), inset 0 1px 0 rgba(255,255,255,.9);
}

body.qatreh-wordpress-theme :where(.navigation.pagination, .comments-pagination) .page-numbers:hover,
body.qatreh-wordpress-theme :where(.navigation.pagination, .comments-pagination) .page-numbers:focus-visible,
body.qatreh-wordpress-theme :where(.navigation.pagination, .comments-pagination) .page-numbers.current,
body.qatreh-wordpress-theme .wp-block-query-pagination .current {
    color: #fff;
    background: linear-gradient(135deg, var(--qatreh-blue), var(--qatreh-purple));
    border-color: transparent;
}

body.qatreh-wordpress-theme .post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.qatreh-wordpress-theme .post-navigation a {
    display: block;
    height: 100%;
    padding: 14px 16px;
    color: var(--qatreh-text);
    text-decoration: none;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 15px;
}

/* Common block-editor and classic-editor output. */
body.qatreh-wordpress-theme .entry-content :where(.wp-block-quote, .wp-block-pullquote, blockquote) {
    margin: 24px 0;
    padding: 20px 22px;
    color: var(--qatreh-text);
    background: linear-gradient(135deg, rgba(74,222,190,.13), rgba(255,255,255,.5));
    border: 1px solid rgba(74,222,190,.22);
    border-right: 4px solid var(--qatreh-mint);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

body.qatreh-wordpress-theme .entry-content :where(.wp-block-quote, .wp-block-pullquote, blockquote) cite {
    display: block;
    margin-top: 10px;
    color: var(--qatreh-muted);
    font-size: 12px;
}

body.qatreh-wordpress-theme .entry-content :where(pre, .wp-block-code) {
    direction: ltr;
    margin-block: 22px;
    padding: 18px;
    overflow: auto;
    color: #e9e7ff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
    background: linear-gradient(145deg, #332d4b, #211e34);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(33,30,52,.18);
}

body.qatreh-wordpress-theme .entry-content :where(code):not(pre code) {
    direction: ltr;
    display: inline-block;
    padding: 2px 7px;
    color: #6c4fc7;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .9em;
    background: rgba(139,102,241,.1);
    border: 1px solid rgba(139,102,241,.12);
    border-radius: 7px;
}

body.qatreh-wordpress-theme .entry-content .wp-block-table {
    margin-block: 22px;
    overflow-x: auto;
    border-radius: 17px;
    box-shadow: 0 10px 25px rgba(83,62,112,.08);
}

body.qatreh-wordpress-theme .entry-content :where(table, .wp-block-table table) {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(120,99,151,.13);
    border-radius: 17px;
}

body.qatreh-wordpress-theme .entry-content :where(th, td) {
    padding: 11px 13px;
    text-align: start;
    border: 0;
    border-bottom: 1px solid rgba(120,99,151,.1);
}

body.qatreh-wordpress-theme .entry-content th {
    color: var(--qatreh-text);
    font-weight: 900;
    background: rgba(74,222,190,.12);
}

body.qatreh-wordpress-theme .entry-content tr:last-child td {
    border-bottom: 0;
}

body.qatreh-wordpress-theme .entry-content :where(figure, .wp-caption) {
    max-width: 100%;
}

body.qatreh-wordpress-theme .entry-content :where(figcaption, .wp-caption-text, .gallery-caption) {
    margin-top: 8px;
    color: var(--qatreh-muted);
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

body.qatreh-wordpress-theme .entry-content :where(.wp-block-image img, .wp-block-gallery img, .gallery img) {
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(83,62,112,.1);
}

body.qatreh-wordpress-theme .entry-content .gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.qatreh-wordpress-theme .entry-content .gallery-columns-1 { grid-template-columns: 1fr; }
body.qatreh-wordpress-theme .entry-content .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.qatreh-wordpress-theme .entry-content .gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.qatreh-wordpress-theme .entry-content .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.qatreh-wordpress-theme .entry-content .gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.qatreh-wordpress-theme .entry-content .gallery-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

body.qatreh-wordpress-theme .entry-content .gallery-item {
    width: auto;
    margin: 0;
}

body.qatreh-wordpress-theme .entry-content :where(.wp-block-file, .wp-block-details, .wp-block-search__inside-wrapper) {
    margin-block: 18px;
    padding: 13px 15px;
    background: rgba(255,255,255,.54);
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 8px 20px rgba(83,62,112,.06);
}

body.qatreh-wordpress-theme .entry-content .wp-block-file {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.qatreh-wordpress-theme .entry-content .wp-block-file a:not(.wp-block-file__button) {
    color: #67519b;
    font-weight: 800;
    text-decoration: none;
}

body.qatreh-wordpress-theme .entry-content .wp-block-details summary {
    color: var(--qatreh-text);
    font-weight: 900;
    cursor: pointer;
}

body.qatreh-wordpress-theme .entry-content .wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
}

body.qatreh-wordpress-theme .entry-content .wp-block-search__input,
body.qatreh-wordpress-theme .post-password-form input[type="password"],
body.qatreh-wordpress-theme .search-form .search-field {
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--qatreh-text);
    font: inherit;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(120,99,151,.16);
    border-radius: 12px;
    outline: none;
}

body.qatreh-wordpress-theme .entry-content .wp-block-search__button,
body.qatreh-wordpress-theme .post-password-form input[type="submit"],
body.qatreh-wordpress-theme .search-form .search-submit {
    min-height: 44px;
    padding: 9px 15px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--qatreh-blue), var(--qatreh-purple));
    border: 0;
    border-radius: 12px;
}

body.qatreh-wordpress-theme .entry-content .wp-block-separator {
    width: min(100%, 520px);
    height: 2px;
    margin-block: 30px;
    background: linear-gradient(90deg, transparent, var(--qatreh-mint), var(--qatreh-blue), var(--qatreh-pink), transparent);
    border: 0;
    border-radius: 999px;
    opacity: .72;
}

body.qatreh-wordpress-theme .entry-content :where(.wp-block-embed iframe, video, audio) {
    max-width: 100%;
    border-radius: 16px;
}

body.qatreh-wordpress-theme .entry-content :where(.wp-block-latest-posts, .wp-block-latest-comments, .wp-block-categories-list, .wp-block-archives-list),
body.qatreh-wordpress-theme .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.qatreh-wordpress-theme .entry-content :where(.wp-block-latest-posts, .wp-block-latest-comments, .wp-block-categories-list, .wp-block-archives-list) li,
body.qatreh-wordpress-theme .widget li {
    padding-block: 8px;
    border-bottom: 1px solid rgba(120,99,151,.09);
}

body.qatreh-wordpress-theme .entry-content :where(.wp-block-latest-posts, .wp-block-categories-list, .wp-block-archives-list) a,
body.qatreh-wordpress-theme .widget a {
    color: #67519b;
    text-decoration: none;
}

body.qatreh-wordpress-theme :where(.widget, .widget_block, .wp-block-widget-group) {
    padding: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.65), rgba(255,255,255,.34));
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 19px;
    box-shadow: 0 11px 28px rgba(83,62,112,.08), inset 0 1px 0 rgba(255,255,255,.9);
}

body.qatreh-wordpress-theme .wp-block-tag-cloud a {
    display: inline-flex;
    margin: 3px;
    padding: 5px 9px;
    color: #67519b;
    font-size: 11px !important;
    text-decoration: none;
    background: rgba(255,255,255,.56);
    border: 1px solid rgba(139,102,241,.12);
    border-radius: 999px;
}

body.qatreh-wordpress-theme .post-password-form,
body.qatreh-wordpress-theme .search-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 9px;
}

body.qatreh-wordpress-theme .post-password-form > p:first-child {
    flex-basis: 100%;
}

@media (max-width: 720px) {
    body.qatreh-wordpress-theme .comments-area {
        padding: 18px 14px;
        border-radius: 22px;
    }

    body.qatreh-wordpress-theme .comment-form {
        grid-template-columns: 1fr;
    }

    body.qatreh-wordpress-theme .comment-form > p {
        grid-column: 1;
    }

    body.qatreh-wordpress-theme .comment-list .children {
        margin-right: 10px;
    }

    body.qatreh-wordpress-theme .comment-body {
        padding: 15px 13px;
        border-radius: 17px;
    }

    body.qatreh-wordpress-theme .comment-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    body.qatreh-wordpress-theme .comment-metadata {
        margin-inline-start: 0;
        margin-inline-end: 60px;
    }

    body.qatreh-wordpress-theme .post-navigation .nav-links,
    body.qatreh-wordpress-theme .entry-content .gallery {
        grid-template-columns: 1fr;
    }

    body.qatreh-wordpress-theme .entry-content .wp-block-search__inside-wrapper {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.qatreh-wordpress-theme .comment-body,
    body.qatreh-wordpress-theme .reply a,
    body.qatreh-wordpress-theme #cancel-comment-reply-link,
    body.qatreh-wordpress-theme .qatreh-comment-submit {
        transition: none;
    }
}


/* v5.27.59 — softer hover for generic content cards. */
.content-card {
    transition: transform .34s cubic-bezier(.22,1,.36,1), box-shadow .34s ease, border-color .34s ease;
}
.content-card:hover,
.content-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(83, 62, 112, .10), inset 0 1px 0 rgba(255,255,255,.72);
}
.content-card:hover .content-card-media img,
.content-card:focus-within .content-card-media img {
    transform: scale(1.02);
}
.content-card-emoji {
    min-height: 190px;
    padding: 0;
    font-size: inherit;
}
@media (max-width: 520px) {
    .content-card:hover,
    .content-card:focus-within {
        transform: none;
    }
    .content-card:hover .content-card-media img,
    .content-card:focus-within .content-card-media img {
        transform: none;
    }
}
