:root{ --dhn-radius:18px; --dhn-shadow:0 16px 40px rgba(0,0,0,.08); --dhn-primary:#ff4b2b; --dhn-accent:#0ea5e9; }
.dhn-grid, .dhn-metro, .dhn-tiles { display:grid; gap:20px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.dhn-masonry{ column-count:3; column-gap:20px; }
.dhn-masonry .dhn-card{ display:inline-block; width:100%; margin:0 0 20px; }
.dhn-metro .dhn-metro-big{ grid-column: span 2; grid-row: span 2; }
.dhn-card{ background:#fff; border-radius:var(--dhn-radius); box-shadow:var(--dhn-shadow); overflow:hidden; position:relative; }
.dhn-media{ position:relative; display:block; overflow:hidden; aspect-ratio: 0.66; }
.dhn-media img{ width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.02); transition:transform .35s ease; }
.dhn-card:hover .dhn-media img{ transform:scale(1.07); }
.dhn-cat{ position:absolute; top:12px; left:12px; background:var(--dhn-primary); color:#fff; font-weight:700; padding:6px 10px; border-radius:999px; }
.dhn-content{ padding:16px; }
.dhn-title{ margin:0 0 6px; line-height:1.3; font-size:1.05rem; }
.dhn-title a{ color:#0f172a; text-decoration:none; }
.dhn-title a:hover{ color:var(--dhn-primary); }
.dhn-meta{color:#64748b; font-size:.85rem; margin-bottom:6px}
.dhn-excerpt{color:#334155; font-size:.95rem}
.dhn-overlay .dhn-media:after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 20%, rgba(0,0,0,.6)); }
.dhn-overlay .dhn-content{ position:absolute; left:16px; right:16px; bottom:12px; color:#fff; }
.dhn-overlay .dhn-title a{ color:#fff; } .dhn-overlay .dhn-meta{ color:#dbeafe; }
.dhn-glass{ backdrop-filter: blur(6px); background:rgba(255,255,255,.35); border:1px solid rgba(255,255,255,.5); }
.dhn-glass .dhn-content{ background:rgba(255,255,255,.6); margin:12px; border-radius:16px; }
.dhn-neo{ box-shadow: 8px 8px 20px rgba(0,0,0,.08), -8px -8px 20px rgba(255,255,255,.7); border-radius:30px; }
.dhn-outline{ border:1px solid #e2e8f0; box-shadow:none; }
.dhn-outline:hover{ background:#f8fafc; }
.dhn-leftline{ box-shadow:none; border-left:6px solid var(--dhn-primary); }
.dhn-borderless{ box-shadow:none; border-radius:0; border-bottom:1px solid #e5e7eb; }
.dhn-badge:before{ content:''; position:absolute; right:0; top:0; border-left: 24px solid transparent; border-bottom: 24px solid var(--dhn-primary); }
.dhn-gradient .dhn-media::after{ content:''; position:absolute; inset:0; background:linear-gradient(120deg, var(--dhn-primary), var(--dhn-accent)); mix-blend-mode:multiply; opacity:.45; }
.dhn-meta.pills span{ background:#e2e8f0; padding:4px 8px; border-radius:9999px; margin-right:6px; display:inline-block; }
.dhn-list{ display:flex; flex-direction:column; gap:18px; }
.dhn-list .dhn-card{ display:flex; gap:16px; }
.dhn-list .dhn-media{ width:180px; flex:0 0 180px; }
.dhn-list .dhn-media img{ height:120px; border-radius:12px; }
.dhn-slider, .dhn-carousel{ position:relative; }
.dhn-slider .dhn-track, .dhn-carousel .dhn-track{ --per:3; --gap:16px; display:flex; gap:var(--gap); overflow:auto; scroll-snap-type:x mandatory; padding-bottom:8px; }
.dhn-slider .dhn-slide, .dhn-carousel .dhn-slide{ flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align:start; }
.dhn-slider .dhn-arrows, .dhn-carousel .dhn-arrows{ position:absolute; right:8px; top:-38px; display:flex; gap:6px; }
.dhn-slider .dhn-arrows button, .dhn-carousel .dhn-arrows button{ background:#0f172a; color:#fff; border:none; width:28px; height:28px; border-radius:6px; cursor:pointer; }
.dhn-tabs .dhn-tab-nav{ display:flex; gap:10px; margin-bottom:10px; flex-wrap:wrap;}
.dhn-tabs .dhn-tab-nav button{ background:#e2e8f0; border:none; padding:6px 12px; border-radius:999px; cursor:pointer; }
.dhn-tabs .dhn-tab-nav button.active{ background:var(--dhn-primary); color:#fff; }
.dhn-tabs .dhn-tab-panel{ display:none; }
.dhn-tabs .dhn-tab-panel.active{ display:block; }
.dhn-ticker{ overflow:hidden; white-space:nowrap; border:1px solid #e2e8f0; border-radius:999px; padding:6px 10px; }
.dhn-ticker .dhn-track{ display:inline-block; animation: dhn-marquee 20s linear infinite; }
@keyframes dhn-marquee{ 0%{ transform:translateX(0);} 100%{ transform:translateX(-50%);} }
.dhn-gallery{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.dhn-gallery-masonry{ column-count:4; column-gap:10px; }
.dhn-gallery-masonry .dhn-media{ display:inline-block; width:100%; margin-bottom:10px; }
body.dhn-rtl{ direction:rtl; }