﻿
/* =========================================================
   1. Base / Global
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f8fa;
    color: #263238;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 2;
    font-size: 15px;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.site-container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

.site-content {
    min-height: 70vh;
    padding: 40px 0;
}

.page-heading {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.6;
    color: #1e293b;
}

.page-summary {
    color: #64748b;
    margin: 0 0 30px;
}

.page-block {
    min-width: 0;
    background: #fff;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.page-block-heading {
    margin: 0 0 15px;
    font-size: 21px;
    line-height: 1.7;
    color: #1e293b;
}

.page-block-content {
    white-space: pre-line;
    overflow-wrap: anywhere;
}


/* =========================================================
   2. Header / Footer
   ========================================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
}

    .site-header strong {
        font-size: 19px;
        color: #1e293b;
    }

.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}


/* =========================================================
   3. Image Block
   ========================================================= */

.page-block img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   4. Gallery Block
   ========================================================= */

.public-gallery {
    margin: 35px 0;
    min-width: 0;
}

.public-gallery-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.public-gallery .gallery-grid-2,
.public-gallery .gallery-grid-3,
.public-gallery .gallery-grid-4 {
    display: grid;
    gap: 16px;
}

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

.public-gallery .gallery-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-gallery .gallery-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-gallery-item {
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

    .public-gallery-item img {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform .25s ease;
    }

    .public-gallery-item:hover img {
        transform: scale(1.04);
    }

.public-gallery-caption {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    overflow-wrap: anywhere;
}


/* =========================================================
   5. Slider Block
   ========================================================= */

.cms-slider {
    position: relative;
    width: 100%;
    margin: 30px 0;
    min-width: 0;
}

.cms-slider-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.cms-slider-stage {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
}

.cms-slider-slide {
    display: none;
    position: relative;
    width: 100%;
}

    .cms-slider-slide.active {
        display: block;
    }

.cms-slider-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

    .cms-slider-link img {
        display: block;
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

.cms-slider-caption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 25px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient( transparent, rgba(0, 0, 0, .75) );
    overflow-wrap: anywhere;
}

.cms-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease;
}

    .cms-slider-arrow:hover {
        background: rgba(0, 0, 0, .75);
    }

.cms-slider-prev {
    right: 15px;
}

.cms-slider-next {
    left: 15px;
}

.cms-slider-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 0 0;
}

.cms-slider-indicator {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c7c7c7;
    cursor: pointer;
}

    .cms-slider-indicator.active {
        width: 24px;
        border-radius: 10px;
        background: #555;
    }


/* =========================================================
   6. Statistics Block
   ========================================================= */

.statistics-block {
    padding: 35px 20px;
    margin: 25px 0;
    background: #f8fafc;
    border-radius: 14px;
    text-align: center;
    min-width: 0;
}

.statistics-heading h2 {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 700;
    color: #1e293b;
}

.statistics-description {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 30px;
}

.statistics-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.statistics-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.statistics-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.statistics-item {
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 15px;
}

.statistics-value {
    color: #2563eb;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    direction: rtl;
    overflow-wrap: anywhere;
}

.statistics-suffix {
    font-size: 17px;
    margin-right: 4px;
}

.statistics-label {
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.statistics-caption {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 8px;
    overflow-wrap: anywhere;
}


/* =========================================================
   7. Contact Info Block
   ========================================================= */

.contact-info-block {
    min-width: 0;
    margin: 25px 0;
    padding: 35px 25px;
    background: #f8fafc;
    border-radius: 14px;
}

.contact-info-heading {
    margin: 0 0 12px;
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    color: #1e293b;
}

.contact-info-description {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    margin: 0 0 30px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .contact-info-item:hover {
        border-color: #bfdbfe;
        box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
    }

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    font-size: 20px;
}

.contact-info-content {
    min-width: 0;
    flex: 1;
}

.contact-info-label {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 7px;
}

.contact-info-content a,
.contact-info-content span,
.contact-info-text {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-info-content a {
    text-decoration: none;
}

    .contact-info-content a:hover {
        color: #2563eb;
    }

.contact-info-text {
    font-weight: 400;
    line-height: 1.9;
}


/* =========================================================
   8. Responsive - Tablet
   ========================================================= */

@media (max-width: 992px) {
    .site-content {
        padding: 30px 0;
    }

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

    .public-gallery .gallery-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cms-slider-link img {
        height: 340px;
    }
}


/* =========================================================
   9. Responsive - Mobile
   ========================================================= */

@media (max-width: 768px) {
    .site-container {
        width: 94%;
    }

    .page-block {
        padding: 22px 18px;
    }

    .page-heading {
        font-size: 24px;
    }

    .page-block-heading {
        font-size: 19px;
    }

    .public-gallery .gallery-grid-3,
    .public-gallery .gallery-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-gallery-item img {
        height: 190px;
    }

    .cms-slider-link img {
        height: 280px;
    }

    .cms-slider-caption {
        font-size: 15px;
        padding: 18px 12px;
    }

    .statistics-block {
        padding: 28px 15px;
    }

    .statistics-heading h2 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .site-content {
        padding: 22px 0;
    }

    .site-header {
        padding: 14px 0;
    }

        .site-header strong {
            font-size: 17px;
        }

    .page-block {
        padding: 18px 14px;
        margin-bottom: 15px;
    }

    .page-heading {
        font-size: 21px;
    }

    .page-summary {
        margin-bottom: 22px;
    }

    .public-gallery .gallery-grid-2,
    .public-gallery .gallery-grid-3,
    .public-gallery .gallery-grid-4 {
        grid-template-columns: 1fr;
    }

    .public-gallery-item img {
        height: 220px;
    }

    .cms-slider-link img {
        height: 210px;
    }

    .cms-slider-caption {
        font-size: 14px;
        padding: 14px 10px;
    }

    .cms-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .cms-slider-prev {
        right: 10px;
    }

    .cms-slider-next {
        left: 10px;
    }

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

    .statistics-item {
        padding: 18px 8px;
    }

    .statistics-value {
        font-size: 25px;
    }

    .statistics-suffix {
        font-size: 14px;
    }

    .statistics-label {
        font-size: 14px;
    }

    .statistics-caption {
        font-size: 12px;
    }

    .contact-info-block {
        padding: 25px 15px;
    }

    .contact-info-heading {
        font-size: 21px;
    }

    .contact-info-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-info-item {
        padding: 15px;
        gap: 12px;
    }
}


/* =========================================================
   10. Very Small Screens
   ========================================================= */

@media (max-width: 360px) {
    .site-container {
        width: 96%;
    }

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .contact-info-content a,
    .contact-info-content span,
    .contact-info-text {
        font-size: 14px;
    }
}

/* Button Block */

.button-block {
    width: 100%;
    margin: 24px 0;
}

.button-block-title {
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 700;
}

.button-block-description {
    margin-bottom: 16px;
    color: #6c757d;
    line-height: 1.8;
}

.button-block .btn {
    min-width: 120px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .button-block .btn:hover {
        transform: translateY(-2px);
    }


/* =========================================
   Public Cards Block
========================================= */

.cards-block {
    margin-bottom: 30px;
}

.cards-block-heading {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #263238;
}

.cards-block-description {
    margin: 0 0 24px;
    color: #64748b;
    line-height: 1.9;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

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

.cards-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .public-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    }

.public-card-media {
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    line-height: 0;
}

    .public-card-media img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
    }

.public-card-body {
    padding: 20px;
}

.public-card-icon {
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 27px;
}

.public-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #263238;
}

.public-card-description {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.public-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .public-card-link:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }

/* Tablet */
@media (max-width: 991px) {
    .cards-grid,
    .cards-columns-2,
    .cards-columns-3,
    .cards-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 575px) {
    .cards-grid,
    .cards-columns-2,
    .cards-columns-3,
    .cards-columns-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-block-heading {
        font-size: 21px;
    }

    .public-card-body {
        padding: 16px;
    }
}



/* =========================================
   NiqfaCMS - Public Horizontal Navigation
========================================= */

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 76px;
}

.site-brand {
    flex-shrink: 0;
    font-size: 21px;
    font-weight: 700;
    color: #183b63;
}

/* Main navigation */

.public-menu {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.public-menu-list,
.public-menu-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-menu-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.public-menu-item {
    position: relative;
}

.public-menu-link,
.public-menu-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 9px;
    color: #34445a;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

    .public-menu-link:hover,
    .public-menu-item:focus-within > .public-menu-link {
        color: #245bb5;
        background: #eef4ff;
    }

.public-menu-heading {
    cursor: default;
    color: #34445a;
}

    .public-menu-link i,
    .public-menu-heading i {
        font-size: 16px;
    }

/* Dropdown */

.public-menu-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(25, 45, 75, .12);
    z-index: 1000;
}

.public-menu-item:hover > .public-menu-submenu,
.public-menu-item:focus-within > .public-menu-submenu {
    display: block;
}

.public-menu-submenu .public-menu-link,
.public-menu-submenu .public-menu-heading {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 7px;
}

/* Nested dropdown */

.public-menu-submenu .public-menu-item > .public-menu-submenu {
    top: 0;
    right: 100%;
}

/* Arrow for items with children */

.public-menu-item.has-children > .public-menu-link::after,
.public-menu-item.has-children > .public-menu-heading::after {
    content: "";
    width: 7px;
    height: 7px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    margin-right: 5px;
}

.public-menu-submenu .public-menu-item.has-children > .public-menu-link::after,
.public-menu-submenu .public-menu-item.has-children > .public-menu-heading::after {
    transform: rotate(45deg);
}

/* Mobile navigation */

@media (max-width: 768px) {

    .site-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .site-brand {
        text-align: center;
    }

    .public-menu {
        width: 100%;
        justify-content: stretch;
    }

    .public-menu-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .public-menu-item {
        width: 100%;
    }

    .public-menu-link,
    .public-menu-heading {
        width: 100%;
        justify-content: flex-start;
        background: #f7f9fc;
    }

    .public-menu-submenu {
        display: block;
        position: static;
        min-width: 0;
        margin: 4px 15px 8px 0;
        padding: 5px;
        background: #f8fafc;
        border: 0;
        border-right: 2px solid #d8e4f5;
        border-radius: 0;
        box-shadow: none;
    }

        .public-menu-submenu .public-menu-item > .public-menu-submenu {
            position: static;
            margin-right: 15px;
        }

        .public-menu-submenu .public-menu-link,
        .public-menu-submenu .public-menu-heading {
            background: transparent;
        }

    .public-menu-item:hover > .public-menu-submenu,
    .public-menu-item:focus-within > .public-menu-submenu {
        display: block;
    }
}



/* =========================================
   Public Navigation - NiqfaCMS
========================================= */

/* نوار بالای سایت */
html body .site-header .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 76px;
}

/* محدوده منو */
html body .site-header .public-menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

    /* منوی اصلی افقی */
    html body .site-header .public-menu > .public-menu-list {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

/* آیتم منو */
html body .site-header .public-menu-item {
    position: relative;
    list-style: none;
}

/* عنوان و دکمه کنار یکدیگر */
html body .site-header .public-menu-item-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    white-space: nowrap;
}

/* لینک و عنوان */
html body .site-header .public-menu-link,
html body .site-header .public-menu-heading {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 13px;
    color: #263445;
    text-decoration: none;
    border-radius: 7px;
    font-size: 14px;
    transition: background-color .2s ease, color .2s ease;
}

    html body .site-header .public-menu-link:hover,
    html body .site-header .public-menu-heading:hover {
        background: #f0f4f8;
        color: #0d6efd;
    }

/* دکمه باز و بسته کردن */
html body .site-header .public-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #526174;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

    html body .site-header .public-menu-toggle:hover {
        background: #e9eef5;
        color: #0d6efd;
    }

    html body .site-header .public-menu-toggle i {
        transition: transform .2s ease;
    }

/* چرخش فلش هنگام باز بودن */
html body .site-header .public-menu-item.is-open > .public-menu-item-inner
.public-menu-toggle i {
    transform: rotate(180deg);
}

/* زیرمنو */
html body .site-header .public-menu-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 220px;
    max-width: 300px;
    margin: 5px 0 0;
    padding: 7px;
    list-style: none;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 9px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .10);
}

/* فقط زیرمنوی آیتم باز نمایش داده شود */
html body .site-header .public-menu-item.is-open > .public-menu-submenu {
    display: block;
}

/* جلوگیری از نمایش hidden با CSSهای دیگر */
html body .site-header .public-menu-submenu[hidden] {
    display: none !important;
}

/* آیتم‌های داخل زیرمنو */
html body .site-header .public-menu-submenu .public-menu-item {
    width: 100%;
}

html body .site-header .public-menu-submenu .public-menu-item-inner {
    width: 100%;
}

html body .site-header .public-menu-submenu .public-menu-link,
html body .site-header .public-menu-submenu .public-menu-heading {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 6px;
}

/* زیرمنوی سطح دوم و بالاتر */
html body .site-header .public-menu-submenu .public-menu-submenu {
    top: 0;
    right: 100%;
    margin: 0 5px 0 0;
}

/* موبایل */
@media (max-width: 768px) {

    html body .site-header .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    html body .site-header .public-menu {
        width: 100%;
    }

        html body .site-header .public-menu > .public-menu-list {
            flex-direction: column !important;
            align-items: stretch;
            gap: 3px;
        }

            html body .site-header .public-menu > .public-menu-list > .public-menu-item {
                width: 100%;
            }

    html body .site-header .public-menu-item-inner {
        width: 100%;
    }

    html body .site-header .public-menu-link,
    html body .site-header .public-menu-heading {
        flex: 1;
    }

    html body .site-header .public-menu-toggle {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    html body .site-header .public-menu-submenu {
        position: static;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 3px 0 5px;
        padding: 5px 12px 5px 0;
        border: 0;
        border-right: 2px solid #dce5ef;
        border-radius: 0;
        box-shadow: none;
    }

        html body .site-header .public-menu-submenu .public-menu-submenu {
            position: static;
            margin: 3px 0 5px;
        }
}


/* Fix horizontal overflow on public pages */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.site-header,
.site-content,
.site-footer {
    width: 100%;
    max-width: 100%;
}

.site-container {
    min-width: 0;
    max-width: 1100px;
}

.site-content,
.site-content > .site-container,
.site-footer > .site-container {
    min-width: 0;
}




.page-breadcrumb {
    margin-bottom: 22px;
    font-size: 14px;
}

    .page-breadcrumb .breadcrumb {
        margin-bottom: 0;
        padding: 10px 14px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
    }

    .page-breadcrumb .breadcrumb-item a {
        color: #2563eb;
        text-decoration: none;
    }

        .page-breadcrumb .breadcrumb-item a:hover {
            text-decoration: underline;
        }

    .page-breadcrumb .breadcrumb-item.active {
        color: var(--bs-body-color);
        opacity: 1;
        font-weight: 600;
    }



/* =========================================
   Gallery Layout Variants
========================================= */

/* Masonry */
.public-gallery.gallery-layout-masonry .gallery-grid-2,
.public-gallery.gallery-layout-masonry .gallery-grid-3,
.public-gallery.gallery-layout-masonry .gallery-grid-4 {
    display: block;
    column-gap: 16px;
}

.public-gallery.gallery-layout-masonry .gallery-grid-2 {
    columns: 2;
}

.public-gallery.gallery-layout-masonry .gallery-grid-3 {
    columns: 3;
}

.public-gallery.gallery-layout-masonry .gallery-grid-4 {
    columns: 4;
}

.public-gallery.gallery-layout-masonry .public-gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    break-inside: avoid;
}

    .public-gallery.gallery-layout-masonry .public-gallery-item img {
        height: auto;
        object-fit: contain;
    }

/* Strip */
.public-gallery.gallery-layout-strip .gallery-grid-2,
.public-gallery.gallery-layout-strip .gallery-grid-3,
.public-gallery.gallery-layout-strip .gallery-grid-4 {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
}

.public-gallery.gallery-layout-strip .public-gallery-item {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: start;
}

    .public-gallery.gallery-layout-strip .public-gallery-item img {
        height: 190px;
        width: 100%;
        object-fit: cover;
    }

/* Responsive Masonry */
@media (max-width: 768px) {
    .public-gallery.gallery-layout-masonry .gallery-grid-2,
    .public-gallery.gallery-layout-masonry .gallery-grid-3,
    .public-gallery.gallery-layout-masonry .gallery-grid-4 {
        columns: 2;
    }
}

@media (max-width: 576px) {
    .public-gallery.gallery-layout-masonry .gallery-grid-2,
    .public-gallery.gallery-layout-masonry .gallery-grid-3,
    .public-gallery.gallery-layout-masonry .gallery-grid-4 {
        columns: 1;
    }
}



/* =========================================================
   Hero Block
   ========================================================= */

.public-hero {
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* Image beside text */

.hero-layout-sideimage {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 35px;
}

    .hero-layout-sideimage.hero-image-left {
        flex-direction: row-reverse;
    }

.hero-side-content,
.hero-side-image {
    flex: 1;
    min-width: 0;
}

    .hero-side-content h2,
    .hero-full-content h2,
    .hero-overlay-content h2 {
        margin: 0 0 18px;
        color: #1e293b;
        font-size: 30px;
        font-weight: 700;
        line-height: 1.7;
    }

    .hero-side-content p,
    .hero-full-content p,
    .hero-overlay-content p {
        margin: 0 0 22px;
        color: #64748b;
        line-height: 2;
    }

    .hero-side-image img {
        display: block;
        width: 100%;
        height: 330px;
        object-fit: cover;
        border-radius: 10px;
    }

/* Overlay */

.hero-layout-overlay {
    border: 0;
}

.hero-overlay-image {
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 50px;
    background-position: center;
    background-size: cover;
    position: relative;
}

    .hero-overlay-image::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0,0,0,.68), rgba(0,0,0,.18) );
    }

.hero-overlay-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    color: #fff;
}

    .hero-overlay-content h2,
    .hero-overlay-content p {
        color: #fff;
    }

/* Full width */

.hero-layout-fullwidth {
    padding: 0;
}

.hero-full-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.hero-full-content {
    padding: 30px;
}

/* CTA */

.hero-button {
    display: inline-block;
    padding: 10px 24px;
    background: #2563eb;
    color: #fff !important;
    border-radius: 7px;
    text-decoration: none !important;
    font-weight: 700;
    transition: background .2s ease;
}

    .hero-button:hover {
        background: #1d4ed8;
    }

/* Responsive */

@media (max-width: 768px) {

    .hero-layout-sideimage,
    .hero-layout-sideimage.hero-image-left {
        flex-direction: column;
        padding: 22px;
        gap: 20px;
    }

    .hero-side-image {
        width: 100%;
    }

        .hero-side-image img {
            height: 240px;
        }

    .hero-side-content h2,
    .hero-full-content h2,
    .hero-overlay-content h2 {
        font-size: 23px;
    }

    .hero-overlay-image {
        min-height: 350px;
        padding: 25px;
    }

    .hero-full-content {
        padding: 22px;
    }
}



/* =========================================================
   Tabbed Showcase
   ========================================================= */

.tabbed-showcase {
    width: 100%;
    margin: 35px 0;
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.tabbed-showcase-heading {
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.7;
}

.tabbed-showcase-description {
    margin: 0 0 24px;
    color: #64748b;
    line-height: 2;
}

.tabbed-showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.tabbed-showcase-tab {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font: inherit;
    cursor: pointer;
    transition: all .2s ease;
}

    .tabbed-showcase-tab:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
    }

    .tabbed-showcase-tab.active {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }

.tabbed-showcase-panel {
    display: none;
    align-items: center;
    gap: 30px;
}

    .tabbed-showcase-panel.active {
        display: flex;
    }

.tabbed-showcase-image {
    flex: 0 0 42%;
    min-width: 0;
}

    .tabbed-showcase-image img {
        display: block;
        width: 100%;
        max-height: 340px;
        object-fit: cover;
        border-radius: 10px;
    }

.tabbed-showcase-content {
    flex: 1;
    min-width: 0;
}

    .tabbed-showcase-content h3 {
        margin: 0 0 15px;
        color: #1e293b;
        font-size: 23px;
        font-weight: 700;
        line-height: 1.7;
    }

    .tabbed-showcase-content p {
        margin: 0 0 20px;
        color: #64748b;
        line-height: 2;
    }

.tabbed-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 7px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
}

    .tabbed-showcase-link:hover {
        background: #1d4ed8;
    }

@media (max-width: 768px) {

    .tabbed-showcase {
        padding: 18px;
    }

    .tabbed-showcase-heading {
        font-size: 22px;
    }

    .tabbed-showcase-tabs {
        gap: 6px;
    }

    .tabbed-showcase-tab {
        padding: 8px 12px;
        font-size: 14px;
    }

    .tabbed-showcase-panel.active {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .tabbed-showcase-image {
        width: 100%;
        flex-basis: auto;
    }

        .tabbed-showcase-image img {
            max-height: 250px;
        }

    .tabbed-showcase-content h3 {
        font-size: 20px;
    }
}



/* =========================================================
   Slider Advanced Overlay
   ========================================================= */

.cms-slider-stage {
    position: relative;
    isolation: isolate;
}

.cms-slider-slide {
    min-height: 300px;
}

.cms-slider-image-link {
    display: block;
    position: relative;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

    .cms-slider-image-link img {
        display: block;
        width: 100%;
        height: 480px;
        object-fit: cover;
    }

.cms-slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    padding: 45px;
    color: #fff;
    pointer-events: none;
}

.cms-slider-caption-content {
    width: 100%;
    max-width: 720px;
    pointer-events: auto;
}

.cms-slider-caption-title {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.cms-slider-caption-description {
    margin: 0 0 22px;
    color: #fff;
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.cms-slider-cta {
    display: inline-block;
    padding: 11px 25px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 7px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: background .2s ease;
}

    .cms-slider-cta:hover {
        background: #1d4ed8;
    }

/* Horizontal position */

.cms-slider-position-bottomright,
.cms-slider-position-centerright,
.cms-slider-position-topright {
    justify-content: flex-start;
    text-align: right;
}

.cms-slider-position-bottomcenter,
.cms-slider-position-center,
.cms-slider-position-topcenter {
    justify-content: center;
    text-align: center;
}

.cms-slider-position-bottomleft,
.cms-slider-position-centerleft,
.cms-slider-position-topleft {
    justify-content: flex-end;
    text-align: left;
}

/* Vertical position */

.cms-slider-position-bottomright,
.cms-slider-position-bottomcenter,
.cms-slider-position-bottomleft {
    align-items: flex-end;
}

.cms-slider-position-centerright,
.cms-slider-position-center,
.cms-slider-position-centerleft {
    align-items: center;
}

.cms-slider-position-topright,
.cms-slider-position-topcenter,
.cms-slider-position-topleft {
    align-items: flex-start;
}

/* Responsive */

@media (max-width: 768px) {

    .cms-slider-image-link img {
        height: 350px;
    }

    .cms-slider-overlay {
        padding: 22px;
    }

    .cms-slider-caption-content {
        max-width: 100%;
    }

    .cms-slider-caption-title {
        font-size: 23px;
        margin-bottom: 10px;
    }

    .cms-slider-caption-description {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 14px;
    }

    .cms-slider-cta {
        padding: 8px 17px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .cms-slider-image-link img {
        height: 290px;
    }

    .cms-slider-overlay {
        padding: 16px;
    }

    .cms-slider-caption-title {
        font-size: 20px;
    }

    .cms-slider-caption-description {
        font-size: 13px;
    }
}

/* =========================================
   Cards Block - Appearance Variants
========================================= */

/* Default */
.cards-style-default .public-card {
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

/* Bordered */
.cards-style-bordered .public-card {
    border: 2px solid #cbd5e1;
    box-shadow: none;
}

    .cards-style-bordered .public-card:hover {
        border-color: #94a3b8;
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
    }

/* Shadow */
.cards-style-shadow .public-card {
    border: 1px solid transparent;
    box-shadow: 0 5px 22px rgba(15, 23, 42, .12);
}

    .cards-style-shadow .public-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(15, 23, 42, .17);
    }

/* Cards Block - Image Ratios */

.public-card-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
    line-height: 0;
}

    .public-card-media img {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* مربع */
.card-image-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* افقی */
.card-image-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

/* عمودی */
.card-image-ratio-3-4 {
    aspect-ratio: 3 / 4;
}

/* Cards Block - Image Ratios */

/* مربع */
.public-card-media.card-image-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* افقی */
.public-card-media.card-image-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

/* عمودی */
.public-card-media.card-image-ratio-3-4 {
    aspect-ratio: 3 / 4;
}



/* Gallery Lightbox */

.public-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

    .public-gallery-open img {
        display: block;
        width: 100%;
        max-width: 100%;
        transition: transform .25s ease;
    }

    .public-gallery-open:hover img {
        transform: scale(1.04);
    }

.public-gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 30px;
    background: rgba(0, 0, 0, .88);
    align-items: center;
    justify-content: center;
}

    .public-gallery-lightbox.is-open {
        display: flex;
    }

.public-gallery-lightbox-content {
    position: relative;
    max-width: 1100px;
    max-height: 90vh;
    text-align: center;
}

.public-gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    margin: auto;
    object-fit: contain;
}

.public-gallery-lightbox-caption {
    color: #fff;
    padding: 12px;
    font-size: 15px;
}

.public-gallery-lightbox-close {
    position: absolute;
    top: -42px;
    left: 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 576px) {
    .public-gallery-lightbox {
        padding: 12px;
    }

    .public-gallery-lightbox-image {
        max-height: 75vh;
    }
}