
.publisher-detail-v2 {
    --pub-red: #e10600;
    --pub-red-dark: #bd0000;
    --pub-border: color-mix(in srgb, var(--text-color, #3e3e3e) 14%, transparent);
    --pub-card: var(--bg-color2, #fff);
    --pub-soft: color-mix(in srgb, var(--text-color, #3e3e3e) 7%, var(--pub-card));
    --pub-text: var(--text-color, #3e3e3e);
    --pub-muted: var(--text2-color, #6f6f6f);
    background: var(--bg-color, #f7f7f7);
    padding: 12px 0 28px;
    color: var(--pub-text);
}

.publisher-detail-v2 .container-lg {
    max-width: 1320px;
}

.publisher-hero-v2 {
    position: relative;
    min-height: 375px;
    overflow: hidden;
    border: 1px solid var(--pub-border);
    border-radius: 14px 14px 0 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .10)),
        var(--publisher-cover);
    background-size: cover;
    background-position: center;
}

.publisher-hero-v2__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(42, 10, 10, .08) 0%,
        rgba(42, 10, 10, .02) 58%,
        rgba(42, 10, 10, .12) 100%
    );
}

.publisher-hero-v2__identity {
    position: absolute;
    z-index: 2;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: min(470px, calc(100% - 42px));
    min-height: 165px;
    padding: 26px 30px;
    border: 10px solid rgba(238, 238, 241, .93);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.publisher-hero-v2__identity h1 {
    margin: 0 0 8px;
    color: var(--pub-red);
    font-size: 31px;
    font-weight: 900;
    line-height: 1.45;
    font-family: 'Vazirmatn';
}

.publisher-hero-v2__identity p {
    margin: 0 0 5px;
    color: #555;
    font-size: 13px;
    line-height: 1.8;
}

.publisher-hero-v2__identity span {
    color: #8a8a8a;
    font-size: 11px;
}

.publisher-facts-v2 {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.publisher-fact-v2 {
    min-height: 74px;
    padding: 12px 14px;
    background: var(--pub-red);
    color: #fff;
    border-radius: 11px 11px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    text-align: center;
}

.publisher-fact-v2 i {
    font-size: 16px;
    flex: 0 0 auto;
}

.publisher-fact-v2 span {
    opacity: .96;
    white-space: nowrap;
}

.publisher-fact-v2 strong {
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.publisher-layout-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    grid-template-areas: "main sidebar";
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.publisher-main-v2 {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.publisher-sidebar-v2 {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.publisher-panel-v2 {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}

.publisher-panel-v2__title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
}

.publisher-panel-v2__title > span {
    width: 3px;
    height: 18px;
    border-radius: 3px;
    background: var(--pub-red);
    flex: 0 0 auto;
}

.publisher-panel-v2__title h2 {
    margin: 0;
    color: #303030;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
}

.publisher-panel-v2__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.publisher-panel-v2__heading .publisher-panel-v2__title {
    margin-bottom: 0;
}

.publisher-panel-v2__heading small {
    color: #777;
    font-size: 10px;
}

.publisher-description-v2 {
    color: #555;
    font-size: 11.5px;
    line-height: 2.1;
    text-align: justify;
}

.publisher-description-v2 p:last-child {
    margin-bottom: 0;
}

.publisher-offerings-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.publisher-offering-v2 h3 {
    margin: 0 0 10px;
    color: #444;
    font-size: 12px;
    font-weight: 900;
}

.publisher-offering-v2 ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 18px;
}

.publisher-offering-v2 li {
    break-inside: avoid;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    color: #666;
    font-size: 10.5px;
    line-height: 1.7;
}

.publisher-offering-v2 li i {
    margin-top: 4px;
    color: var(--pub-red);
    font-size: 8px;
}

.publisher-products-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.publisher-product-v2 {
    min-width: 0;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.publisher-product-v2__media {
    position: relative;
    aspect-ratio: 1.15 / 1;
    margin: 8px 8px 0;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f1f1;
}

.publisher-product-v2__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.publisher-product-v2__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #bbb;
    background: #f1f1f1;
    font-size: 28px;
}

.publisher-product-v2__body {
    padding: 10px;
    text-align: center;
}

.publisher-product-v2__tag {
    display: inline-block;
    margin-bottom: 5px;
    padding: 3px 7px;
    color: var(--pub-red);
    background: #fff0f0;
    border-radius: 999px;
    font-size: 8px;
}

.publisher-product-v2__body h3 {
    min-height: 38px;
    margin: 0 0 5px;
    color: #333;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.publisher-product-v2__body small {
    display: block;
    color: #888;
    font-size: 8.5px;
    line-height: 1.6;
}

.publisher-product-v2__video {
    margin-top: 7px;
    color: var(--pub-red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 8.5px;
    font-weight: 700;
}

.publisher-pagination-v2 {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.publisher-info-v2 {
    padding-bottom: 12px;
}

.publisher-info-v2__row {
    min-height: 43px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10.5px;
}

.publisher-info-v2__row:last-child {
    border-bottom: 0;
}

.publisher-info-v2__row > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #444;
}

.publisher-info-v2__row i {
    width: 18px;
    color: var(--pub-red);
    text-align: center;
    font-size: 12px;
}

.publisher-info-v2__row strong,
.publisher-info-v2__row a {
    max-width: 52%;
    color: #777;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    overflow-wrap: anywhere;
}

.publisher-contact-v2 a {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    text-decoration: none;
    font-size: 10.5px;
}

.publisher-contact-v2 a i {
    width: 18px;
    color: var(--pub-red);
    text-align: center;
    font-size: 12px;
}

.publisher-socials-v2 {
    min-height: 54px;
    padding: 9px 12px;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.publisher-socials-v2 a {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #aaa;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: transform .15s ease, background-color .15s ease;
}

.publisher-socials-v2 a:hover {
    transform: translateY(-1px);
    background: var(--pub-red);
}

.publisher-location-v2 p {
    margin: 0 0 8px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #666;
    font-size: 10px;
    line-height: 1.8;
}

.publisher-location-v2 p i {
    margin-top: 4px;
    color: var(--pub-red);
}

.publisher-map-v2 {
    height: 190px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #eee;
}

.publisher-map-v2 iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.publisher-related-v2 {
    margin-top: 18px;
}

.publisher-related-v2__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.publisher-related-v2__card {
    min-height: 145px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 135px;
    overflow: hidden;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    text-decoration: none;
}

.publisher-related-v2__image {
    order: 2;
    min-height: 145px;
    background: var(--pub-soft);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--pub-muted);
    font-size: 26px;
}

.publisher-related-v2__image img {
    width: 100%;
    height: 100%;
    min-height: 145px;
    object-fit: cover;
    display: block;
}

.publisher-related-v2__body {
    order: 1;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.publisher-related-v2__body h3 {
    margin: 0 0 7px;
    color: var(--pub-text);
    font-size: 12px;
    font-weight: 900;
}

.publisher-related-v2__body p {
    margin: 0 0 9px;
    color: var(--pub-muted);
    font-size: 9px;
    line-height: 1.8;
    flex: 1;
}

.publisher-related-v2__body span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--pub-red);
    color: #fff;
    font-size: 8.5px;
    font-weight: 700;
}

.publisher-existing-blocks {
    margin-top: 18px;
}

.dark .publisher-detail-v2,
[data-theme="dark"] .publisher-detail-v2 {
    background: #1f1f1f;
}

.dark .publisher-panel-v2,
.dark .publisher-socials-v2,
[data-theme="dark"] .publisher-panel-v2,
[data-theme="dark"] .publisher-socials-v2 {
    background: #292929;
    border-color: #3c3c3c;
}

.dark .publisher-panel-v2__title h2,
.dark .publisher-related-v2__body h3,
[data-theme="dark"] .publisher-panel-v2__title h2,
[data-theme="dark"] .publisher-related-v2__body h3 {
    color: #eee;
}

.dark .publisher-description-v2,
.dark .publisher-offering-v2 li,
.dark .publisher-info-v2__row,
.dark .publisher-contact-v2 a,
.dark .publisher-location-v2 p,
[data-theme="dark"] .publisher-description-v2,
[data-theme="dark"] .publisher-offering-v2 li,
[data-theme="dark"] .publisher-info-v2__row,
[data-theme="dark"] .publisher-contact-v2 a,
[data-theme="dark"] .publisher-location-v2 p {
    color: #ccc;
}

@media (max-width: 1100px) {
    .publisher-layout-v2 {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

@media (max-width: 850px) {
    .publisher-hero-v2 {
        min-height: 430px;
    }

    .publisher-facts-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 8px 8px;
    }

    .publisher-fact-v2 {
        border-radius: 9px;
        min-height: 58px;
    }

    .publisher-layout-v2 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar";
    }

    .publisher-sidebar-v2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .publisher-socials-v2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .publisher-detail-v2 {
        padding-top: 7px;
    }

    .publisher-hero-v2 {
        min-height: 500px;
        border-radius: 11px 11px 0 0;
    }

    .publisher-hero-v2__identity {
        top: 22px;
        width: calc(100% - 24px);
        min-height: 150px;
        border-width: 8px;
        padding: 18px 16px;
    }

    .publisher-hero-v2__identity h1 {
        font-size: 23px;
    }

    .publisher-hero-v2__identity p {
        font-size: 11px;
    }

    .publisher-fact-v2 {
        font-size: 10px;
        padding: 7px 6px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .publisher-panel-v2 {
        padding: 14px;
    }

    .publisher-offerings-v2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .publisher-offering-v2 ul {
        columns: 1;
    }

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

    .publisher-sidebar-v2 {
        grid-template-columns: 1fr;
    }

    .publisher-related-v2__grid {
        grid-template-columns: 1fr;
    }

    .publisher-related-v2__card {
        grid-template-columns: minmax(0, 1fr) 115px;
    }

    .publisher-related-v2__image,
    .publisher-related-v2__image img {
        min-height: 130px;
    }
}
