/* Shared standalone info pages: about, blog, contact, and terms. */

body,
input,
button,
textarea,
select,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
li {
    font-family: 'Estedad', tahoma, Arial, sans-serif !important;
}

.info-page-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 100vh;
    padding: 10px 5px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.info-page-wrap .platform-shared-header {
    margin: 0 6px 14px;
}

.info-header {
    position: sticky;
    top: 12px;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px 56px;
    margin-bottom: 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32)) !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.24) !important;
    backdrop-filter: blur(34px) saturate(180%) contrast(108%) !important;
    -webkit-backdrop-filter: blur(34px) saturate(180%) contrast(108%) !important;
}

.info-header h1 {
    margin: 0;
    max-width: 100%;
    color: #1f2937;
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 500;
    text-align: center;
    text-shadow: none;
    overflow-wrap: break-word;
}

.info-back-btn {
    position: absolute;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.info-back-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.info-logo-link {
    position: absolute;
    left: 13px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.68);
    text-decoration: none;
}

.info-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.info-card {
    background: #fff;
    border: 1px solid #e7ecf7;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(50, 50, 93, 0.08);
    padding: 16px;
    margin: 0 6px 12px;
}

.info-card h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #1f2937;
}

.info-card p {
    margin: 0;
    line-height: 2;
    color: #334155;
}

.info-list {
    margin: 0;
    padding-right: 18px;
    line-height: 2;
    color: #334155;
}

.info-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.info-app-box {
    border: 1px dashed #cfd8ea;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
}

.info-app-box strong {
    color: #1f2937;
}

.info-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #fecaca;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
}

.info-email-link {
    display: inline-flex;
    align-items: center;
    direction: ltr;
    margin-top: 10px;
    color: #dc2626;
    font-weight: 800;
    text-decoration: none;
}

.info-email-link:hover,
.info-email-link:focus {
    color: #b91c1c;
    text-decoration: underline;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.contact-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #fff 0%, #fff5f5 100%);
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 14px 12px;
    min-height: 170px;
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.08);
}

.contact-card::before {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    top: 10px;
    left: 10px;
    background-image: url('/static/vectors/contact-email-pattern.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
}

.contact-card::after {
    content: none;
}

.contact-card-email::before {
    background-image: url('/static/vectors/contact-email-pattern.svg');
}

.contact-card-phone::before {
    background-image: url('/static/vectors/contact-phone-pattern.svg');
}

.contact-card-address::before {
    background-image: url('/static/vectors/contact-address-pattern.svg');
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    margin: 0 0 8px;
    color: #991b1b;
    font-size: 1rem;
    font-weight: 900;
}

.contact-card-value {
    display: inline-flex;
    direction: ltr;
    color: #7f1d1d;
    font-weight: 900;
    text-decoration: none;
    word-break: break-word;
}

.contact-card-value-static {
    direction: rtl;
}

.contact-card-value:hover,
.contact-card-value:focus {
    color: #7f1d1d;
    text-decoration: underline;
}

.contact-card-detail {
    margin-top: 9px !important;
    color: #334155 !important;
    font-size: 0.92rem;
    line-height: 1.9 !important;
}

.blog-list-hero {
    margin: 0 6px 14px;
    border-radius: 18px;
    padding: 18px 16px;
    color: #fff;
    background: linear-gradient(135deg, rgba(32, 32, 36, 0.78), rgba(18, 18, 22, 0.66));
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.blog-list-kicker {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fecaca;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-list-hero h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.5;
}

.blog-list-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 6px;
}

.blog-card {
    background: #fff;
    border: 1px solid #e7ecf7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(50, 50, 93, 0.08);
}

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

.blog-card-media-link {
    min-height: 0;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f3f6fb;
    display: block;
}

.blog-card-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    font-weight: 900;
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

.blog-card-body {
    padding: 13px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #718096;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.blog-card-title-row,
.blog-article-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.blog-card-title-link {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.blog-card h3,
.blog-article-title-row h2 {
    margin: 0;
    color: #1f2937;
    overflow-wrap: anywhere;
}

.blog-card h3 {
    font-size: 1.05rem;
    line-height: 1.55;
}

.blog-card p {
    margin: 8px 0 0;
    color: #4b5563;
    line-height: 1.9;
    font-size: 14px;
}

.blog-read-more {
    display: inline-flex;
    margin-top: 12px;
    color: #dc2626;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
}

.blog-share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.blog-share-btn:hover,
.blog-share-btn:focus-visible {
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.22);
    outline: none;
}

.blog-share-btn.copied {
    color: #16a34a;
}

.blog-share-btn svg {
    width: 19px;
    height: 19px;
}

.blog-article-share-btn {
    margin-top: 5px;
}

.blog-empty-card {
    text-align: center;
}

.blog-article {
    margin: 0 6px;
    background: #fff;
    border: 1px solid #e7ecf7;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(50, 50, 93, 0.08);
    overflow: hidden;
}

.blog-article-header {
    padding: 16px 15px 12px;
}

.blog-article-meta {
    justify-content: flex-start;
}

.blog-article-title-row h2 {
    color: #111827;
    font-size: 1.45rem;
    line-height: 1.55;
    flex: 1 1 auto;
}

.blog-article-excerpt {
    margin: 10px 0 0;
    color: #526174;
    line-height: 1.9;
}

.blog-article-cover {
    margin: 0;
}

.blog-article-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f3f6fb;
}

.blog-article-body {
    padding: 16px 15px 20px;
    color: #263244;
    font-size: 15px;
    line-height: 2.05;
}

.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    margin: 24px 0 10px;
    color: #111827;
    line-height: 1.55;
}

.blog-article-body p {
    margin: 0 0 14px;
}

.blog-article-body strong {
    color: #111827;
    font-weight: 900;
}

.blog-article-body code {
    direction: ltr;
    display: inline-block;
    border-radius: 6px;
    padding: 1px 6px;
    background: #f1f5f9;
    color: #b91c1c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.blog-article-body a {
    color: #dc2626;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 38, 38, 0.35);
}

.blog-article-body ul {
    margin: 0 0 16px;
    padding-right: 20px;
}

.blog-article-figure,
.blog-article-gallery figure {
    margin: 18px 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e7ecf7;
}

.blog-article-figure img,
.blog-article-gallery img {
    width: 100%;
    display: block;
    object-fit: cover;
    background: #f3f6fb;
}

.blog-article-figure figcaption,
.blog-article-gallery figcaption {
    padding: 8px 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.blog-article-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 15px 18px;
}

.blog-article-gallery figure {
    margin: 0;
}

.blog-detail-actions {
    margin: 14px 6px 0;
}

.blog-detail-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 13px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.22);
}

.info-page-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1000;
    transform: translate(-50%, 14px);
    max-width: min(320px, calc(100vw - 28px));
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    padding: 10px 16px;
    color: #111827;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.info-page-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 760px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-article,
    .blog-list-hero,
    .blog-posts-grid,
    .blog-detail-actions {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

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

.info-footer {
    position: relative;
    margin: auto 6px 0;
    border-radius: 0;
    padding: 16px 14px;
    color: #475569;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(100, 116, 139, 0.22);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#mainAppContainer > .info-footer {
    margin: auto 6px 0;
}

#mainAppContainer:has(#account-section.active-section) > .info-footer {
    display: none;
}

.info-footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    direction: ltr;
}

.enamad-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: fit-content;
    position: absolute;
    top: 16px;
    left: 14px;
}

.enamad-badge-mobile {
    display: none;
}

.enamad-image {
    width: 120px;
    height: auto;
    display: block;
}

.info-footer-main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    direction: rtl;
}

.info-footer-links-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    direction: rtl;
}

.info-platform-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    flex: 0 0 72px;
}

.info-footer-links-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.info-footer-brand {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-align: right;
}

.info-footer-brand a,
.info-footer-mobile-section-title a {
    color: inherit;
    text-decoration: none;
}

.info-footer-brand a:hover,
.info-footer-brand a:focus-visible,
.info-footer-mobile-section-title a:hover,
.info-footer-mobile-section-title a:focus-visible {
    color: #dc2626;
    outline: none;
}

.info-footer-desktop-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 42px;
    direction: rtl;
}

.info-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.info-footer-plain-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.info-footer-plain-list a,
.info-footer-social-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.info-footer-plain-list a:hover,
.info-footer-plain-list a:focus-visible {
    color: #d71945;
    outline: none;
}

.info-footer-social-text img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.info-footer-social-text.is-disabled {
    opacity: 0.48;
}

.info-footer-mobile-dropdowns {
    display: none;
}

.info-footer-mobile-socials {
    display: none;
}

.info-footer-links {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    direction: rtl;
}

.info-footer-links-dropdown {
    width: 100%;
    direction: rtl;
}

.info-footer-links-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    user-select: none;
}

.info-footer-links-dropdown summary::-webkit-details-marker {
    display: none;
}

.info-footer-links-dropdown summary::after {
    content: "⌄";
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.info-footer-links-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.info-footer-links-dropdown summary:hover,
.info-footer-links-dropdown summary:focus-visible {
    color: #d71945;
    outline: none;
}

.info-footer-links-dropdown .info-footer-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 8px;
    width: min(260px, 100%);
}

.info-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
    background: transparent;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
    min-height: 32px;
}

.info-footer-link:hover,
.info-footer-link:focus {
    color: #ff1f1f;
    border-color: rgba(255, 31, 31, 0.55);
    background: rgba(255, 31, 31, 0.12);
}

.info-footer-link.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
}

/* Blog / magazine experience */
.blog-magazine-shell {
    width: min(1180px, calc(100% - 20px));
    margin: 0 auto 18px;
}

.blog-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.blog-breadcrumbs a {
    color: #dc2626;
    font-weight: 800;
    text-decoration: none;
}

.blog-magazine-layout,
.blog-detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    direction: ltr;
}

.blog-sidebar,
.blog-main-column,
.blog-article {
    direction: rtl;
}

.blog-sidebar {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 88px;
}

.blog-sidebar-card {
    background: #fff;
    border: 1px solid #e7ecf7;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(50, 50, 93, 0.08);
    padding: 16px;
}

.blog-sidebar-card h2 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.6;
}

.blog-category-card nav {
    display: grid;
    gap: 8px;
}

.blog-category-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e7ecf7;
    border-radius: 12px;
    color: #334155;
    background: #f8fafc;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}

.blog-category-link:hover,
.blog-category-link:focus-visible,
.blog-category-link.is-active {
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.28);
    background: #fff5f5;
    outline: none;
}

.blog-category-link small {
    min-width: 28px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #64748b;
    background: #fff;
    text-align: center;
}

.blog-category-empty {
    color: #64748b;
    line-height: 1.8;
}

.blog-promo-card {
    color: #fff;
    background: linear-gradient(135deg, rgba(32, 32, 36, 0.82), rgba(153, 27, 27, 0.78));
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-promo-card h2,
.blog-promo-card p {
    color: #fff;
}

.blog-promo-card p {
    margin: 0 0 14px;
    line-height: 1.9;
}

.blog-promo-card a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 13px;
    border-radius: 12px;
    background: #fff;
    color: #991b1b;
    text-decoration: none;
    font-weight: 900;
}

.blog-promo-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #fecaca;
    font-size: 12px;
    font-weight: 900;
}

.blog-list-hero {
    margin: 0 0 16px;
    border-radius: 18px;
    padding: 22px 20px;
}

.blog-list-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.45;
}

.blog-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    gap: 14px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(220, 38, 38, 0.18);
    box-shadow: 0 14px 30px rgba(50, 50, 93, 0.12);
}

.blog-card-media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card-image {
    aspect-ratio: 4 / 3;
}

.blog-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px;
}

.blog-card-meta a {
    color: #dc2626;
    font-weight: 900;
    text-decoration: none;
}

.blog-card h2 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    line-height: 1.65;
}

.blog-card-title-link {
    color: inherit;
    text-decoration: none;
}

.blog-card-title-link:hover,
.blog-card-title-link:focus-visible {
    color: #dc2626;
    outline: none;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.blog-pagination a,
.blog-pagination span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 7px 13px;
    border: 1px solid #e7ecf7;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-weight: 800;
}

.blog-pagination a:hover,
.blog-pagination a:focus-visible {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.28);
    outline: none;
}

.blog-detail-layout {
    grid-template-columns: 280px minmax(0, 1fr);
}

.blog-article {
    margin: 0;
    overflow: hidden;
}

.blog-article-header {
    padding: 22px 22px 16px;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.blog-article-meta a {
    color: #dc2626;
    font-weight: 900;
    text-decoration: none;
}

.blog-article h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.55;
}

.blog-share-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #991b1b, #202024);
    color: #fff;
}

.blog-share-panel > span {
    margin-inline-end: auto;
    font-weight: 900;
}

.blog-share-link,
.blog-share-btn {
    width: auto;
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
}

.blog-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.blog-share-link:hover,
.blog-share-link:focus-visible {
    color: #fecaca;
    outline: none;
}

.blog-article-cover {
    margin: 0;
    background: #f8fafc;
}

.blog-article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.blog-article-cover figcaption {
    padding: 8px 12px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.blog-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 22px 0;
}

.blog-trust-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 4px 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.blog-article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 22px;
    font-size: 16px;
    line-height: 2.15;
}

.blog-article-body h2 {
    font-size: 1.45rem;
}

.blog-article-body h3 {
    font-size: 1.22rem;
}

.blog-article-body h4 {
    font-size: 1.08rem;
}

.blog-article-body ol,
.blog-article-body ul {
    margin: 0 0 16px;
    padding-right: 24px;
}

.blog-article-body li {
    margin-bottom: 6px;
}

.blog-article-body blockquote {
    margin: 18px 0;
    border-right: 4px solid #dc2626;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff5f5;
    color: #334155;
}

.blog-article-body pre {
    overflow-x: auto;
    direction: ltr;
    border-radius: 12px;
    padding: 14px;
    background: #111827;
    color: #f8fafc;
}

.blog-article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-article-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 18px 0;
}

.blog-article-body td,
.blog-article-body th {
    border: 1px solid #e7ecf7;
    padding: 8px 10px;
    white-space: nowrap;
}

.blog-article-body hr {
    border: 0;
    border-top: 1px solid #e7ecf7;
    margin: 24px 0;
}

.blog-references,
.blog-related {
    padding: 0 22px 22px;
}

.blog-references h2,
.blog-related h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1.15rem;
}

.blog-references ol {
    margin: 0;
    padding-right: 22px;
    color: #475569;
    line-height: 2;
}

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

.blog-related article a {
    display: grid;
    gap: 8px;
    color: #111827;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.7;
}

.blog-related img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f6fb;
}

@media (max-width: 1080px) {
    .blog-magazine-layout,
    .blog-detail-layout {
        grid-template-columns: 1fr;
        direction: rtl;
    }

    .blog-sidebar {
        position: static;
        order: 2;
    }

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

@media (max-width: 680px) {
    .blog-magazine-shell {
        width: calc(100% - 12px);
    }

    .blog-list-hero,
    .blog-article-header,
    .blog-sidebar-card {
        border-radius: 14px;
        padding: 14px;
    }

    .blog-posts-grid,
    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        aspect-ratio: 16 / 9;
    }

    .blog-share-panel > span {
        width: 100%;
    }

    .blog-article-body {
        padding: 16px 14px;
        font-size: 15px;
    }
}

/* Article page placement tuned to match the provided magazine reference. */
.blog-detail-shell {
    position: relative;
    width: min(1112px, calc(100% - 24px));
    margin: 0 auto 24px;
    isolation: isolate;
}

.blog-detail-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 200px;
    transform: translateX(-50%);
    background: #e4eff1;
    pointer-events: none;
}

.blog-detail-shell .blog-breadcrumbs {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 828px);
    gap: 20px;
    align-items: start;
    direction: ltr;
}

.blog-detail-sidebar,
.blog-detail-layout > .blog-article {
    direction: rtl;
}

.blog-detail-sidebar {
    position: static;
    display: grid;
    gap: 20px;
}

.blog-detail-sidebar .blog-sidebar-card {
    margin: 0;
    width: 264px;
    min-height: 202px;
    border: 0;
    border-radius: 39px;
    box-shadow: none;
    overflow: hidden;
}

.blog-detail-sidebar .blog-promo-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    color: #fff;
    background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(220,38,38,.72)), linear-gradient(135deg, #fef2f2, #991b1b);
}

.blog-detail-sidebar .blog-category-card {
    padding: 26px 20px;
    background: linear-gradient(180deg, #f4f4f5, #ffffff);
}

.blog-detail-sidebar .blog-category-card h2 {
    text-align: center;
    color: #0f766e;
}

.blog-detail-sidebar .blog-category-card nav {
    display: grid;
    gap: 8px;
}

.blog-detail-layout > .blog-article {
    display: grid;
    grid-template-columns: minmax(0, 475px) 333px;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.blog-detail-layout .blog-article-header {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    min-width: 0;
}

.blog-detail-layout .blog-article-cover {
    grid-column: 2;
    grid-row: 1;
    width: 333px;
    height: 333px;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: none;
}

.blog-detail-layout .blog-article-cover img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: auto;
    object-fit: cover;
}

.blog-detail-layout .blog-article-cover figcaption {
    display: none;
}

.blog-detail-layout .blog-article h1 {
    margin: 0 0 24px;
    min-height: 40px;
    color: #151515;
    font-size: 1.72rem;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
    letter-spacing: 0;
}

.blog-detail-layout .blog-article-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 28px;
    margin: 0 0 11px;
    color: #00665c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.blog-detail-layout .blog-article-meta time,
.blog-detail-layout .blog-article-meta a,
.blog-detail-layout .blog-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.blog-detail-layout .blog-article-meta a,
.blog-detail-layout .blog-article-meta span:last-child {
    justify-self: end;
}

.blog-detail-layout .blog-article-meta time::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.blog-detail-layout .blog-article-meta a::before,
.blog-detail-layout .blog-article-meta span:last-child::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 4px;
    box-shadow: 9px 0 0 -7px currentColor, 0 9px 0 -7px currentColor, 9px 9px 0 -7px currentColor;
}

.blog-detail-layout .blog-share-panel {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 13px;
    width: 475px;
    height: 50px;
    min-height: 50px;
    margin: 0 0 34px;
    padding: 5px;
    border-radius: 9px;
    color: #fff;
    background: #00584f;
    box-shadow: none;
}

.blog-detail-layout .blog-share-panel > span {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    padding: 0 12px;
    text-align: right;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.blog-detail-layout .blog-share-panel .blog-share-btn:first-of-type {
    order: -1;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    color: #00584f;
    background: #ffd08a;
    box-shadow: none;
}

.blog-detail-layout .blog-share-panel .blog-share-btn:not(:first-of-type),
.blog-detail-layout .blog-share-link {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
    font-size: 0;
    text-decoration: none;
}

.blog-detail-layout .blog-share-panel .blog-share-btn svg {
    width: 21px;
    height: 21px;
}

.blog-detail-layout .blog-share-link::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.blog-detail-layout .blog-share-link[data-share-service="telegram"]::before { content: "↗"; }
.blog-detail-layout .blog-share-link[data-share-service="whatsapp"]::before { content: "☏"; }
.blog-detail-layout .blog-share-link[data-share-service="linkedin"]::before { content: "in"; font-size: 12px; }

.blog-detail-layout .blog-article-excerpt {
    margin: 0;
    color: #151515;
    font-size: 15px;
    line-height: 2.05;
    text-align: right;
}

.blog-detail-layout .blog-trust-row,
.blog-detail-layout .blog-article-body,
.blog-detail-layout .blog-references,
.blog-detail-layout .blog-article-gallery,
.blog-detail-layout .blog-related {
    grid-column: 1 / -1;
}

.blog-detail-layout .blog-trust-row {
    display: none;
}

.blog-detail-layout .blog-article-body {
    max-width: none;
    margin: 28px 0 0;
    padding: 0;
    color: #151515;
    font-size: 15px;
    line-height: 2.28;
}

.blog-detail-layout .blog-article-body p {
    margin: 0 0 17px;
}

.blog-detail-layout .blog-article-body h2 {
    margin: 28px 0 14px;
    color: #151515;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.55;
    text-align: right;
}

.blog-detail-layout .blog-references,
.blog-detail-layout .blog-article-gallery,
.blog-detail-layout .blog-related {
    padding: 0;
    margin-top: 22px;
}

@media (max-width: 1120px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
        direction: rtl;
    }

    .blog-detail-sidebar {
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-detail-sidebar .blog-sidebar-card {
        width: auto;
    }

    .blog-detail-layout > .blog-article {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 333px);
    }

    .blog-detail-layout .blog-share-panel {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .blog-detail-shell {
        width: calc(100% - 12px);
        margin-top: 8px;
    }

    .blog-detail-shell::before {
        height: 160px;
        top: -8px;
    }

    .blog-detail-layout > .blog-article,
    .blog-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-detail-layout .blog-article-header,
    .blog-detail-layout .blog-article-cover,
    .blog-detail-layout .blog-trust-row,
    .blog-detail-layout .blog-article-body,
    .blog-detail-layout .blog-references,
    .blog-detail-layout .blog-article-gallery,
    .blog-detail-layout .blog-related {
        grid-column: 1;
    }

    .blog-detail-layout .blog-article-cover {
        grid-row: 1;
        width: 100%;
        height: auto;
        margin-bottom: 16px;
    }

    .blog-detail-layout .blog-article-cover img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .blog-detail-layout .blog-article h1 {
        font-size: 1.35rem;
        text-align: right;
    }

    .blog-detail-layout .blog-share-panel {
        flex-wrap: wrap;
        height: auto;
    }
}

.info-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    direction: rtl;
}

.info-social-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.09);
    transition: .2s ease;
}

.info-social-link img {
    width: 18px;
    height: 18px;
    display: block;
}

.info-social-link[href]:hover,
.info-social-link[href]:focus {
    border-color: rgba(255, 31, 31, 0.55);
    background: rgba(255, 31, 31, 0.14);
}

.info-social-link.is-disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.info-footer-bottom {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(100, 116, 139, 0.14);
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

body.theme-dark {
    background: #0f172a;
    color: #e5e7eb;
}

body.theme-dark .info-card,
body.theme-dark .info-app-box {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.24);
    color: #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

body.theme-dark .info-card h2,
body.theme-dark .info-card p,
body.theme-dark .info-list,
body.theme-dark .info-app-box strong {
    color: #f8fafc;
}

body.theme-dark .info-email-link {
    color: #fb7185;
}

body.theme-dark .info-email-link:hover,
body.theme-dark .info-email-link:focus {
    color: #fda4af;
}

body.theme-dark .contact-card {
    background: linear-gradient(145deg, #1f2937, #2b1a1a);
    border-color: rgba(248, 113, 113, 0.34);
}

body.theme-dark .contact-card::before {
    opacity: 0.26;
    filter: saturate(1.05) brightness(0.98);
}

body.theme-dark .contact-card h3,
body.theme-dark .contact-card-value {
    color: #fecaca;
}

body.theme-dark .contact-card-detail {
    color: #e2e8f0 !important;
}

body.theme-dark .info-footer {
    color: #e2e8f0;
    background: transparent;
    border-top-color: rgba(148, 163, 184, 0.24);
}

body.theme-dark .info-footer-brand,
body.theme-dark .info-footer-link {
    color: #e2e8f0;
}

body.theme-dark .info-footer-plain-list a,
body.theme-dark .info-footer-social-text {
    color: #cbd5e1;
}

body.theme-dark .info-footer-links-dropdown summary {
    color: #e2e8f0;
}

body.theme-dark .info-footer-link {
    border-color: rgba(148, 163, 184, 0.24);
}

body.theme-dark .info-footer-bottom {
    border-top-color: rgba(148, 163, 184, 0.18);
    color: #94a3b8;
}

body.theme-dark .info-footer-mobile-socials {
    border-top-color: transparent;
}

body.theme-dark .info-footer-mobile-socials::before {
    background: rgba(148, 163, 184, 0.26);
}

@media (max-width: 560px) {
    .info-footer {
        margin-left: 4px;
        margin-right: 4px;
        padding: 10px 8px 8px;
    }

    .info-footer-grid {
        gap: 8px;
    }

    .info-platform-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 11px;
    }

    .enamad-badge {
        padding: 1px;
        border-radius: 8px;
    }

    .enamad-badge-desktop {
        display: none;
    }

    .enamad-badge-mobile {
        position: static;
        display: inline-flex;
        margin-top: 4px;
    }

    .enamad-image {
        width: 42px;
        height: 35px;
        object-fit: contain;
    }

    .info-footer-main {
        gap: 6px;
    }

    .info-footer-desktop-columns {
        display: none;
    }

    .info-footer-mobile-dropdowns {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }

    .info-footer-mobile-socials {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        text-align: right;
        position: relative;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 0;
    }

    .info-footer-mobile-socials::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: calc(100vw - 24px);
        height: 1px;
        background: rgba(51, 65, 85, 0.28);
    }

    .info-footer-mobile-socials .info-social-links {
        justify-content: flex-start;
    }

    .enamad-badge-mobile {
        position: static;
        display: inline-flex;
        align-self: auto;
        width: fit-content;
        max-width: 100%;
        margin: 3px auto 0 0;
    }

    .enamad-badge-mobile > a {
        display: inline-flex;
        width: fit-content;
        max-width: 100%;
    }

    .info-footer-links-wrap {
        gap: 8px;
    }

    .info-footer-links-group {
        width: 100%;
    }

    .info-footer-brand {
        font-size: 11px;
    }

    .info-footer-links-dropdown summary {
        padding: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        padding-inline: 0;
        text-align: right;
        position: relative;
    }

    .info-footer-links-dropdown summary::after {
        position: absolute;
        right: auto;
        left: 8px;
        top: calc(50% - 2px);
        font-size: 18px;
        transform: translateY(-50%);
    }

    .info-footer-links-dropdown[open] summary::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .info-footer-mobile-dropdowns .info-footer-links-dropdown {
        text-align: right;
    }

    .info-footer-mobile-section-title {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding-inline: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        text-align: right;
    }

    .info-footer-links-dropdown .info-footer-plain-list {
        margin-top: 7px;
        padding-right: 8px;
    }

    .info-footer-link {
        min-height: 28px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .info-social-links {
        gap: 5px;
    }

    .info-social-link {
        width: 28px;
        height: 28px;
    }

    .info-social-link img {
        width: 15px;
        height: 15px;
    }

    .info-footer-bottom {
        margin-top: 8px;
        padding-top: 7px;
        font-size: 10px;
        text-align: center;
    }

    .info-header {
        min-height: 54px;
        padding: 10px 48px;
    }

    .info-header h1 {
        font-size: 1.12rem;
        line-height: 1.45;
    }

    .info-back-btn {
        right: 10px;
    }

    .info-logo-link {
        left: 10px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .info-footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-footer-main {
        align-items: flex-start;
        text-align: right;
        margin: 0;
    }

    .info-footer-links-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-footer-links-group {
        align-items: flex-start;
    }

    .info-footer-brand {
        text-align: right;
    }

    .info-footer-links,
    .info-social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 360px) {
    .info-header {
        padding-left: 40px;
        padding-right: 40px;
    }

    .info-header h1 {
        font-size: 1rem;
    }

    .info-back-btn {
        width: 28px;
        height: 28px;
    }

    .info-logo-link {
        width: 30px;
        height: 30px;
    }
}

/* Full magazine redesign based on the provided reference layout. */
.info-page-wrap--magazine {
    background:
        linear-gradient(#e4eff1 0 224px, transparent 224px),
        #f6f8fb;
}

.bb-mag {
    --bb-bg-band: #e4eff1;
    --bb-ink: #161616;
    --bb-muted: #4b5563;
    --bb-body-text: #161616;
    --bb-surface: #ffffff;
    --bb-green: #00584f;
    --bb-gold: #ffd08a;
    position: relative;
    width: min(1110px, calc(100% - 24px));
    margin: 0 auto 24px;
    color: var(--bb-ink);
    isolation: isolate;
}

.bb-mag-detail {
    margin-top: 0;
    padding-top: clamp(20px, 3vw, 36px);
}

.bb-mag-detail::before {
    content: none;
}

.bb-mag::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 200px;
    transform: translateX(-50%);
    background: var(--bb-bg-band);
}

.bb-mag-breadcrumbs {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bb-mag-list-grid,
.bb-mag-detail-grid {
    display: grid;
    grid-template-columns: 264px minmax(0, 828px);
    gap: 20px;
    align-items: start;
    direction: ltr;
}

.bb-mag-side,
.bb-mag-list-main,
.bb-mag-article {
    direction: rtl;
}

.bb-mag-side {
    position: sticky;
    top: 88px;
    align-self: start;
    display: grid;
    gap: 20px;
}

.bb-mag-ad {
    width: 264px;
    min-height: 202px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px;
    border-radius: 39px;
    overflow: hidden;
    text-align: center;
}

.bb-mag-ad-primary {
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.8), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.1), rgba(0,88,79,.2)),
        linear-gradient(145deg, #b8f1ec, #009687 75%);
}

.bb-mag-ad-secondary {
    color: #00665c;
    background:
        radial-gradient(circle at 50% 95%, rgba(0,88,79,.22), transparent 35%),
        linear-gradient(180deg, #ededee, #fff);
}

.bb-mag-ad-title {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    direction: ltr;
}

.bb-mag-ad-text {
    font-size: 12px;
    line-height: 1.8;
    font-weight: 400;
}

.bb-mag-ad a {
    min-width: 102px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #008577;
    background: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
}

.bb-mag-ad-secondary a {
    color: #fff;
    background: var(--bb-green);
}

.bb-mag-list-head {
    height: 126px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 8px;
    text-align: right;
}

.bb-mag-list-head h1 {
    margin: 0 0 16px;
    color: var(--bb-ink);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.35;
}

.bb-mag-list-head p {
    margin: 0;
    color: #202020;
    font-size: 15px;
    line-height: 1.8;
}

.bb-mag-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bb-mag-card {
    min-width: 0;
}

.bb-mag-card-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #e4eff1, #00584f);
    text-decoration: none;
    font-weight: 900;
}

.bb-mag-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bb-mag-card-meta {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: #777;
    font-size: 12px;
    line-height: 1;
}

.bb-mag-card h2 {
    margin: 0;
    color: var(--bb-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.9;
    text-align: center;
}

.bb-mag-card h2 a {
    color: inherit;
    text-decoration: none;
}

.bb-mag-pagination,
.bb-mag-empty {
    margin-top: 22px;
}

.bb-mag-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bb-mag-pagination a,
.bb-mag-pagination span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 7px 13px;
    color: var(--bb-green);
    background: #fff;
    text-decoration: none;
    font-weight: 900;
}

.bb-mag-empty {
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.bb-mag-article {
    display: grid;
    grid-template-columns: 475px 333px;
    grid-template-areas:
        "head cover"
        "body body"
        "refs refs"
        "related related";
    column-gap: 20px;
    align-items: start;
}

.bb-mag-head {
    grid-area: head;
    width: 475px;
    min-width: 0;
}

.bb-mag-cover {
    grid-area: cover;
    justify-self: end;
    width: 333px;
    height: 333px;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #e4eff1, #00584f);
}

.bb-mag-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bb-mag-cover.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
}

.bb-mag-head h1 {
    min-height: 40px;
    margin: 0 0 24px;
    color: var(--bb-body-text);
    font-size: 1.68rem;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
}

.bb-mag-pre-share {
    position: relative;
    width: 475px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 7px;
}

.bb-mag-topic {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #00665c;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.bb-mag-date-chip,
.bb-mag-topic-chip {
    min-height: 28px;
    isolation: isolate;
}

.bb-mag-date-chip::after,
.bb-mag-topic-chip::after {
    content: none;
}

.bb-mag-topic-chip::after {
    content: none;
}

.bb-mag-topic a,
.bb-mag-topic span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.bb-mag-topic a::before,
.bb-mag-topic span::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.35'%3E%3Crect x='3.5' y='3.5' width='6' height='6' rx='1.4'/%3E%3Crect x='14.5' y='3.5' width='6' height='6' rx='1.4'/%3E%3Crect x='3.5' y='14.5' width='6' height='6' rx='1.4'/%3E%3Crect x='14.5' y='14.5' width='6' height='6' rx='1.4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.35'%3E%3Crect x='3.5' y='3.5' width='6' height='6' rx='1.4'/%3E%3Crect x='14.5' y='3.5' width='6' height='6' rx='1.4'/%3E%3Crect x='3.5' y='14.5' width='6' height='6' rx='1.4'/%3E%3Crect x='14.5' y='14.5' width='6' height='6' rx='1.4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.bb-mag-meta {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    color: #00665c;
    font-size: 12px;
    font-weight: 400;
}

.bb-mag-date-chip::after {
    content: none;
}

.bb-mag-meta time,
.bb-mag-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.bb-mag-meta time::after {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.8'/%3E%3Cpath d='M8 3.5v4M16 3.5v4M4 10h16'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.8'/%3E%3Cpath d='M8 3.5v4M16 3.5v4M4 10h16'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.bb-mag-share {
    width: 475px;
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    flex-direction: row;
    direction: rtl;
    gap: 13px;
    margin: 0 0 14px;
    padding: 5px;
    border-radius: 9px;
    color: #fff;
    background: var(--bb-green);
}

.bb-mag-share > span {
    flex: 1 1 auto;
    padding: 0 12px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.bb-mag-share-main {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    color: var(--bb-green);
    background: var(--bb-gold);
    box-shadow: none;
}

.bb-mag-share-icon {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    font-size: 0;
    font-weight: 900;
}

.bb-mag-share-icon:hover,
.bb-mag-share-icon:focus-visible,
.bb-mag-share-main:hover,
.bb-mag-share-main:focus-visible {
    transform: translateY(-1px);
}

.bb-mag-share-icon svg,
.bb-mag-share-main svg {
    width: 21px;
    height: 21px;
}

.bb-mag-excerpt {
    margin: 0;
    color: var(--bb-body-text);
    font-size: 15px;
    line-height: 2.05;
    text-align: right;
}

.bb-mag-trust,
.bb-mag-body {
    grid-area: body;
}

.bb-mag-references {
    grid-area: refs;
}

.bb-mag-related {
    grid-area: related;
}

.bb-mag-trust {
    display: none;
}

.bb-mag-body {
    margin-top: 28px;
    color: var(--bb-body-text);
    font-size: 15px;
    line-height: 2.28;
}

.bb-mag-body p {
    margin: 0 0 17px;
}

.bb-mag-body h2 {
    margin: 28px 0 14px;
    color: var(--bb-body-text);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.55;
    text-align: right;
}

.bb-mag-body img,
.bb-mag-body figure {
    max-width: 100%;
}

.bb-mag-references,
.bb-mag-related {
    margin-top: 24px;
}

.bb-mag-related > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.bb-mag-related a {
    display: grid;
    gap: 8px;
    color: var(--bb-ink);
    text-decoration: none;
    font-weight: 900;
}

.bb-mag-related img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.bb-mag-detail-grid {
    grid-template-columns: 264px 475px 333px;
}

.bb-mag-detail-grid > .bb-mag-side {
    grid-column: 1;
    grid-row: 1;
}

.bb-mag-detail-grid > .bb-mag-article {
    display: contents;
}

.bb-mag-detail-grid .bb-mag-head {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

.bb-mag-detail-grid .bb-mag-cover {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.bb-mag-detail-grid .bb-mag-body {
    grid-column: 2 / 4;
    grid-row: 2;
    margin-top: -115px;
}

.bb-mag-detail-grid .bb-mag-references {
    grid-column: 2 / 4;
    grid-row: 3;
}

.bb-mag-detail-grid .bb-mag-related {
    grid-column: 2 / 4;
    grid-row: 4;
}

body.theme-dark .bb-mag {
    --bb-bg-band: #16232a;
    --bb-ink: #f8fafc;
    --bb-muted: #cbd5e1;
    --bb-body-text: #e5e7eb;
    --bb-surface: #111827;
    --bb-green: #0f766e;
    --bb-gold: #f8c77e;
}

body.theme-dark .info-page-wrap--magazine {
    background:
        linear-gradient(#16232a 0 224px, transparent 224px),
        #0f172a;
}

body.theme-dark .bb-mag::before {
    background: var(--bb-bg-band);
}

body.theme-dark .bb-mag-empty {
    background: #111827;
    color: #e5e7eb;
}

body.theme-dark .bb-mag-ad-secondary {
    color: #ccfbf1;
    background: linear-gradient(180deg, #1f2937, #111827);
}

body.theme-dark .bb-mag-list-head h1,
body.theme-dark .bb-mag-list-head p,
body.theme-dark .bb-mag-card h2,
body.theme-dark .bb-mag-head h1,
body.theme-dark .bb-mag-excerpt,
body.theme-dark .bb-mag-body,
body.theme-dark .bb-mag-body h2,
body.theme-dark .bb-mag-related a,
body.theme-dark .bb-mag-references {
    color: var(--bb-body-text);
}

body.theme-dark .bb-mag-card-meta,
body.theme-dark .bb-mag-meta,
body.theme-dark .bb-mag-topic {
    color: #99f6e4;
}

body.theme-dark .bb-mag-date-chip::after,
body.theme-dark .bb-mag-topic-chip::after {
    opacity: .24;
    filter: brightness(1.7) saturate(.8);
}

body.theme-dark .bb-mag-share {
    background: #0f766e;
}

body.theme-dark .bb-mag-cover,
body.theme-dark .bb-mag-card-image {
    background: linear-gradient(135deg, #1f2937, #0f766e);
}

@media (max-width: 1120px) {
    .bb-mag-list-grid,
    .bb-mag-detail-grid {
        grid-template-columns: 1fr;
        direction: rtl;
    }

    .bb-mag-side {
        position: static;
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-mag-ad {
        width: auto;
    }

    .bb-mag-article {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 333px);
        grid-template-areas:
            "head cover"
            "body body"
            "refs refs"
            "related related";
    }

    .bb-mag-share {
        width: 100%;
    }

    .bb-mag-pre-share {
        width: 100%;
    }

    .bb-mag-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 333px);
    }

    .bb-mag-detail-grid > .bb-mag-side {
        grid-column: 1 / -1;
        grid-row: 5;
    }

    .bb-mag-detail-grid .bb-mag-head {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .bb-mag-detail-grid .bb-mag-cover {
        grid-column: 2;
        grid-row: 1;
    }

    .bb-mag-detail-grid .bb-mag-body,
    .bb-mag-detail-grid .bb-mag-references,
    .bb-mag-detail-grid .bb-mag-related {
        grid-column: 1 / -1;
    }

    .bb-mag-detail-grid .bb-mag-body {
        margin-top: 24px;
    }
}

@media (max-width: 760px) {
    .bb-mag {
        width: calc(100% - 12px);
        margin-top: 0;
    }

    .bb-mag::before {
        top: 0;
        height: 160px;
    }

    .bb-mag-side,
    .bb-mag-cards,
    .bb-mag-article,
    .bb-mag-related > div {
        grid-template-columns: 1fr;
    }

    .bb-mag-head,
    .bb-mag-cover,
    .bb-mag-trust,
    .bb-mag-body,
    .bb-mag-references,
    .bb-mag-related {
        grid-column: auto;
    }

    .bb-mag-cover {
        grid-area: cover;
        width: 100%;
        height: auto;
        margin-bottom: 16px;
    }

    .bb-mag-cover img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .bb-mag-article {
        grid-template-areas:
            "cover"
            "head"
            "body"
            "refs"
            "related";
    }

    .bb-mag-head {
        width: 100%;
    }

    .bb-mag-head h1,
    .bb-mag-list-head h1 {
        font-size: 1.35rem;
        text-align: right;
    }

    .bb-mag-share {
        height: auto;
        flex-wrap: wrap;
    }

    .bb-mag-pre-share {
        display: grid;
        gap: 6px;
        justify-items: center;
    }

    .bb-mag-topic {
        position: static;
        transform: none;
    }

    .bb-mag-meta {
        position: static;
        transform: none;
    }

    .bb-mag-detail-grid {
        grid-template-columns: 1fr;
    }

    .bb-mag-detail-grid .bb-mag-cover {
        grid-column: 1;
        grid-row: 1;
    }

    .bb-mag-detail-grid .bb-mag-head {
        grid-column: 1;
        grid-row: 2;
    }

    .bb-mag-detail-grid .bb-mag-body {
        grid-column: 1;
        grid-row: 3;
    }

    .bb-mag-detail-grid .bb-mag-references {
        grid-column: 1;
        grid-row: 4;
    }

    .bb-mag-detail-grid .bb-mag-related {
        grid-column: 1;
        grid-row: 5;
    }

    .bb-mag-detail-grid > .bb-mag-side {
        grid-column: 1;
        grid-row: 6;
    }
}
