/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
*/

:root {
    --brand-olive: #85856A;
    --brand-olive-dark: #666650;
    --brand-gold: #B5965E;
    --brand-gold-dark: #9E7E4C;

    --brand-bg: #F7F3EA;
    --brand-surface: #FFFDF8;
    --brand-border: #DDD6C8;

    --brand-text: #292A2E;
    --brand-text-soft: #666666;
}


/* =========================
   GLOBAL
   ========================= */

body {
    background: var(--brand-bg);
    color: var(--brand-text);
}

a {
    color: var(--brand-olive);
}

a:hover {
    color: var(--brand-gold);
}

.wp-block-buttons {
    justify-content: center !important;
}

.wp-block-button {
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-button__link {
    text-align: center;
}


/* =========================
   HEADER
   ========================= */

.site-main-header-inner-wrap,
.site-header-main-section-right,
.site-header-main-section-left,
.site-header-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.site-branding {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.site-header-row-container-inner {
    background: var(--brand-surface);
}

.main-navigation .primary-menu-container > ul > li > a {
    color: var(--brand-text);
}

.main-navigation .primary-menu-container > ul > li > a:hover {
    color: var(--brand-gold);
}

.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
    color: var(--brand-olive);
}


/* =========================
   HOME
   ========================= */

.home .entry-hero,
.home .page-hero-section,
.home .entry-header {
    display: none !important;
}

.home .content-bg,
.home .site-main,
.home .entry-content-wrap {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.home .content-area {
    margin-top: 0 !important;
}

.home .entry-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 24px 60px;
}

.home .entry-content h2,
.home .entry-content h3 {
    color: var(--brand-olive-dark);
}

.home .entry-content p {
    color: var(--brand-text);
    line-height: 2;
}

.home .wp-block-group {
    border-radius: 12px;
}

.home-dynamic-section {
    margin-top: 58px;
}

.home-section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.home-section-heading h2 {
    margin: 0;
    color: var(--brand-olive-dark);
    font-size: 30px;
    line-height: 1.5;
    font-weight: 700;
}


/* =========================
   HOMEPAGE SLIDER
   ========================= */

.home-slider {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 44px 8px;
}

.home-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.home-slider-track {
    position: relative;
    width: 100%;
}

.home-slider-slide {
    display: none;
    width: 100%;
    opacity: 0;
}

.home-slider-slide.is-active {
    display: block;
    opacity: 1;
    animation: qalbSliderFade .45s ease;
}

@keyframes qalbSliderFade {

    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.home-slider-card {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto;
}

.home-slider-arrow {
    position: absolute;
    top: 50%;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    background: var(--brand-surface);
    color: var(--brand-olive-dark);

    border: 1px solid var(--brand-border);
    border-radius: 50%;

    box-shadow: 0 5px 16px rgba(70, 65, 50, .09);

    font-size: 27px;
    line-height: 1;

    cursor: pointer;
    z-index: 5;
}

.home-slider-arrow:hover {
    background: var(--brand-olive);
    color: #fff;
    border-color: var(--brand-olive);
}

.home-slider-prev {
    right: 0;
}

.home-slider-next {
    left: 0;
}

.home-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.home-slider-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    padding: 0;

    background: transparent;

    border: 1.5px solid var(--brand-olive);
    border-radius: 50%;

    cursor: pointer;
}

.home-slider-dot.is-active {
    width: 24px;
    background: var(--brand-olive);
    border-color: var(--brand-olive);
    border-radius: 20px;
}

.home-slider .course-card,
.home-slider .publication-card,
.home-slider .blog-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.home-slider .course-card {
    height: auto;
}

.home-slider .course-card-content,
.home-slider .blog-card-content {
    text-align: center;
}

.home-slider .course-card-title,
.home-slider .blog-card-title {
    text-align: center;
}

.home-slider .course-card-title {
    min-height: 0;
}

.home-slider-instructor {
    margin: 0 0 14px !important;
    text-align: center;
    color: var(--brand-text-soft) !important;
    font-size: 14px;
    line-height: 1.8 !important;
}

.home-slider-instructor span {
    color: var(--brand-olive-dark);
    font-weight: 700;
}

.home-slider-description {
    margin-bottom: 20px;
    color: var(--brand-text-soft);
    text-align: center;
    font-size: 14px;
    line-height: 1.9;
}

.home-slider .blog-card-excerpt {
    text-align: center;
}


/* =========================
   HOME VIEW ALL
   ========================= */

.home-view-all-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 22px;
    margin-bottom: 10px;

    text-align: center;
}

.home-view-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;

    padding: 12px 28px;

    background: transparent;

    color: var(--brand-olive-dark) !important;

    border: 1.5px solid var(--brand-olive);
    border-radius: 50px;

    text-decoration: none !important;

    font-size: 15px;
    font-weight: 700;
}

.home-view-all-button:hover {
    background: var(--brand-olive);
    color: #fff !important;
}


/* =========================
   PAGE TITLE BANNER
   ========================= */

.page:not(.home) .entry-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: calc(100% - 48px);
    max-width: 1240px;
    min-height: 205px;

    margin: 32px auto 52px !important;
    padding: 56px 30px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 6% 95%,
            rgba(133, 133, 106, 0.20) 0,
            rgba(133, 133, 106, 0.20) 105px,
            transparent 106px
        ),
        radial-gradient(
            circle at 14% 95%,
            rgba(181, 150, 94, 0.10) 0,
            rgba(181, 150, 94, 0.10) 145px,
            transparent 146px
        ),
        linear-gradient(
            120deg,
            #FFFDF8 0%,
            #F8F4EB 48%,
            #F1EBDD 100%
        );

    border: 1px solid rgba(181, 150, 94, 0.18);
    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(70, 65, 50, 0.055);

    text-align: center;
}

.page:not(.home) .entry-header::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 330px;
    height: 210px;

    right: -155px;
    top: -90px;

    border: 2px solid rgba(181, 150, 94, 0.55);

    border-left-color: transparent;
    border-bottom-color: transparent;

    border-radius: 50%;

    transform: rotate(12deg);

    pointer-events: none;
}

.page:not(.home) .entry-header::after {
    content: "";

    position: absolute;
    z-index: -1;

    width: 380px;
    height: 250px;

    right: -175px;
    top: -115px;

    border: 1px solid rgba(133, 133, 106, 0.30);

    border-left-color: transparent;
    border-bottom-color: transparent;

    border-radius: 50%;

    transform: rotate(8deg);

    pointer-events: none;
}

.page:not(.home) .entry-title {
    position: relative;
    z-index: 2;

    margin: 0 !important;
    padding: 0 20px 20px;

    color: var(--brand-olive-dark);

    font-size: 44px;
    line-height: 1.35;
    font-weight: 700;

    text-align: center;
}

.page:not(.home) .entry-title::after {
    content: "";

    display: block;

    width: 58px;
    height: 3px;

    margin: 18px auto 0;

    background: var(--brand-gold);

    border-radius: 20px;
}

.page:not(.home) .content-area {
    margin-top: 0 !important;
}


/* =========================
   ABOUT CARDS
   ========================= */

.page .entry-content {
    direction: rtl;
}

.page .entry-content > .wp-block-group {
    max-width: 980px;

    margin-left: auto;
    margin-right: auto;

    padding: 30px 32px;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);
    border-right: 4px solid var(--brand-olive);

    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(70, 65, 50, 0.06);
}

.page .entry-content > .wp-block-group + .wp-block-group {
    margin-top: 30px;
}

.page .entry-content > .wp-block-group:nth-of-type(2) {
    border-right-color: var(--brand-gold);
}

.page .entry-content > .wp-block-group h2,
.page .entry-content > .wp-block-group h3 {
    margin-top: 0;
    margin-bottom: 18px;

    color: var(--brand-olive-dark);

    font-size: 25px;
    line-height: 1.5;
}

.page .entry-content > .wp-block-group p {
    margin-bottom: 14px;

    color: var(--brand-text);

    font-size: 17px;
    line-height: 2.05;
}


/* =========================
   PUBLICATIONS GRID
   ========================= */

.publications-grid {
    direction: rtl;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 320px));

    justify-content: center;

    gap: 30px;

    max-width: 1100px;

    margin: 20px auto 60px;
    padding: 0 20px;
}

.publication-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 320px;

    overflow: hidden;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);
    border-radius: 14px;

    box-shadow: 0 6px 20px rgba(70, 65, 50, 0.07);
}

.publication-card-image {
    display: flex;

    justify-content: center;
    align-items: center;

    min-height: 290px;

    padding: 26px 22px 20px;

    background: var(--brand-bg);
}

.publication-card-image img {
    display: block;

    width: auto;
    max-width: 175px;

    height: auto;
    max-height: 250px;

    object-fit: contain;

    border-radius: 6px;

    box-shadow: 0 8px 22px rgba(70, 65, 50, 0.14);
}

.publication-card-content {
    display: flex;
    flex-direction: column;

    flex-grow: 1;

    padding: 24px;

    text-align: center;
}

.publication-card-title {
    margin: 0 0 14px;

    font-size: 21px;
    line-height: 1.6;
}

.publication-card-title a {
    color: var(--brand-text);
    text-decoration: none;
}

.publication-card-author,
.publication-card-year {
    margin: 0 0 8px;

    color: var(--brand-text-soft);

    font-size: 14px;
    line-height: 1.7;
}

.publication-card-author span,
.publication-card-year span {
    color: var(--brand-olive-dark);
    font-weight: 600;
}

.publication-card-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    align-self: center;

    margin-top: auto;

    padding: 11px 24px;

    background: var(--brand-olive);

    color: #fff !important;

    border-radius: 50px;

    text-decoration: none;

    font-weight: 600;
}


/* =========================
   SINGLE PUBLICATION
   ========================= */

.publication-single {
    direction: rtl;

    padding: 70px 20px;

    background: var(--brand-bg);
}

.publication-container {
    max-width: 1050px;

    margin: 0 auto;
}

.publication-header {
    text-align: center;
}

.publication-title {
    text-align: center;

    color: var(--brand-text);

    font-size: 35px;
    line-height: 1.5;

    margin: 0 0 34px;

    font-weight: 700;
}

.publication-cover {
    text-align: center;

    margin-bottom: 18px;
}

.publication-cover img {
    display: block;

    width: auto;
    max-width: 220px;

    height: auto;
    max-height: 340px;

    margin: 0 auto;

    border-radius: 8px;

    box-shadow: 0 10px 28px rgba(75, 70, 55, 0.16);
}

.publication-cover::after {
    content: "";

    display: block;

    width: 66px;
    height: 2px;

    margin: 28px auto 0;

    background: var(--brand-gold);
}

.publication-meta {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 24px;

    flex-wrap: wrap;

    margin-bottom: 30px;

    color: var(--brand-text-soft);

    font-size: 15px;
}

.publication-meta strong {
    color: var(--brand-olive-dark);
}

.publication-short-description {
    max-width: 760px;

    margin: 0 auto 34px;

    padding: 22px 26px;

    background: var(--brand-surface);

    border-right: 2px solid var(--brand-gold);

    border-radius: 8px;

    line-height: 2;

    font-size: 17px;
}

.publication-short-description p:last-child {
    margin-bottom: 0;
}

.publication-full-description {
    max-width: 820px;

    margin: 0 auto;

    color: var(--brand-text);

    line-height: 2.1;

    font-size: 17px;
}

.publication-full-description p {
    line-height: 2.1;
}


/* =========================
   PUBLICATION ACTIONS
   ========================= */

.publication-actions {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 14px;

    flex-wrap: wrap;

    margin-top: 38px;
}

.publication-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 140px;

    padding: 13px 28px;

    background: var(--brand-olive);

    color: #fff !important;

    border: 1px solid var(--brand-olive);

    border-radius: 50px;

    text-decoration: none !important;

    font-family: inherit;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

a.publication-button:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff !important;
    transform: translateY(-2px);
}

.publication-button-soon {
    background: #EEE9DD;

    color: var(--brand-olive-dark) !important;

    border-color: var(--brand-border);

    cursor: default;

    opacity: .9;

    box-shadow: none;
}

.publication-button-soon::before {
    content: "◷";

    margin-left: 7px;

    color: var(--brand-gold-dark);

    font-size: 17px;
}


/* =========================
   BLOG GRID
   ========================= */

.blog-grid {
    direction: rtl;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(290px, 340px));

    justify-content: center;

    gap: 30px;

    max-width: 1150px;

    margin: 25px auto 65px;
    padding: 0 20px;
}

.blog-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 340px;

    overflow: hidden;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);
    border-radius: 14px;

    box-shadow: 0 6px 20px rgba(70, 65, 50, 0.07);
}

.blog-card-image img {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;
}

.blog-card-content {
    display: flex;
    flex-direction: column;

    flex-grow: 1;

    padding: 24px;

    text-align: right;
}

.blog-card-title {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.6;
}

.blog-card-title a {
    color: var(--brand-text);
    text-decoration: none;
}

.blog-card-meta {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 14px;

    color: var(--brand-text-soft);

    font-size: 13px;
}

.blog-card-excerpt {
    margin-bottom: 22px;

    color: var(--brand-text-soft);

    font-size: 15px;
    line-height: 1.9;
}

.blog-card-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    align-self: center;

    margin-top: auto;

    padding: 11px 24px;

    background: var(--brand-olive);

    color: #fff !important;

    border-radius: 50px;

    text-decoration: none;
}


/* =========================
   SINGLE BLOG
   ========================= */

.blog-single {
    direction: rtl;

    padding: 64px 20px 80px;

    background: var(--brand-bg);
}

.blog-article {
    max-width: 940px;

    margin: 0 auto;
}

.blog-header {
    text-align: center;

    margin-bottom: 32px;
}

.blog-title {
    max-width: 800px;

    margin: 0 auto 14px;

    color: var(--brand-text);

    font-size: 34px;
    line-height: 1.55;

    font-weight: 700;
}

.blog-meta {
    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    color: var(--brand-text-soft);

    font-size: 15px;
}

.blog-featured-image {
    max-width: 860px;

    margin: 0 auto 44px;
}

.blog-featured-image img {
    display: block;

    width: 100%;

    max-height: 470px;

    object-fit: cover;

    margin: 0 auto;

    border-radius: 12px;
}

.blog-content,
body.single-post .entry-content {
    max-width: 820px;

    margin-left: auto;
    margin-right: auto;

    color: var(--brand-text);

    font-size: 18px;
    line-height: 2.15;

    direction: rtl;
}

body.single-post .entry-content p,
body.single-post .blog-content p {
    direction: rtl !important;

    text-align: justify !important;

    text-justify: inter-word;

    text-align-last: right;

    margin-top: 0;
    margin-bottom: 26px;

    line-height: 2.15;
}

body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6,
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    direction: rtl;

    text-align: right !important;

    color: var(--brand-gold-dark);

    line-height: 1.6;
}

body.single-post .entry-content h2,
.blog-content h2 {
    font-size: 28px;
    margin-top: 46px;
    margin-bottom: 18px;
}

body.single-post .entry-content h3,
.blog-content h3 {
    font-size: 23px;
    margin-top: 38px;
    margin-bottom: 16px;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol,
.blog-content ul,
.blog-content ol {
    direction: rtl;

    text-align: right;

    padding-right: 24px;
    padding-left: 0;

    margin-bottom: 24px;
}

body.single-post .entry-content li,
.blog-content li {
    margin-bottom: 8px;
}

body.single-post .entry-content blockquote,
.blog-content blockquote {
    direction: rtl;

    text-align: right;

    margin: 34px 0;

    padding: 22px 26px;

    background: var(--brand-surface);

    border-right: 3px solid var(--brand-gold);
    border-left: 0;

    border-radius: 8px;

    line-height: 2;
}


/* =========================
   SHARE + REACTIONS
   ========================= */

.post-share-section,
.post-reactions-section {
    max-width: 820px;

    margin: 48px auto 0;

    padding: 28px;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);

    border-radius: 16px;

    text-align: center;
}

.post-reactions-section {
    margin-top: 24px;
}

.post-interaction-title {
    margin: 0 0 22px;

    color: var(--brand-olive-dark);

    font-size: 22px;
    line-height: 1.5;

    text-align: center;
}

.post-share-buttons {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

.post-share-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 8px 17px 8px 12px;

    background: #fff;

    color: var(--brand-text) !important;

    border: 1px solid var(--brand-border);

    border-radius: 50px;

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.post-share-button:hover {
    background: #fff;

    border-color: var(--brand-gold);

    transform: translateY(-2px);

    box-shadow: 0 5px 14px rgba(70,65,50,.08);
}

.post-share-icon {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

.post-share-icon svg {
    width: 16px;
    height: 16px;

    display: block;
}

.post-share-icon-whatsapp {
    background: #25D366;
    color: #fff;
}

.post-share-whatsapp {
    border-color: rgba(37,211,102,.35);
}

.post-share-icon-facebook {
    background: #1877F2;
    color: #fff;
}

.post-share-icon-facebook svg {
    width: 13px;
    height: 18px;
}

.post-share-facebook {
    border-color: rgba(24,119,242,.30);
}

.post-share-icon-telegram {
    background: #229ED9;
    color: #fff;
}

.post-share-icon-telegram svg {
    width: 17px;
    height: 17px;
}

.post-share-telegram {
    border-color: rgba(34,158,217,.32);
}

.post-share-icon-copy {
    background: var(--brand-bg);

    color: var(--brand-olive-dark);

    border: 1px solid var(--brand-border);
}


/* =========================
   REACTIONS
   ========================= */

.post-reaction-buttons {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(110px, 1fr));

    gap: 12px;
}

.post-reaction-button {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    min-height: 108px;

    padding: 14px 10px;

    background: #fff;

    color: var(--brand-text);

    border: 1px solid var(--brand-border);

    border-radius: 14px;

    font-family: inherit;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.post-reaction-button:hover:not(:disabled) {
    transform: translateY(-3px);

    border-color: var(--brand-gold);

    box-shadow: 0 6px 18px rgba(70,65,50,.08);
}

.post-reaction-button.is-selected {
    background: var(--brand-bg);

    border-color: var(--brand-gold);

    box-shadow: inset 0 0 0 1px var(--brand-gold);
}

.post-reaction-button:disabled {
    cursor: default;
}

.post-reaction-emoji {
    font-size: 30px;
    line-height: 1;
}

.post-reaction-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-olive-dark);
}

.post-reaction-count {
    min-width: 26px;

    padding: 2px 8px;

    background: var(--brand-bg);

    border-radius: 50px;

    color: var(--brand-text-soft);

    font-size: 12px;
}

.post-reaction-message {
    min-height: 25px;

    margin: 16px 0 0 !important;

    text-align: center !important;

    color: var(--brand-text-soft) !important;

    font-size: 14px !important;
}


/* =========================
   COMMENTS
   ========================= */

.blog-comments-section {
    max-width: 820px;

    margin: 50px auto 0;

    padding: 30px;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);

    border-radius: 16px;
}

.blog-comments-section .comments-title,
.blog-comments-section .comment-reply-title {
    margin-top: 0;

    color: var(--brand-olive-dark);

    font-size: 24px;
    line-height: 1.5;

    text-align: right;
}

.blog-comments-section .comment-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.blog-comments-section .comment-list li {
    list-style: none;
}

.blog-comments-section .comment-body {
    margin: 0 0 20px;

    padding: 20px;

    background: var(--brand-bg);

    border-radius: 12px;
}

.blog-comments-section .comment-meta {
    margin-bottom: 12px;
}

.blog-comments-section .comment-author {
    color: var(--brand-olive-dark);
    font-weight: 700;
}

.blog-comments-section .comment-content {
    color: var(--brand-text);
    line-height: 1.9;
}

.blog-comments-section .comment-content p {
    text-align: right !important;
    margin-bottom: 10px;
}

.blog-comments-section .reply a {
    color: var(--brand-gold-dark);

    font-weight: 600;

    text-decoration: none;
}

.blog-comments-section .comment-respond {
    margin-top: 32px;
}

.blog-comments-section .comment-form {
    direction: rtl;
}

.blog-comments-section .comment-form p {
    text-align: right !important;
}

.blog-comments-section .comment-form label {
    display: block;

    margin-bottom: 7px;

    color: var(--brand-text);

    font-weight: 600;
}

.blog-comments-section input[type="text"],
.blog-comments-section input[type="email"],
.blog-comments-section input[type="url"],
.blog-comments-section textarea {
    width: 100%;

    padding: 12px 14px;

    background: #fff;

    color: var(--brand-text);

    border: 1px solid var(--brand-border);

    border-radius: 9px;

    font-family: inherit;
}

.blog-comments-section textarea {
    min-height: 150px;
    resize: vertical;
}

.blog-comments-section .form-submit {
    text-align: center !important;
}

.blog-comments-section input[type="submit"] {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 30px;

    background: var(--brand-olive);

    color: #fff;

    border: 0;

    border-radius: 50px;

    font-family: inherit;

    font-weight: 700;

    cursor: pointer;
}

.blog-comments-section input[type="submit"]:hover {
    background: var(--brand-gold);
}


/* =========================
   PROGRAM FILTER
   ========================= */

.course-filter-wrap {
    direction: rtl;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    max-width: 760px;

    margin: 0 auto 34px;

    padding: 18px 22px;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);

    border-radius: 14px;

    box-shadow: 0 6px 20px rgba(70,65,50,.06);
}

.course-filter-label {
    margin: 0;

    color: var(--brand-olive-dark);

    font-size: 16px;

    font-weight: 700;

    white-space: nowrap;
}

.course-category-filter {
    width: 100%;
    max-width: 330px;

    min-height: 46px;

    padding: 10px 15px;

    background: #fff;

    color: var(--brand-text);

    border: 1px solid var(--brand-border);

    border-radius: 10px;

    font-family: inherit;

    font-size: 15px;
}

.course-filter-empty {
    max-width: 700px;

    margin: 20px auto 60px;

    padding: 20px;

    text-align: center;

    color: var(--brand-text-soft);

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);

    border-radius: 12px;
}


/* =========================
   PROGRAM GRID
   ========================= */

.courses-grid {
    direction: rtl;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(290px, 340px));

    grid-auto-rows: 1fr;

    justify-content: center;

    align-items: stretch;

    gap: 30px;

    max-width: 1150px;

    margin: 25px auto 65px;
    padding: 0 20px;
}

.filterable-courses-grid {
    margin-top: 0;
}

.course-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 340px;

    height: 100%;

    overflow: hidden;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);

    border-radius: 14px;

    box-shadow: 0 6px 20px rgba(70,65,50,.07);
}

.course-card-image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    height: 270px;
    flex: 0 0 270px;

    padding: 12px;

    background: var(--brand-bg);

    overflow: hidden;
}

.course-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    border-radius: 8px;
}

.course-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 24px;

    text-align: right;
}

.course-card-title {
    min-height: 58px;

    margin: 0 0 12px;

    color: var(--brand-text);

    font-size: 20px;
    line-height: 1.6;

    text-align: center;
}

.course-card-title a {
    color: var(--brand-text);
    text-decoration: none;
}

.course-card-meta-slots {
    min-height: 32px;

    margin-bottom: 18px;

    text-align: center;
}

.course-card-slot {
    min-height: 28px;

    margin: 0 !important;

    color: var(--brand-text-soft);

    font-size: 14px;
    line-height: 1.8;
}

.course-card-slot span {
    color: var(--brand-olive-dark);
    font-weight: 600;
}

.course-card-description-slot {
    height: 155px;
    flex: 0 0 155px;

    overflow: hidden;

    margin-bottom: 18px;
}

.course-card-description {
    margin: 0;

    color: var(--brand-text-soft);

    font-size: 14px;
    line-height: 1.95;

    text-align: center;
}

.course-card-description p {
    margin: 0;
}

.course-card-description-empty {
    visibility: hidden;
}

.course-card-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    align-self: center;

    min-width: 145px;

    margin-top: auto;

    padding: 11px 24px;

    background: var(--brand-olive);

    color: #fff !important;

    border: 1px solid var(--brand-olive);

    border-radius: 50px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.course-card-button:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff !important;
}


/* =========================
   SINGLE PROGRAM
   ========================= */

.course-single {
    direction: rtl;

    padding: 60px 20px 80px;

    background: var(--brand-bg);
}

.course-container {
    max-width: 950px;
    margin: 0 auto;
}

.course-header {
    text-align: center;
}

.course-title {
    margin: 0 auto 30px;

    color: var(--brand-text);

    font-size: 36px;
    line-height: 1.5;

    font-weight: 700;
}

.course-featured-image {
    max-width: 760px;

    margin: 0 auto 38px;

    padding: 18px;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);

    border-radius: 14px;
}

.course-featured-image img {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 8px;
}

.course-details {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 14px;

    max-width: 820px;

    margin: 0 auto 36px;
}

.course-detail-item {
    padding: 16px 18px;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);

    border-radius: 10px;
}

.course-detail-label {
    display: block;

    margin-bottom: 5px;

    color: var(--brand-gold-dark);

    font-size: 13px;

    font-weight: 700;
}

.course-detail-value {
    color: var(--brand-text);

    font-size: 16px;
    line-height: 1.6;
}

.course-short-description {
    max-width: 800px;

    margin: 0 auto 32px;

    padding: 22px 26px;

    background: var(--brand-surface);

    border-right: 3px solid var(--brand-gold);

    border-radius: 10px;

    color: var(--brand-text);

    font-size: 17px;
    line-height: 2;
}

.course-full-description {
    max-width: 820px;

    margin: 0 auto;

    color: var(--brand-text);

    font-size: 17px;
    line-height: 2.1;
}


/* =========================
   REGISTRATION
   ========================= */

.course-registration {
    max-width: 820px;

    margin: 45px auto 0;

    text-align: center;
}

.course-registration-box {
    padding: 30px;

    background: var(--brand-surface);

    border: 1px solid var(--brand-border);

    border-radius: 14px;

    box-shadow: 0 6px 20px rgba(70,65,50,.06);
}

.course-registration-heading {
    text-align: center;

    margin-bottom: 28px;
}

.course-registration-heading h2 {
    margin: 0 0 8px;

    color: var(--brand-olive-dark);

    font-size: 27px;
}

.course-registration-heading p {
    margin: 0;

    color: var(--brand-text-soft);

    font-size: 15px;
    line-height: 1.8;
}

.course-external-registration {
    display: flex;

    justify-content: center;

    text-align: center;

    margin-top: 38px;
}

.course-register-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 170px;

    padding: 13px 34px;

    background: var(--brand-olive);

    color: #fff !important;

    border: 1px solid var(--brand-olive);

    border-radius: 50px;

    text-decoration: none !important;

    font-size: 16px;
    font-weight: 700;
}

.course-register-button:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff !important;
}


/* =========================
   FLUENT FORM
   ========================= */

.course-registration-form {
    direction: rtl;

    text-align: right;
}

.course-registration-form label {
    color: var(--brand-text);

    font-weight: 600;
}

.course-registration-form input[type="text"],
.course-registration-form input[type="email"],
.course-registration-form input[type="tel"],
.course-registration-form textarea,
.course-registration-form select {
    width: 100%;

    background: #fff;

    color: var(--brand-text);

    border: 1px solid var(--brand-border);

    border-radius: 8px;

    padding: 12px 14px;

    font-family: inherit;
}

.course-registration-form textarea {
    min-height: 120px;
}

.course-registration-form .ff-btn-submit,
.course-registration-form button[type="submit"] {
    display: block !important;

    width: fit-content;

    margin-left: auto !important;
    margin-right: auto !important;

    background: var(--brand-olive) !important;

    color: #fff !important;

    border: 0 !important;

    border-radius: 50px !important;

    padding: 12px 30px !important;

    font-family: inherit;
    font-weight: 700;
}


/* =========================
   FLOATING BACK BUTTON
   ========================= */

.floating-back-button {
    position: fixed;

    left: 22px;
    bottom: 22px;

    min-width: 104px;
    height: 50px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 18px;

    background: var(--brand-surface);

    color: var(--brand-olive-dark) !important;

    border: 1px solid var(--brand-olive);

    border-radius: 50px;

    box-shadow: 0 5px 18px rgba(0,0,0,.12);

    text-decoration: none !important;

    font-size: 15px;
    font-weight: 700;

    z-index: 99998;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.floating-back-button:hover {
    background: var(--brand-olive);

    color: #fff !important;

    transform: translateY(-2px);

    box-shadow: 0 7px 20px rgba(0,0,0,.16);
}

.floating-back-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;
    line-height: 1;
}

.floating-back-text {
    line-height: 1;
}


/* =========================
   FLOATING WHATSAPP
   ========================= */

.floating-whatsapp {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #25D366;

    color: #fff !important;

    border-radius: 50%;

    text-decoration: none;

    box-shadow: 0 5px 18px rgba(0,0,0,.20);

    z-index: 99999;
}

.floating-whatsapp svg {
    width: 31px;
    height: 31px;

    fill: #fff;
}


/* ==================================================
   FOOTER
   ================================================== */

.site-footer .site-footer-row-container-inner {
    width: 100% !important;
    max-width: none !important;

    background: var(--brand-olive) !important;
}

.site-footer .site-footer-row-container-inner > .site-container,
.site-footer .site-footer-row-container-inner .site-container,
.site-footer .site-footer-row-container-inner .site-footer-row,
.site-footer .site-footer-row {
    width: 100% !important;
    max-width: none !important;
}

.site-footer .site-footer-row {
    margin: 0 auto;

    padding: 38px 90px 34px !important;
}

.site-footer .site-footer-row-columns {
    display: grid !important;

    grid-template-columns:
        1fr
        1fr
        1fr !important;

    align-items: start !important;

    gap: 0 !important;
}

.site-footer .widget,
.site-footer .widget-area {
    margin: 0 !important;
}

.site-footer,
.site-footer p,
.site-footer li,
.site-footer span {
    color: #FFFDF8;
}


/* =========================
   FOOTER BRAND
   ========================= */

.footer-brand {
    direction: rtl;

    text-align: right;

    width: 100%;
    max-width: 390px;

    margin-right: 0;
    margin-left: auto;
}

.footer-brand-logo {
    display: block !important;

    width: 95px !important;
    max-width: 95px !important;

    height: 95px !important;
    max-height: 95px !important;

    object-fit: cover !important;

    border-radius: 50% !important;

    margin: 0 0 14px auto !important;
}

.footer-brand p {
    margin: 0;

    color: rgba(255,253,248,.92);

    font-size: 15px;

    line-height: 2;
}


/* =========================
   FOOTER NAV
   ========================= */

.footer-nav {
    direction: rtl;

    text-align: center;

    width: 100%;
    max-width: 240px;

    margin: 0 auto;
}

.footer-nav h3 {
    margin: 0 0 14px;

    color: #FFFDF8 !important;

    font-size: 20px;

    font-weight: 700;
}

.footer-nav ul {
    list-style: none;

    padding: 0;

    margin: 0;
}

.footer-nav li {
    margin: 0 0 8px;
}

.footer-nav a {
    color: rgba(255,253,248,.94) !important;

    text-decoration: none;

    font-size: 15px;
}


/* =========================
   FOOTER CONTACT
   ========================= */

.footer-contact {
    direction: rtl;

    text-align: right;

    width: 100%;
    max-width: 390px;

    margin-left: 0;
    margin-right: auto;
}

.footer-contact h3 {
    margin: 0 0 10px;

    color: #FFFDF8 !important;

    font-size: 20px;

    font-weight: 700;
}

.footer-contact-text {
    margin: 0 0 18px !important;

    color: rgba(255,253,248,.92) !important;

    font-size: 14px;

    line-height: 1.9;
}


/* =========================
   FOOTER SOCIAL
   ========================= */

.footer-social-icons {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 11px;
}

.footer-social-icons a {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.10);

    border: 1px solid rgba(255,255,255,.45);

    border-radius: 11px;

    color: #FFFDF8 !important;

    text-decoration: none;
}

.footer-social-icons a svg {
    width: 24px;
    height: 24px;

    fill: currentColor;
}


/* =========================
   COPYRIGHT
   ========================= */

.site-footer .site-bottom-footer-wrap,
.site-footer .site-bottom-footer-row-container-inner {
    background: var(--brand-olive-dark) !important;
}

.site-footer .site-bottom-footer-inner-wrap {
    min-height: auto !important;

    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.site-footer .site-bottom-footer-inner-wrap,
.site-footer .site-bottom-footer-inner-wrap p,
.site-footer .site-bottom-footer-inner-wrap span,
.site-footer .site-bottom-footer-inner-wrap a {
    color: rgba(255,255,255,.88) !important;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1024px) {

    .page:not(.home) .entry-header {
        width: calc(100% - 36px);

        min-height: 180px;

        margin-top: 24px !important;
        margin-bottom: 42px !important;

        padding: 46px 24px !important;
    }

    .page:not(.home) .entry-title {
        font-size: 38px;
    }

    .publications-grid {
        grid-template-columns:
            repeat(auto-fit, minmax(250px, 300px));
    }

    .blog-grid,
    .courses-grid {
        grid-template-columns:
            repeat(auto-fit, minmax(280px, 320px));
    }

    .course-card-image {
        height: 250px;

        flex-basis: 250px;
    }

    .home-slider {
        max-width: 430px;
    }

    .site-footer .site-footer-row {
        padding: 34px 35px !important;
    }

    .footer-brand,
    .footer-contact {
        max-width: 300px;
    }

    .footer-brand-logo {
        width: 85px !important;
        max-width: 85px !important;

        height: 85px !important;
        max-height: 85px !important;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .home .entry-content {
        padding: 35px 16px 45px;
    }

    .home-section-heading h2 {
        font-size: 25px;
    }


    .home-slider {
        max-width: 390px;

        padding: 0 34px 6px;
    }

    .home-slider-card {
        max-width: 100% !important;
    }

    .home-slider-arrow {
        width: 34px;
        height: 34px;

        font-size: 23px;
    }

    .home-slider-prev {
        right: -2px;
    }

    .home-slider-next {
        left: -2px;
    }


    .home-view-all-wrap {
        margin-top: 18px;
    }

    .home-view-all-button {
        width: 100%;
        max-width: 280px;

        min-width: 0;
    }


    .page:not(.home) .entry-header {
        width: calc(100% - 24px);

        min-height: 125px;

        margin: 14px auto 28px !important;

        padding: 28px 18px !important;

        border-radius: 13px;
    }

    .page:not(.home) .entry-title {
        font-size: 30px;

        padding-bottom: 12px;
    }


    .publications-grid,
    .blog-grid,
    .courses-grid {
        grid-template-columns:
            minmax(0, 380px);

        grid-auto-rows: auto;

        gap: 24px;

        padding: 0 16px;
    }


    .publication-single {
        padding: 40px 16px 55px;
    }

    .publication-title {
        font-size: 28px;
    }

    .publication-short-description {
        padding: 18px 20px;

        font-size: 16px;
    }

    .publication-full-description {
        font-size: 16px;

        line-height: 2;
    }

    .publication-button {
        width: 100%;
        max-width: 280px;
    }


    .course-card {
        height: auto;
    }

    .course-card-image {
        height: 270px;

        flex-basis: 270px;
    }

    .course-card-content {
        padding: 22px 20px;
    }

    .course-card-title {
        min-height: 0;
    }

    .course-card-meta-slots {
        min-height: 0;
    }

    .course-card-description-slot {
        height: auto;

        min-height: 0;

        flex-basis: auto;
    }


    .blog-single {
        padding: 38px 16px 55px;
    }

    .blog-title {
        font-size: 27px;
    }

    .blog-content,
    body.single-post .entry-content {
        font-size: 16px;

        line-height: 2;
    }

    body.single-post .entry-content p,
    body.single-post .blog-content p {
        margin-bottom: 20px;

        line-height: 2;
    }


    .post-share-section,
    .post-reactions-section,
    .blog-comments-section {
        padding: 22px 16px;
    }

    .post-share-button {
        flex: 1 1 calc(50% - 10px);

        min-width: 130px;
    }

    .post-reaction-buttons {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .post-reaction-button {
        min-height: 100px;
    }


    .course-single {
        padding: 38px 16px 55px;
    }

    .course-title {
        font-size: 28px;
    }

    .course-register-button {
        width: 100%;
        max-width: 280px;
    }


    /* RETURN BUTTON */

    .floating-back-button {
        left: 16px;
        bottom: 16px;

        min-width: 92px;
        height: 46px;

        padding: 0 15px;

        font-size: 14px;
    }

    .floating-back-arrow {
        font-size: 18px;
    }


    /* WHATSAPP */

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;

        width: 52px;
        height: 52px;
    }

    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }


    .page .entry-content > .wp-block-group {
        padding: 22px 18px;

        border-radius: 12px;
    }

    .page .entry-content > .wp-block-group h2,
    .page .entry-content > .wp-block-group h3 {
        font-size: 21px;
    }

    .page .entry-content > .wp-block-group p {
        font-size: 15px;

        line-height: 1.95;
    }


    /* FOOTER */

    .site-footer .site-footer-row {
        padding: 28px 22px !important;
    }

    .site-footer .site-footer-row-columns {
        display: block !important;
    }

    .footer-brand,
    .footer-nav,
    .footer-contact {
        width: 100%;
        max-width: none;

        margin: 0 0 28px;

        text-align: right;
    }

    .footer-nav {
        text-align: right;
    }

    .footer-contact {
        margin-bottom: 0;
    }

    .footer-brand-logo {
        width: 78px !important;
        max-width: 78px !important;

        height: 78px !important;
        max-height: 78px !important;

        margin: 0 0 12px auto !important;
    }
}