/* ===========================================================================
   Post News theme — classic Turkish news-portal layout (gray canvas, white
   cards, red accents). Loaded by templates/public/themes/postnews/*.twig via
   the base layout's page_custom_css block.
   =========================================================================== */

:root {
    --pn-canvas: #f0f1f2;
    --pn-card: #ffffff;
    --pn-ink: #343f52;
    --pn-muted: #60697b;
    --pn-line: #eaecf4;
    --pn-red: #c00000;
    --pn-badge: #ff2333;
    --pn-bar: #5b5e68;
    --pn-yellow: #ffcc00;
    --pn-radius: 10px;
}

body { background: var(--pn-canvas); color: var(--pn-ink); }
.pn-wrap { padding-bottom: 3rem; }
.pn-wrap a { color: inherit; text-decoration: none; }
.pn-wrap a:hover { color: var(--pn-red); }
.pn-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Section title ─────────────────────────────────────────────────────── */
.pn-section-title { background: var(--pn-card); margin-bottom: 10px; padding: 0 15px; box-shadow: rgba(33, 35, 38, 0.1) 0 10px 10px -10px; border-radius: 4px; }
.pn-section-title > div { padding: 10px 0; line-height: 20px; font-size: 1.25rem; display: flex; align-items: center; white-space: nowrap; }
.pn-section-title > div > span { font-size: 17px; font-weight: 600; color: var(--pn-muted); }
.pn-section-title > div::after { content: ""; border-top: 4px solid var(--pn-line); flex: 1; margin-left: 10px; }
.pn-section-title.pn-accent > div > span { color: var(--pn-ink); border-bottom: 3px solid var(--pn-red); padding-bottom: 6px; }
.pn-section-title .pn-more { font-size: 13px; font-weight: 600; color: var(--pn-muted); margin-left: 10px; }

/* ── Breaking bar ──────────────────────────────────────────────────────── */
.pn-break { width: 100%; background: var(--pn-bar); margin-bottom: 1.5rem; }
.pn-break .pn-break-inner { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.pn-break-label { display: flex; align-items: center; color: #fff; font-size: 16px; font-weight: 600; flex-shrink: 0; }
.pn-break-label i { font-size: 20px; line-height: 1; animation: pn-blink 1.4s infinite both; }
.pn-break-label i:nth-of-type(2) { animation-delay: .2s; }
.pn-break-label i:nth-of-type(3) { animation-delay: .4s; }
@keyframes pn-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.pn-break-track { position: relative; flex: 1; min-width: 0; height: 34px; overflow: hidden; }
.pn-break-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; opacity: 0; transition: opacity .4s ease; padding: 5px; }
.pn-break-item.is-active { opacity: 1; }
.pn-break-item time { color: var(--pn-yellow); font-weight: 600; font-size: 15px; flex-shrink: 0; }
.pn-break-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Hero strip (4 overlay cards) ──────────────────────────────────────── */
.pn-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 2rem; }
.pn-hero-card { position: relative; display: block; height: 300px; border-radius: var(--pn-radius); overflow: hidden; background: #111; }
.pn-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pn-hero-card:hover img { transform: scale(1.05); }
.pn-hero-card figcaption { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 1rem; color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 70%, rgba(0,0,0,.95) 100%); }
.pn-hero-card h2 { font-size: 17px; font-weight: 700; line-height: 1.3; color: #fff; margin: 0 0 .4rem; }
.pn-hero-card .pn-meta { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }

/* ── Headline grid ─────────────────────────────────────────────────────── */
.pn-cols-8-4 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; margin-bottom: 2rem; }
.pn-headlines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 137px; gap: 8px; }
.pn-headline-item { position: relative; display: block; overflow: hidden; border-radius: 5px; background: #111; }
.pn-headline-item:first-child { grid-column: span 3; grid-row: span 2; }
.pn-headline-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .4s ease; }
.pn-headline-item:hover img { transform: scale(1.04); }
.pn-headline-item .pn-shade { position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.95) 87%, #000 100%); }
.pn-headline-item .pn-badge { position: absolute; z-index: 3; top: 10px; left: 10px; background: var(--pn-badge); color: #fff !important;
    font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 2px; text-transform: uppercase; }
.pn-headline-item .pn-title { position: absolute; z-index: 3; left: 0; right: 0; bottom: 10px; padding: 14px; color: #fff;
    font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; }
.pn-headline-item:first-child .pn-title { font-size: 26px; bottom: 30px; padding: 20px; }
.pn-headline-item:hover { color: #fff; }

/* ── Popular list ──────────────────────────────────────────────────────── */
.pn-popular { background: var(--pn-card); border-radius: var(--pn-radius); padding: 4px 14px; }
.pn-num-item { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(153,153,153,.2); padding: 10px 0; min-height: 75px; }
.pn-num-item:last-child { border-bottom: 0; }
.pn-num-item .pn-num { font-size: 42px; width: 58px; flex-shrink: 0; font-weight: 400; line-height: 1; color: #ccc; text-align: center; transition: color .3s ease; }
.pn-num-item:hover .pn-num { color: var(--pn-red); }
.pn-num-item .pn-info { font-weight: 500; font-size: 15px; line-height: 1.35; }

/* ── Currency strip ────────────────────────────────────────────────────── */
.pn-currency { background: var(--pn-card); border-radius: var(--pn-radius); padding: 14px; display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 2rem; }
.pn-currency .pn-cur-item { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 14px; border-right: 1px solid var(--pn-line); }
.pn-currency .pn-cur-item:last-child { border-right: 0; }
.pn-currency .pn-cur-name { font-weight: 600; color: var(--pn-muted); }
.pn-currency .pn-cur-value { font-weight: 700; }
.pn-currency .pn-up { color: #16a34a; }
.pn-currency .pn-down { color: var(--pn-red); }

/* ── Post cards (3-up blocks) ──────────────────────────────────────────── */
.pn-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pn-post-item { display: flex; flex-direction: column; position: relative; min-height: 300px; background: var(--pn-card);
    border-bottom: 4px solid var(--pn-line); border-radius: var(--pn-radius); overflow: hidden; transition: background .25s ease, border-color .25s ease; }
.pn-post-item:hover { background: var(--pn-line); border-bottom-color: var(--pn-red); }
.pn-post-item .pn-thumb { overflow: hidden; aspect-ratio: 16 / 9; background: #e5e7eb; }
.pn-post-item .pn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pn-post-item:hover .pn-thumb img { transform: scale(1.06); }
.pn-post-item .pn-cat { position: absolute; right: 10px; top: 10px; z-index: 3; background: var(--pn-badge); color: #fff;
    padding: 2px 10px; font-weight: 700; font-size: 12px; border-radius: 2px; }
.pn-post-item .pn-title { margin: 18px 0; padding: 0 14px; font-size: 17px; font-weight: 600; line-height: 1.4; }

/* ── Category columns ──────────────────────────────────────────────────── */
.pn-cat-cols .pn-post-item { min-height: 0; }
.pn-cat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 2rem; }
.pn-arrow-item { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(153,153,153,.2); padding: 10px 0; }
.pn-arrow-item:last-child { border-bottom: 0; }
.pn-arrow-item .pn-arrow { color: #ccc; font-size: 22px; flex-shrink: 0; width: 24px; text-align: center; }
.pn-arrow-item:hover .pn-arrow { color: var(--pn-red); }
.pn-arrow-item h6 { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0; }

/* ── Horizontal rail ("Diğer Haberler") ────────────────────────────────── */
.pn-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto;
    padding-bottom: .75rem; scroll-snap-type: x mandatory; }
.pn-rail > * { scroll-snap-align: start; }
.pn-rail::-webkit-scrollbar { height: 6px; }
.pn-rail::-webkit-scrollbar-thumb { background: #c9ccd2; border-radius: 999px; }

/* ── Video block ───────────────────────────────────────────────────────── */
.pn-video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; }
.pn-video-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pn-media-item { display: flex; gap: 12px; align-items: center; background: var(--pn-card); border-radius: 6px; padding: 8px; }
.pn-media-item img { width: 96px; height: 66px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.pn-media-item h6 { font-size: 14px; font-weight: 500; line-height: 1.35; margin: 0; }
.pn-play { position: absolute; z-index: 3; left: 50%; top: 45%; transform: translate(-50%, -50%); color: #fff; font-size: 42px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* ── Listing / archive pages ───────────────────────────────────────────── */
.pn-page-head { background: var(--pn-card); border-radius: var(--pn-radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.pn-page-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .35rem; border-bottom: 3px solid var(--pn-red); display: inline-block; padding-bottom: 6px; }
.pn-page-head p { color: var(--pn-muted); margin: .5rem 0 0; }
.pn-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.pn-list-layout.pn-no-side { grid-template-columns: minmax(0, 1fr); }
.pn-side-card { background: var(--pn-card); border-radius: var(--pn-radius); padding: 14px; margin-bottom: 1.25rem; }
.pn-side-card h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6rem;
    border-bottom: 3px solid var(--pn-red); display: inline-block; padding-bottom: 5px; }
.pn-side-card a { display: block; padding: .45rem 0; color: var(--pn-muted); border-bottom: 1px solid var(--pn-line); font-size: 14px; }
.pn-side-card a:last-child { border-bottom: 0; }
.pn-side-card a.is-active { color: var(--pn-red); font-weight: 700; }
.pn-list { display: flex; flex-direction: column; gap: 14px; }
.pn-list-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; background: var(--pn-card);
    border-radius: var(--pn-radius); overflow: hidden; border-bottom: 4px solid var(--pn-line); }
.pn-list-card:hover { border-bottom-color: var(--pn-red); }
.pn-list-card img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; display: block; }
.pn-list-body { padding: 1rem 1rem 1rem 0; min-width: 0; }
.pn-list-body .pn-kicker { color: var(--pn-red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.pn-list-body h2 { font-size: 19px; font-weight: 700; line-height: 1.35; margin: 0 0 .5rem; }
.pn-list-body p { color: var(--pn-muted); font-size: 14px; line-height: 1.6; margin: 0 0 .6rem; }
.pn-list-meta { color: var(--pn-muted); font-size: 12.5px; display: flex; gap: 1rem; flex-wrap: wrap; }
.pn-pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.pn-pagination a { background: var(--pn-card); border-radius: 4px; padding: .45rem .8rem; font-weight: 600; font-size: 14px; }
.pn-pagination a.is-active { background: var(--pn-red); color: #fff; }
.pn-empty { background: var(--pn-card); border-radius: var(--pn-radius); padding: 2rem; text-align: center; color: var(--pn-muted); }

/* ── Article detail ────────────────────────────────────────────────────── */
.pn-article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pn-article {  border-radius: var(--pn-radius); padding: 1.5rem; min-width: 0; }
.pn-article .pn-kicker { color: var(--pn-red); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.pn-article h1 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 .8rem; }
.pn-article .pn-spot { font-size: 1.02rem; color: var(--pn-muted); line-height: 1.75; margin-bottom: 1rem; }
.pn-article .pn-meta-row { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--pn-muted); font-size: 13px;
    border-top: 1px solid var(--pn-line); border-bottom: 1px solid var(--pn-line); padding: .6rem 0; margin-bottom: 1.25rem; }
.pn-article .page-content { line-height: 1.85; }
.pn-article .page-content p { margin-bottom: 1rem; }
.pn-article .page-content img, .pn-article .page-content iframe, .pn-article .page-content video { max-width: 100%; height: auto; border-radius: 8px; }
.pn-article-image { width: 100%; border-radius: 8px; margin-bottom: 1.25rem; }
.pn-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pn-tags a, .pn-tags span { display: inline-flex; padding: .4rem .8rem; border: 1px solid var(--pn-line); border-radius: 999px; background: #f8fafc; font-size: 13px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .pn-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pn-currency { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pn-currency .pn-cur-item:nth-child(3n) { border-right: 0; }
}
@media (max-width: 960px) {
    .pn-cols-8-4, .pn-cat-cols, .pn-grid-3, .pn-video-grid, .pn-article-grid, .pn-list-layout { grid-template-columns: minmax(0, 1fr); }
    .pn-headlines { grid-auto-rows: 120px; }
    .pn-headline-item:first-child .pn-title { font-size: 20px; }
}
@media (max-width: 680px) {
    .pn-hero, .pn-currency, .pn-headlines, .pn-video-list { grid-template-columns: minmax(0, 1fr); }
    .pn-currency .pn-cur-item { border-right: 0; border-bottom: 1px solid var(--pn-line); padding-bottom: 8px; }
    .pn-hero-card { height: 220px; }
    .pn-headlines { grid-auto-rows: 200px; }
    .pn-headline-item:first-child { grid-column: span 1; grid-row: span 1; }
    .pn-list-card { grid-template-columns: minmax(0, 1fr); }
    .pn-list-card img { min-height: 0; aspect-ratio: 16 / 9; }
    .pn-list-body { padding: 1rem; }
    .pn-break .pn-break-inner { gap: 8px; }
    .pn-break-label span { display: none; }
}

/* ── Builder sections rendered inside the news layout ──────────────────────
   The panel's grid/carousel sections keep their own markup; these rules make
   them read like the theme's own cards (white card, red bottom accent, red
   section title underline). ------------------------------------------------ */
.pn-wrap .section-grid,
.pn-wrap .section-carousel { padding-top: 0 !important; }
.pn-wrap .section-grid > div > div:first-child,
.pn-wrap .section-carousel > div > div:first-child {
    border-radius: 4px; 
    padding: 0 15px; 
    margin-bottom: 10px;
}
.pn-wrap .section-grid h2,
.pn-wrap .section-carousel h2 { 
    font-size: 17px !important; 
    font-weight: 600 !important; 
    color: var(--pn-ink);
    display: inline-block; 
    padding: 10px 0 6px; 
}
.pn-wrap .cms-grid-news-item,
.pn-wrap .section-carousel .carousel-item {
    background: var(--pn-card) !important; border: 0 !important;
    border-bottom: 4px solid var(--pn-line) !important; border-radius: var(--pn-radius) !important;
    transition: background .25s ease, border-color .25s ease;
}
.pn-wrap .cms-grid-news-item:hover,
.pn-wrap .section-carousel .carousel-item:hover {
    background: var(--pn-line) !important; border-bottom-color: var(--pn-red) !important;
}
.pn-wrap .cms-grid-news-item h3,
.pn-wrap .section-carousel .carousel-item h3 {
    font-size: 17px !important; font-weight: 600 !important; line-height: 1.4 !important;
}
.pn-wrap .cms-grid-news-item h3 a:hover,
.pn-wrap .section-carousel .carousel-item h3 a:hover { color: var(--pn-red); }
/* category / meta line of a news card */
.pn-wrap .cms-grid-news-item > div:last-child > div:first-child,
.pn-wrap .section-carousel .carousel-item-meta { opacity: 1 !important; }
.pn-wrap .section-carousel .carousel-item-meta span:first-child {
    color: var(--pn-red); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.pn-wrap .cms-grid-news-item > div:last-child > div:first-child span:first-child {
    color: var(--pn-red); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
/* overlay cards keep light meta text on the image */
#sec_home_hero .cms-grid-news-item > div:last-child > div:first-child span:first-child {
    color: rgba(255, 255, 255, .85); font-weight: 400; text-transform: none; letter-spacing: 0;
}
/* the shared grid/carousel partials size images without object-fit, and give
   the first mosaic card a 1.5x tall image — normalise both here */
.pn-wrap .cms-grid-news-item img,
.pn-wrap .cms-grid-news-item picture,
.pn-wrap .section-carousel .carousel-item img { object-fit: cover; }
.pn-wrap .cms-grid-news-item.is-featured > div:first-child { min-height: 190px !important; }

/* ── Carousel item styles (section settings → Item Style) ──────────────────
   `card` (image top) and `card_reverse` (image below the title) reuse the
   generic white-card look above; the two image-led styles need the card chrome
   removed so the photo can fill the tile like the homepage mosaic does. ----- */
.pn-wrap .section-carousel .carousel-item-overlay,
.pn-wrap .section-carousel .carousel-item-image-only,
.pn-wrap .section-carousel .carousel-item-overlay:hover,
.pn-wrap .section-carousel .carousel-item-image-only:hover {
    background: #111 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 5px !important;
}
.pn-wrap .section-carousel .carousel-item-overlay h3,
.pn-wrap .section-carousel .carousel-item-overlay .page-content { color: #fff !important; }
.pn-wrap .section-carousel .carousel-item-overlay h3 { font-size: 16px !important; font-weight: 700 !important; }
/* category chip over the photo, matching "Günün Manşetleri" */
.pn-wrap .section-carousel .carousel-item-overlay .carousel-item-meta { color: #fff; }
.pn-wrap .section-carousel .carousel-item-overlay .carousel-item-meta span:first-child {
    background: var(--pn-badge); color: #fff; font-size: 12px; font-weight: 700;
    padding: 3px 9px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0;
}
.pn-wrap .section-carousel .carousel-item-overlay .carousel-item-meta span:not(:first-child) { opacity: .85; }
/* title-only tiles read as list rows, not empty cards */
.pn-wrap .section-carousel .carousel-item-title-only { justify-content: flex-start; }
.pn-wrap .section-carousel .carousel-item-title-only h3 { font-size: 17px !important; font-weight: 600 !important; }
/* image-below variant keeps the photo flush with the card's bottom accent */
.pn-wrap .section-carousel .carousel-item-card-reverse > div:last-child { border-radius: 0; }

/* ── Per-section hooks (ids are seeded by app:demo:create-news-site) ────── */
/* Vitrin: 4 overlay cards */
#sec_home_hero .cms-grid-news-item { border-radius: var(--pn-radius) !important; border-bottom: 0 !important; }
#sec_home_hero .cms-grid-news-item h3 { font-size: 17px !important; color: #fff !important; }
#sec_home_hero .cms-grid-news-item:hover { background: transparent !important; }

/* Günün Manşetleri: overlay mosaic, first card spans 3x2 */
#sec_home_headlines .cms-grid-news-item { border-radius: 5px !important; border-bottom: 0 !important; }
#sec_home_headlines .cms-grid-news-item:hover { background: transparent !important; }
#sec_home_headlines .cms-grid-news-item h3 { font-size: 15px !important; color: #fff !important; text-align: center; }
#sec_home_headlines .cms-grid-news-item.is-featured h3 { font-size: 26px !important; }
/* category label → red badge */
#sec_home_headlines .cms-grid-news-item > div:last-child > div:first-child { opacity: 1 !important; }
#sec_home_headlines .cms-grid-news-item > div:last-child > div:first-child span {
    background: var(--pn-badge); color: #fff; font-size: 12px; font-weight: 700;
    padding: 3px 9px; border-radius: 2px; text-transform: uppercase;
}

/* Çok Okunanlar: numbered list */
#sec_home_mostread { counter-reset: pn-most; background: var(--pn-card); border-radius: var(--pn-radius); padding: 4px 14px; }
#sec_home_mostread article { position: relative; padding: 10px 0 10px 58px !important; min-height: 75px;
    border-bottom: 1px solid rgba(153, 153, 153, .2); height: auto !important; align-items: center; }
#sec_home_mostread article:last-child { border-bottom: 0; }
#sec_home_mostread article::before {
    counter-increment: pn-most; content: counter(pn-most);
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 58px; text-align: center; font-size: 42px; line-height: 1; color: #ccc; transition: color .3s ease;
}
#sec_home_mostread article:hover::before { color: var(--pn-red); }
#sec_home_mostread .cms-grid-list-title { font-size: 15px !important; font-weight: 500 !important; }

/* Kategori kolonları: lead card + arrow list */
[id^="sec_home_catlead_"] .cms-grid-news-item { min-height: 0; }
[id^="sec_home_catlist_"] { background: var(--pn-card); border-radius: var(--pn-radius); padding: 4px 14px; margin-top: .5rem; }
[id^="sec_home_catlist_"] article { position: relative; padding: 10px 0 10px 26px !important; height: auto !important;
    border-bottom: 1px solid rgba(153, 153, 153, .2); }
[id^="sec_home_catlist_"] article:last-child { border-bottom: 0; }
[id^="sec_home_catlist_"] article::before {
    content: '\203A'; position: absolute; left: 0; top: 8px; width: 22px; text-align: center;
    font-size: 22px; line-height: 1.2; color: #ccc;
}
[id^="sec_home_catlist_"] article:hover::before { color: var(--pn-red); }
[id^="sec_home_catlist_"] .cms-grid-list-title { font-size: 15px !important; font-weight: 500 !important; }

/* the currency section keeps the widget's own chrome on a white card */
.pn-wrap .section-currency-rate,
.pn-wrap .cms-currency-rate-widget { background: var(--pn-card); border-radius: var(--pn-radius); }

/* the currency_rate section has no .container of its own */
.pn-wrap .cms-currency-rate-widget {
    max-width: var(--site-section-max-width); margin: 0 auto 2rem; padding: 14px 1.5rem;
    background: var(--pn-card); border-radius: var(--pn-radius);
}
/* the shared mosaic grid clamps to a 3-column minimum; the category lead card
   is a single-item grid, so force one column for it */
[id^="sec_home_catlead_"] { grid-template-columns: 1fr !important; }
[id^="sec_home_catlead_"] .cms-grid-news-item > div:last-child { padding: 1rem 1.1rem !important; }

/* ── Article page built from news sections ─────────────────────────────────
   Site Settings → News → Auto Sections drives the order; these rules give the
   section output the theme's article typography. --------------------------- */
.pn-article > section > .container { padding-left: 0; padding-right: 0; max-width: none; }
.pn-article .section-news-category a,
.pn-article .section-news-category span { color: var(--pn-red); font-size: 12.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; }
.pn-article .section-news-title h1,
.pn-article .section-news-title h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem) !important; line-height: 1.15 !important; margin: 0 !important; }
.pn-article .section-news-spot p { font-size: 1.02rem !important; color: var(--pn-muted) !important; line-height: 1.75 !important; }
.pn-article .section-news-author,
.pn-article .section-news-date { display: inline-block; vertical-align: middle; color: var(--pn-muted); font-size: 13px; }
.pn-article .section-news-author { margin-right: 1rem; }
.pn-article .section-news-date + section { clear: both; }
.pn-article .section-news-body .page-content { line-height: 1.85; }
.pn-article .section-news-body .page-content p { margin-bottom: 1rem; }
.pn-article .section-news-featured-image img { width: 100%; height: auto; border-radius: 8px; display: block; }
.pn-article .section-news-tags a,
.pn-article .section-news-tags span { border-radius: 999px; }
.pn-article .section-grid h2 { font-size: 17px !important; font-weight: 600 !important; color: var(--pn-ink);
    display: inline-block; padding: 10px 0 6px; border-bottom: 3px solid var(--pn-red); }
.pn-article .section-grid > div > div:first-child { background: transparent; box-shadow: none; padding: 0; margin-bottom: 10px !important; }
.pn-article .cms-grid-news-item { background: #f8fafc !important; }
/* author + date read as one meta line under the spot */
.pn-article .section-news-author > .container,
.pn-article .section-news-date > .container { display: inline-flex; align-items: center; gap: .5rem; }
.pn-article .section-news-author * { display: inline; font-size: 13px !important; }
.pn-article .section-news-author img { display: inline-block; vertical-align: middle; }
/* the article body arrives as a `text`/`html` section (or news_body) */
.pn-article .section-text-content,
.pn-article .section-html .page-content { line-height: 1.85; }
.pn-article .section-text-content p,
.pn-article .section-html .page-content p { margin-bottom: 1rem; }
.pn-article .section-text-content img,
.pn-article .section-text-content iframe { max-width: 100%; height: auto; border-radius: 8px; }
/* sections synthesised from the news template use their own default padding —
   normalise the vertical rhythm inside the article card */
.pn-article > section { padding-top: 0 !important; padding-bottom: .9rem !important; }
.pn-article > section.section-news-author { padding-bottom: 0 !important; }
.pn-article > section.section-grid { padding-top: 1rem !important; }

/* ── Article page: everything comes from sections ──────────────────────────
   A `columns` section inside the article builds the main/sidebar split; these
   rules give its list grids the theme's numbered / arrow styling, matching the
   homepage rails. --------------------------------------------------------- */
.pn-article .section-columns { padding: 0 !important; }
.pn-article .columns-col > .section-grid > div > div:first-child { background: transparent; box-shadow: none; padding: 0; }
.pn-article .columns-col .cms-grid-list { counter-reset: pn-side; background: #f8fafc; border-radius: var(--pn-radius); padding: 4px 12px; }
.pn-article .columns-col .cms-grid-list article {
    position: relative; height: auto !important; min-height: 56px; padding: 10px 0 10px 46px !important;
    border-bottom: 1px solid rgba(153, 153, 153, .2);
}
.pn-article .columns-col .cms-grid-list article:last-child { border-bottom: 0; }
.pn-article .columns-col .cms-grid-list article::before {
    counter-increment: pn-side; content: counter(pn-side);
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 42px; text-align: center; font-size: 30px; line-height: 1; color: #ccc; transition: color .3s ease;
}
.pn-article .columns-col .cms-grid-list article:hover::before { color: var(--pn-red); }
.pn-article .columns-col .cms-grid-list-title { font-size: 14.5px !important; font-weight: 500 !important; }

/* ── Breadcrumb section (generic) ──────────────────────────────────────── */
.cms-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
    font-size: 13px; color: var(--pn-muted); }
.cms-breadcrumb a { color: var(--pn-muted); }
.cms-breadcrumb a:hover { color: var(--pn-red); }
.cms-breadcrumb-sep { opacity: .55; }
.cms-breadcrumb-current { color: var(--pn-ink); font-weight: 600;
    max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .cms-breadcrumb-current { max-width: 22ch; } }

/* ── Mobile (≤ 768px) ──────────────────────────────────────────────────────
   This stylesheet is linked from `page_custom_css`, i.e. AFTER the tenant's
   header_config.custom_css block, so the !important rules below are what keep
   panel-authored desktop CSS (zeroed container padding, card min-heights meant
   for multi-column rows) from breaking the phone layout. ------------------- */
@media (max-width: 768px) {
    /* Header row sizing lives in the shared base layout (it has to sit after the
       tenant's custom CSS); here we only restore the side gutter. */
    .site-header .header-inner { padding-left: 12px !important; padding-right: 12px !important; }

    /* Content gutters — the panel CSS zeroes .container padding, which leaves
       cards and footer text glued to the screen edge on phones. */
    .pn-wrap .container,
    .pn-wrap .cms-currency-rate-widget,
    .site-footer .container,
    .header-top-bar > .container { padding-left: 12px !important; padding-right: 12px !important; }

    /* Top bar stays a single row on phones: links left, social icons top-right.
       (The shared base stacks every top-bar column full width on mobile, which
       pushed the icons onto their own left-aligned line.) */
    .header-top-bar > .container > div { flex: 1 1 auto !important; min-width: 0; }
    .header-top-bar > .container > div:last-child { justify-content: flex-end !important; }
    .header-top-bar .social-link,
    .header-top-bar a > i { font-size: 15px; }

    /* Breaking ticker: keep the label readable, drop the blinking chevrons. */
    .pn-break .pn-break-inner { gap: 10px; padding: 4px 0; }
    .pn-break-label { font-size: 13px; }
    .pn-break-label span { display: inline !important; }
    .pn-break-label i { display: none; }
    .pn-break-track { height: 30px; }
    .pn-break-item { font-size: 13px; padding: 2px; }
    .pn-break-item time { font-size: 13px; }

    /* Hero / mosaic cards: shorter so the first screen isn't a photo tunnel. */
    .pn-hero-card { height: 200px; }
    .pn-wrap #sec_home_hero .cms-grid-news-item,
    .pn-wrap #sec_home_headlines .cms-grid-news-item { min-height: 190px !important; }
    .pn-wrap #sec_home_headlines .cms-grid-news-item h3 { font-size: 15px !important; }
    .pn-wrap #sec_home_headlines .cms-grid-news-item.is-featured h3 { font-size: 19px !important; }
    .pn-wrap .cms-grid-news-item.is-featured > div:first-child { min-height: 190px !important; }

    /* Numbered ("Çok Okunanlar") and arrow (category) lists: tighter gutter. */
    #sec_home_mostread { padding: 4px 10px; }
    #sec_home_mostread article { padding: 10px 0 10px 44px !important; min-height: 64px; }
    #sec_home_mostread article::before { width: 44px; font-size: 32px; }
    [id^="sec_home_catlist_"] { padding: 4px 10px; }
    [id^="sec_home_catlist_"] article { padding: 9px 0 9px 22px !important; }
    [id^="sec_home_catlist_"] article::before { top: 6px; }

    /* Card text blocks: desktop min-heights (used to align cards in a row)
       only add dead space once the grid is one column. */
    .pn-wrap .cms-grid-news-card .cms-grid-news-item > div:last-child { min-height: 0 !important; }

    /* Section headers and cards */
    .pn-section-title > div { font-size: 1.05rem; }
    .pn-wrap .section-grid h2,
    .pn-wrap .section-carousel h2 { font-size: 16px !important; }
    .pn-post-item { min-height: 0; }
    .pn-post-item .pn-title { margin: 12px 0; font-size: 16px; }

    /* Article page: the card padding doubles up with the container gutter. */
    .pn-article { padding: 1rem 0; }
    .pn-media-item img { width: 78px; height: 56px; }
}

@media (max-width: 420px) {
    .pn-break-label span { font-size: 12px; }
    .pn-break-item span { font-size: 12.5px; }
    #sec_home_mostread article { padding-left: 38px !important; }
    #sec_home_mostread article::before { width: 38px; font-size: 27px; }
}
