/*
|--------------------------------------------------------------------------
| Parham Prism Components
|--------------------------------------------------------------------------
| Frontend Components
| Laravel 13 / PHP 8.4
| Design System: Parham Prism
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   01. BUTTONS
   ========================================================================== */

.prism-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 44px;
    padding-inline: 24px;

    border: none;
    border-radius: var(--radius-md);

    cursor: pointer;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.prism-btn-primary {
    background: var(--prism-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.prism-btn-primary:hover {
    background: var(--prism-primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.prism-btn-outline {
    background: transparent;
    border: 1px solid var(--prism-border);
    color: var(--prism-text);
}

.prism-btn-outline:hover {
    border-color: var(--prism-primary);
    color: var(--prism-primary);
    transform: translateY(-2px);
}

.prism-btn-block {
    width: 100%;
}


/* ==========================================================================
   02. CARDS
   ========================================================================== */

.prism-card {
    background: var(--prism-surface);
    border: 1px solid var(--prism-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.prism-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
   03. GLASS
   ========================================================================== */

.prism-glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .prism-glass {
    background: rgba(17, 24, 23, 0.65);
}


/* ==========================================================================
   04. BADGE
   ========================================================================== */

.prism-badge {
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;

    background: var(--prism-surface-soft);
    color: var(--prism-text-soft);
}

.prism-badge-primary {
    background: rgba(15, 76, 58, 0.12);
    color: var(--prism-primary);
}


/* ==========================================================================
   05. AVATAR
   ========================================================================== */

.prism-avatar {
    width: 48px;
    height: 48px;

    border-radius: 50%;
    overflow: hidden;

    background: var(--prism-surface-soft);
}

.prism-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================================
   06. MEDIA
   ========================================================================== */

.prism-media {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.prism-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform var(--transition-normal);
}

.prism-media:hover img {
    transform: scale(1.04);
}


/* ==========================================================================
   07. CONTENT BOX
   ========================================================================== */

.prism-content-box {
    background: var(--prism-surface);
    border: 1px solid var(--prism-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.prism-content-box h1,
.prism-content-box h2,
.prism-content-box h3 {
    color: var(--prism-text);
    line-height: 1.4;
}

.prism-content-box p {
    color: var(--prism-text-soft);
    line-height: 2;
}


/* ==========================================================================
   08. CONTENT CARD
   ========================================================================== */

.prism-content-card {
    position: relative;
    display: block;

    min-width: 0;
    overflow: hidden;

    background: var(--prism-surface);
    border: 1px solid var(--prism-border);
    border-radius: 22px;

    transition:
        transform 0.35s cubic-bezier(.22, .61, .36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.prism-content-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(15, 76, 58, 0.12);

    border-color: rgba(15, 76, 58, 0.18);
}

.prism-content-card-link {
    display: block;
    height: 100%;

    color: inherit;
    text-decoration: none;
}


/* --------------------------------------------------------------------------
   Content Card Media
   -------------------------------------------------------------------------- */

.prism-content-card-media {
    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;
    background: #e9ece8;
}

.prism-content-card-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(.22, .61, .36, 1),
        filter 0.45s ease;
}

.prism-content-card:hover .prism-content-card-media img {
    transform: scale(1.07);
    filter: saturate(1.04);
}


/* --------------------------------------------------------------------------
   Content Card Overlay
   -------------------------------------------------------------------------- */

.prism-content-card-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 25%,
            rgba(0, 0, 0, 0.34) 100%
        );

    opacity: 0.9;

    transition: opacity 0.35s ease;
}

.prism-content-card:hover .prism-content-card-overlay {
    opacity: 1;
}


/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */

.prism-content-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            var(--prism-primary),
            var(--prism-primary-dark)
        );

    color: rgba(255, 255, 255, 0.85);

    font-size: 22px;
    font-weight: 800;
}


/* --------------------------------------------------------------------------
   Category
   -------------------------------------------------------------------------- */

.prism-content-card-category {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;

    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 5px 11px;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.88);
    color: var(--prism-primary);

    font-size: 11px;
    font-weight: 800;
    line-height: 1;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* --------------------------------------------------------------------------
   Content Card Body
   -------------------------------------------------------------------------- */

.prism-content-card-body {
    position: relative;

    padding: 22px 22px 20px;
}

.prism-content-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 10px;

    color: var(--prism-text-muted);

    font-size: 11px;
    font-weight: 600;
}

.prism-content-card-meta-dot {
    opacity: 0.45;
}

.prism-content-card-title {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: var(--prism-text);

    font-size: 20px;
    font-weight: 800;
    line-height: 1.65;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    transition: color 0.3s ease;
}

.prism-content-card:hover .prism-content-card-title {
    color: var(--prism-primary);
}

.prism-content-card-excerpt {
    display: -webkit-box;

    margin: 10px 0 0;

    overflow: hidden;

    color: var(--prism-text-soft);

    font-size: 13px;
    line-height: 1.9;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prism-content-card-bottom {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 18px;
}

.prism-content-card-read {
    flex: 0 0 auto;

    color: var(--prism-primary);

    font-size: 12px;
    font-weight: 800;
}

.prism-content-card-line {
    flex: 1;

    height: 1px;

    background: var(--prism-border);

    transform-origin: right center;

    transition:
        transform 0.4s ease,
        background 0.3s ease;
}

.prism-content-card:hover .prism-content-card-line {
    transform: scaleX(0.55);
    background: var(--prism-primary);
}


/* ==========================================================================
   09. CONTENT GRID
   ========================================================================== */

.prism-content-grid {
    display: grid;

    grid-template-columns:
        repeat(var(--grid-columns, 3), minmax(0, 1fr));

    gap: var(--space-6);
}


/* ==========================================================================
   10. DIVIDER
   ========================================================================== */

.prism-divider {
    width: 100%;
    height: 1px;

    margin-block: var(--space-5);

    background: var(--prism-border);
}


/* ==========================================================================
   PAGE BUILDER
   Structure:
   Page Builder
   └── Row
       └── Column
           └── Section

   Column width is controlled by Renderer.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Builder Root
   -------------------------------------------------------------------------- */

.page-builder,
.page-builder-renderer {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding-inline: 38px;
    padding-block: 0;

    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Builder Row
   -------------------------------------------------------------------------- */

.page-builder .page-builder-row,
.page-builder-renderer .page-builder-row {
    display: grid;

    align-items: stretch;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    gap: 24px;

    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Builder Column
   -------------------------------------------------------------------------- */

.page-builder .page-builder-column,
.page-builder-renderer .page-builder-column {
    position: relative;

    display: block;

    min-width: 0;
    max-width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| IMPORTANT
|--------------------------------------------------------------------------
| Do NOT define width here.
|
| Renderer controls column width:
|
| style="width: 50%;"
| style="width: 33.3333%;"
|--------------------------------------------------------------------------
*/


/* --------------------------------------------------------------------------
   Builder Section
   -------------------------------------------------------------------------- */

.page-builder .page-builder-section,
.page-builder-renderer .page-builder-section {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Section Direct Children
   -------------------------------------------------------------------------- */

.page-builder .page-builder-section > *,
.page-builder-renderer .page-builder-section > * {
    min-width: 0;
    max-width: 100%;

    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Nested Rows
   -------------------------------------------------------------------------- */

.page-builder .page-builder-column > .page-builder-row,
.page-builder-renderer .page-builder-column > .page-builder-row {
    display: grid;

    align-items: stretch;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    gap: 24px;

    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Nested Columns
   -------------------------------------------------------------------------- */

.page-builder .page-builder-row > .page-builder-column,
.page-builder-renderer .page-builder-row > .page-builder-column {
    min-width: 0;
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Legacy Renderer
   -------------------------------------------------------------------------- */

.page-builder-renderer--legacy {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


/* ==========================================================================
   11. BUILDER HEIGHT / COLUMN STRETCH
   ========================================================================== */

.page-builder-renderer .page-builder-column {
    container-type: inline-size;
    container-name: pb-column;

    display: flex;
    flex-direction: column;
}

.page-builder-renderer .page-builder-column > .page-builder-section {
    display: flex;
    flex-direction: column;

    flex: 1 1 auto;
    min-height: 0;
}

.page-builder-renderer .page-builder-section > * {
    min-width: 0;
}

.page-builder-renderer .page-builder-section > script,
.page-builder-renderer .page-builder-section > style {
    display: none !important;
}


/* ==========================================================================
   12. BUILDER HERO
   ========================================================================== */

.prism-builder-hero {
    width: 100%;
    margin: 40px 0;
}

.prism-builder-hero .prism-container {
    width: 100%;
    max-width: none;

    padding-inline: 0;
}

.prism-builder-hero img {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;

    border-radius: 28px;
}


/* ==========================================================================
   13. BUILDER CONTENT LIST
   ========================================================================== */

.prism-builder-content-list {
    width: 100%;
    margin: 40px 0;
}

.prism-builder-content-list .prism-container {
    width: 100%;
    max-width: none;

    padding-inline: 0;
}

.prism-content-list-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prism-builder-content-list .prism-content-list-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prism-builder-content-list .prism-content-card {
    display: flex;
    flex-direction: row;
    align-items: center;

    width: 100%;
    min-width: 0;
    height: 130px;

    overflow: hidden;

    background: var(--prism-surface);
    border: 1px solid var(--prism-border);
    border-radius: 18px;
}

.prism-builder-content-list .prism-content-card-image {
    flex: 0 0 170px;

    width: 170px;
    height: 130px;

    overflow: hidden;
}

.prism-builder-content-list .prism-content-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.prism-builder-content-list .prism-content-card-body {
    flex: 1;

    min-width: 0;

    padding: 15px 22px;
}

.prism-builder-content-list .prism-content-card-body h3 {
    margin: 0 0 8px;

    font-size: 17px;
    line-height: 1.8;
}

.prism-builder-content-list .prism-content-card-body h3 a {
    color: var(--prism-text);
    text-decoration: none;
}

.prism-builder-content-list .prism-content-card-body p {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: var(--prism-text-soft);

    font-size: 13px;
    line-height: 1.8;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* ==========================================================================
   14. BUILDER BLOG
   ========================================================================== */

.prism-builder-blog {
    width: 100%;
    margin: 40px 0;
}

.prism-builder-blog .prism-container {
    width: 100%;
    max-width: none;

    padding-inline: 0;
}

.prism-builder-blog .prism-builder-section-header {
    margin-bottom: 24px;
}

.prism-builder-blog .prism-builder-section-header h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 750;
    line-height: 1.6;
}

.prism-builder-blog .prism-blog-grid {
    display: grid;

    grid-template-columns:
        repeat(var(--blog-columns, 5), minmax(0, 1fr));

    gap: 18px;
}

.prism-builder-blog .prism-blog-item {
    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    overflow: hidden;

    background: var(--prism-surface);
    border: 1px solid var(--prism-border);
    border-radius: 16px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.prism-builder-blog .prism-blog-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.09);
}

.prism-builder-blog .prism-blog-item-link {
    display: flex;
    flex-direction: column;

    height: 100%;

    color: inherit;
    text-decoration: none;
}

.prism-builder-blog .prism-blog-item-image {
    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #f3f3f3;
}

.prism-builder-blog .prism-blog-item-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.prism-builder-blog .prism-blog-item:hover
.prism-blog-item-image img {
    transform: scale(1.04);
}

.prism-builder-blog .prism-blog-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #888;

    font-size: 13px;
}

.prism-builder-blog .prism-blog-item-content {
    flex: 0 0 auto;

    padding: 12px 14px 15px;
}

.prism-builder-blog .prism-blog-item-content h3 {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: var(--prism-text);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prism-builder-blog .prism-blog-item-category {
    display: inline-block;

    margin-top: 7px;

    color: var(--prism-primary);

    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================================
   15. BUILDER CONTENT GRID
   ========================================================================== */

.prism-builder-content-grid {
    width: 100%;
    margin: 40px 0;
}

.prism-builder-content-grid .prism-container {
    width: 100%;
    max-width: none;

    padding-inline: 0;
}


/* ==========================================================================
   16. ARCHIVE / POST LAYOUT
   ========================================================================== */

.prism-post-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;

    width: 100%;
    max-width: 1800px;

    margin-inline: auto;
    padding-inline: 40px;

    box-sizing: border-box;
}

.prism-post-content {
    flex: 1 1 auto;
    min-width: 0;
}

.prism-sidebar {
    position: sticky;
    top: 120px;

    flex: 0 0 340px;

    width: 340px;
    min-width: 0;

    align-self: flex-start;
}


/* --------------------------------------------------------------------------
   Archive Builder Sections
   -------------------------------------------------------------------------- */

.prism-post-content .prism-builder-content-list,
.prism-post-content .prism-builder-content-grid,
.prism-post-content .prism-builder-ad-banner,
.prism-post-content .prism-builder-ad-code {
    width: 100%;
    margin-bottom: 40px;
}

.prism-post-content .prism-builder-content-list .prism-container,
.prism-post-content .prism-builder-content-grid .prism-container,
.prism-post-content .prism-builder-ad-banner .prism-container,
.prism-post-content .prism-builder-ad-code .prism-container {
    width: 100%;
    max-width: none;

    padding-inline: 0;
}


/* --------------------------------------------------------------------------
   Archive Content List
   -------------------------------------------------------------------------- */

.prism-post-content .prism-content-list-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.prism-post-content .prism-builder-content-list .prism-content-card {
    min-height: 150px;
}

.prism-post-content .prism-builder-content-list .prism-content-card-image {
    width: 150px;
    height: 100px;
    flex-basis: 150px;
}


/* ==========================================================================
   17. SIDEBAR
   ========================================================================== */

.prism-sidebar-box {
    margin-bottom: 20px;
    padding: 20px;

    background: var(--prism-surface);
    border: 1px solid var(--prism-border);
    border-radius: 22px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.prism-sidebar-box h3 {
    margin: 0 0 16px;

    color: var(--prism-primary);

    font-size: 18px;
    font-weight: 700;
}

.prism-sidebar-box ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.prism-sidebar-box li {
    padding: 10px 0;

    border-bottom: 1px solid var(--prism-border);

    font-size: 14px;
}

.prism-sidebar-box li:last-child {
    border-bottom: none;
}

.prism-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prism-sidebar-tags a {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    border-radius: 30px;

    background: var(--prism-surface-soft);
    color: var(--prism-primary);

    font-size: 13px;
    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.prism-sidebar-tags a:hover {
    background: var(--prism-primary);
    color: #fff;
}

.prism-sidebar-box input {
    width: 100%;
    height: 42px;

    padding-inline: 14px;

    border: 1px solid var(--prism-border);
    border-radius: 12px;

    outline: none;

    background: var(--prism-surface);
    color: var(--prism-text);

    font-family: inherit;

    box-sizing: border-box;
}

.prism-sidebar-box input:focus {
    border-color: var(--prism-primary);
}


/* ==========================================================================
   18. SIDEBAR WIDGETS
   ========================================================================== */

.prism-sidebar-widget {
    margin-bottom: 32px;
    padding: 24px;

    background: var(--prism-surface);
    border: 1px solid var(--prism-border);
    border-radius: var(--radius-xl);
}

.prism-sidebar-widget-title {
    margin: 0 0 18px;

    color: var(--prism-text);

    font-size: 17px;
    font-weight: 700;
}

.prism-sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;

    list-style: none;

    margin: 0;
    padding: 0;
}

.prism-sidebar-recent-list li a {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.prism-sidebar-recent-thumb {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    overflow: hidden;

    border-radius: 12px;
}

.prism-sidebar-recent-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.prism-sidebar-recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.prism-sidebar-recent-title {
    display: -webkit-box;

    overflow: hidden;

    color: var(--prism-text);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prism-sidebar-recent-date {
    color: var(--prism-text-muted);
    font-size: 12px;
}

.prism-sidebar-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* ==========================================================================
   19. SIDEBAR ADVERTISEMENT
   ========================================================================== */

.prism-sidebar-ad {
    padding: 0;
    overflow: hidden;
}

.prism-sidebar-ad img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 22px;
}


/* ==========================================================================
   20. AD BANNER
   ========================================================================== */

.prism-builder-ad-banner {
    width: 100%;
    margin: 40px 0;
}

.prism-builder-ad-banner .prism-ad-box {
    display: block;

    width: 100%;

    overflow: hidden;

    border-radius: 20px;

    background: var(--prism-surface-soft);

    text-align: center;
}

.prism-builder-ad-banner .prism-ad-box img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 20px;

    transition: transform 0.3s ease;
}

.prism-builder-ad-banner .prism-ad-box a:hover img {
    transform: scale(1.02);
}


/* ==========================================================================
   21. AD CODE
   ========================================================================== */

.prism-builder-ad-code {
    width: 100%;
}

.prism-ad-code-box {
    width: 100%;

    padding: 28px 24px;

    overflow: hidden;

    border: 1px solid var(--prism-primary);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #0F4C3A 0%,
            #3E7A5B 100%
        );

    color: #F1F7F3;

    text-align: center;

    box-sizing: border-box;
}

.prism-ad-title {
    margin-bottom: 14px;

    color: #BFE3CD;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prism-content-grid > .prism-builder-ad-code {
    grid-column: 1 / -1;
}


/* ==========================================================================
   22. SINGLE POST HERO
   ========================================================================== */

.prism-post-hero {
    position: relative;

    width: 100%;

    margin-top: 46px;
    margin-bottom: 35px;

    overflow: hidden;

    border-radius: 28px;
}

.prism-post-hero > img {
    display: block;

    width: 100%;
    height: 420px;

    object-fit: cover;

    border-radius: 28px;
}


/* ==========================================================================
   23. SINGLE POST GLASS OVERLAY
   ========================================================================== */

.prism-post-overlay {
    position: absolute;

    left: 50%;
    bottom: 35px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    grid-template-rows:
        auto auto;

    width: 75%;
    max-width: 1200px;

    padding: 20px 32px;

    transform: translateX(-50%);

    column-gap: 25px;
    row-gap: 8px;

    background: rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18);

    color: #111;

    box-sizing: border-box;
}

.prism-post-overlay .prism-post-title {
    grid-column: 1;
    grid-row: 1;

    min-width: 0;

    margin: 0;

    overflow: hidden;

    color: #000;

    font-size: 28px;
    font-weight: 800;
    line-height: 1.5;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.prism-post-overlay-meta {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    align-items: center;
    gap: 15px;

    margin: 0;

    color: #222;

    font-size: 13px;

    white-space: nowrap;
}

.prism-post-overlay-excerpt {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;
    min-width: 0;

    margin: 5px 0 0;

    overflow: hidden;

    color: #222;

    font-size: 14px;
    line-height: 1.9;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ==========================================================================
   24. SINGLE POST CONTENT
   ========================================================================== */

.prism-post-header {
    margin-bottom: 30px;
}

.prism-post-title {
    margin: 0 0 12px;

    color: var(--prism-text);

    font-size: 34px;
    font-weight: 800;
    line-height: 1.4;
}

.prism-post-featured-image {
    margin: 40px 0 35px;
}

.prism-post-featured-image img {
    display: block;

    width: 100%;
    max-height: 480px;

    object-fit: cover;

    border-radius: 28px;
}

.prism-post-excerpt {
    margin: 0 0 24px;

    padding-inline-start: 16px;

    border-inline-start:
        3px solid var(--prism-primary);

    color: var(--prism-text-soft);

    font-size: 18px;
    line-height: 2;
}

.prism-post-body {
    margin-bottom: 20px;
    padding: 40px;

    background: var(--prism-surface);

    border: 1px solid var(--prism-border);
    border-radius: 28px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.06);

    color: var(--prism-text);

    font-size: 17px;
    line-height: 2.2;
}

.prism-post-body h1,
.prism-post-body h2,
.prism-post-body h3,
.prism-post-body h4 {
    margin-top: 35px;
    margin-bottom: 18px;

    color: var(--prism-text);

    line-height: 1.6;
}

.prism-post-body p {
    margin-bottom: 22px;
}

.prism-post-body ul,
.prism-post-body ol {
    margin-bottom: 25px;
    padding-right: 25px;
}

.prism-post-body li {
    margin-bottom: 10px;
}

.prism-post-body img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 25px auto;

    border-radius: 18px;
}

.prism-post-body blockquote {
    margin: 25px 0;
    padding: 15px 20px;

    border-right:
        4px solid var(--prism-primary);

    border-radius: 15px;

    background: var(--prism-surface-soft);
}


/* ==========================================================================
   25. POST TAXONOMY
   ========================================================================== */

.prism-post-taxonomy {
    margin-top: 25px;
}

.prism-post-taxonomy-box {
    display: flex;
    align-items: stretch;
    gap: 20px;

    width: 100%;

    margin-top: 25px;
    padding: 16px;

    background: var(--prism-background);

    border: 1px solid var(--prism-border);
    border-radius: 22px;

    box-sizing: border-box;
}

.prism-post-taxonomy-box .prism-taxonomy-card {
    display: flex;
    align-items: center;

    flex: 1 1 0;

    gap: 12px;

    min-width: 0;
    min-height: 55px;

    padding: 10px 18px;

    background: var(--prism-surface);

    border: 1px solid var(--prism-border);
    border-radius: 18px;

    box-sizing: border-box;
}

.prism-post-taxonomy-box .prism-taxonomy-card:nth-child(1) {
    background: rgba(15, 76, 58, 0.08);
}

.prism-post-taxonomy-box .prism-taxonomy-card:nth-child(2) {
    background: rgba(212, 175, 55, 0.10);
}

.prism-post-taxonomy-box .prism-taxonomy-title {
    flex: 0 0 auto;

    margin: 0;

    color: var(--prism-primary);

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.prism-post-taxonomy-box .taxonomy-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    min-width: 0;
}

.prism-post-taxonomy-box .prism-badge {
    flex: 0 0 auto;

    padding: 5px 12px;

    border-radius: 30px;

    font-size: 12px;

    white-space: nowrap;
}


/* ==========================================================================
   26. BANNER SLIDER
   ========================================================================== */

.prism-banner-slider {
    position: relative;

    width: 100%;

    margin: 12px 0 0;
    padding: 0;

    overflow: hidden;

    direction: rtl;

    box-sizing: border-box;
}

.prism-banner-slider *,
.prism-banner-slider *::before,
.prism-banner-slider *::after {
    box-sizing: border-box;
}

.prism-banner-slider-header {
    width: 100%;
    margin: 0 0 16px;
}

.prism-banner-slider-title {
    margin: 0;
    padding: 0;

    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
}

.prism-banner-slider-viewport {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 18px;

    background: #f3f4f6;
}

.prism-banner-slider-track {
    position: relative;

    display: flex;

    width: 100%;

    direction: ltr;

    transition: transform 0.5s ease;

    will-change: transform;
}

.prism-banner-slider-slide {
    position: relative;

    flex: 0 0 100%;

    width: 100%;
    min-width: 100%;

    overflow: hidden;

    background: #111827;
}

.prism-banner-slider-image {
    display: block;

    width: 100%;

    height: auto;

    min-height: 260px;
    max-height: 700px;

    object-fit: cover;
}

.prism-banner-slider-content {
    position: absolute;

    top: 18%;
    right: 6%;

    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    width: min(520px, 42%);

    padding: 0;

    color: #fff;

    direction: rtl;
    text-align: right;
}

.prism-banner-slider-slide-title {
    margin: 0 0 10px;

    color: #fff;

    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.5;

    direction: rtl;
    text-align: right;
}

.prism-banner-slider-description {
    width: 100%;
    max-width: 760px;

    margin: 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 1rem;
    line-height: 1.9;

    direction: rtl;
    text-align: justify;

    white-space: normal;
}

.prism-banner-slider-content .prism-btn {
    align-self: center;

    margin-top: 18px;

    background:
        var(
            --primary-color,
            var(
                --color-primary,
                #2563eb
            )
        );

    color: #fff;

    border-color:
        var(
            --primary-color,
            var(
                --color-primary,
                #2563eb
            )
        );

    direction: rtl;
    text-align: center;
}

.prism-banner-slider-content .prism-btn:hover {
    background:
        var(
            --primary-dark,
            var(
                --color-primary-dark,
                #1d4ed8
            )
        );

    border-color:
        var(
            --primary-dark,
            var(
                --color-primary-dark,
                #1d4ed8
            )
        );
}


/* --------------------------------------------------------------------------
   Banner Slider Navigation
   -------------------------------------------------------------------------- */

.prism-banner-slider-prev,
.prism-banner-slider-next {
    position: absolute;
    top: 50%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.42);
    color: #fff;

    font-family: inherit;
    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.prism-banner-slider-prev {
    right: 18px;
}

.prism-banner-slider-next {
    left: 18px;
}

.prism-banner-slider-prev:hover,
.prism-banner-slider-next:hover {
    background: rgba(0, 0, 0, 0.68);

    transform:
        translateY(-50%)
        scale(1.05);
}

.prism-banner-slider-prev:focus-visible,
.prism-banner-slider-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   Banner Pagination
   -------------------------------------------------------------------------- */

.prism-banner-slider-pagination {
    position: absolute;

    right: 0;
    bottom: 18px;
    left: 0;

    z-index: 6;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    direction: ltr;
}

.prism-banner-slider-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    cursor: pointer;

    transition:
        width 0.2s ease,
        background-color 0.2s ease;
}

.prism-banner-slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.prism-banner-slider-dot.is-active {
    width: 24px;

    border-radius: 999px;

    background: #fff;
}


/* ==========================================================================
   27. EDITORIAL CARD
   ========================================================================== */

.prism-editorial-card {
    position: relative;

    min-width: 0;

    direction: rtl;
}


/* --------------------------------------------------------------------------
   Editorial Card
   -------------------------------------------------------------------------- */

.prism-editorial-card-link {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr);

    min-height: 330px;

    overflow: hidden;

    color: inherit;
    text-decoration: none;

    background: var(--prism-surface);

    border: 1px solid var(--prism-border);
    border-radius: 6px;

    box-shadow:
        0 8px 24px rgba(15, 76, 58, 0.045);

    transition:
        transform .45s cubic-bezier(.22, .61, .36, 1),
        box-shadow .45s ease,
        border-color .35s ease;
}

.prism-editorial-card-link:hover {
    transform: translateY(-7px);

    border-color:
        rgba(15, 76, 58, .22);

    box-shadow:
        0 22px 48px rgba(15, 76, 58, .12);
}


/* --------------------------------------------------------------------------
   Editorial Image
   -------------------------------------------------------------------------- */

.prism-editorial-card-media {
    position: relative;

    min-width: 0;
    min-height: 330px;

    overflow: hidden;

    background: #e9ece8;
}

.prism-editorial-card-media::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(8, 45, 36, 0.04),
            rgba(8, 45, 36, 0.16)
        );

    opacity: .55;

    transition: opacity .5s ease;
}

.prism-editorial-card-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1);

    transition:
        transform .8s cubic-bezier(.22, .61, .36, 1),
        filter .5s ease;
}

.prism-editorial-card-link:hover
.prism-editorial-card-media img {
    transform: scale(1.055);

    filter:
        saturate(1.04)
        contrast(1.02);
}

.prism-editorial-card-link:hover
.prism-editorial-card-media::after {
    opacity: .25;
}


/* --------------------------------------------------------------------------
   Editorial Placeholder
   -------------------------------------------------------------------------- */

.prism-editorial-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    min-height: 330px;

    background:
        linear-gradient(
            135deg,
            var(--prism-primary),
            var(--prism-primary-dark)
        );

    color: rgba(255, 255, 255, .88);

    font-size: 24px;
    font-weight: 800;
}


/* --------------------------------------------------------------------------
   Editorial Body
   -------------------------------------------------------------------------- */

.prism-editorial-card-body {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding:
        46px
        46px
        42px
        42px;

    background: var(--prism-surface);
}


/* --------------------------------------------------------------------------
   Editorial Category
   -------------------------------------------------------------------------- */

.prism-editorial-card-category {
    width: fit-content;

    margin-bottom: 17px;

    color: var(--prism-primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .03em;
}

.prism-editorial-card-category::before {
    content: "";

    display: inline-block;

    width: 24px;
    height: 1px;

    margin-left: 9px;

    vertical-align: middle;

    background: var(--prism-primary);

    transition:
        width .4s cubic-bezier(.22, .61, .36, 1);
}

.prism-editorial-card-link:hover
.prism-editorial-card-category::before {
    width: 38px;
}


/* --------------------------------------------------------------------------
   Editorial Title
   -------------------------------------------------------------------------- */

.prism-editorial-card-title {
    max-width: 520px;

    margin: 0;

    color: var(--prism-text);

    font-size:
        clamp(20px, 2vw, 29px);

    font-weight: 800;
    line-height: 1.75;

    transition: color .3s ease;
}

.prism-editorial-card-link:hover
.prism-editorial-card-title {
    color: var(--prism-primary);
}


/* --------------------------------------------------------------------------
   Editorial Excerpt
   -------------------------------------------------------------------------- */

.prism-editorial-card-excerpt {
    display: -webkit-box;

    max-width: 500px;

    margin: 16px 0 0;

    overflow: hidden;

    color: var(--prism-text-soft);

    font-size: 13px;
    line-height: 2;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* --------------------------------------------------------------------------
   Editorial Footer
   -------------------------------------------------------------------------- */

.prism-editorial-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 30px;
}

.prism-editorial-card-date {
    color: var(--prism-text-muted);

    font-size: 11px;
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   Editorial Action
   -------------------------------------------------------------------------- */

.prism-editorial-card-action {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    min-width: 92px;
    height: 40px;
}

.prism-editorial-card-action-line {
    display: block;

    width: 52px;
    height: 1px;

    background: var(--prism-primary);

    transform-origin: right center;

    transition:
        width .45s cubic-bezier(.22, .61, .36, 1);
}

.prism-editorial-card-action-arrow {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: var(--prism-primary);

    font-size: 22px;
    font-weight: 400;

    line-height: 1;

    transition:
        transform .45s cubic-bezier(.22, .61, .36, 1);
}

.prism-editorial-card-action-arrow::before {
    content: "";

    width: 11px;
    height: 11px;

    border-top:
        1.5px solid var(--prism-primary);

    border-right:
        1.5px solid var(--prism-primary);

    transform: rotate(45deg);

    transition:
        transform .45s cubic-bezier(.22, .61, .36, 1);
}

.prism-editorial-card-link:hover
.prism-editorial-card-action-line {
    width: 30px;
}

.prism-editorial-card-link:hover
.prism-editorial-card-action-arrow {
    transform:
        translate(6px, -6px);
}

.prism-editorial-card-link:hover
.prism-editorial-card-action-arrow::before {
    transform:
        rotate(45deg)
        translate(3px, -3px);
}


/* --------------------------------------------------------------------------
   Editorial Geometry
   -------------------------------------------------------------------------- */

.prism-editorial-card-geometry {
    position: absolute;

    left: calc(50% - 20px);
    bottom: -1px;

    z-index: 6;

    width: 108px;
    height: 108px;

    pointer-events: none;
}

.prism-editorial-card-geometry .line {
    position: absolute;

    display: block;

    height: 1px;

    background: var(--prism-primary);

    transform-origin: right center;

    opacity: .55;

    transition:
        transform .55s cubic-bezier(.22, .61, .36, 1),
        opacity .35s ease,
        width .45s ease;
}

.prism-editorial-card-geometry .line-1 {
    right: 0;
    bottom: 13px;

    width: 104px;

    transform: rotate(-45deg);
}

.prism-editorial-card-geometry .line-2 {
    right: 0;
    bottom: 34px;

    width: 76px;

    transform: rotate(-45deg);

    opacity: .34;
}

.prism-editorial-card-geometry .line-3 {
    right: 0;
    bottom: 55px;

    width: 48px;

    transform: rotate(-45deg);

    opacity: .18;
}

.prism-editorial-card-link:hover
.prism-editorial-card-geometry .line-1 {
    transform:
        rotate(-45deg)
        translateX(9px);

    opacity: .9;
}

.prism-editorial-card-link:hover
.prism-editorial-card-geometry .line-2 {
    transform:
        rotate(-45deg)
        translateX(15px);

    opacity: .5;
}

.prism-editorial-card-link:hover
.prism-editorial-card-geometry .line-3 {
    transform:
        rotate(-45deg)
        translateX(21px);

    opacity: .28;
}


/* ==========================================================================
   28. PAGE BUILDER — COLUMN RESPONSIVENESS
   Based on actual column width, not viewport width.
   ========================================================================== */

@container pb-column (max-width: 640px) {
    .prism-content-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@container pb-column (max-width: 420px) {
    .prism-content-grid {
        grid-template-columns:
            1fr !important;
    }

    .parham-post-slider__slide {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}


/* ==========================================================================
   29. PAGE BUILDER — FULL HEIGHT WIDGETS
   ========================================================================== */

.page-builder-column .prism-builder-content-grid,
.page-builder-column .prism-builder-content-grid .prism-container {
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;
}

.page-builder-column .prism-content-grid {
    flex: 1 1 auto;
    align-items: stretch;
}

.page-builder-column .prism-content-card {
    height: 100%;

    display: flex;
    flex-direction: column;
}

.page-builder-column .prism-content-card-link,
.page-builder-column .prism-content-card > a {
    display: flex;
    flex-direction: column;

    height: 100%;
}

.page-builder-column .prism-content-card-body {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
}

.page-builder-column .prism-content-card-excerpt {
    flex: 1 1 auto;
}

.page-builder-column .prism-content-card-bottom {
    margin-top: auto;
}


/* ==========================================================================
   30. PAGE BUILDER — POST SLIDER
   ========================================================================== */

.page-builder-column .parham-post-slider {
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;

    margin: 0;
}

.page-builder-column .parham-post-slider__viewport,
.page-builder-column .parham-post-slider__track {
    flex: 1 1 auto;
}

.page-builder-column .parham-post-card {
    height: 100%;

    display: flex;
    flex-direction: column;
}

.page-builder-column .parham-post-card__body {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
}

.page-builder-column .parham-post-card__meta {
    margin-top: auto;
}


/* ==========================================================================
   31. PAGE BUILDER — FLEXIBLE IMAGE HEIGHT
   ========================================================================== */

.page-builder-column .prism-content-card-media {
    aspect-ratio: auto !important;

    flex: 1 1 auto;

    min-height: 140px;
}

.page-builder-column .parham-post-card__image {
    aspect-ratio: auto !important;

    flex: 1 1 auto;

    min-height: 140px;
}


/* ==========================================================================
   32. PAGE BUILDER — BLOG GRID STRETCH
   ========================================================================== */

.page-builder-column .prism-builder-blog .prism-container {
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;
}

.page-builder-column .prism-blog-grid {
    flex: 1 1 auto;

    align-items: stretch;
}

.page-builder-column .prism-blog-item {
    height: 100%;

    display: flex;
    flex-direction: column;
}

.page-builder-column .prism-blog-item-link {
    display: flex;
    flex-direction: column;

    height: 100%;
}

.page-builder-column .prism-blog-item-content {
    flex: 0 0 auto;
}

.page-builder-column .prism-blog-item-image {
    aspect-ratio: auto !important;

    flex: 1 1 auto;

    min-height: 140px;
}


/* ==========================================================================
   33. PAGE BUILDER — BANNER SLIDER
   ========================================================================== */

.page-builder-column .prism-banner-slider {
    width: 100%;
    min-width: 0;
}

.page-builder-column .prism-banner-slider-viewport {
    width: 100%;
    height: 600px;
    min-height: 600px;
    max-height: 600px;

    overflow: hidden;
    position: relative;

    display: block;
}

.page-builder-column .prism-banner-slider-track {
    width: 100%;
    height: 100%;

    display: flex;
}

.page-builder-column .prism-banner-slider-slide {
    position: relative;

    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;

    overflow: hidden;
}

.page-builder-column .prism-banner-slider-image {
    display: block;

    width: 100%;
    height: 100% !important;

    min-height: 0 !important;
    max-height: none !important;

    object-fit: cover;
}

/* ==========================================================================
   34. RESPONSIVE — LARGE
   ========================================================================== */

@media (max-width: 1400px) {

    .prism-post-layout {
        padding-inline: 20px;
    }
}


/* ==========================================================================
   35. RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 1200px) {

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

@media (max-width: 1100px) {

    .prism-post-layout {
        gap: 25px;
    }

    .prism-sidebar {
        flex-basis: 280px;
        width: 280px;
    }

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


/* ==========================================================================
   36. RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    /* ----------------------------------------------------------------------
       Builder
       ---------------------------------------------------------------------- */

    .page-builder,
    .page-builder-renderer {
        padding-inline: 15px;
    }

    .page-builder .page-builder-row,
    .page-builder-renderer .page-builder-row {
        grid-template-columns: 1fr !important;

        width: 100%;

        gap: 16px;
    }

    .page-builder .page-builder-row > .page-builder-column,
    .page-builder-renderer .page-builder-row > .page-builder-column {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* ----------------------------------------------------------------------
       Cards
       ---------------------------------------------------------------------- */

    .prism-card,
    .prism-content-box {
        padding: var(--space-4);
    }


    /* ----------------------------------------------------------------------
       Builder Hero
       ---------------------------------------------------------------------- */

    .prism-builder-hero {
        margin: 25px 0;
    }

    .prism-builder-hero .prism-container {
        width: 100%;
        max-width: none;

        padding-inline: 0;
    }

    .prism-builder-hero img {
        height: 260px;

        border-radius: 20px;
    }


    /* ----------------------------------------------------------------------
       Archive
       ---------------------------------------------------------------------- */

    .prism-post-layout {
        flex-direction: column;

        width: 100%;

        padding-inline: 15px;
    }

    .prism-post-content {
        width: 100%;
    }

    .prism-sidebar {
        position: static;

        width: 100%;

        flex: none;

        order: 2;
    }


    /* ----------------------------------------------------------------------
       Content List
       ---------------------------------------------------------------------- */

    .prism-builder-content-list .prism-content-card {
        height: auto;

        flex-direction: column;
        align-items: stretch;
    }

    .prism-builder-content-list .prism-content-card-image {
        width: 100%;
        height: 180px;

        flex: 0 0 auto;
    }


    /* ----------------------------------------------------------------------
       Blog
       ---------------------------------------------------------------------- */

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

        gap: 14px;
    }

    .prism-builder-blog .prism-blog-item-content {
        padding: 11px 12px 13px;
    }


    /* ----------------------------------------------------------------------
       Banner Slider
       ---------------------------------------------------------------------- */

    .prism-banner-slider-viewport {
        border-radius: 12px;
    }

    .prism-banner-slider-image {
        min-height: 220px;
        max-height: 500px;
    }

    .prism-banner-slider-content {
        top: 18%;
        right: 20px;

        width: min(520px, calc(100% - 40px));
    }

    .prism-banner-slider-slide-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .prism-banner-slider-description {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .prism-banner-slider-prev,
    .prism-banner-slider-next {
        width: 38px;
        height: 38px;

        font-size: 27px;
    }

    .prism-banner-slider-prev {
        right: 10px;
    }

    .prism-banner-slider-next {
        left: 10px;
    }

    .prism-banner-slider-pagination {
        bottom: 10px;
    }


    /* ----------------------------------------------------------------------
       Single Post Hero
       ---------------------------------------------------------------------- */

    .prism-post-hero {
        margin-top: 30px;
    }

    .prism-post-hero > img {
        height: 320px;
    }


    /* ----------------------------------------------------------------------
       Overlay
       ---------------------------------------------------------------------- */

    .prism-post-overlay {
        right: 15px;
        left: 15px;
        bottom: 15px;

        width: auto;
        max-width: none;

        grid-template-columns: 1fr;
        grid-template-rows:
            auto auto auto;

        padding: 18px;

        transform: none;
    }

    .prism-post-overlay .prism-post-title {
        grid-column: 1;
        grid-row: 1;

        white-space: normal;

        font-size: 22px;
    }

    .prism-post-overlay-meta {
        grid-column: 1;
        grid-row: 2;

        flex-wrap: wrap;

        white-space: normal;
    }

    .prism-post-overlay-excerpt {
        grid-column: 1;
        grid-row: 3;

        white-space: normal;
    }


    /* ----------------------------------------------------------------------
       Post Body
       ---------------------------------------------------------------------- */

    .prism-post-body {
        padding: 22px;

        border-radius: 20px;

        font-size: 15px;
    }


    /* ----------------------------------------------------------------------
       Taxonomy
       ---------------------------------------------------------------------- */

    .prism-post-taxonomy-box {
        flex-direction: column;

        padding: 12px;
    }

    .prism-post-taxonomy-box .prism-taxonomy-card {
        width: 100%;
    }

    .prism-post-taxonomy-box .taxonomy-items {
        flex-wrap: wrap;
    }


    /* ----------------------------------------------------------------------
       Editorial Card
       ---------------------------------------------------------------------- */

    .prism-editorial-card-link {
        grid-template-columns: 1fr;

        min-height: 0;
    }

    .prism-editorial-card-media {
        min-height: 250px;

        aspect-ratio: 16 / 10;
    }

    .prism-editorial-card-body {
        padding:
            30px
            26px
            32px;
    }

    .prism-editorial-card-geometry {
        left: auto;
        right: 20px;
        bottom: -2px;
    }
}


/* ==========================================================================
   37. RESPONSIVE — SMALL MOBILE
   ========================================================================== */

@media (max-width: 520px) {

    .prism-builder-blog .prism-blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .prism-builder-content-list .prism-content-card-image {
        height: 180px;
    }

    .prism-content-card-media {
        height: 180px;
    }

    .prism-banner-slider-image {
        min-height: 190px;
    }

    .prism-banner-slider-content {
        top: 15%;
        right: 15px;

        width: calc(100% - 30px);
    }

    .prism-banner-slider-description {
        display: none;
    }

    .prism-banner-slider-prev,
    .prism-banner-slider-next {
        width: 34px;
        height: 34px;

        font-size: 24px;
    }

    .prism-editorial-card-media {
        min-height: 210px;
    }

    .prism-editorial-card-body {
        padding:
            24px
            20px
            26px;
    }

    .prism-editorial-card-title {
        font-size: 20px;
    }

    .prism-editorial-card-footer {
        margin-top: 24px;
    }

    .prism-editorial-card-action {
        min-width: 72px;
    }

    .prism-editorial-card-geometry {
        width: 82px;
        height: 82px;
    }
}


/* ==========================================================================
   38. CONTENT CARD — ARROW DISABLED
   ========================================================================== */

.prism-content-card-arrow {
    display: none !important;
}


/* ==========================================================================
   39. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .prism-btn,
    .prism-card,
    .prism-media img,
    .prism-content-card,
    .prism-content-card-media img,
    .prism-content-card-overlay,
    .prism-content-card-line,
    .prism-content-card-title,
    .prism-banner-slider-track,
    .prism-banner-slider-prev,
    .prism-banner-slider-next,
    .prism-banner-slider-dot,
    .prism-editorial-card-link,
    .prism-editorial-card-media img,
    .prism-editorial-card-media::after,
    .prism-editorial-card-title,
    .prism-editorial-card-category::before,
    .prism-editorial-card-action-line,
    .prism-editorial-card-action-arrow,
    .prism-editorial-card-geometry .line {
        transition: none;
    }
}


/* ==========================================================================
   PARHAM PRISM — Banner Slider Content Position
   ========================================================================== */

.prism-banner-slider-content {
    top: 50% !important;
    right: auto !important;
    left: 9% !important;
    transform: translateY(-50%) !important;
}


/* ==========================================================================
   PARHAM PRISM — Banner Slider Content Position / RTL
   ========================================================================== */

.prism-banner-slider-content {
    top: 55% !important;
    right: 6% !important;
    left: auto !important;

    transform: translateY(-50%) !important;

    direction: rtl !important;
    text-align: right !important;

    align-items: flex-start !important;
}

.prism-banner-slider-slide-title,
.prism-banner-slider-description {
    direction: rtl !important;
    text-align: right !important;
}


/* ==========================================================================
   PARHAM PRISM
   PAGE BUILDER — POST DISPLAY
   Independent horizontal post cards
   ========================================================================== */

.prism-builder-post-display {
    width: 100%;
    min-width: 0;
    direction: rtl;
    box-sizing: border-box;
}

.prism-builder-post-display,
.prism-builder-post-display *,
.prism-builder-post-display *::before,
.prism-builder-post-display *::after {
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.prism-builder-post-display-header {
    width: 100%;
    margin: 0 0 16px;
}

.prism-builder-post-display-header
.prism-builder-post-display-title {
    margin: 0;
    padding: 0;

    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.6;

    text-align: right;
}


/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.prism-post-display-grid {
    display: grid;

    grid-template-columns:
        repeat(
            var(--post-display-columns, 3),
            minmax(0, 1fr)
        );

    gap: 18px;

    width: 100%;
    min-width: 0;

    align-items: stretch;
}


/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.prism-post-display-card {
    position: relative;

    display: flex;

    width: 100%;
    min-width: 0;
    height: 100%;

    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.prism-post-display-card:hover {
    transform: translateY(-3px);

    border-color: rgba(15, 76, 58, 0.25);

    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.12);
}


/* --------------------------------------------------------------------------
   Link
   -------------------------------------------------------------------------- */

.prism-post-display-link {
    display: grid;

    grid-template-columns:
        minmax(120px, 42%)
        minmax(0, 58%);

    width: 100%;
    min-width: 0;
    height: 100%;

    color: inherit;
    text-decoration: none;

    direction: ltr;
}


/* --------------------------------------------------------------------------
   Image
   -------------------------------------------------------------------------- */

.prism-post-display-media {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 180px;

    overflow: hidden;

    background: #eef2f1;

    direction: ltr;
}

.prism-post-display-media img {
    display: block;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.prism-post-display-card:hover
.prism-post-display-media img {
    transform: scale(1.045);
}


/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */

.prism-post-display-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    min-height: 180px;

    background:
        linear-gradient(
            135deg,
            #eef2f1,
            #dfe8e5
        );

    color: #0f4c3a;

    font-size: 1.2rem;
    font-weight: 800;
}


/* --------------------------------------------------------------------------
   Category
   -------------------------------------------------------------------------- */

.prism-post-display-category {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 3;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    max-width: calc(100% - 28px);

    padding: 6px 11px;

    border-radius: 999px;

    background: rgba(15, 76, 58, 0.92);

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */

.prism-post-display-body {
    display: flex;

    flex-direction: column;

    min-width: 0;
    min-height: 0;

    height: 100%;

    padding: 22px 20px;

    direction: rtl;
    text-align: right;
}


/* --------------------------------------------------------------------------
   Meta
   -------------------------------------------------------------------------- */

.prism-post-display-meta {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin: 0 0 11px;

    color: #7b8794;

    font-size: 11px;
    line-height: 1.7;
}

.prism-post-display-meta-dot {
    opacity: 0.55;
}


/* --------------------------------------------------------------------------
   Title
   -------------------------------------------------------------------------- */

.prism-post-display-body
.prism-post-display-title {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: #14201c;

    font-size: clamp(
        1rem,
        1.35vw,
        1.25rem
    );

    font-weight: 800;

    line-height: 1.75;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* --------------------------------------------------------------------------
   Excerpt
   -------------------------------------------------------------------------- */

.prism-post-display-excerpt {
    display: -webkit-box;

    margin: 12px 0 0;

    overflow: hidden;

    color: #66736e;

    font-size: 13px;
    line-height: 1.9;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


/* --------------------------------------------------------------------------
   Author
   -------------------------------------------------------------------------- */

.prism-post-display-author {
    margin-top: 10px;

    color: #697772;

    font-size: 12px;
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.prism-post-display-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
    padding-top: 18px;

    color: #0f4c3a;

    font-size: 12px;
    font-weight: 800;
}

.prism-post-display-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #f0f5f3;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.prism-post-display-card:hover
.prism-post-display-arrow {
    transform: translateX(-4px);

    background: #dfece7;
}


/* ==========================================================================
   Page Builder Column Compatibility
   ========================================================================== */

.page-builder-column
.prism-builder-post-display {
    width: 100%;
    min-width: 0;
}

.page-builder-column
.prism-post-display-grid {
    width: 100%;
    min-width: 0;
}


/* ==========================================================================
   Responsive — Medium
   ========================================================================== */

@media (max-width: 1100px) {

    .prism-post-display-link {
        grid-template-columns:
            minmax(105px, 40%)
            minmax(0, 60%);
    }

    .prism-post-display-body {
        padding: 18px 16px;
    }

    .prism-post-display-body
    .prism-post-display-title {
        font-size: 1rem;
    }

    .prism-post-display-excerpt {
        font-size: 12px;
        line-height: 1.8;
    }
}


/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

@media (max-width: 800px) {

    .prism-post-display-grid {
        grid-template-columns:
            repeat(
                min(
                    var(--post-display-columns, 2),
                    2
                ),
                minmax(0, 1fr)
            );
    }

    .prism-post-display-link {
        grid-template-columns:
            minmax(100px, 38%)
            minmax(0, 62%);
    }

    .prism-post-display-body {
        padding: 16px 14px;
    }

    .prism-post-display-excerpt {
        -webkit-line-clamp: 3;
    }
}


/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 600px) {

    .prism-post-display-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .prism-post-display-card {
        min-height: 190px;
    }

    .prism-post-display-link {
        grid-template-columns:
            minmax(110px, 36%)
            minmax(0, 64%);
    }

    .prism-post-display-media {
        min-height: 190px;
    }

    .prism-post-display-placeholder {
        min-height: 190px;
    }

    .prism-post-display-body {
        padding: 15px 14px;
    }

    .prism-post-display-body
    .prism-post-display-title {
        font-size: 0.95rem;

        -webkit-line-clamp: 3;
    }

    .prism-post-display-excerpt {
        margin-top: 8px;

        font-size: 11px;

        -webkit-line-clamp: 3;
    }

    .prism-post-display-footer {
        padding-top: 10px;
    }
}


/* ==========================================================================
   Very Small Screens
   ========================================================================== */

@media (max-width: 420px) {

    .prism-post-display-link {
        grid-template-columns:
            105px
            minmax(0, 1fr);
    }

    .prism-post-display-media {
        min-height: 170px;
    }

    .prism-post-display-placeholder {
        min-height: 170px;
    }

    .prism-post-display-body {
        padding: 13px 12px;
    }

    .prism-post-display-meta {
        font-size: 10px;
    }

    .prism-post-display-body
    .prism-post-display-title {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}


/* ==========================================================================
   PARHAM PRISM
   PAGE BUILDER — POST DISPLAY
   Independent horizontal post cards
   ========================================================================== */

.prism-builder-post-display {
    width: 100%;
    min-width: 0;
    direction: rtl;
    box-sizing: border-box;
}

.prism-builder-post-display,
.prism-builder-post-display *,
.prism-builder-post-display *::before,
.prism-builder-post-display *::after {
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.prism-builder-post-display-header {
    width: 100%;
    margin: 0 0 16px;
}

.prism-builder-post-display-header
.prism-builder-post-display-title {
    margin: 0;
    padding: 0;

    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.6;

    text-align: right;
}


/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.prism-post-display-grid {
    display: grid;

    grid-template-columns:
        repeat(
            var(--post-display-columns, 3),
            minmax(0, 1fr)
        );

    gap: 18px;

    width: 100%;
    min-width: 0;

    align-items: stretch;
}


/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.prism-post-display-card {
    position: relative;

    display: flex;

    width: 100%;
    min-width: 0;
    height: 100%;

    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.prism-post-display-card:hover {
    transform: translateY(-3px);

    border-color: rgba(15, 76, 58, 0.25);

    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.12);
}


/* --------------------------------------------------------------------------
   Link
   -------------------------------------------------------------------------- */

.prism-post-display-link {
    display: grid;

    grid-template-columns:
        minmax(120px, 42%)
        minmax(0, 58%);

    width: 100%;
    min-width: 0;
    height: 100%;

    color: inherit;
    text-decoration: none;

    direction: ltr;
}


/* --------------------------------------------------------------------------
   Image
   -------------------------------------------------------------------------- */

.prism-post-display-media {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 180px;

    overflow: hidden;

    background: #eef2f1;

    direction: ltr;
}

.prism-post-display-media img {
    display: block;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.prism-post-display-card:hover
.prism-post-display-media img {
    transform: scale(1.045);
}


/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */

.prism-post-display-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    min-height: 180px;

    background:
        linear-gradient(
            135deg,
            #eef2f1,
            #dfe8e5
        );

    color: #0f4c3a;

    font-size: 1.2rem;
    font-weight: 800;
}


/* --------------------------------------------------------------------------
   Category
   -------------------------------------------------------------------------- */

.prism-post-display-category {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 3;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    max-width: calc(100% - 28px);

    padding: 6px 11px;

    border-radius: 999px;

    background: rgba(15, 76, 58, 0.92);

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */

.prism-post-display-body {
    display: flex;

    flex-direction: column;

    min-width: 0;
    min-height: 0;

    height: 100%;

    padding: 22px 20px;

    direction: rtl;
    text-align: right;
}


/* --------------------------------------------------------------------------
   Meta
   -------------------------------------------------------------------------- */

.prism-post-display-meta {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin: 0 0 11px;

    color: #7b8794;

    font-size: 11px;
    line-height: 1.7;
}

.prism-post-display-meta-dot {
    opacity: 0.55;
}


/* --------------------------------------------------------------------------
   Title
   -------------------------------------------------------------------------- */

.prism-post-display-body
.prism-post-display-title {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: #14201c;

    font-size: clamp(
        1rem,
        1.35vw,
        1.25rem
    );

    font-weight: 800;

    line-height: 1.75;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* --------------------------------------------------------------------------
   Excerpt
   -------------------------------------------------------------------------- */

.prism-post-display-excerpt {
    display: -webkit-box;

    margin: 12px 0 0;

    overflow: hidden;

    color: #66736e;

    font-size: 13px;
    line-height: 1.9;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


/* --------------------------------------------------------------------------
   Author
   -------------------------------------------------------------------------- */

.prism-post-display-author {
    margin-top: 10px;

    color: #697772;

    font-size: 12px;
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.prism-post-display-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
    padding-top: 18px;

    color: #0f4c3a;

    font-size: 12px;
    font-weight: 800;
}

.prism-post-display-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #f0f5f3;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.prism-post-display-card:hover
.prism-post-display-arrow {
    transform: translateX(-4px);

    background: #dfece7;
}


/* ==========================================================================
   Page Builder Column Compatibility
   ========================================================================== */

.page-builder-column
.prism-builder-post-display {
    width: 100%;
    min-width: 0;
}

.page-builder-column
.prism-post-display-grid {
    width: 100%;
    min-width: 0;
}


/* ==========================================================================
   Responsive — Medium
   ========================================================================== */

@media (max-width: 1100px) {

    .prism-post-display-link {
        grid-template-columns:
            minmax(105px, 40%)
            minmax(0, 60%);
    }

    .prism-post-display-body {
        padding: 18px 16px;
    }

    .prism-post-display-body
    .prism-post-display-title {
        font-size: 1rem;
    }

    .prism-post-display-excerpt {
        font-size: 12px;
        line-height: 1.8;
    }
}


/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

@media (max-width: 800px) {

    .prism-post-display-grid {
        grid-template-columns:
            repeat(
                min(
                    var(--post-display-columns, 2),
                    2
                ),
                minmax(0, 1fr)
            );
    }

    .prism-post-display-link {
        grid-template-columns:
            minmax(100px, 38%)
            minmax(0, 62%);
    }

    .prism-post-display-body {
        padding: 16px 14px;
    }

    .prism-post-display-excerpt {
        -webkit-line-clamp: 3;
    }
}


/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 600px) {

    .prism-post-display-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .prism-post-display-card {
        min-height: 190px;
    }

    .prism-post-display-link {
        grid-template-columns:
            minmax(110px, 36%)
            minmax(0, 64%);
    }

    .prism-post-display-media {
        min-height: 190px;
    }

    .prism-post-display-placeholder {
        min-height: 190px;
    }

    .prism-post-display-body {
        padding: 15px 14px;
    }

    .prism-post-display-body
    .prism-post-display-title {
        font-size: 0.95rem;

        -webkit-line-clamp: 3;
    }

    .prism-post-display-excerpt {
        margin-top: 8px;

        font-size: 11px;

        -webkit-line-clamp: 3;
    }

    .prism-post-display-footer {
        padding-top: 10px;
    }
}


/* ==========================================================================
   Very Small Screens
   ========================================================================== */

@media (max-width: 420px) {

    .prism-post-display-link {
        grid-template-columns:
            105px
            minmax(0, 1fr);
    }

    .prism-post-display-media {
        min-height: 170px;
    }

    .prism-post-display-placeholder {
        min-height: 170px;
    }

    .prism-post-display-body {
        padding: 13px 12px;
    }

    .prism-post-display-meta {
        font-size: 10px;
    }

    .prism-post-display-body
    .prism-post-display-title {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}


/* ==========================================================================
   PARHAM PRISM — SIDEBAR LATEST POSTS
   ========================================================================== */

.prism-sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prism-sidebar-recent-list li {
    margin: 0;
    padding: 0;
}

.prism-sidebar-recent-list li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    box-sizing: border-box;
    text-decoration: none;
    background: var(--prism-background, #f8f6f1);
    border: 1px solid var(--prism-border);
    border-radius: 14px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.prism-sidebar-recent-list li > a:hover {
    transform: translateY(-2px);
    border-color: var(--prism-primary, #0f4c3a);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.prism-sidebar-recent-thumb {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 58px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--prism-surface);
}

.prism-sidebar-recent-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prism-sidebar-recent-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 6px;
}

.prism-sidebar-recent-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--prism-text, #222);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.prism-sidebar-recent-date {
    display: block;
    color: var(--prism-muted, #888);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .prism-sidebar-recent-list li > a {
        padding: 9px;
        gap: 10px;
    }

    .prism-sidebar-recent-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 54px;
    }

    .prism-sidebar-recent-title {
        font-size: 13px;
    }

    .prism-sidebar-recent-date {
        font-size: 10px;
    }

}
/* ==========================================================================
   PARHAM PAGE BUILDER — CONTENT GRID COLUMN OVERRIDE
   Keep Page Builder content grids independent from Category grid styles.
   ========================================================================== */

.page-builder .prism-content-grid {
    grid-template-columns:
        repeat(var(--grid-columns, 3), minmax(0, 1fr));
}


/* ==========================================================================
   PARHAM POST DISPLAY — DARK MODE
   ========================================================================== */

[data-theme="dark"] .prism-post-display-card {
    background: var(--prism-surface);
    border-color: var(--prism-border);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .prism-post-display-card:hover {
    border-color: rgba(91, 121, 103, 0.55);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.38);
}


/* ==========================================================================
   PARHAM POST DISPLAY — DARK MODE TYPOGRAPHY
   ========================================================================== */

[data-theme="dark"] .prism-post-display-card .prism-post-display-title,
[data-theme="dark"] .prism-post-display-card h2,
[data-theme="dark"] .prism-post-display-card h3,
[data-theme="dark"] .prism-post-display-card h4 {
    color: #F5F5F5 !important;
}

[data-theme="dark"] .prism-post-display-card .prism-post-display-excerpt,
[data-theme="dark"] .prism-post-display-card .prism-post-display-description,
[data-theme="dark"] .prism-post-display-card p {
    color: #C7CEC9 !important;
}

[data-theme="dark"] .prism-post-display-card .prism-post-display-meta,
[data-theme="dark"] .prism-post-display-card .prism-post-display-date,
[data-theme="dark"] .prism-post-display-card .prism-post-display-author {
    color: #89938D !important;
}


/* ==========================================================================
   PARHAM ARTICLE CONTENT — DARK MODE
   ========================================================================== */

[data-theme="dark"] .prism-post-content {
    color: #F5F5F5;
}

[data-theme="dark"] .prism-post-content h1,
[data-theme="dark"] .prism-post-content h2,
[data-theme="dark"] .prism-post-content h3,
[data-theme="dark"] .prism-post-content h4,
[data-theme="dark"] .prism-post-content h5,
[data-theme="dark"] .prism-post-content h6 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .prism-post-content p,
[data-theme="dark"] .prism-post-content li,
[data-theme="dark"] .prism-post-content dd,
[data-theme="dark"] .prism-post-content dt {
    color: #F5F5F5 !important;
}

[data-theme="dark"] .prism-post-content strong,
[data-theme="dark"] .prism-post-content b {
    color: #FFFFFF !important;
}

[data-theme="dark"] .prism-post-content a {
    color: #8FB9A1 !important;
}

[data-theme="dark"] .prism-post-content a:hover {
    color: #B8D8C4 !important;
}

[data-theme="dark"] .prism-post-content blockquote {
    color: #D9E2DD !important;
    border-color: #5B7967;
}

[data-theme="dark"] .prism-post-content table {
    color: #F5F5F5;
}

[data-theme="dark"] .prism-post-content th,
[data-theme="dark"] .prism-post-content td {
    color: #F5F5F5 !important;
    border-color: var(--prism-border);
}

[data-theme="dark"] .prism-post-content code,
[data-theme="dark"] .prism-post-content pre {
    color: #E6EEE9 !important;
}

[data-theme="dark"] .prism-post-content figcaption {
    color: #C7CEC9 !important;
}


/* ============================================================
   PARHAM — MOBILE POST CARD
   Hide short description, keep title/glass box
   ============================================================ */

@media (max-width: 768px) {

    .prism-post-display-excerpt {
        display: none !important;
    }

}


/* ============================================================
   PARHAM POST DISPLAY
   MOBILE — HIDE SHORT DESCRIPTION
   ============================================================ */

@media (max-width: 768px) {

    .prism-post-display-card .prism-post-display-excerpt,
    .prism-post-display-excerpt {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

}


/* ============================================================
   PARHAM — MOBILE POST DISPLAY
   Hide excerpt / short description
   Keep glass card and title
   ============================================================ */

@media (max-width: 768px) {

    .prism-post-display-card .prism-post-display-excerpt,
    .prism-post-display-card p.prism-post-display-excerpt {
        display: none !important;
        visibility: hidden !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

}
