/**
 * PSK News Theme v3.2 - Layouts CSS
 * 12 Hero Layouts + 10 Feed Layouts + 5 Category Layouts + 5 Single Layouts
 */

:root {
    --feed-cols: 3;
}

/* ==========================================================================
   HERO LAYOUTS - Comun
   ========================================================================== */
.n24-hero {
    /* Reset complet - anulează orice regulă moștenită din style.css */
    display: block;
    grid-template-columns: none;
    flex-direction: initial;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    gap: 0;
}

.n24-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.n24-hero a:hover img {
    transform: scale(1.03);
}

.n24-hero .hero-item-content,
.n24-hero .n24-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.n24-hero .hero-item-content h1,
.n24-hero .hero-item-content h2,
.n24-hero .n24-hero-overlay h1 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.n24-hero .n24-category {
    display: inline-block;
    background: var(--n24-accent, #c41e3a);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* 1. HERO CLASSIC SIDEBAR */
.hero-classic-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    background: #f0f0f0;
}

.hero-classic-sidebar .n24-hero-main {
    position: relative;
    display: block;
    min-height: 400px;
    overflow: hidden;
}

.hero-classic-sidebar .n24-hero-main .n24-hero-image {
    position: absolute;
    inset: 0;
}

.hero-classic-sidebar .n24-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
}

.hero-classic-sidebar .n24-hero-title {
    color: #fff;
    font-size: 1.6rem;
    margin: 0 0 8px;
    line-height: 1.3;
}

.hero-classic-sidebar .n24-hero-excerpt {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.9rem;
}

.hero-classic-sidebar .n24-hero-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-classic-sidebar .n24-hero-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    text-decoration: none;
    flex: 1;
    align-items: center;
}

.hero-classic-sidebar .n24-hero-item-image {
    width: 90px;
    height: 65px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-classic-sidebar .n24-hero-item-title {
    font-size: 0.85rem;
    margin: 0;
    color: #222;
    line-height: 1.4;
}

/* 2. HERO FULL WIDTH */
.hero-full-width {
    position: relative;
    height: 500px;
}

.hero-full-width .n24-hero-main-wrap {
    height: 100%;
}

.hero-full-width .n24-hero-main-wrap a {
    display: block;
    height: 100%;
    position: relative;
}

.hero-full-width .n24-hero-overlay h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-full-width .n24-hero-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 0;
}

/* 3. HERO GRID 2x2 */
.hero-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 200px;
    gap: 3px;
}

.hero-grid-2x2 .hero-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.hero-grid-2x2 .hero-item:first-child {
    grid-column: 1 / -1;
}

.hero-grid-2x2 .hero-item:first-child .hero-item-content h2 {
    font-size: 1.8rem;
}

/* 4. HERO MAGAZINE */
.hero-magazine {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 3px;
}

.hero-magazine .hero-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.hero-magazine .hero-item:first-child {
    grid-row: 1 / -1;
}

.hero-magazine .hero-item:first-child .hero-item-content h2 {
    font-size: 1.6rem;
}

/* 5. HERO NEWSPAPER */
.hero-newspaper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    background: #f8f9fa;
    align-items: center;
}

.hero-newspaper .hero-text-side .hero-cat {
    display: inline-block;
    background: var(--n24-accent, #c41e3a);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-newspaper .hero-text-side h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.hero-newspaper .hero-text-side p {
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px;
}

.hero-newspaper .hero-readmore {
    color: var(--n24-accent, #c41e3a);
    font-weight: 600;
    text-decoration: none;
}

.hero-newspaper .hero-image-side img {
    border-radius: 8px;
}

/* 6. HERO CAROUSEL */
.hero-carousel {
    position: relative;
    height: 450px;
}

.hero-carousel .hero-slides {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-carousel .hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    text-decoration: none;
}

.hero-carousel .hero-slide:first-child {
    display: block;
}

.hero-carousel .hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-carousel .hero-slide-content h1 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}

.hero-carousel .hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.hero-carousel .hero-nav.prev { left: 15px; }
.hero-carousel .hero-nav.next { right: 15px; }

/* 7. HERO MASONRY */
.hero-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 180px 220px;
    gap: 3px;
}

.hero-masonry .hero-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.hero-masonry .hero-item:first-child {
    grid-row: 1 / -1;
}

.hero-masonry .hero-item:nth-child(4) {
    grid-column: 2 / 4;
}

/* 8. HERO HORIZONTAL */
.hero-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    height: 320px;
}

.hero-horizontal .hero-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.hero-horizontal .hero-item-content h2 {
    font-size: 1rem;
}

/* 9. HERO FEATURED + LIST */
.hero-featured-list {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
}

.hero-featured-list .hero-featured {
    position: relative;
    display: block;
    height: 420px;
    overflow: hidden;
}

.hero-featured-list .hero-featured .hero-item-content h1 {
    font-size: 1.8rem;
}

.hero-featured-list .hero-list {
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.hero-featured-list .hero-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    transition: background 0.2s;
}

.hero-featured-list .hero-list-item:hover {
    background: #eee;
}

.hero-featured-list .hero-list-num {
    color: var(--n24-accent, #c41e3a);
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.hero-featured-list .hero-list-item h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #222;
    line-height: 1.4;
}

/* 10. HERO OVERLAY GRID */
.hero-overlay-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 3px;
}

.hero-overlay-grid .hero-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.hero-overlay-grid .hero-item:first-child {
    grid-row: 1 / -1;
}

.hero-overlay-grid .hero-item:first-child .hero-item-content h2 {
    font-size: 1.6rem;
}

/* 11. HERO TICKER + FEATURED */
.hero-ticker-featured {
    border-radius: 8px;
    overflow: hidden;
}

.hero-ticker-featured .hero-ticker {
    display: flex;
    gap: 30px;
    padding: 12px 20px;
    background: #1a1a1a;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 0;
    animation: psk-ticker-scroll 20s linear infinite;
}

@keyframes psk-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-ticker-featured .hero-ticker-item {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    flex-shrink: 0;
}

.hero-ticker-featured .hero-ticker-item:hover {
    color: var(--n24-accent, #c41e3a);
}

.hero-ticker-featured .hero-main-article {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    min-height: 400px;
}

.hero-ticker-featured .hero-main-article > a {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.hero-ticker-featured .hero-main-article > a img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-ticker-featured .hero-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f9fa;
}

.hero-ticker-featured .hero-text .n24-category {
    align-self: flex-start;
}

.hero-ticker-featured .hero-text h1 {
    font-size: 1.8rem;
    margin: 10px 0 15px;
    line-height: 1.3;
    color: #1a1a1a;
}

.hero-ticker-featured .hero-text p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 12. HERO MOSAIC ASIMETRIC */
.hero-mosaic-asym {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 180px;
    gap: 3px;
}

.hero-mosaic-asym .hero-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.hero-mosaic-asym .hero-item:first-child {
    grid-row: 1 / -1;
}

.hero-mosaic-asym .hero-item:last-child {
    grid-column: 2 / 4;
}

.hero-mosaic-asym .hero-item:first-child .hero-item-content h2 {
    font-size: 1.6rem;
}

/* ==========================================================================
   FEED LAYOUTS - Comun
   ========================================================================== */
.n24-feed {
    margin-bottom: 30px;
}

.n24-feed .n24-feed-grid {
    display: grid;
    gap: 20px;
}

.n24-feed .feed-item {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
    border-radius: 6px;
    overflow: hidden;
}

.n24-feed .feed-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.n24-feed .feed-item img {
    object-fit: cover;
    flex-shrink: 0;
}

.n24-feed .feed-item-body h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.n24-feed .feed-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 8px;
}

.n24-feed .feed-meta {
    color: #999;
    font-size: 0.75rem;
}

/* 1. FEED LIST */
.feed-list .n24-feed-grid {
    grid-template-columns: 1fr;
}

.feed-list .feed-item {
    flex-direction: row;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.feed-list .feed-item img {
    width: 200px;
    height: 130px;
    border-radius: 6px;
}

.feed-list .feed-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 2. FEED CARDS */
.feed-cards .n24-feed-grid {
    grid-template-columns: repeat(var(--feed-cols, 3), 1fr);
}

.feed-cards .feed-item {
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
}

.feed-cards .feed-item img {
    width: 100%;
    height: 180px;
}

.feed-cards .feed-item-body {
    padding: 15px;
}

/* 3. FEED MAGAZINE */
.feed-magazine .n24-feed-grid {
    grid-template-columns: 2fr 1fr;
}

.feed-magazine .feed-item {
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
}

.feed-magazine .feed-item img {
    width: 100%;
    height: 200px;
}

.feed-magazine .feed-item:nth-child(3n+1) {
    grid-column: 1 / -1;
}

.feed-magazine .feed-item:nth-child(3n+1) img {
    height: 280px;
}

.feed-magazine .feed-item-body {
    padding: 15px;
}

/* 4. FEED TIMELINE */
.feed-timeline .n24-feed-grid {
    grid-template-columns: 1fr;
    padding-left: 30px;
    border-left: 3px solid var(--n24-accent, #c41e3a);
}

.feed-timeline .feed-item {
    position: relative;
    flex-direction: row;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
}

.feed-timeline .feed-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 25px;
    width: 12px;
    height: 12px;
    background: var(--n24-accent, #c41e3a);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--n24-accent, #c41e3a);
}

.feed-timeline .feed-item img {
    width: 150px;
    height: 100px;
    border-radius: 6px;
}

.feed-timeline .feed-item-body {
    flex: 1;
}

/* 5. FEED HORIZONTAL */
.feed-horizontal .n24-feed-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
}

.feed-horizontal .feed-item {
    flex-direction: column;
    min-width: 280px;
    max-width: 300px;
    background: #fff;
    border: 1px solid #eee;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.feed-horizontal .feed-item img {
    width: 100%;
    height: 160px;
}

.feed-horizontal .feed-item-body {
    padding: 12px;
}

/* 6. FEED OVERLAY */
.feed-overlay .n24-feed-grid {
    grid-template-columns: repeat(var(--feed-cols, 3), 1fr);
}

.feed-overlay .feed-item {
    position: relative;
    height: 250px;
    flex-direction: column;
}

.feed-overlay .feed-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.feed-overlay .feed-item-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 1;
}

.feed-overlay .feed-item-body h3 {
    color: #fff;
}

.feed-overlay .feed-meta {
    color: rgba(255,255,255,0.7);
}

/* 7. FEED COMPACT */
.feed-compact .n24-feed-grid {
    grid-template-columns: 1fr;
    gap: 0;
}

.feed-compact .feed-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.feed-compact .feed-item-body h3 {
    font-size: 0.9rem;
    margin: 0;
}

.feed-compact .feed-meta {
    margin-top: 4px;
}

/* 8. FEED SIDE BY SIDE */
.feed-side-by-side .n24-feed-grid {
    grid-template-columns: 1fr;
}

.feed-side-by-side .feed-item {
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    align-items: center;
}

.feed-side-by-side .feed-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.feed-side-by-side .feed-item-body {
    flex: 1;
}

.feed-side-by-side .feed-item-body h3 {
    font-size: 1.2rem;
}

/* 9. FEED BORDERED */
.feed-bordered .n24-feed-grid {
    grid-template-columns: repeat(var(--feed-cols, 3), 1fr);
}

.feed-bordered .feed-item {
    flex-direction: column;
    border: 2px solid #e0e0e0;
    padding: 0;
    transition: border-color 0.2s;
}

.feed-bordered .feed-item:hover {
    border-color: var(--n24-accent, #c41e3a);
}

.feed-bordered .feed-item img {
    width: 100%;
    height: 160px;
}

.feed-bordered .feed-item-body {
    padding: 15px;
}

/* 10. FEED FEATURED ROW */
.feed-featured-row .n24-feed-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feed-featured-row .feed-item {
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
}

.feed-featured-row .feed-item:nth-child(4n+1) {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 20px;
}

.feed-featured-row .feed-item:nth-child(4n+1) img {
    width: 50%;
    height: 250px;
}

.feed-featured-row .feed-item img {
    width: 100%;
    height: 160px;
}

.feed-featured-row .feed-item-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   CATEGORY LAYOUTS
   ========================================================================== */
.n24-category-layout .n24-cat-grid {
    display: grid;
    gap: 20px;
}

.n24-category-layout .arc-item {
    overflow: hidden;
}

.n24-category-layout .arc-item-image {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.n24-category-layout .arc-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.n24-category-layout .arc-item-image:hover img {
    transform: scale(1.03);
}

.n24-category-layout .arc-item-title {
    margin: 8px 0 5px;
    font-size: 1rem;
    line-height: 1.4;
}

.n24-category-layout .arc-item-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.n24-category-layout .arc-item-title a:hover {
    color: var(--n24-accent, #c41e3a);
}

.n24-category-layout .arc-item-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 8px;
}

.n24-category-layout .arc-item-meta {
    color: #999;
    font-size: 0.75rem;
}

.cat-grid .n24-cat-grid { grid-template-columns: repeat(3, 1fr); }
.cat-grid .arc-item-image { height: 180px; }

.cat-list-large .n24-cat-grid { grid-template-columns: 1fr; }
.cat-list-large .arc-item { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.cat-list-large .arc-item-image { height: 200px; }
.cat-list-large .arc-item-title { font-size: 1.3rem; }

.cat-masonry .n24-cat-grid { columns: 3; column-gap: 20px; display: block; }
.cat-masonry .arc-item { break-inside: avoid; margin-bottom: 20px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.cat-masonry .arc-item-body { padding: 12px; }

.cat-full-cards .n24-cat-grid { grid-template-columns: 1fr; }
.cat-full-cards .arc-item { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #f8f9fa; border-radius: 8px; overflow: hidden; min-height: 250px; }
.cat-full-cards .arc-item:nth-child(even) { direction: rtl; }
.cat-full-cards .arc-item:nth-child(even) > * { direction: ltr; }
.cat-full-cards .arc-item-image { height: 100%; border-radius: 0; }
.cat-full-cards .arc-item-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.cat-full-cards .arc-item-title { font-size: 1.4rem; }

.cat-numbered .n24-cat-grid { grid-template-columns: 1fr; gap: 0; }
.cat-numbered .arc-item { display: flex; align-items: center; gap: 15px; padding: 15px; border-bottom: 1px solid #eee; }
.cat-numbered .arc-item-number { font-size: 2rem; font-weight: 700; color: var(--n24-accent, #c41e3a); flex-shrink: 0; width: 50px; text-align: center; }
.cat-numbered .arc-item-image { width: 100px; height: 70px; flex-shrink: 0; }
.cat-numbered .arc-item-body { flex: 1; }

/* Banner-uri între secțiuni de grid - full width, centrate */
.n24-category-layout > .n24-banner-inline,
.n24-category-layout > .n24-partner-item,
.n24-category-layout > .partner-feed-item,
.n24-category-layout > [class*="psk-"] {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   SINGLE LAYOUTS
   ========================================================================== */
.n24-single-layout .single-header { margin-bottom: 25px; }
.n24-single-layout .single-header h1 { font-size: 2rem; line-height: 1.3; margin: 10px 0 15px; color: #1a1a1a; }
.n24-single-layout .single-meta { color: #666; font-size: 0.85rem; }
.n24-single-layout .single-meta time { margin-right: 15px; }
.n24-single-layout .single-featured-image { margin-bottom: 25px; border-radius: 8px; overflow: hidden; }
.n24-single-layout .single-featured-image img { width: 100%; height: auto; display: block; }

.single-hero-image .single-hero-banner { position: relative; height: 500px; margin-bottom: 30px; overflow: hidden; }
.single-hero-image .single-hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.single-hero-image .single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.85)); display: flex; align-items: flex-end; }
.single-hero-image .single-hero-text { padding: 40px; color: #fff; max-width: 800px; }
.single-hero-image .single-hero-text h1 { color: #fff; font-size: 2.4rem; margin: 10px 0 15px; }
.single-hero-image .single-hero-text .single-meta { color: rgba(255,255,255,0.8); }

.single-side-image .single-side-header { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; align-items: center; }
.single-side-image .single-side-text h1 { font-size: 1.8rem; }
.single-side-image .single-side-img { border-radius: 8px; overflow: hidden; }
.single-side-image .single-side-img img { width: 100%; height: auto; }

.single-minimal .single-narrow { max-width: 700px; margin: 0 auto; }
.single-minimal .single-header h1 { font-size: 2.2rem; text-align: center; }
.single-minimal .single-meta { text-align: center; margin-bottom: 30px; }

.single-magazine .single-magazine-hero { height: 400px; overflow: hidden; margin-bottom: -60px; }
.single-magazine .single-magazine-hero img { width: 100%; height: 100%; object-fit: cover; }
.single-magazine .single-header-overlap { background: #fff; padding: 30px; border-radius: 8px 8px 0 0; position: relative; z-index: 2; }

/* Single Footer - folosește stilurile din style.css (.n24-article-footer, .n24-share-buttons, .n24-share-btn) */

.n24-related { margin-top: 40px; padding-top: 30px; border-top: 2px solid #eee; }
.n24-related-title { font-size: 1.2rem; margin-bottom: 20px; }
.n24-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-classic-sidebar { grid-template-columns: 1fr; }
    .hero-grid-2x2 { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-magazine { grid-template-columns: 1fr 1fr; }
    .hero-newspaper { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .hero-horizontal { grid-template-columns: repeat(2, 1fr); height: auto; }
    .hero-featured-list { grid-template-columns: 1fr; }
    .hero-overlay-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-mosaic-asym { grid-template-columns: 1fr 1fr; }
    .hero-ticker-featured .hero-main-article { grid-template-columns: 1fr; min-height: auto; }
    .hero-ticker-featured .hero-main-article > a { min-height: 250px; }
    
    .feed-cards .n24-feed-grid,
    .feed-overlay .n24-feed-grid,
    .feed-bordered .n24-feed-grid,
    .feed-featured-row .n24-feed-grid { grid-template-columns: repeat(2, 1fr); }
    
    .cat-grid .n24-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-masonry .n24-cat-grid { columns: 2; }
    .cat-full-cards .arc-item { grid-template-columns: 1fr; min-height: auto; }
    .cat-list-large .arc-item { grid-template-columns: 200px 1fr; }
    
    .single-hero-image .single-hero-banner { height: 350px; }
    .single-side-image .single-side-header { grid-template-columns: 1fr; }
    .n24-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-magazine { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-masonry { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-horizontal { grid-template-columns: 1fr; }
    .hero-mosaic-asym { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-full-width { height: 300px; }
    .hero-carousel { height: 300px; }
    
    .feed-cards .n24-feed-grid,
    .feed-overlay .n24-feed-grid,
    .feed-bordered .n24-feed-grid,
    .feed-featured-row .n24-feed-grid { grid-template-columns: 1fr; }
    
    .feed-list .feed-item { flex-direction: column; }
    .feed-list .feed-item img { width: 100%; height: 180px; }
    .feed-side-by-side .feed-item { flex-direction: column; text-align: center; }
    .feed-side-by-side .feed-item img { width: 80px; height: 80px; margin: 0 auto; }
    .feed-magazine .n24-feed-grid { grid-template-columns: 1fr; }
    .feed-featured-row .feed-item:nth-child(4n+1) { flex-direction: column; }
    .feed-featured-row .feed-item:nth-child(4n+1) img { width: 100%; }
    
    .cat-grid .n24-cat-grid { grid-template-columns: 1fr; }
    .cat-masonry .n24-cat-grid { columns: 1; }
    .cat-list-large .arc-item { grid-template-columns: 1fr; }
    
    .single-hero-image .single-hero-banner { height: 250px; }
    .single-hero-image .single-hero-text h1 { font-size: 1.5rem; }
    .single-magazine .single-magazine-hero { height: 250px; }
    
    .n24-related-grid { grid-template-columns: 1fr; }
    .n24-single-footer { flex-direction: column; align-items: flex-start; }
}

/* ===== COMPATIBILITATE PSK SATELIT: ad-uri clonate inserate de JS în grid ===== */
.n24-cat-grid .psk-listing-ad {
    grid-column: 1 / -1;
    max-width: 100%;
}
.n24-cat-grid .psk-slot,
.n24-cat-grid .psk-native,
.n24-cat-grid .psk-card {
    grid-column: 1 / -1;
    max-width: 100%;
}
