/**
 * DzEdu - Main Frontend Stylesheet (RTL First, Modern Dark Slate)
 *
 * @package DzEdu
 */

:root {
    --dz-primary: #6D35E8;
    --dz-primary-hover: #5B21D6;
    --dz-primary-soft: #F3EEFF;
    --dz-secondary: #0d9488;
    --dz-bg-dark: #F6F7FB;
    --dz-bg-surface: #FFFFFF;
    --dz-card-bg: #FFFFFF;
    --dz-card-hover: #F6F7FB;
    --dz-border: #E7E9EF;
    --dz-border-highlight: #D1D5DB;
    --dz-text: #172033;
    --dz-text-muted: #667085;
    --dz-text-dim: #94A3B8;
    --dz-success: #16A34A;
    --dz-warning: #F59E0B;
    --dz-error: #EF4444;
    --dz-radius-sm: 6px;
    --dz-radius-md: 10px;
    --dz-radius-lg: 14px;
    --dz-radius-xl: 20px;
    --dz-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.03);
    --dz-shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --dz-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --dz-sidebar-width: 300px;
}

/* Base & Typography */
html {
    box-sizing: border-box;
    overflow-x: hidden;
    max-width: 100%;
}
*, *::before, *::after {
    box-sizing: inherit;
}
body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    background-color: var(--dz-bg-dark);
    color: var(--dz-text);
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.dz-container {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* Top Announcement Strip */
.dz-top-banner {
    background: linear-gradient(90deg, #581c87 0%, #6D35E8 50%, #4c1d95 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    padding: 9px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 50;
}
.dz-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.dz-banner-link {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.dz-banner-link:hover {
    opacity: 0.9;
}
.dz-banner-sparkle {
    font-size: 1.1rem;
}

/* Sticky Header */
.dz-navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(13, 19, 31, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--dz-border);
    padding: 10px 0;
}
.dz-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.dz-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dz-drawer-toggle-btn {
    display: none;
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    color: var(--dz-text);
    padding: 8px;
    border-radius: var(--dz-radius-md);
    cursor: pointer;
    transition: var(--dz-transition);
}
.dz-drawer-toggle-btn:hover {
    background: var(--dz-card-hover);
}
.dz-site-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.dz-brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dz-brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--dz-primary) 0%, #3b82f6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.dz-brand-text {
    display: flex;
    flex-direction: column;
}
.dz-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}
.dz-brand-tagline {
    font-size: 0.75rem;
    color: var(--dz-text-muted);
    font-weight: 500;
}
.dz-brand-logo {
    height: 42px;
    width: auto;
}
.dz-flag-badge {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

/* Nav Center: Search Bar */
.dz-nav-center {
    flex: 1;
    max-width: 520px;
}
.dz-nav-search-form {
    width: 100%;
}
.dz-search-input-group {
    display: flex;
    align-items: center;
    background: var(--dz-bg-surface);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-xl);
    padding: 4px 14px;
    transition: var(--dz-transition);
}
.dz-search-input-group:focus-within {
    border-color: var(--dz-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background: #151f33;
}
.dz-search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--dz-text);
    font-size: 0.92rem;
    padding: 6px 8px;
}
.dz-search-field::placeholder {
    color: var(--dz-text-dim);
}
.dz-search-submit-btn {
    background: transparent;
    border: none;
    color: var(--dz-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s;
}
.dz-search-submit-btn:hover {
    color: var(--dz-primary);
}

/* Nav Left: Account & Mobile Search */
.dz-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dz-mobile-search-btn {
    display: none;
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    color: var(--dz-text);
    padding: 8px;
    border-radius: var(--dz-radius-md);
    cursor: pointer;
}
.dz-btn-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #172033 0%, #334155 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--dz-radius-xl);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: var(--dz-transition);
}
.dz-btn-account:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* App Main Layout: RTL Desktop 2 Columns (Content + Right Sidebar) */
.dz-main-content-area {
    padding: 24px 0 48px;
}
.dz-app-layout {
    display: flex;
    gap: 20px;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 16px;
}
.dz-content-primary {
    flex: 1;
    min-width: 0;
}

/* Sidebar Styling (RTL Start / Right Docked) */
.dz-sidebar-panel {
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--dz-sidebar-width);
    flex-shrink: 0;
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-lg);
    padding: 20px 16px;
    box-shadow: var(--dz-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: flex-start;
    position: sticky;
    top: 80px;
}
.dz-drawer-header-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dz-border);
}
.dz-drawer-title {
    font-weight: 800;
    font-size: 1.1rem;
}
.dz-btn-close-drawer {
    background: transparent;
    border: none;
    color: var(--dz-text);
    cursor: pointer;
    padding: 4px;
}
.dz-sidebar-brand-box {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dz-border);
}
.dz-sidebar-logo-img {
    height: 48px;
    width: auto;
    margin: 0 auto 8px;
}
.dz-sidebar-site-tagline {
    font-size: 0.8rem;
    color: var(--dz-text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}
.dz-sidebar-motto-pill {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--dz-radius-xl);
    display: inline-block;
}

/* Sidebar Menu List */
.dz-sidebar-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dz-nav-item {
    border-radius: var(--dz-radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--dz-transition);
}
.dz-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--item-color, var(--dz-primary));
    transform: translateX(-3px);
}
.dz-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    gap: 10px;
    color: var(--dz-text);
}
.dz-nav-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
}
.dz-nav-badge-count {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E7E9EF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    font-feature-settings: "tnum";
}
.dz-nav-chevron {
    color: var(--dz-text-dim);
    display: flex;
    align-items: center;
}

/* Forum Button */
.dz-sidebar-cta-wrap {
    margin-top: 4px;
}
.dz-btn-forum {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: 1px solid #3b82f6;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: var(--dz-radius-md);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: var(--dz-transition);
}
.dz-btn-forum:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

/* Sidebar Bottom Toolbar */
.dz-sidebar-footer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--dz-border);
}
.dz-toolbar-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dz-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dz-text-muted);
    text-decoration: none;
    font-weight: 800;
    transition: var(--dz-transition);
}
.dz-toolbar-icon:hover {
    background: var(--dz-primary);
    color: #ffffff;
    border-color: var(--dz-primary);
    transform: scale(1.1);
}
.dz-icon-help {
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.3);
}

/* Hero Strip */
.dz-hero-strip {
    background: linear-gradient(135deg, #162035 0%, #1e2d4d 100%);
    border: 1px solid var(--dz-border-highlight);
    border-radius: var(--dz-radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--dz-shadow);
}
.dz-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}
.dz-hero-tagline {
    font-size: 0.95rem;
    color: var(--dz-text-muted);
}

/* Dynamic Cards Grid (The 4 Columns) */
.dz-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

/* Individual Card Styling */
.dz-home-card {
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--dz-shadow-card);
    transition: var(--dz-transition);
    position: relative;
}
.dz-home-card:hover {
    border-color: var(--sec-accent, var(--dz-primary));
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

/* Card Top Header */
.dz-card-top-header {
    padding: 12px 14px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.dz-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Card Media / Illustration */
.dz-card-media {
    background: #000000;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}
.dz-card-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.dz-home-card:hover .dz-card-illustration {
    transform: scale(1.04);
}

/* Card Links Body */
.dz-card-links-body {
    flex: 1;
    padding: 8px 0;
    background: var(--dz-bg-surface);
}
.dz-card-links-list {
    list-style: none;
}
.dz-link-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.dz-link-row:last-child {
    border-bottom: none;
}
.dz-link-anchor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    color: var(--dz-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--dz-transition);
}
.dz-link-anchor:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sec-accent, #60a5fa);
    padding-right: 18px;
}
.dz-link-arrow {
    color: var(--dz-text-dim);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}
.dz-link-anchor:hover .dz-link-arrow {
    transform: translateX(-4px);
    color: var(--sec-accent, #60a5fa);
}

/* Card Bottom Banner / Highlight Badge */
.dz-card-bottom-banner {
    text-align: center;
    padding: 10px 14px;
}
.dz-card-badge-link {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s;
}
.dz-card-badge-link:hover {
    opacity: 0.9;
}

/* Recent Educational Resources Grid */
.dz-recent-resources-section {
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-lg);
    padding: 22px;
    box-shadow: var(--dz-shadow);
}
.dz-section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--dz-border);
}
.dz-block-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dz-title-icon {
    color: var(--dz-primary);
}
.dz-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dz-primary);
    font-weight: 700;
    font-size: 0.9rem;
}
.dz-view-all-link:hover {
    color: #60a5fa;
}

.dz-materials-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.dz-material-card {
    background: var(--dz-bg-surface);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: var(--dz-transition);
}
.dz-material-card:hover {
    border-color: var(--dz-border-highlight);
    background: var(--dz-card-hover);
    transform: translateY(-2px);
}
.dz-mat-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dz-mat-stage-pill {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.dz-mat-solution-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.dz-mat-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}
.dz-mat-title a {
    color: var(--dz-text);
}
.dz-mat-title a:hover {
    color: var(--dz-primary);
}
.dz-mat-excerpt {
    font-size: 0.85rem;
    color: var(--dz-text-muted);
}
.dz-mat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
}
.dz-mat-date {
    color: var(--dz-text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}
.dz-mat-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dz-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--dz-transition);
}
.dz-mat-download-btn:hover {
    background: var(--dz-primary-hover);
}

/* Breadcrumbs */
.dz-breadcrumbs-wrap {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-md);
    padding: 8px 16px;
}
.dz-breadcrumbs {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
}
.dz-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dz-breadcrumb-item a {
    color: var(--dz-text-muted);
}
.dz-breadcrumb-item a:hover {
    color: var(--dz-primary);
}
.dz-breadcrumb-separator {
    color: var(--dz-text-dim);
    display: inline-flex;
    align-items: center;
}
.dz-breadcrumb-current {
    color: #ffffff;
    font-weight: 700;
}

/* Single Article Layout */
.dz-single-article {
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-lg);
    padding: 28px;
    box-shadow: var(--dz-shadow);
}
.dz-taxonomy-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.dz-pill {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.dz-pill-stage {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid #3b82f6;
    color: #93c5fd;
}
.dz-pill-grade {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
}
.dz-pill-subject {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fcd34d;
}
.dz-pill-solution {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #a855f7;
    color: #d8b4fe;
}
.dz-single-title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 16px;
}
.dz-single-meta-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--dz-text-muted);
    font-size: 0.9rem;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--dz-border);
    margin-bottom: 24px;
}
.dz-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dz-single-featured-media {
    margin-bottom: 24px;
    border-radius: var(--dz-radius-md);
    overflow: hidden;
}
.dz-single-hero-img {
    width: 100%;
    height: auto;
}
.dz-prose-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #E7E9EF;
    margin-bottom: 30px;
}
.dz-prose-content p {
    margin-bottom: 16px;
}

/* Download Box */
.dz-download-card-box {
    background: linear-gradient(135deg, #111e38 0%, #17284a 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--dz-radius-lg);
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.dz-download-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.dz-file-icon-badge {
    width: 56px;
    height: 56px;
    background: var(--dz-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}
.dz-download-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
}
.dz-download-specs {
    font-size: 0.88rem;
    color: #93c5fd;
    margin: 0;
}
.dz-download-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.dz-btn-download-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--dz-radius-md);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: var(--dz-transition);
}
.dz-btn-download-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}
.dz-btn-preview-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dz-bg-surface);
    border: 1px solid var(--dz-border-highlight);
    color: var(--dz-text);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--dz-radius-md);
    text-decoration: none;
    transition: var(--dz-transition);
}
.dz-btn-preview-secondary:hover {
    background: var(--dz-card-hover);
    border-color: #ffffff;
}

/* Social Share Bar */
.dz-share-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dz-bg-surface);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-md);
    padding: 12px 18px;
    margin: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.dz-share-label {
    font-weight: 700;
    font-size: 0.95rem;
}
.dz-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dz-share-btn {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    border: none;
    transition: var(--dz-transition);
}
.dz-share-wa { background: #25d366; }
.dz-share-fb { background: #1877f2; }
.dz-share-tg { background: #0088cc; }
.dz-share-copy { background: #475569; }
.dz-share-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Post Navigation */
.dz-post-nav-strip {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
    gap: 14px;
}
.dz-post-nav-col a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dz-primary);
    font-weight: 700;
    font-size: 0.92rem;
}
.dz-post-nav-col a:hover {
    color: #93c5fd;
}

/* Pagination */
.dz-pagination-wrap {
    margin: 30px 0;
    text-align: center;
}
.dz-pagination-wrap .nav-links {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.dz-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-md);
    color: var(--dz-text);
    text-decoration: none;
    font-weight: 700;
    transition: var(--dz-transition);
}
.dz-pagination-wrap .page-numbers.current,
.dz-pagination-wrap .page-numbers:hover {
    background: var(--dz-primary);
    border-color: var(--dz-primary);
    color: #ffffff;
}

/* Contact Page */
.dz-contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}
.dz-real-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dz-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dz-form-group label {
    font-weight: 700;
    font-size: 0.95rem;
}
.dz-input, .dz-textarea {
    width: 100%;
    background: var(--dz-bg-surface);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-md);
    padding: 10px 14px;
    color: var(--dz-text);
    font-size: 0.95rem;
    transition: var(--dz-transition);
}
.dz-input:focus, .dz-textarea:focus {
    border-color: var(--dz-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background: #17243c;
}
.dz-btn-primary {
    background: var(--dz-primary);
    color: #ffffff;
    font-weight: 800;
    padding: 12px 24px;
    border: none;
    border-radius: var(--dz-radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--dz-transition);
}
.dz-btn-primary:hover {
    background: var(--dz-primary-hover);
    transform: translateY(-1px);
}
.dz-btn-secondary {
    background: var(--dz-bg-surface);
    border: 1px solid var(--dz-border-highlight);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--dz-radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dz-info-card {
    background: var(--dz-bg-surface);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-md);
    padding: 20px;
}
.dz-info-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.dz-info-list {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dz-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dz-text-muted);
}
.dz-info-icon {
    color: var(--dz-primary);
}

/* Alerts */
.dz-alert {
    padding: 14px 18px;
    border-radius: var(--dz-radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dz-alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #a7f3d0; }
.dz-alert-error   { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #fecaca; }
.dz-alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid #f59e0b; color: #fef3c7; }

/* Ad Containers (CLS Safe) */
.dz-ad-wrapper {
    margin: 20px auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--dz-radius-md);
    padding: 8px;
    position: relative;
    max-width: 100%;
}
.dz-ad-notice {
    font-size: 0.65rem;
    color: var(--dz-text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.dz-ad-leaderboard { min-height: 90px; }
.dz-ad-sidebar     { min-height: 250px; }
.dz-ad-inarticle   { min-height: 250px; }
.dz-ad-responsive  { min-height: 100px; }
.dz-ad-placeholder {
    color: var(--dz-text-dim);
    font-size: 0.8rem;
    padding: 20px;
}

/* Footer Styling */
.dz-site-footer {
    background: #080c14;
    border-top: 1px solid var(--dz-border);
    padding: 48px 0 0;
    margin-top: 48px;
}
.dz-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
.dz-footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 12px;
}
.dz-footer-desc {
    font-size: 0.9rem;
    color: var(--dz-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 400px;
}
.dz-footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dz-social-btn {
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    color: var(--dz-text);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--dz-radius-sm);
    text-decoration: none;
    transition: var(--dz-transition);
}
.dz-social-btn:hover {
    background: var(--dz-primary);
    color: #ffffff;
    border-color: var(--dz-primary);
}
.dz-footer-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}
.dz-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dz-footer-links a {
    color: var(--dz-text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.dz-footer-links a:hover {
    color: var(--dz-primary);
}
.dz-footer-bottom {
    border-top: 1px solid var(--dz-border);
    padding: 20px 0;
    background: #05080e;
}
.dz-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--dz-text-dim);
}

/* 404 Error Page */
.dz-error-404-container {
    text-align: center;
    padding: 60px 20px;
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-lg);
}
.dz-404-badge {
    font-size: 5rem;
    font-weight: 900;
    color: var(--dz-primary);
    line-height: 1;
    margin-bottom: 12px;
}
.dz-404-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}
.dz-404-desc {
    max-width: 540px;
    margin: 0 auto 20px;
    color: var(--dz-text-muted);
}
.dz-404-quick-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Search Modal */
.dz-search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dz-search-modal-box {
    background: var(--dz-card-bg);
    border: 1px solid var(--dz-border-highlight);
    border-radius: var(--dz-radius-lg);
    width: 100%;
    max-width: 600px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.dz-modal-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dz-modal-search-header h3 {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
}
.dz-close-modal-btn {
    background: transparent;
    border: none;
    color: var(--dz-text);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.dz-modal-search-input {
    width: 100%;
    background: var(--dz-bg-surface);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-md);
    padding: 12px 16px;
    color: var(--dz-text);
    font-size: 1rem;
    margin-bottom: 14px;
}
.dz-modal-submit {
    width: 100%;
}

/* Mobile Off-canvas Drawer & Overlay */
.dz-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.dz-drawer-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .dz-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .dz-drawer-toggle-btn {
        display: inline-flex;
    }
    .dz-sidebar-panel {
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
        border-right: none !important;
        border-left: 1px solid var(--dz-border-highlight) !important;
        overflow-y: auto !important;
    }
    .dz-sidebar-panel.is-open {
        display: flex !important;
    }
    .dz-drawer-header-mobile {
        display: flex;
    }
    .dz-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dz-nav-center {
        display: none;
    }
    .dz-mobile-search-btn {
        display: inline-flex;
    }
    .dz-cards-grid {
        grid-template-columns: 1fr;
    }
    .dz-contact-grid {
        grid-template-columns: 1fr;
    }
    .dz-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
/* Category count in card rows */
.dz-link-meta-end {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dz-cat-count-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dz-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* ==========================================================================
   Grade View & Subject Cards - Phase 2 (Matching DzExams Reference Design)
   ========================================================================== */

/* 1. Top 4-Color Section Tabs Strip */
.dz-stage-tabs-strip {
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.dz-stage-tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s, filter 0.2s;
    opacity: 0.82;
    text-align: center;
}
.dz-stage-tab-item:hover,
.dz-stage-tab-item.is-active {
    opacity: 1;
    filter: brightness(1.1);
}
.dz-stage-tab-item.is-active {
    box-shadow: inset 0 -3px 0 #ffffff;
}

/* 2. Grade Hero Banner (Purple or Section Color) */
.dz-grade-hero-banner {
    background-color: #5B21D6;
    border-radius: 0 0 14px 14px;
    padding: 24px 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 12px;
}
.dz-grade-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.dz-grade-h1 {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.dz-grade-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e9d5ff;
    margin: 0;
}

/* Grade Description Bar */
.dz-grade-desc-bar {
    background: rgba(22, 34, 56, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.dz-grade-desc-bar p {
    margin: 0;
}

/* 3. Subject Cards Grid (3 Columns on Desktop) */
.dz-subjects-section {
    margin-bottom: 28px;
}
.dz-subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.dz-subjects-grid.dz-grid-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Subject Card */
.dz-subject-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: #162238;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 10px 16px;
    text-decoration: none;
    min-height: 64px;
    box-sizing: border-box;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}
.dz-subject-card:hover {
    background: #1b2945;
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Card: File Count Badge (Left in RTL) */
.dz-subj-badge-col {
    flex-shrink: 0;
    min-width: 60px;
}

.dz-subj-file-count.is-zero {
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}
.dz-subj-file-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Card: Title (Center) */
.dz-subj-title-col {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}
.dz-subj-name {
    color: #F6F7FB;
    font-size: 1.02rem;
    font-weight: 700;
    display: block;
    line-height: 1.35;
}

/* Card: Icon / Image (Right in RTL) */
.dz-subj-icon-col {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dz-subj-vector-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}
.dz-subj-svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.dz-subj-custom-thumb {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
}

/* 4. Subject View Page Elements */
.dz-subject-hero-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(22, 34, 56, 0.95), rgba(30, 48, 80, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.dz-subj-hero-icon {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dz-subj-hero-content {
    flex: 1;
}
.dz-subject-h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
}
.dz-subj-hero-sub {
    color: var(--dz-text-muted);
    font-size: 0.98rem;
    margin: 0 0 8px;
}
.dz-subj-description {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Resource Filter Navigation */
.dz-resource-filter-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: rgba(18, 27, 44, 0.7);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--dz-border);
}
.dz-filter-tab {
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--dz-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.dz-filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.dz-filter-tab.is-active {
    background: var(--dz-primary);
    color: #ffffff;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Related Subjects Section */
.dz-related-subjects-box {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--dz-border);
}
.dz-related-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dz-related-title .dashicons {
    color: var(--dz-primary);
}

/* Section Archive View: Grades Grid */
.dz-grades-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.dz-grade-card-box {
    background: #162238;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.dz-grade-card-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.dz-grade-box-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.dz-grade-box-title a {
    color: #ffffff;
    text-decoration: none;
}
.dz-grade-box-meta {
    color: var(--dz-text-muted);
    font-size: 0.88rem;
    margin-bottom: 14px;
}
.dz-grade-btn-enter {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.2s;
}
.dz-grade-btn-enter:hover {
    background: var(--dz-primary);
}

/* 5. Responsive Grid Breakpoints */
@media (max-width: 1080px) {
    .dz-subjects-grid,
    .dz-grades-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dz-stage-tabs-strip {
        flex-wrap: wrap;
    }
    .dz-stage-tab-item {
        flex-basis: 50%;
        padding: 8px 10px;
        font-size: 0.88rem;
    }
    .dz-grade-hero-banner {
        padding: 18px 14px;
    }
    .dz-grade-h1 {
        font-size: 1.45rem;
    }
    .dz-grade-subtitle {
        font-size: 1rem;
    }
    .dz-subjects-grid,
    .dz-grades-section-grid {
        grid-template-columns: 1fr;
    }
    .dz-subject-card {
        padding: 10px 14px;
    }
    .dz-subject-hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }
    .dz-subj-hero-icon {
        margin: 0 auto;
    }
}


/* ==========================================================================
   PHASE 3: SUBJECT VIEW CONTENT CATEGORIES STACK & ARCHIVE
   (Matching Reference Image & Requirements)
   ========================================================================== */

/* 1. 4-Stage Top Accent Color Bar */
.dz-stage-tabs-accent-bar {
    display: flex;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #172033;
}

.dz-stage-tab-segment {
    flex: 1;
    height: 100%;
}

.dz-stage-tab-segment.dz-tab-misc {
    background: #2563eb;
}

.dz-stage-tab-segment.dz-tab-middle {
    background: #059669;
}

.dz-stage-tab-segment.dz-tab-primary {
    background: #5B21D6;
}

.dz-stage-tab-segment.dz-tab-secondary {
    background: #dc2626;
}

/* 2. Purple / Stage Header Container */
.dz-subject-banner-box {
    background: var(--subj-accent, #5B21D6);
    border-radius: 12px;
    padding: 18px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.25);
    margin-bottom: 12px;
}

.dz-banner-grade-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.dz-banner-subject-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

/* 3. Subtitle / Intro Description Box */
.dz-subject-intro-card {
    background: #131d2e;
    border: 1px solid #1f2d45;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 18px;
    text-align: center;
}

.dz-subject-intro-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
}

/* 4. Content Categories Vertical Stack */
.dz-content-categories-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.dz-content-cat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #162033;
    border: 1px solid #24334d;
    border-radius: 10px;
    padding: 12px 18px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dz-content-cat-card:hover {
    background: #1c2a42;
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.dz-cat-card-start {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dz-cat-card-icon-wrap {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

.dz-cat-card-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.dz-cat-custom-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.dz-cat-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #F6F7FB;
    transition: color 0.2s;
}

.dz-content-cat-card:hover .dz-cat-card-title {
    color: #38bdf8;
}

.dz-cat-card-end {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dz-cat-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    background: #172033;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.dz-content-cat-card:hover .dz-cat-count-pill {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}

.dz-cat-chevron {
    color: #667085;
    display: flex;
    align-items: center;
    transition: transform 0.2s, color 0.2s;
}

.dz-content-cat-card:hover .dz-cat-chevron {
    transform: translateX(-4px);
    color: #38bdf8;
}

/* 5. Level 4 Content Category Archive Hero Header */
.dz-cat-hero-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid #312e81;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dz-cat-hero-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 8px;
}

.dz-cat-h1 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.dz-cat-desc-box {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.dz-cat-back-action {
    margin-top: 12px;
}

.dz-btn-return-subject {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #E7E9EF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.dz-btn-return-subject:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Related Categories Section */
.dz-related-cats-section {
    margin-top: 32px;
    padding: 18px 22px;
    background: #131d2e;
    border: 1px solid #1f2d45;
    border-radius: 10px;
}

.dz-related-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-related-cats-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dz-related-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #172033;
    border: 1px solid #334155;
    border-radius: 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.dz-related-cat-chip:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}

.dz-chip-count {
    background: rgba(0, 0, 0, 0.25);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
}

/* Material Feed & Cards */
.dz-materials-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dz-material-card {
    background: #162033;
    border: 1px solid #24334d;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.dz-material-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.dz-mat-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.dz-mat-type-pill {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.dz-mat-year-pill {
    background: #334155;
    color: #cbd5e1;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.dz-mat-solution-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.dz-mat-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.dz-mat-title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s;
}

.dz-mat-title a:hover {
    color: #38bdf8;
}

.dz-mat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #24334d;
    font-size: 12px;
    color: #94a3b8;
}

.dz-mat-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dz-mat-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #2563eb;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.dz-mat-download-btn:hover {
    background: #1d4ed8;
}

.dz-pill-category {
    background: #4338ca;
    color: #e0e7ff;
}

/* ==========================================================================
   PHASE 4: Level 4 Content Category & Article Rows Layout (Matching Image)
   ========================================================================== */

/* 1. Purple 3-Tier Header */
.dz-cat-hero-3tier {
    background: var(--tier-accent, #5B21D6);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dz-3tier-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
}
.dz-3tier-grade {
    padding: 12px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dz-3tier-subject {
    padding: 13px 20px;
    font-size: 1.12rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dz-3tier-category {
    padding: 15px 20px;
    font-size: 1.35rem;
    font-weight: 800;
    background: transparent;
    margin: 0;
}

/* 2. Subtitle / Intro Card */
.dz-cat-intro-box {
    background: #141c2c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px 22px;
    text-align: center;
    margin: 16px 0 20px;
}
.dz-cat-intro-box p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
}

/* 3. Real Articles Horizontal Rows */
.dz-articles-row-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
}
.dz-article-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #131b2c;
    border: 1px solid #1e2c42;
    border-radius: 8px;
    padding: 9px 14px;
    min-height: 52px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.dz-article-row-item:hover {
    background: #182338;
    border-color: #2b3d5b;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.dz-row-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.dz-row-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #0c1320;
    border: 1px solid #1a2638;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
}
.dz-row-icon-badge svg {
    width: 17px;
    height: 17px;
    stroke: #cbd5e1;
}
.dz-row-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.dz-row-title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.15s ease;
}
.dz-row-title a:hover {
    color: #38bdf8;
}
.dz-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dz-row-year-pill {
    background: #0e1626;
    border: 1px solid #1e2a3c;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dz-row-year-pill .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #667085;
    line-height: 14px;
}
.dz-row-solution-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.dz-row-solution-pill.is-solved {
    background: #15803d;
    border: 1px solid #22c55e;
    color: #ffffff;
}
.dz-row-solution-pill.is-unsolved {
    background: #991b1b;
    border: 1px solid #ef4444;
    color: #ffffff;
}

.dz-mat-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #2563eb;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.dz-mat-download-btn:hover {
    background: #1d4ed8;
}

.dz-pill-category {
    background: #4338ca;
    color: #e0e7ff;
}

/* ==========================================================================
   PHASE 4: Level 4 Content Category & Article Rows Layout (Matching Image)
   ========================================================================== */

/* 1. Purple 3-Tier Header */
.dz-cat-hero-3tier {
    background: var(--tier-accent, #5B21D6);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dz-3tier-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
}
.dz-3tier-grade {
    padding: 12px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dz-3tier-subject {
    padding: 13px 20px;
    font-size: 1.12rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dz-3tier-category {
    padding: 15px 20px;
    font-size: 1.35rem;
    font-weight: 800;
    background: transparent;
    margin: 0;
}

/* 2. Subtitle / Intro Card */
.dz-cat-intro-box {
    background: #141c2c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px 22px;
    text-align: center;
    margin: 16px 0 20px;
}
.dz-cat-intro-box p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
}

/* 3. Real Articles Horizontal Rows */
.dz-articles-row-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
}
.dz-article-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #131b2c;
    border: 1px solid #1e2c42;
    border-radius: 8px;
    padding: 9px 14px;
    min-height: 52px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.dz-article-row-item:hover {
    background: #182338;
    border-color: #2b3d5b;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.dz-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.dz-row-model-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    background: #5B21D6;
    background: var(--tier-accent, #5B21D6);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.45);
}
.dz-row-icon-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    background: #0c1320;
    border: 1px solid #1a2638;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dz-lock-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.dz-lock-state-open {
    display: none !important;
}

.dz-lock-state-closed {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.dz-lock-svg {
    width: 17px;
    height: 17px;
    stroke: #cbd5e1;
    display: block;
    transition: stroke 0.2s ease;
}

/* ==========================================================================
   Open / Available Material (Green Model Badge & 🔓 Open Padlock Icon)
   Preserves exact size, position, typography, and card dimensions.
   ========================================================================== */
.dz-article-row-item.is-open .dz-row-model-badge,
.dz-row-model-badge.is-open {
    background: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.45) !important;
}

.dz-article-row-item.is-open .dz-row-icon-badge,
.dz-row-icon-badge.is-open {
    background: rgba(34, 197, 94, 0.10) !important;
    border: 1px solid #22c55e !important;
    color: #22c55e !important;
}

/* Switch from Closed 🔒 to Open 🔓 Padlock */
.dz-article-row-item.is-open .dz-lock-state-closed,
.dz-row-icon-badge.is-open .dz-lock-state-closed {
    display: none !important;
}

.dz-article-row-item.is-open .dz-lock-state-open,
.dz-row-icon-badge.is-open .dz-lock-state-open {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.dz-article-row-item.is-open .dz-lock-svg,
.dz-row-icon-badge.is-open .dz-lock-svg {
    stroke: #22c55e !important;
    color: #22c55e !important;
}

.dz-article-row-item.is-open:hover .dz-row-model-badge {
    background: #16a34a !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.55) !important;
}

.dz-article-row-item.is-open:hover .dz-row-icon-badge {
    border-color: #16a34a !important;
    background: rgba(34, 197, 94, 0.18) !important;
}

.dz-row-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.dz-row-title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.15s ease;
}
.dz-row-title a:hover {
    color: #38bdf8;
}
.dz-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dz-row-year-pill {
    background: #0e1626;
    border: 1px solid #1e2a3c;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dz-row-year-pill .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #667085;
    line-height: 14px;
}
.dz-row-solution-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.dz-row-solution-pill.is-solved {
    background: #15803d;
    border: 1px solid #22c55e;
    color: #ffffff;
}
.dz-row-solution-pill.is-unsolved {
    background: #991b1b;
    border: 1px solid #ef4444;
    color: #ffffff;
}
.dz-row-solution-pill .dz-sol-sym {
    font-size: 12px;
    font-weight: 900;
}
.dz-row-stats-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}
.dz-row-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 2px 4px !important;
    margin: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}
.dz-row-stat-pill:hover {
    color: #E7E9EF;
    text-decoration: none !important;
}
.dz-row-stat-pill .dz-stat-icon-like {
    font-size: 12px;
    color: #f59e0b;
}
.dz-row-stat-pill .dz-stat-icon-comment {
    font-size: 12px;
    color: #38bdf8;
}

/* 4. Related Articles Section in Single View */
.dz-related-articles-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #172033;
}
.dz-related-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #F6F7FB;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dz-related-section-title .dashicons {
    color: #38bdf8;
}

/* 5. Responsive Adjustments */
@media (max-width: 768px) {
    .dz-article-row-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }
    .dz-row-right {
        width: 100%;
    }
    .dz-row-title {
        white-space: normal;
    }
    .dz-row-left {
        width: 100%;
        justify-content: flex-end;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 8px;
    }
    .dz-3tier-grade {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
    .dz-3tier-subject {
        font-size: 1.05rem;
        padding: 10px 14px;
    }
    .dz-3tier-category {
        font-size: 1.2rem;
        padding: 12px 14px;
    }
}

/* ==========================================================================
   SINGLE ARTICLE: Embedded PDF Viewer & 10-Button Action Toolbar (media_1789399924629.png)
   ========================================================================== */

/* Sub-Header Navigation Strip */
.dz-viewer-nav-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d1424;
    border: 1px solid #1e2c40;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.dz-viewer-strip-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.dz-viewer-article-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dz-viewer-strip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dz-nav-chevron-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.dz-nav-chevron-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

/* High-Fidelity PDF Viewer Frame */
.dz-pdf-viewer-frame-box {
    width: 100%;
    height: 760px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #172033;
    background: #1e1e1e;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.dz-pdf-embed-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #262626;
}
.dz-pdf-fallback-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #94a3b8;
    background: #111a28;
}

/* 10-Button Action Toolbar Grid */
.dz-pdf-toolbar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.dz-toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    background: #111a2a;
    border: 1px solid #1b2638;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    box-sizing: border-box;
}
.dz-toolbar-btn:hover {
    background: #17243c;
    border-color: #2c3e5e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.dz-toolbar-btn .dz-t-icon {
    font-size: 18px;
    line-height: 1;
}
.dz-toolbar-btn .dz-t-text {
    font-size: 12.5px;
}
.dz-toolbar-btn .dz-t-badge {
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-top: -2px;
}
.dz-toolbar-btn.dz-btn-accent-download {
    background: #1e3a8a;
    border-color: #2563eb;
    color: #93c5fd;
}
.dz-toolbar-btn.dz-btn-accent-download:hover {
    background: #2563eb;
    color: #ffffff;
}

@media (max-width: 900px) {
    .dz-pdf-viewer-frame-box {
        height: 520px;
    }
    .dz-pdf-toolbar-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .dz-toolbar-btn {
        padding: 10px 4px;
    }
    .dz-toolbar-btn .dz-t-text {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .dz-viewer-nav-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .dz-viewer-article-title {
        white-space: normal;
    }
    .dz-viewer-strip-left {
        width: 100%;
        justify-content: space-between;
    }
    .dz-pdf-viewer-frame-box {
        height: 420px;
    }
    .dz-pdf-toolbar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Interactive Like Button & Stat Pills (Clean, Transparent, No White Boxes) */
.dz-row-stat-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}
.dz-row-stat-pill:hover,
.dz-row-stat-pill:focus {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
}
.dz-row-stat-pill .dz-stat-icon-like {
    font-size: 12px !important;
    color: #f59e0b !important;
    display: inline-block !important;
    transition: transform 0.2s ease !important;
}
.dz-row-stat-pill .dz-stat-icon-dislike {
    font-size: 12px !important;
    color: #f59e0b !important;
    display: inline-block !important;
    transition: transform 0.2s ease !important;
}
.dz-row-stat-pill .dz-stat-icon-comment {
    font-size: 12px !important;
    color: #38bdf8 !important;
    display: inline-block !important;
}
.dz-row-stat-pill.dz-like-trigger-btn,
.dz-row-stat-pill.dz-dislike-trigger-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.dz-row-stat-pill.dz-like-trigger-btn:hover {
    color: #38bdf8 !important;
    background: transparent !important;
    background-color: transparent !important;
    transform: scale(1.08) !important;
}
.dz-row-stat-pill.dz-dislike-trigger-btn:hover {
    color: #ef4444 !important;
    background: transparent !important;
    background-color: transparent !important;
    transform: scale(1.08) !important;
}
.dz-row-stat-pill.dz-like-trigger-btn.is-liked {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #38bdf8 !important;
}
.dz-row-stat-pill.dz-like-trigger-btn.is-liked .dz-like-count-val {
    color: #38bdf8 !important;
    font-weight: 700 !important;
}
.dz-row-stat-pill.dz-like-trigger-btn.is-liked .dz-stat-icon-like {
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7)) !important;
    transform: scale(1.15) !important;
}
.dz-row-stat-pill.dz-dislike-trigger-btn.is-disliked {
    color: #ef4444 !important;
}
.dz-row-stat-pill.dz-dislike-trigger-btn.is-disliked .dz-dislike-count-val {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

.dz-row-icon-badge.is-doc {
    background: #15803d !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}
.dz-row-icon-badge.is-doc svg {
    stroke: #ffffff !important;
    fill: none !important;
}

/* Toolbar Like Button (in 10-button grid) */
.dz-toolbar-btn.dz-like-trigger-btn.is-liked {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}
.dz-toolbar-btn.dz-like-trigger-btn.is-liked .dz-t-icon {
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)) !important;
}

@keyframes dz-like-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.32) rotate(-8deg); }
    75% { transform: scale(0.92); }
    100% { transform: scale(1); }
}
.dz-like-pop {
    animation: dz-like-pop 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Floating Toast Notification */
.dz-app-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid #38bdf8;
    color: #F6F7FB;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.25);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}
.dz-app-toast.is-visible {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}
.dz-app-toast.is-error {
    border-color: #ef4444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   MODERN REFINED UI/UX: FLOATING HEADER, RIGHT SIDEBAR & COMPACT FOOTER
   ========================================================================== */

/* Prevent accidental horizontal overflow */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.dz-site-wrapper {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Top Banner Mobile Optimization */
.dz-top-banner {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 8px 12px;
}
.dz-banner-inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
}
.dz-banner-link,
.dz-banner-text {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.4 !important;
    font-size: 0.82rem !important;
}

/* 1. Global App Layout: Sidebar on Far Right in RTL */
.dz-app-layout {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.dz-content-primary,
.dz-main-content-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Floating Sleek Compact Header */
.dz-header-wrapper {
    padding: 12px 16px 4px 16px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.dz-navbar-floating {
    background: rgba(15, 23, 42, 0.90) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.30) !important;
    padding: 7px 18px !important;
    position: sticky;
    top: 12px;
    z-index: 100;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dz-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.dz-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
}

.dz-drawer-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F6F7FB;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dz-drawer-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #38bdf8;
}

.dz-site-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.dz-brand-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dz-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.dz-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dz-brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-brand-tagline {
    font-size: 0.70rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-brand-logo {
    height: 34px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.dz-flag-badge {
    display: flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.dz-nav-center {
    flex: 1;
    max-width: 520px;
    margin: 0 12px;
}

.dz-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 3px 6px 3px 12px;
    transition: all 0.25s ease;
}

.dz-search-input-group:focus-within {
    background: rgba(30, 41, 59, 0.98);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.dz-search-icon-prefix {
    display: flex;
    align-items: center;
    color: #94a3b8;
    margin-left: 8px;
    flex-shrink: 0;
}

.dz-search-field {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.86rem;
    font-family: inherit;
    padding: 4px 0;
}

.dz-search-field::placeholder {
    color: #667085;
    font-size: 0.84rem;
}

.dz-search-submit-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dz-search-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

.dz-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dz-mobile-search-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F6F7FB;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dz-mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #38bdf8;
}

.dz-btn-account {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F6F7FB;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dz-btn-account:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.35);
    color: #60a5fa;
}

/* 3. Modern Sidebar: Right Pinned, Accordion & Collapse */
.dz-sidebar-panel {
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    order: -1 !important;
    width: 285px !important;
    flex-shrink: 0 !important;
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 18px 14px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28) !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: flex-start;
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    box-sizing: border-box;
}

.dz-sidebar-panel::-webkit-scrollbar {
    width: 4px;
}
.dz-sidebar-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
}

.dz-sidebar-brand-box {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dz-sidebar-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.dz-sidebar-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.dz-sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dz-sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.dz-collapse-chevron {
    transition: transform 0.28s ease;
}

.dz-sidebar-site-tagline {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0 0 6px 0;
    line-height: 1.4;
    text-align: center;
}

.dz-sidebar-motto-pill {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.25) 0%, rgba(37, 99, 235, 0.25) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
}

/* Sidebar Menu List & Items */
.dz-sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dz-nav-item {
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}

.dz-nav-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 3px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dz-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-decoration: none;
    padding: 5px 6px;
    border-radius: 8px;
    min-width: 0;
    transition: background 0.15s ease;
}

.dz-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dz-nav-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dz-nav-item:hover .dz-nav-icon-badge {
    transform: scale(1.08);
}

.dz-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    flex: 1;
}

.dz-nav-badge-count {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    margin-right: 4px;
    flex-shrink: 0;
    font-feature-settings: 'tnum';
}

.dz-nav-toggle-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.dz-nav-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dz-nav-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.dz-nav-item.is-open .dz-nav-chevron {
    transform: rotate(-90deg);
    color: #60a5fa;
}

.dz-nav-item.is-open .dz-nav-item-header {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Accordion Smooth Expand/Collapse */
.dz-subnav-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.35s;
}

.dz-nav-item.is-open .dz-subnav-wrap {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
}

.dz-subnav-list {
    list-style: none;
    margin: 4px 0 6px 0;
    padding: 4px 6px 4px 0;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dz-subnav-item {
    border-radius: 6px;
    transition: all 0.15s ease;
}

.dz-subnav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(-3px);
}

.dz-subnav-link {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 600;
    gap: 8px;
    transition: color 0.15s ease;
}

.dz-subnav-link:hover {
    color: #ffffff;
}

.dz-subnav-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dz-subnav-item:hover .dz-subnav-bullet {
    background: var(--item-color, #3b82f6);
    transform: scale(1.3);
}

.dz-subnav-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-subnav-count {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    font-feature-settings: 'tnum';
}

.dz-subnav-item.is-active {
    background: rgba(37, 99, 235, 0.14);
    border-right: 3px solid var(--item-color, #3b82f6);
}

.dz-subnav-item.is-active .dz-subnav-link {
    color: #60a5fa;
    font-weight: 700;
}

.dz-subnav-item.is-active .dz-subnav-bullet {
    background: var(--item-color, #3b82f6);
    box-shadow: 0 0 6px var(--item-color, #3b82f6);
}

/* Sidebar Call to Actions */
.dz-btn-forum {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #E7E9EF;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dz-btn-forum:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    color: #60a5fa;
}

.dz-sidebar-footer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dz-toolbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dz-toolbar-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dz-icon-help {
    color: #f87171;
}

/* Collapsed Desktop State */
.dz-sidebar-panel.is-collapsed {
    width: 74px !important;
    padding: 14px 8px !important;
    cursor: pointer;
}

/* Hide brand logo & text when collapsed to give full focus to the expand button */
.dz-sidebar-panel.is-collapsed .dz-sidebar-brand-link,
.dz-sidebar-panel.is-collapsed .dz-sidebar-site-tagline,
.dz-sidebar-panel.is-collapsed .dz-sidebar-motto-pill,
.dz-sidebar-panel.is-collapsed .dz-nav-label,
.dz-sidebar-panel.is-collapsed .dz-nav-badge-count,
.dz-sidebar-panel.is-collapsed .dz-nav-toggle-btn,
.dz-sidebar-panel.is-collapsed .dz-subnav-wrap,
.dz-sidebar-panel.is-collapsed .dz-forum-text {
    display: none !important;
}

.dz-sidebar-panel.is-collapsed .dz-sidebar-brand-top {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto 10px auto !important;
}

/* Prominent Centered Expand Button */
.dz-sidebar-panel.is-collapsed .dz-sidebar-collapse-btn {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: rgba(37, 99, 235, 0.22) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    color: #93c5fd !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.25s ease !important;
    margin: 0 auto !important;
}

.dz-sidebar-panel.is-collapsed .dz-sidebar-collapse-btn:hover {
    background: rgba(37, 99, 235, 0.45) !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}

.dz-sidebar-panel.is-collapsed .dz-collapse-chevron {
    transform: rotate(180deg) !important;
    width: 16px !important;
    height: 16px !important;
}

/* Nav items centered in collapsed mode */
.dz-sidebar-panel.is-collapsed .dz-nav-link {
    justify-content: center !important;
    padding: 8px 0 !important;
    width: 100% !important;
}

.dz-sidebar-panel.is-collapsed .dz-nav-icon-badge {
    margin: 0 auto !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
}

.dz-sidebar-panel.is-collapsed .dz-btn-forum {
    justify-content: center !important;
    padding: 10px 0 !important;
}

.dz-sidebar-panel.is-collapsed .dz-forum-icon {
    margin: 0 !important;
}

.dz-sidebar-panel.is-collapsed .dz-sidebar-footer-toolbar {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 8px 0 !important;
}

.dz-sidebar-panel.is-collapsed .dz-sidebar-footer-toolbar .dz-toolbar-icon {
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto !important;
}

/* 4. Sleek Compact Card Footer */
.dz-site-footer {
    margin-top: 40px !important;
    padding: 0 16px 24px 16px !important;
    background: transparent !important;
    border: none !important;
    box-sizing: border-box;
}

.dz-footer-compact-card {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25) !important;
    padding: 26px 24px 16px !important;
    margin: 0 auto;
    max-width: 1400px;
    box-sizing: border-box;
}

.dz-footer-card-body {
    display: grid;
    grid-template-columns: 1.8fr 1.1fr 1.1fr 1.3fr;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dz-footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dz-footer-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
}

.dz-footer-logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.dz-footer-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.dz-footer-brand-desc {
    font-size: 0.80rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

.dz-footer-col-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #E7E9EF;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dz-footer-title-bar {
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: #3b82f6;
    display: inline-block;
}

.dz-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dz-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.dz-footer-links a:hover {
    color: #60a5fa;
    transform: translateX(-3px);
}

.dz-footer-social-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.dz-footer-social-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dz-footer-social-pill:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    color: #60a5fa;
}

.dz-footer-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.dz-footer-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    font-size: 0.75rem;
    color: #667085;
}

.dz-footer-copyright-text {
    margin: 0;
}

/* 5. Mobile & Tablet Responsive Media Queries */
@media (max-width: 992px) {
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .dz-site-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .dz-header-wrapper {
        padding: 8px 12px 2px 12px;
        width: 100% !important;
        max-width: 100% !important;
    }
    .dz-navbar-floating {
        border-radius: 12px !important;
        padding: 6px 12px !important;
        top: 6px;
        width: 100% !important;
        max-width: 100% !important;
    }
    .dz-nav-center {
        display: none !important;
    }
    .dz-drawer-toggle-btn,
    .dz-mobile-search-btn {
        display: flex !important;
    }
    .dz-nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    .dz-site-brand {
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .dz-brand-title {
        max-width: 170px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.88rem;
    }
    .dz-brand-tagline {
        display: none !important;
    }
    .dz-flag-badge {
        display: none !important;
    }
    .dz-app-layout {
        flex-direction: column !important;
        padding: 0 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .dz-content-primary,
    .dz-main-content-col {
        width: 100% !important;
        max-width: 100% !important;
    }
    .dz-hero-strip {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 16px !important;
    }
    .dz-hero-title {
        font-size: 1.15rem !important;
        word-break: break-word !important;
    }
    .dz-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 14px !important;
    }
    .dz-home-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .dz-materials-feed-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    .dz-material-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Clean Mobile Drawer (display: none when closed prevents any layout overflow in RTL) */
    .dz-sidebar-panel {
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        width: 300px !important;
        max-width: 85vw !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
        box-shadow: -8px 0 35px rgba(0, 0, 0, 0.7) !important;
        overflow-y: auto !important;
    }
    .dz-sidebar-panel.is-open {
        display: flex !important;
    }
    .dz-drawer-header-mobile {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .dz-drawer-title-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #F6F7FB;
        font-weight: 700;
        font-size: 0.95rem;
    }
    .dz-btn-close-drawer {
        background: transparent;
        border: none;
        color: #94a3b8;
        font-size: 1.5rem;
        cursor: pointer;
        line-height: 1;
        padding: 0 4px;
    }
    .dz-sidebar-collapse-btn {
        display: none !important;
    }
    .dz-footer-compact-card {
        padding: 20px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .dz-footer-card-body {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .dz-brand-title {
        max-width: 140px;
        font-size: 0.84rem;
    }
    .dz-flag-badge {
        display: none !important;
    }
    .dz-btn-account .dz-acc-label {
        display: none !important;
    }
    .dz-btn-account {
        padding: 8px !important;
    }
    /* Mobile Footer Card: Balanced 2-Column Links Grid with Centered Brand and Badge */
    .dz-footer-compact-card {
        padding: 22px 16px 14px !important;
    }
    .dz-footer-card-body {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 18px 12px !important;
    }
    .dz-footer-col-brand {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding-bottom: 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
        gap: 8px !important;
    }
    .dz-footer-brand-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
    }
    .dz-footer-logo-img {
        height: 36px !important;
        width: auto !important;
    }
    .dz-footer-brand-title {
        font-size: 1rem !important;
        font-weight: 800 !important;
        color: #F6F7FB !important;
        text-align: center !important;
    }
    .dz-footer-brand-desc {
        font-size: 0.8rem !important;
        color: #94a3b8 !important;
        line-height: 1.5 !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    .dz-footer-col-nav {
        display: flex !important;
        flex-direction: column !important;
    }
    .dz-footer-col-title {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .dz-footer-title-bar {
        width: 3px !important;
        height: 13px !important;
        background: #3b82f6 !important;
        border-radius: 2px !important;
    }
    .dz-footer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .dz-footer-links a {
        font-size: 0.8rem !important;
        color: #cbd5e1 !important;
        line-height: 1.4 !important;
    }
    .dz-footer-col-social {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
        gap: 10px !important;
    }
    .dz-footer-col-social .dz-footer-col-title {
        display: none !important;
    }
    .dz-footer-social-pills {
        justify-content: center !important;
        gap: 8px !important;
    }
    .dz-footer-verified-badge {
        margin: 0 auto !important;
        padding: 7px 16px !important;
        background: rgba(16, 185, 129, 0.12) !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        border-radius: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .dz-footer-card-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 6px !important;
        padding-top: 12px !important;
        margin-top: 12px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    .dz-footer-copyright-text {
        font-size: 0.74rem !important;
        color: #667085 !important;
        text-align: center !important;
        line-height: 1.5 !important;
    }
    .dz-footer-card-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}


/* Responsive Educational Subjects Grid (Mobile & Tablet) */
@media (max-width: 900px) {
    .dz-subjects-grid,
    .dz-subjects-grid.dz-grid-compact {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 540px) {
    .dz-subjects-grid,
    .dz-subjects-grid.dz-grid-compact {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }
    .dz-subject-card {
        padding: 10px 14px !important;
        min-height: 56px !important;
        border-radius: 12px !important;
    }
    .dz-subj-name {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }
    .dz-subj-file-count {
        font-size: 0.74rem !important;
        padding: 3px 8px !important;
        white-space: nowrap !important;
    }
    .dz-subj-icon-col {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .dz-subj-badge-col {
        min-width: 60px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        justify-content: flex-start !important;
    }
    .dz-subj-title-col {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0 10px !important;
        text-align: right !important;
    }
}



/* ==========================================================================
   PREMIUM LIGHT THEME ONLY - ARABIC EDUCATIONAL DESIGN SYSTEM
   ========================================================================== */

/* Global Light Canvas */
body {
    background-color: var(--dz-bg-dark) !important;
    color: var(--dz-text) !important;
}

/* Announcement Top Banner: Soft Purple Clean Strip */
.dz-top-banner {
    background: #f3eeff !important;
    border-bottom: 1px solid #e9d5ff !important;
    box-shadow: 0 1px 3px rgba(107, 33, 168, 0.06) !important;
    color: #6b21a8 !important;
}
.dz-banner-link,
.dz-banner-text {
    color: #6b21a8 !important;
    font-weight: 700 !important;
}
.dz-banner-link:hover {
    color: #581c87 !important;
    opacity: 0.95 !important;
}

/* Sticky Navbar: Crisp White Floating Elevation */
.dz-navbar-sticky {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid #E7E9EF !important;
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.04) !important;
}
.dz-brand-title {
    color: #172033 !important;
}
.dz-brand-tagline {
    color: #667085 !important;
}
.dz-brand-icon {
    background: linear-gradient(135deg, #6D35E8 0%, #6366f1 100%) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
}
.dz-flag-badge {
    border: 1px solid #E7E9EF !important;
    background: #F6F7FB !important;
}

/* Header Search Form */
.dz-search-input-group {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}
.dz-search-input-group:focus-within {
    background: #ffffff !important;
    border-color: #6D35E8 !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}
.dz-search-field {
    color: #172033 !important;
}
.dz-search-field::placeholder {
    color: #94a3b8 !important;
}
.dz-search-icon-prefix {
    color: #94a3b8 !important;
}
.dz-search-submit-btn {
    color: #667085 !important;
}
.dz-search-submit-btn:hover {
    color: #6D35E8 !important;
}

/* Account & Action Controls */
.dz-btn-account {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #172033 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.dz-btn-account:hover {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #6D35E8 !important;
    transform: translateY(-1px);
}
.dz-drawer-toggle-btn,
.dz-mobile-search-btn {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
.dz-drawer-toggle-btn:hover,
.dz-mobile-search-btn:hover {
    background: #f1f5f9 !important;
    color: #172033 !important;
}

/* Hero Strip */
.dz-hero-strip {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.dz-hero-title {
    color: #172033 !important;
}
.dz-hero-tagline {
    color: #667085 !important;
}

/* Sidebar Styling: Pure White & Subtle Elevated Card */
.dz-sidebar-panel {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02) !important;
}
.dz-sidebar-brand-box {
    border-bottom: 1px solid #E7E9EF !important;
}
.dz-sidebar-site-tagline {
    color: #667085 !important;
}
.dz-sidebar-motto-pill {
    background: #f3eeff !important;
    border: 1px solid #e9d5ff !important;
    color: #6b21a8 !important;
}
.dz-sidebar-collapse-btn {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #667085 !important;
}
.dz-sidebar-collapse-btn:hover {
    background: #f1f5f9 !important;
    color: #172033 !important;
}

/* Sidebar Navigation Items & Active State */
.dz-nav-item {
    background: #ffffff !important;
    border: 1px solid transparent !important;
}
.dz-nav-item:hover {
    background: #F6F7FB !important;
    border-color: #E7E9EF !important;
}
.dz-nav-item.is-open {
    background: #fcfaff !important;
    border-color: #ede9fe !important;
}
.dz-nav-link {
    color: #172033 !important;
}
.dz-nav-link:hover {
    color: #6D35E8 !important;
}
.dz-nav-item.is-open > .dz-nav-item-header .dz-nav-link {
    color: #6D35E8 !important;
}
.dz-nav-badge-count {
    background: #f1f5f9 !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-sidebar-subnav-list {
    background: #fafafa !important;
    border-top: 1px solid #f1f5f9 !important;
}
.dz-subnav-link {
    color: #475569 !important;
}
.dz-subnav-link:hover {
    color: #6D35E8 !important;
    background: #f5f3ff !important;
}
.dz-subnav-item.is-active .dz-subnav-link {
    background: #f5f3ff !important;
    color: #6D35E8 !important;
    font-weight: 700 !important;
}
.dz-btn-forum {
    background: linear-gradient(135deg, #6D35E8 0%, #6366f1 100%) !important;
    border: 1px solid #6D35E8 !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.22) !important;
    color: #ffffff !important;
}
.dz-btn-forum:hover {
    background: linear-gradient(135deg, #5B21D6 0%, #4f46e5 100%) !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35) !important;
}
.dz-sidebar-footer-toolbar {
    border-top: 1px solid #E7E9EF !important;
}
.dz-toolbar-icon {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #667085 !important;
}
.dz-toolbar-icon:hover {
    background: #6D35E8 !important;
    color: #ffffff !important;
    border-color: #6D35E8 !important;
}

/* Home Section Cards (الأطوار التعليمية الأربعة) */
.dz-home-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.02) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.dz-home-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.08) !important;
}
.dz-card-links-body {
    background: #ffffff !important;
}
.dz-link-row {
    border-bottom: 1px solid #f1f5f9 !important;
}
.dz-link-anchor {
    color: #172033 !important;
    transition: background-color 0.15s, color 0.15s !important;
}
.dz-link-anchor:hover {
    background: #F6F7FB !important;
    color: var(--sec-accent, #6D35E8) !important;
}
.dz-cat-count-pill {
    background: #f1f5f9 !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-card-bottom-banner {
    color: #ffffff !important;
}
.dz-card-bottom-banner a {
    color: #ffffff !important;
}

/* Section Title Bar & Headings */
.dz-block-title {
    color: #172033 !important;
}
.dz-title-icon {
    color: #6D35E8 !important;
}
.dz-view-all-link {
    color: #6D35E8 !important;
}
.dz-view-all-link:hover {
    color: #5B21D6 !important;
}

/* Materials Feed & Rows (الصفحات والمواضيع) */
.dz-material-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.dz-material-card-title a {
    color: #172033 !important;
}
.dz-material-card-title a:hover {
    color: #6D35E8 !important;
}
.dz-article-row-item {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
.dz-article-row-item:hover {
    background: #F6F7FB !important;
    border-color: #cbd5e1 !important;
}
.dz-row-title a {
    color: #172033 !important;
}
.dz-row-title a:hover {
    color: #6D35E8 !important;
}
.dz-row-model-badge {
    background: #ede9fe !important;
    color: #5B21D6 !important;
    border: 1px solid #ddd6fe !important;
}
.dz-row-stat-pill {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-row-stat-pill:hover {
    background: #f1f5f9 !important;
    color: #172033 !important;
}
.dz-row-year-pill {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #667085 !important;
}
.dz-row-solution-pill.is-solved {
    background: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}
.dz-row-solution-pill.is-unsolved {
    background: #f1f5f9 !important;
    border: 1px solid #E7E9EF !important;
    color: #667085 !important;
}

/* Grade Archive & Subject Grid */
.dz-grade-intro-card,
.dz-subject-intro-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
.dz-subject-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.dz-subject-card:hover {
    background: #F6F7FB !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
}
.dz-subject-title {
    color: #172033 !important;
}
.dz-subject-card-icon-wrap {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #6D35E8 !important;
}

/* Content Categories Stack (فروض، اختبارات، مذكرات) */
.dz-content-cat-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.dz-content-cat-card:hover {
    background: #F6F7FB !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
}
.dz-cat-card-title {
    color: #172033 !important;
}
.dz-cat-card-icon-wrap {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #6D35E8 !important;
}
.dz-cat-chevron {
    color: #94a3b8 !important;
}

/* Related Categories & Chips */
.dz-related-cat-chip {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-related-cat-chip:hover {
    background: #f5f3ff !important;
    color: #6D35E8 !important;
    border-color: #ddd6fe !important;
}
.dz-chip-count {
    background: #f1f5f9 !important;
    color: #667085 !important;
}

/* Single Material & PDF Viewer Controls */
.dz-material-subbar {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.dz-mat-crumb-text,
.dz-mat-crumb-link {
    color: #667085 !important;
}
.dz-mat-crumb-link:hover {
    color: #6D35E8 !important;
}
.dz-pdf-viewer-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06) !important;
}
.dz-action-btn {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
.dz-action-btn:hover {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #6D35E8 !important;
}
.dz-article-content-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #334155 !important;
}

/* Breadcrumbs */
.dz-breadcrumbs-wrapper {
    background: transparent !important;
}
.dz-breadcrumbs {
    background: transparent !important;
}
.dz-breadcrumbs a {
    color: #667085 !important;
}
.dz-breadcrumbs a:hover {
    color: #6D35E8 !important;
}
.dz-breadcrumb-current {
    color: #172033 !important;
    font-weight: 700 !important;
}
.dz-breadcrumb-separator {
    color: #94a3b8 !important;
}

/* Pagination */
.dz-pagination-wrap .page-numbers {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}
.dz-pagination-wrap .page-numbers:hover {
    background: #F6F7FB !important;
    color: #6D35E8 !important;
    border-color: #cbd5e1 !important;
}
.dz-pagination-wrap .page-numbers.current {
    background: #6D35E8 !important;
    color: #ffffff !important;
    border-color: #6D35E8 !important;
}

/* Footer: Modern Light Card */
.dz-site-footer {
    background: transparent !important;
    color: #667085 !important;
}
.dz-footer-compact-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
}
.dz-footer-brand-title {
    color: #172033 !important;
}
.dz-footer-brand-desc {
    color: #667085 !important;
}
.dz-footer-col-title {
    color: #172033 !important;
}
.dz-footer-title-bar {
    background: #6D35E8 !important;
}
.dz-footer-links a {
    color: #667085 !important;
}
.dz-footer-links a:hover {
    color: #6D35E8 !important;
}
.dz-footer-social-pill {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-footer-social-pill:hover {
    background: #f5f3ff !important;
    color: #6D35E8 !important;
    border-color: #ddd6fe !important;
}
.dz-footer-card-bottom {
    border-top: 1px solid #f1f5f9 !important;
}
.dz-footer-copyright-text {
    color: #94a3b8 !important;
}
.dz-footer-bottom-links {
    color: #94a3b8 !important;
}
.dz-footer-verified-badge {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}

/* Search Modal & Mobile Drawer */
.dz-search-modal-box {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #172033 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}
.dz-modal-search-header h3 {
    color: #172033 !important;
}
.dz-close-modal-btn {
    color: #667085 !important;
}
.dz-close-modal-btn:hover {
    color: #172033 !important;
}
.dz-modal-search-input-wrap {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
}
.dz-modal-search-input {
    color: #172033 !important;
}
.dz-modal-search-input::placeholder {
    color: #94a3b8 !important;
}
.dz-modal-search-icon {
    color: #667085 !important;
}
.dz-drawer-header-mobile {
    background: #ffffff !important;
    border-bottom: 1px solid #E7E9EF !important;
}
.dz-drawer-title {
    color: #172033 !important;
}
.dz-drawer-icon {
    color: #6D35E8 !important;
}
.dz-btn-close-drawer {
    color: #667085 !important;
}

/* Ad Container Light Styling (CLS safe) */
.dz-ad-container {
    background: #F6F7FB !important;
    border: 1px dashed #E7E9EF !important;
}
.dz-ad-label {
    color: #94a3b8 !important;
}

/* Empty States */
.dz-empty-card-notice,
.dz-empty-feed-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #667085 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}


/* ==========================================================================
   LIGHT THEME TARGETED OVERRIDES & REFINEMENTS
   ========================================================================== */

/* 1. Sidebar Navigation Label & Links */
.dz-nav-label {
    color: #172033 !important;
    font-weight: 700 !important;
}
.dz-nav-link {
    color: #172033 !important;
}
.dz-nav-item:hover .dz-nav-label {
    color: #6D35E8 !important;
}
.dz-nav-item.is-open .dz-nav-label {
    color: #6D35E8 !important;
}
.dz-nav-item.is-open .dz-nav-item-header {
    background: #f5f3ff !important;
    border-color: #ede9fe !important;
}
.dz-nav-badge-count {
    background: #f1f5f9 !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-nav-toggle-btn {
    color: #667085 !important;
}
.dz-nav-toggle-btn:hover {
    background: #f1f5f9 !important;
    color: #172033 !important;
}
.dz-nav-item.is-open .dz-nav-chevron {
    color: #6D35E8 !important;
}

/* Sidebar Subnav */
.dz-subnav-list {
    border-right: 2px solid #E7E9EF !important;
    background: #fafafa !important;
}
.dz-subnav-item:hover {
    background: #f5f3ff !important;
}
.dz-subnav-link {
    color: #475569 !important;
}
.dz-subnav-link:hover {
    color: #6D35E8 !important;
}
.dz-subnav-bullet {
    background: #cbd5e1 !important;
}
.dz-subnav-item:hover .dz-subnav-bullet,
.dz-subnav-item.is-active .dz-subnav-bullet {
    background: #6D35E8 !important;
}
.dz-subnav-item.is-active {
    background: #f5f3ff !important;
}
.dz-subnav-item.is-active .dz-subnav-link {
    color: #6D35E8 !important;
    font-weight: 700 !important;
}

/* 2. Category & Subject Intro Box (White Card, No Dark Background) */
.dz-cat-intro-box,
.dz-subject-intro-card,
.dz-grade-intro-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    border-radius: 10px !important;
    padding: 16px 22px !important;
}
.dz-cat-intro-box p,
.dz-subject-intro-card p,
.dz-grade-intro-card p {
    color: #334155 !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

/* 3. Material Row Feed & Padlock Icon Badges */
.dz-row-icon-badge {
    background: #f1f5f9 !important;
    border: 1px solid #E7E9EF !important;
    color: #667085 !important;
    border-radius: 6px !important;
}
.dz-row-icon-badge svg,
.dz-lock-svg {
    stroke: #667085 !important;
    color: #667085 !important;
}
.dz-article-row-item.is-open .dz-row-icon-badge,
.dz-row-icon-badge.is-open {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #16a34a !important;
}
.dz-article-row-item.is-open .dz-lock-svg,
.dz-row-icon-badge.is-open .dz-lock-svg {
    stroke: #16a34a !important;
    color: #16a34a !important;
}
.dz-row-title a {
    color: #172033 !important;
}
.dz-row-title a:hover {
    color: #6D35E8 !important;
}

/* 4. Footer Clean Light Styles */
.dz-footer-compact-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
}
.dz-footer-brand-link {
    color: #172033 !important;
}
.dz-footer-brand-title {
    color: #172033 !important;
}
.dz-footer-brand-desc {
    color: #667085 !important;
}
.dz-footer-col-title {
    color: #172033 !important;
}
.dz-footer-title-bar {
    background: #6D35E8 !important;
}
.dz-footer-links a {
    color: #667085 !important;
}
.dz-footer-links a:hover {
    color: #6D35E8 !important;
}
.dz-footer-social-pill {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-footer-social-pill:hover {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #6D35E8 !important;
}
.dz-footer-card-bottom {
    border-top: 1px solid #f1f5f9 !important;
}
.dz-footer-copyright-text,
.dz-footer-bottom-links {
    color: #94a3b8 !important;
}
.dz-footer-verified-badge {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}

/* 5. Clean Smooth Transitions */
a, button {
    transition: all 0.18s ease-in-out !important;
}


/* ==========================================================================
   TARGETED LIGHT THEME PERFECTION FOR ALL COMPONENTS
   ========================================================================== */

/* 1. Subject Cards (In Grade Archive & Related Subjects) */
.dz-subject-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px !important;
}
.dz-subject-card:hover {
    background: #F6F7FB !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
}
.dz-subj-name {
    color: #172033 !important;
    font-weight: 700 !important;
}
.dz-subject-card:hover .dz-subj-name {
    color: #6D35E8 !important;
}
.dz-subj-file-count {
    background: #f1f5f9 !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-subj-icon-wrap {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    color: #6D35E8 !important;
}
.dz-subj-chevron {
    color: #94a3b8 !important;
}

/* 2. Homepage Recent Resources & Material Feed */
.dz-material-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px !important;
}
.dz-material-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    border-color: #cbd5e1 !important;
}
.dz-mat-title a {
    color: #172033 !important;
    font-weight: 700 !important;
}
.dz-mat-title a:hover {
    color: #6D35E8 !important;
}
.dz-mat-date {
    color: #667085 !important;
}
.dz-mat-stage-pill {
    background: #f1f5f9 !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-mat-solution-pill {
    background: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}
.dz-mat-download-btn {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
}
.dz-mat-download-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* 3. Single Material Page & PDF Viewer */
.dz-viewer-nav-strip {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    border-radius: 10px !important;
}
.dz-viewer-article-title {
    color: #172033 !important;
    font-weight: 700 !important;
}
.dz-nav-chevron-btn {
    background: #f1f5f9 !important;
    border: 1px solid #E7E9EF !important;
    color: #475569 !important;
}
.dz-nav-chevron-btn:hover {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #6D35E8 !important;
}
.dz-pdf-viewer-frame-box {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.dz-pdf-viewer-iframe {
    background: #ffffff !important;
}
.dz-pdf-fallback-box {
    background: #F6F7FB !important;
    color: #475569 !important;
}

/* 4. Single Material 10-Button Action Toolbar Grid */
.dz-pdf-toolbar-grid {
    gap: 10px !important;
}
.dz-toolbar-btn {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border-radius: 10px !important;
}
.dz-toolbar-btn:hover {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #6D35E8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12) !important;
}
.dz-toolbar-btn.dz-btn-accent-download {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}
.dz-toolbar-btn.dz-btn-accent-download:hover {
    background: #dbeafe !important;
    color: #1e40af !important;
}
.dz-toolbar-btn .dz-t-badge {
    background: #6D35E8 !important;
    color: #ffffff !important;
}

/* 5. Article Content & Comments on Single Material */
.dz-single-article-body,
.dz-article-content-card,
.dz-comments-area,
.dz-related-materials-section {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
.dz-single-article-body {
    padding: 24px !important;
    margin-top: 18px !important;
}
.dz-single-article-body h2,
.dz-single-article-body h3 {
    color: #172033 !important;
}
.dz-single-article-body p {
    color: #334155 !important;
    line-height: 1.8 !important;
}
.dz-comment-respond,
.dz-comment-form {
    background: #F6F7FB !important;
    border: 1px solid #E7E9EF !important;
    border-radius: 10px !important;
}
.dz-comment-form textarea,
.dz-comment-form input {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #172033 !important;
    border-radius: 8px !important;
}
.dz-comment-form textarea:focus,
.dz-comment-form input:focus {
    border-color: #6D35E8 !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}


/* ==========================================================================
   FINAL POLISH: ARTICLE BODY, RELATED HEADINGS, 404, FORMS & GRADES
   ========================================================================== */

/* 1. Article Body & Content Description on Single Material */
.dz-prose-content,
.dz-prose-content p,
.dz-article-body,
.dz-article-body p {
    color: #334155 !important;
    font-size: 1.02rem !important;
    line-height: 1.8 !important;
}

/* 2. Related Articles & Section Headings */
.dz-related-section-title,
.dz-related-title {
    color: #172033 !important;
    font-weight: 800 !important;
}
.dz-related-section-title .dashicons,
.dz-related-title .dashicons {
    color: #6D35E8 !important;
}

/* 3. Section Archive: Grades Grid Cards */
.dz-grade-card-box {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px !important;
}
.dz-grade-card-box:hover {
    background: #F6F7FB !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px) !important;
}
.dz-grade-box-title a {
    color: #172033 !important;
}
.dz-grade-box-title a:hover {
    color: #6D35E8 !important;
}
.dz-grade-box-meta {
    color: #667085 !important;
}
.dz-grade-btn-enter {
    background: #f1f5f9 !important;
    color: #172033 !important;
    border: 1px solid #E7E9EF !important;
}
.dz-grade-btn-enter:hover {
    background: #f5f3ff !important;
    color: #6D35E8 !important;
    border-color: #ddd6fe !important;
}

/* 4. Form Controls & Contact Page */
.dz-input, .dz-textarea {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    color: #172033 !important;
}
.dz-input:focus, .dz-textarea:focus {
    background: #ffffff !important;
    border-color: #6D35E8 !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}
.dz-contact-card,
.dz-contact-sidebar-box,
.dz-contact-info-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* 5. 404 Error Page */
.dz-404-card {
    background: #ffffff !important;
    border: 1px solid #E7E9EF !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
.dz-404-title {
    color: #172033 !important;
}
.dz-404-desc {
    color: #667085 !important;
}


/* ==========================================================================
   DISTINCT SOLUTION PILLS: GREEN (SOLVED) VS RED (UNSOLVED)
   ========================================================================== */

.dz-row-solution-pill,
.dz-mat-solution-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

/* Solved / مع الحل: Green Theme */
.dz-row-solution-pill.is-solved,
.dz-mat-solution-pill.is-solved {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
}
.dz-row-solution-pill.is-solved .dz-sol-sym,
.dz-mat-solution-pill.is-solved .dz-sol-sym {
    color: #16a34a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

/* Unsolved / بدون حل: Distinct Red Theme */
.dz-row-solution-pill.is-unsolved,
.dz-mat-solution-pill.is-unsolved {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
}
.dz-row-solution-pill.is-unsolved .dz-sol-sym,
.dz-mat-solution-pill.is-unsolved .dz-sol-sym {
    color: #ef4444 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

/* Hover Effects */
.dz-row-solution-pill.is-solved:hover {
    background: #bbf7d0 !important;
}
.dz-row-solution-pill.is-unsolved:hover {
    background: #fecaca !important;
}


/* ==========================================================================
   UNIFIED CALM ARABIC EDUCATIONAL DESIGN SYSTEM
   Palette: #F6F7FB / #FFFFFF / #6D35E8 / #F3EEFF / #172033 / #667085 / #E7E9EF
   ========================================================================== */

:root {
    --dz-primary: #6d35e8;
    --dz-primary-hover: #5b21d6;
    --dz-primary-soft: #f3eeff;
    --dz-secondary: #0d9488;
    --dz-bg-dark: #f6f7fb;
    --dz-bg-surface: #ffffff;
    --dz-card-bg: #ffffff;
    --dz-card-hover: #f9fafc;
    --dz-border: #e7e9ef;
    --dz-border-highlight: #d0d5dd;
    --dz-text: #172033;
    --dz-text-muted: #667085;
    --dz-text-dim: #98a2b3;
    --dz-success: #16a34a;
    --dz-warning: #f59e0b;
    --dz-error: #dc2626;
    --dz-radius-sm: 6px;
    --dz-radius-md: 10px;
    --dz-radius-lg: 14px;
    --dz-radius-xl: 20px;
    --dz-shadow: 0 1px 3px rgba(23, 32, 51, 0.04), 0 4px 12px rgba(23, 32, 51, 0.02);
    --dz-shadow-card: 0 4px 16px -2px rgba(23, 32, 51, 0.04);
    --dz-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --dz-sidebar-width: 300px;
}

/* Global Canvas */
body {
    background-color: #f6f7fb !important;
    color: #172033 !important;
}

/* Top Announcement Strip */
.dz-top-banner {
    background: #f3eeff !important;
    border-bottom: 1px solid #e9d5ff !important;
    color: #5b21d6 !important;
    padding: 8px 12px !important;
}
.dz-banner-link,
.dz-banner-text {
    color: #5b21d6 !important;
    font-weight: 700 !important;
}
.dz-banner-link:hover {
    color: #4c1d95 !important;
}

/* Header */
.dz-navbar-sticky {
    background: #ffffff !important;
    border-bottom: 1px solid #e7e9ef !important;
    box-shadow: 0 1px 4px rgba(23, 32, 51, 0.03) !important;
}
.dz-brand-title {
    color: #172033 !important;
}
.dz-brand-tagline {
    color: #667085 !important;
}
.dz-brand-icon {
    background: #6d35e8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(109, 53, 232, 0.25) !important;
}
.dz-flag-badge {
    border: 1px solid #e7e9ef !important;
    background: #f6f7fb !important;
}
.dz-search-input-group {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
}
.dz-search-input-group:focus-within {
    background: #ffffff !important;
    border-color: #6d35e8 !important;
    box-shadow: 0 0 0 3px rgba(109, 53, 232, 0.12) !important;
}
.dz-search-field {
    color: #172033 !important;
}
.dz-search-field::placeholder {
    color: #98a2b3 !important;
}
.dz-search-submit-btn {
    color: #667085 !important;
}
.dz-search-submit-btn:hover {
    color: #6d35e8 !important;
}
.dz-btn-account {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    color: #172033 !important;
}
.dz-btn-account:hover {
    background: #f3eeff !important;
    border-color: #ddd6fe !important;
    color: #6d35e8 !important;
}
.dz-drawer-toggle-btn,
.dz-mobile-search-btn {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    color: #172033 !important;
}
.dz-drawer-toggle-btn:hover,
.dz-mobile-search-btn:hover {
    background: #f6f7fb !important;
}

/* Hero Strip */
.dz-hero-strip {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.04) !important;
    border-radius: 14px !important;
}
.dz-hero-title {
    color: #172033 !important;
}
.dz-hero-tagline {
    color: #667085 !important;
}

/* SECTION CARDS (Refined Calm Design - All White Body with Subtle Top Accent Line) */
.dz-home-card {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    border-top: 3.5px solid var(--sec-accent, #6d35e8) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.04), 0 4px 14px rgba(23, 32, 51, 0.02) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.dz-home-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px -2px rgba(23, 32, 51, 0.08) !important;
}
.dz-card-top-header {
    background: #ffffff !important;
    padding: 13px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: 1px solid #e7e9ef !important;
}
.dz-stage-indicator-pill {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
.dz-card-title {
    color: #172033 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
.dz-card-media {
    padding: 12px 14px 4px 14px !important;
}
.dz-card-illustration {
    border-radius: 10px !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.22s ease !important;
}
.dz-home-card:hover .dz-card-illustration {
    transform: scale(1.015) !important;
}
.dz-card-links-body {
    background: #ffffff !important;
    padding: 8px 14px !important;
    flex: 1 !important;
}
.dz-link-row {
    border-bottom: 1px solid #f6f7fb !important;
}
.dz-link-row:last-child {
    border-bottom: none !important;
}
.dz-link-anchor {
    color: #172033 !important;
    font-size: 0.90rem !important;
    font-weight: 600 !important;
    padding: 8px 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 8px !important;
}
.dz-link-anchor:hover {
    background: #f6f7fb !important;
    color: #6d35e8 !important;
}
.dz-cat-count-pill {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
    color: #667085 !important;
    font-size: 0.76rem !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
}
.dz-card-bottom-banner {
    background: #ffffff !important;
    padding: 13px 16px !important;
    border-top: 1px solid #e7e9ef !important;
    margin-top: auto !important;
    text-align: center !important;
}
.dz-card-bottom-banner a,
.dz-card-bottom-banner a.dz-card-badge-link,
.dz-card-badge-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--sec-accent, #6D35E8) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}
.dz-card-bottom-banner a:hover,
.dz-card-bottom-banner a.dz-card-badge-link:hover,
.dz-card-badge-link:hover {
    filter: brightness(0.9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14) !important;
    color: #ffffff !important;
}

/* SIDEBAR */
.dz-sidebar-panel {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.04), 0 4px 12px rgba(23, 32, 51, 0.02) !important;
    border-radius: 14px !important;
}
.dz-sidebar-brand-box {
    border-bottom: 1px solid #e7e9ef !important;
}
.dz-sidebar-site-tagline {
    color: #667085 !important;
}
.dz-sidebar-motto-pill {
    background: #f3eeff !important;
    border: 1px solid #e9d5ff !important;
    color: #5b21d6 !important;
}
.dz-nav-item {
    background: #ffffff !important;
    border: 1px solid transparent !important;
}
.dz-nav-item:hover {
    background: #f6f7fb !important;
    border-color: #e7e9ef !important;
}
.dz-nav-item.is-open {
    background: #fcfaff !important;
    border-color: #ede9fe !important;
}
.dz-nav-label {
    color: #172033 !important;
}
.dz-nav-item.is-open .dz-nav-label {
    color: #6d35e8 !important;
}
.dz-nav-item.is-open .dz-nav-item-header {
    background: #f3eeff !important;
    border-color: #ede9fe !important;
}
.dz-nav-badge-count {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
    color: #667085 !important;
}
.dz-subnav-list {
    border-right: 2px solid #e7e9ef !important;
    background: #fafafa !important;
}
.dz-subnav-link {
    color: #667085 !important;
}
.dz-subnav-link:hover {
    color: #6d35e8 !important;
    background: #f3eeff !important;
}
.dz-subnav-item.is-active .dz-subnav-link {
    color: #6d35e8 !important;
    background: #f3eeff !important;
    font-weight: 700 !important;
}
.dz-btn-forum {
    background: #6d35e8 !important;
    border: 1px solid #6d35e8 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(109, 53, 232, 0.22) !important;
}
.dz-btn-forum:hover {
    background: #5b21d6 !important;
}

/* SUBJECT & CONTENT CATEGORY CARDS */
.dz-subject-card,
.dz-content-cat-card,
.dz-grade-card-box {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.04) !important;
    border-radius: 12px !important;
}
.dz-subject-card:hover,
.dz-content-cat-card:hover,
.dz-grade-card-box:hover {
    background: #f9fafc !important;
    border-color: #d0d5dd !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(23, 32, 51, 0.06) !important;
}
.dz-subj-name,
.dz-cat-card-title,
.dz-grade-box-title a {
    color: #172033 !important;
    font-weight: 700 !important;
}
.dz-subj-file-count,
.dz-cat-count-pill,
.dz-chip-count {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
    color: #667085 !important;
}
.dz-subj-icon-wrap,
.dz-cat-card-icon-wrap {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
    color: #6d35e8 !important;
}

/* ARTICLE ROWS & FEED */
.dz-material-card {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.04) !important;
    border-radius: 12px !important;
}
.dz-material-card:hover {
    box-shadow: 0 6px 20px rgba(23, 32, 51, 0.06) !important;
    border-color: #d0d5dd !important;
}
.dz-mat-title a {
    color: #172033 !important;
}
.dz-mat-title a:hover {
    color: #6d35e8 !important;
}
.dz-article-row-item {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    box-shadow: 0 1px 2px rgba(23, 32, 51, 0.02) !important;
}
.dz-article-row-item:hover {
    background: #f9fafc !important;
    border-color: #d0d5dd !important;
}
.dz-row-title a {
    color: #172033 !important;
}
.dz-row-title a:hover {
    color: #6d35e8 !important;
}
.dz-row-model-badge {
    background: #f3eeff !important;
    color: #5b21d6 !important;
    border: 1px solid #e9d5ff !important;
}
.dz-row-icon-badge {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
    color: #667085 !important;
}
.dz-row-stat-pill,
.dz-row-year-pill {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
    color: #667085 !important;
}

/* SOLUTION PILLS: GREEN FOR SOLVED, RED FOR UNSOLVED */
.dz-row-solution-pill.is-solved,
.dz-mat-solution-pill.is-solved {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #16a34a !important;
    font-weight: 700 !important;
}
.dz-row-solution-pill.is-solved .dz-sol-sym,
.dz-mat-solution-pill.is-solved .dz-sol-sym {
    color: #16a34a !important;
}
.dz-row-solution-pill.is-unsolved,
.dz-mat-solution-pill.is-unsolved {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
}
.dz-row-solution-pill.is-unsolved .dz-sol-sym,
.dz-mat-solution-pill.is-unsolved .dz-sol-sym {
    color: #dc2626 !important;
}

/* FOOTER */
.dz-site-footer {
    background: transparent !important;
    color: #667085 !important;
}
.dz-footer-compact-card {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    box-shadow: 0 4px 16px -2px rgba(23, 32, 51, 0.04) !important;
    border-radius: 14px !important;
}
.dz-footer-brand-title {
    color: #172033 !important;
}
.dz-footer-brand-desc {
    color: #667085 !important;
}
.dz-footer-col-title {
    color: #172033 !important;
}
.dz-footer-title-bar {
    background: #6d35e8 !important;
}
.dz-footer-links a {
    color: #667085 !important;
}
.dz-footer-links a:hover {
    color: #6d35e8 !important;
}
.dz-footer-social-pill {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
    color: #667085 !important;
}
.dz-footer-social-pill:hover {
    background: #f3eeff !important;
    color: #6d35e8 !important;
    border-color: #ddd6fe !important;
}
.dz-footer-card-bottom {
    border-top: 1px solid #f6f7fb !important;
}
.dz-footer-copyright-text,
.dz-footer-bottom-links {
    color: #98a2b3 !important;
}
.dz-footer-verified-badge {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}

/* SINGLE MATERIAL & VIEWER */
.dz-viewer-nav-strip {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.03) !important;
    border-radius: 10px !important;
}
.dz-viewer-article-title {
    color: #172033 !important;
}
.dz-nav-chevron-btn {
    background: #f6f7fb !important;
    border: 1px solid #e7e9ef !important;
    color: #667085 !important;
}
.dz-nav-chevron-btn:hover {
    background: #f3eeff !important;
    color: #6d35e8 !important;
    border-color: #ddd6fe !important;
}
.dz-pdf-viewer-frame-box {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    box-shadow: 0 4px 20px -2px rgba(23, 32, 51, 0.05) !important;
    border-radius: 12px !important;
}
.dz-toolbar-btn {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    color: #172033 !important;
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.03) !important;
    border-radius: 10px !important;
}
.dz-toolbar-btn:hover {
    background: #f3eeff !important;
    border-color: #ddd6fe !important;
    color: #6d35e8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(109, 53, 232, 0.12) !important;
}
.dz-toolbar-btn.dz-btn-accent-download {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}
.dz-toolbar-btn .dz-t-badge {
    background: #6d35e8 !important;
    color: #ffffff !important;
}

/* Breadcrumbs & Pagination */
.dz-breadcrumbs a {
    color: #667085 !important;
}
.dz-breadcrumbs a:hover {
    color: #6d35e8 !important;
}
.dz-breadcrumb-current {
    color: #172033 !important;
}
.dz-pagination-wrap .page-numbers {
    background: #ffffff !important;
    border: 1px solid #e7e9ef !important;
    color: #172033 !important;
}
.dz-pagination-wrap .page-numbers:hover {
    background: #f6f7fb !important;
    color: #6d35e8 !important;
    border-color: #d0d5dd !important;
}
.dz-pagination-wrap .page-numbers.current {
    background: #6d35e8 !important;
    color: #ffffff !important;
    border-color: #6d35e8 !important;
}


/* ==========================================================================
   UNIFIED CALM LIGHT THEME: HERO & CARD MEDIA POLISH
   Enforcing pure white card bodies, eliminating dark letterboxing,
   and delivering a serene, high-end educational aesthetic.
   ========================================================================== */

/* 1. Eliminate Black Image Containers on Homepage & Mobile Cards */
.dz-card-media {
    background: #FFFFFF !important;
    padding: 12px 14px 4px 14px !important;
    overflow: hidden !important;
}

.dz-card-illustration {
    background: #FFFFFF !important;
    border-radius: 10px !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border: 1px solid var(--dz-border) !important;
}

/* 2. Unified White Hero Banner for Category & Tier Archives */
.dz-cat-hero-3tier {
    background: #FFFFFF !important;
    border: 1px solid var(--dz-border) !important;
    border-top: 4px solid var(--tier-accent, var(--dz-primary)) !important;
    border-radius: var(--dz-radius) !important;
    box-shadow: var(--dz-card-shadow) !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
}

.dz-3tier-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.dz-3tier-grade {
    background: #FAFAFC !important;
    color: var(--dz-text-muted) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-bottom: 1px solid var(--dz-border) !important;
    padding: 10px 20px !important;
}

.dz-3tier-subject {
    background: #FFFFFF !important;
    color: var(--tier-accent, var(--dz-primary)) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    border-bottom: 1px solid var(--dz-border) !important;
    padding: 12px 20px !important;
}

.dz-3tier-category {
    background: #FFFFFF !important;
    color: var(--dz-text-primary) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    padding: 16px 20px !important;
    margin: 0 !important;
}

/* 3. Unified White Hero Banner for Grade & Subject Level Archives */
.dz-grade-hero-banner {
    background: #FFFFFF !important;
    border: 1px solid var(--dz-border) !important;
    border-top: 4px solid var(--dz-primary) !important;
    border-radius: var(--dz-radius) !important;
    box-shadow: var(--dz-card-shadow) !important;
    color: var(--dz-text-primary) !important;
    padding: 24px 20px !important;
    text-align: center !important;
    margin-bottom: 16px !important;
}

.dz-grade-hero-banner h1,
.dz-grade-hero-title,
.dz-subj-hero-name,
.dz-subj-hero-title {
    color: var(--dz-text-primary) !important;
    font-weight: 800 !important;
}

.dz-grade-hero-sub,
.dz-grade-hero-banner p,
.dz-subj-hero-desc {
    color: var(--dz-text-muted) !important;
}

/* 4. Intro Description Box */
.dz-cat-intro-box {
    background: #FFFFFF !important;
    border: 1px solid var(--dz-border) !important;
    border-radius: var(--dz-radius) !important;
    box-shadow: var(--dz-card-shadow) !important;
    color: var(--dz-text-muted) !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

.dz-cat-intro-box p {
    color: var(--dz-text-muted) !important;
    margin: 0 !important;
}

/* 5. Minimal Subtle Stage Tabs Bar */
.dz-stage-tabs-accent-bar {
    display: flex !important;
    height: 3px !important;
    border-radius: 4px 4px 0 0 !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    opacity: 0.8 !important;
}


/* ==========================================================================
   MISCELLANEOUS (منوعات) SECTIONS & ACCORDION (مطابق لـ DzExams)
   ========================================================================== */

.dz-misc-hero-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    text-align: right;
}

.dz-misc-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0 20px;
}

.dz-misc-alert-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.dz-misc-alert-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #1e40af;
    font-weight: 600;
}

.dz-misc-subnav-bar {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.dz-misc-subnav-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dz-misc-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dz-misc-nav-pill:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
    transform: translateY(-1px);
}

.dz-misc-nav-pill.is-active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Accordion Container & Cards */
.dz-misc-accordion-container {
    margin-bottom: 32px;
}

.dz-misc-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dz-misc-cat-wrapper {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.dz-misc-cat-wrapper.is-expanded {
    box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.08);
}

.dz-misc-cat-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dz-misc-cat-wrapper.is-expanded .dz-misc-cat-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #93c5fd;
    background: #f0f7ff;
}

.dz-misc-cat-header:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.dz-misc-cat-wrapper.is-expanded .dz-misc-cat-header:hover {
    background: #f0f7ff;
}

.dz-cat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dz-cat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
    transition: transform 0.2s ease;
}

.dz-misc-cat-header:hover .dz-cat-icon-wrap {
    transform: scale(1.06);
}

.dz-cat-title-text {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.dz-cat-header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dz-cat-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
}

.dz-cat-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dz-misc-cat-wrapper.is-expanded .dz-cat-arrow-icon {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Accordion Panel Content */
.dz-misc-cat-panel {
    border: 1.5px solid #93c5fd;
    border-top: none;
    border-radius: 0 0 14px 14px;
    background: #ffffff;
    padding: 10px 16px;
    animation: dzPanelFadeIn 0.25s ease-out;
}

@keyframes dzPanelFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dz-misc-items-grid {
    display: flex;
    flex-direction: column;
}

.dz-misc-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.dz-misc-item-card:last-child {
    border-bottom: none;
}

.dz-misc-item-card:hover {
    background: #f8fafc;
    transform: translateX(-3px);
}

.dz-item-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dz-item-file-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dz-misc-item-card:hover .dz-item-file-badge {
    background: #2563eb;
    color: #ffffff;
}

.dz-item-title-link {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.dz-item-title-link:hover {
    color: #2563eb;
}

.dz-item-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dz-btn-view-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dz-btn-view-item:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.dz-misc-empty-block {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 640px) {
    .dz-misc-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .dz-item-card-left {
        width: 100%;
        justify-content: flex-end;
    }
    .dz-item-title-link {
        white-space: normal;
    }
}

/* ====================================================== */
/* SEMESTER / TERM NAVIGATION & TABS SYSTEM               */
/* ====================================================== */

/* 1. Category View - Semester Quick Switcher Bar */
.dz-term-switcher-nav {
    margin: 16px 0 20px 0;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.dz-term-switcher-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dz-term-switcher-tag {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.dz-term-switcher-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dz-term-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.dz-term-nav-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.dz-term-nav-btn.is-active {
    background: #6d28d9;
    color: #ffffff !important;
    border-color: #6d28d9;
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.25);
}

.dz-term-nav-btn.is-active .dz-term-nav-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.dz-term-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
}

/* 2. Subject View - Term Filter Tabs */
.dz-subject-terms-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 16px 0;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dz-subject-terms-tabs::-webkit-scrollbar {
    display: none;
}

.dz-term-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.dz-term-filter-tab:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.dz-term-filter-tab.is-active {
    background: #ffffff;
    color: #6d28d9;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.dz-term-filter-tab .dz-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
}

.dz-term-filter-tab.is-active .dz-tab-badge {
    background: #ede9fe;
    color: #6d28d9;
}

.dz-content-cat-card.is-filtered-out {
    display: none !important;
}