/*
Theme Name: Slogan News
Theme URI: https://slogannews.com
Author: Slogan News
Description: Bangla news theme with a fixed index (home) and single-post design. Header, footer, fonts, ads, home-page categories and custom CSS are controlled from Appearance > Theme Options.
Version: 1.1.7
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slogan-news
Tags: news, blog, two-columns, custom-menu, featured-images, translation-ready
*/

/* ==========================================================
   1. Variables (values are overridden from Theme Options)
   ========================================================== */
:root {
  --sn-accent: #c4364e;
  --sn-menu-bg: #b30f0f;
  --sn-menu-color: #ffffff;
  --sn-topbar-bg: #222222;
  --sn-topbar-color: #ffffff;
  --sn-header-bg: #ffffff;
  --sn-footer-bg: #333333;
  --sn-footer-color: #ffffff;
  --sn-wide-bg: #e6eae9;
  --sn-cream-bg: #fff9ef;
  --sn-text: #111111;
  --sn-muted: #767676;
  --sn-border: #eaeaea;
  --sn-font-body: 'Tiro Bangla', 'Noto Serif Bengali', serif;
  --sn-font-head: 'Noto Serif Bengali', 'Tiro Bangla', serif;
  --sn-font-menu: 'Noto Serif Bengali', 'Tiro Bangla', serif;
  --sn-logo-w: 260px;
}

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--sn-text);
  font-family: var(--sn-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sn-accent); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--sn-font-head); font-weight: 600; line-height: 1.35; }
button { font-family: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.sn-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.sn-full { width: 100%; }

/* ==========================================================
   3. Header
   ========================================================== */
.sn-topbar { background: var(--sn-topbar-bg); color: var(--sn-topbar-color); font-family: var(--sn-font-menu); font-size: 15px; position: relative; z-index: 70; }
.sn-topbar .sn-container { display: flex; align-items: center; min-height: 38px; gap: 32px; }
.sn-topbar a { color: var(--sn-topbar-color); }
.sn-topbar a:hover { color: var(--sn-accent); }
.sn-topbar-menu { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.sn-topbar-menu > li { position: relative; }
.sn-topbar-menu > li > a { display: inline-block; line-height: 38px; white-space: nowrap; }
/* Dropdown indicator on top bar items with children */
.sn-topbar-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .85;
}
.sn-topbar-menu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 170px;
  background: #1a1a1a;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
  border-top: 2px solid var(--sn-accent);
  z-index: 80;
  padding: 4px 0;
}
.sn-topbar-menu li:hover > .sub-menu { display: block; }
.sn-topbar-menu .sub-menu a {
  display: block;
  padding: 7px 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.sn-topbar-menu .sub-menu a:hover { background: rgba(255,255,255,.08); color: var(--sn-accent); }
.sn-topbar-menu .sub-menu .sub-menu { left: 100%; top: 0; border-top: 0; border-left: 2px solid var(--sn-accent); }
.sn-socials { display: flex; gap: 12px; margin-left: auto; align-items: center; }
.sn-socials a { display: inline-flex; width: 20px; height: 20px; }
.sn-socials svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; }

.sn-logo-row { background: var(--sn-header-bg); }
.sn-logo-row .sn-container { padding-top: 25px; padding-bottom: 25px; display: flex; align-items: center; }
.sn-logo img { width: var(--sn-logo-w); max-width: 100%; height: auto; }
.sn-logo-default { margin-left: calc(var(--sn-logo-w) * -0.17); }
.sn-mbar .sn-logo-default { margin-left: 0; }
.sn-logo .sn-site-title { font-family: var(--sn-font-head); font-size: 40px; font-weight: 800; color: var(--sn-text); }

.sn-nav { background: var(--sn-menu-bg); box-shadow: 0 4px 8px rgba(0, 0, 0, .15); position: relative; z-index: 50; }
.sn-nav .sn-container { display: flex; }
.sn-main-menu { display: flex; justify-content: space-between; width: 100%; flex-wrap: nowrap; }
.sn-main-menu > li { position: relative; }
.sn-main-menu > li > a {
  display: block; padding: 0 14px; line-height: 38px;
  color: var(--sn-menu-color); font-family: var(--sn-font-menu); font-size: 18px; font-weight: 700; white-space: nowrap;
}
.sn-main-menu > li:hover > a, .sn-main-menu > li.current-menu-item > a { background: rgba(0, 0, 0, .18); color: var(--sn-menu-color); }
/* Dropdown indicator icon for items that have sub-menus */
.sn-main-menu > li.menu-item-has-children > a {
  padding-right: 22px;
}
.sn-main-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .9;
}
.sn-main-menu .sub-menu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 190px;
  background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); border-top: 3px solid var(--sn-menu-bg); z-index: 60;
}
.sn-main-menu li:hover > .sub-menu { display: block; }
.sn-main-menu .sub-menu a { display: block; padding: 8px 16px; font-family: var(--sn-font-menu); font-size: 16px; color: #111; border-bottom: 1px solid #f0f0f0; }
.sn-main-menu .sub-menu a:hover { background: #f6f6f6; color: var(--sn-accent); }
/* Nested sub-menu indicator */
.sn-main-menu .sub-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  float: right;
  margin-top: 7px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #666;
}

/* mobile bar (hidden on desktop) */
.sn-mbar { display: none; background: var(--sn-header-bg); border-bottom: 1px solid var(--sn-border); }
.sn-mbar .sn-container { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.sn-mbar .sn-logo img { width: 150px; }
.sn-icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--sn-text); display: inline-flex; }
.sn-icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }

.sn-mnav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-width: 86%; background: #fff; z-index: 1000;
  transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; padding: 16px;
}
.sn-mnav-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 999; display: none; }
body.sn-mobile-open .sn-mnav { transform: translateX(0); }
body.sn-mobile-open .sn-mnav-bg { display: block; }
.sn-mnav .sn-mclose { margin-left: auto; display: flex; }
.sn-mnav-menu a { display: block; padding: 10px 4px; font-family: var(--sn-font-menu); font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--sn-border); }
.sn-mnav-menu .sub-menu { display: none; padding-left: 16px; }
.sn-mnav-menu .sub-menu a { font-size: 16px; font-weight: 600; }
.sn-mnav-menu li.sn-open > .sub-menu { display: block; }
.sn-mnav-menu li { position: relative; }
.sn-mnav-menu .sn-sub-toggle { position: absolute; right: 0; top: 4px; background: none; border: 0; font-size: 22px; padding: 4px 10px; cursor: pointer; }
.sn-msearch { margin: 14px 0; display: flex; }
.sn-msearch input { flex: 1; padding: 8px 10px; border: 1px solid #ccc; font-family: inherit; }
.sn-msearch button { padding: 8px 14px; border: 0; background: var(--sn-menu-bg); color: #fff; cursor: pointer; }

/* ==========================================================
   4. Cards & blocks (shared)
   ========================================================== */
.sn-main { padding-top: 10px; padding-bottom: 20px; }
.sn-thumb { display: block; position: relative; overflow: hidden; background: #e9e9e9; aspect-ratio: 696 / 362; }
.sn-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  will-change: transform;
}
.sn-thumb:hover img { transform: scale(1.06); }
.sn-thumb.sn-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #ececec, #dcdcdc); }
.sn-card-title { font-family: var(--sn-font-head); font-weight: 600; font-size: 18px; line-height: 1.4; margin: 10px 0 0; }
.sn-card-title a { color: var(--sn-text); }
.sn-card-title a:hover { color: var(--sn-accent); }
.sn-excerpt { color: var(--sn-muted); font-size: 16px; line-height: 1.3; margin-top: 10px; }

/* block heading – style 1 (double line, section blocks) */
.sn-bt { border-bottom: 3px double #b9b9b9; margin: 0 0 14px; }
.sn-bt h4, .sn-bt span { display: inline-block; font-family: var(--sn-font-head); font-size: 20px; font-weight: 600; line-height: 44px; }
.sn-bt a:hover { color: var(--sn-accent); }
/* block heading – style 2 (sidebar) */
.sn-bt2 { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.sn-bt2 h4 { font-family: var(--sn-font-head); font-size: 20px; font-weight: 800; line-height: 29px; white-space: nowrap; }
.sn-bt2::after { content: ''; flex: 1; height: 4px; background: #eee; }

/* list item (thumb left) */
.sn-li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sn-border); align-items: flex-start; }
.sn-li:first-child { padding-top: 4px; }
.sn-li .sn-thumb { flex: 0 0 96px; aspect-ratio: 4 / 3; }
.sn-li .sn-card-title { margin: 0; font-size: 17px; }
.sn-li .sn-date { display: block; font-size: 13px; color: var(--sn-muted); margin-top: 4px; font-family: var(--sn-font-body); }
.sn-li.sn-li-lg .sn-thumb { flex-basis: 110px; }

/* button */
.sn-btn-wrap { text-align: right; margin-top: 10px; }
.sn-btn { display: inline-block; background: #848484; color: #fff; font-family: var(--sn-font-head); font-size: 18px; line-height: 31px; padding: 0 16px; }
.sn-btn:hover { background: var(--sn-accent); color: #fff; }

/* ad images */
.sn-ad { display: block; margin: 0 auto 20px; }
.sn-ad img { margin: 0 auto; }

/* ==========================================================
   5. Home page (fixed layout)
   ========================================================== */
.sn-hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 24px; padding-top: 10px; }
.sn-hero-top { display: grid; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); gap: 0 24px; align-items: start; }
.sn-hero-big .sn-card-title { font-size: 24px; margin-top: 12px; }
.sn-hero-mini .sn-ad { margin-bottom: 14px; }
.sn-hero-mini .sn-thumb { aspect-ratio: 696 / 392; }
.sn-hero-mini .sn-card-title { font-size: 17px; }
.sn-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; margin-top: 24px; }
.sn-side .sn-ad { margin-top: 24px; }

.sn-wide { background: var(--sn-wide-bg); margin: 26px 0 0; padding: 30px 0 28px; }
.sn-wide .sn-bt { margin-bottom: 16px; border-bottom-color: #aeb4b3; }
.sn-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 24px; }
.sn-sec { padding-top: 24px; }
.sn-sec-pad { padding-bottom: 6px; }
.sn-cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sn-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sn-cols-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.sn-cols-4 .sn-col > .sn-card + .sn-card { margin-top: 18px; }

.sn-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.sn-feat .sn-card-title { font-size: 22px; }

.sn-cream { background: var(--sn-cream-bg); margin-top: 24px; padding: 18px 0 8px; }
.sn-cream .sn-bt { border-bottom-color: #bdb8ad; }
.sn-biggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sn-bg-item { position: relative; aspect-ratio: 247 / 230; overflow: hidden; background: #ddd; }
.sn-bg-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  will-change: transform;
}
.sn-bg-item:hover img { transform: scale(1.06); }
.sn-bg-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 60%); }
.sn-bg-item .sn-bg-title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff; font-family: var(--sn-font-head); font-weight: 600; font-size: 17px; line-height: 1.4; }
.sn-bg-item a.sn-overlay { position: absolute; inset: 0; z-index: 3; }
.sn-bg-item:hover .sn-bg-title { text-decoration: underline; }

.sn-sec-last { padding-bottom: 24px; }

/* ==========================================================
   6. Single post
   ========================================================== */
.sn-single { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 30px; align-items: start; }
.sn-single-side {
  position: sticky;
  top: 16px;
  align-self: start;
}
.sn-post-title { font-size: 34px; line-height: 1.4; font-weight: 700; margin-bottom: 8px; }
.sn-sub-title {
  font-family: var(--sn-font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: #333;
  margin: 0 0 6px;
}
.sn-sub-head-bottom {
  font-family: var(--sn-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sn-muted);
  margin: 0 0 12px;
}
.sn-post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--sn-muted); font-size: 15px; border-top: 1px solid var(--sn-border); border-bottom: 1px solid var(--sn-border); padding: 10px 0; margin-bottom: 14px; }
.sn-post-meta .sn-author { color: var(--sn-text); font-family: var(--sn-font-head); font-weight: 600; }
.sn-share { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.sn-share a { color: #fff; font-family: var(--sn-font-menu); font-size: 14px; padding: 4px 14px; line-height: 24px; }
.sn-share a:hover { color: #fff; opacity: .85; }
.sn-share .fb { background: #516eab; } .sn-share .tw { background: #29c5f6; }
.sn-share .pi { background: #ca212a; } .sn-share .wa { background: #7bbf6a; }
.sn-share .pdf { background: #d32f2f; display: inline-flex; align-items: center; gap: 6px; }
.sn-share .pcard { background: #6a1b9a; display: inline-flex; align-items: center; gap: 6px; }
.sn-share .pdf svg, .sn-share .pcard svg { flex-shrink: 0; }
.sn-post-img { margin-bottom: 18px; overflow: hidden; }
.sn-post-img img {
  width: 100%;
  transition: transform .4s ease;
  will-change: transform;
}
.sn-post-img:hover img { transform: scale(1.04); }
.sn-post-img figcaption { font-size: 14px; color: var(--sn-muted); padding-top: 6px; }
.sn-content { font-size: 20px; line-height: 1.9; word-wrap: break-word; text-align: justify; }
.sn-content p { margin: 0 0 1.1em; text-align: justify; }
.sn-content h2, .sn-content h3, .sn-content h4 { margin: 1.2em 0 .5em; }
.sn-content a { color: var(--sn-accent); text-decoration: underline; }
.sn-content blockquote { margin: 1.2em 0; padding: 4px 20px; border-left: 4px solid var(--sn-accent); color: #444; }
.sn-content img {
  margin: 1em auto;
  transition: transform .4s ease;
}
.sn-content a:hover img,
.sn-content figure:hover img { transform: scale(1.03); }
.sn-content figure { overflow: hidden; }
.sn-content ul, .sn-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.sn-content ul { list-style: disc; }
.sn-related { margin-top: 34px; }
.sn-related .sn-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.sn-single-side .sn-li .sn-thumb { flex-basis: 100px; }

/* ==========================================================
   7. Archive / search / page / 404
   ========================================================== */
.sn-archive-head { padding: 24px 0 0; }
.sn-archive-head h1 { font-size: 30px; }
.sn-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 20px 0; }
.sn-pagination { display: flex; gap: 6px; justify-content: center; padding: 10px 0 30px; flex-wrap: wrap; }
.sn-pagination .page-numbers { padding: 4px 12px; border: 1px solid #ddd; font-family: var(--sn-font-menu); }
.sn-pagination .current, .sn-pagination .page-numbers:hover { background: var(--sn-accent); border-color: var(--sn-accent); color: #fff; }
.sn-page { padding: 30px 0; max-width: 820px; }
.sn-404 { text-align: center; padding: 70px 0; }
.sn-comments { margin-top: 30px; }
.sn-comments .comment-list { list-style: none; padding: 0; }
.sn-comments .comment-body { border-bottom: 1px solid var(--sn-border); padding: 12px 0; }
.sn-comments input[type=text], .sn-comments input[type=email], .sn-comments input[type=url], .sn-comments textarea { width: 100%; padding: 8px; border: 1px solid #ccc; font-family: inherit; }
.sn-comments input[type=submit] { background: var(--sn-accent); color: #fff; border: 0; padding: 8px 18px; cursor: pointer; font-family: inherit; }

/* ==========================================================
   8. Footer
   ========================================================== */
.sn-footer { background: var(--sn-footer-bg); color: var(--sn-footer-color); padding: 44px 0 20px; margin-top: 0; }
.sn-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.sn-footer-left { font-size: 19px; line-height: 1.7; font-family: var(--sn-font-head); }
.sn-footer-right { font-size: 17px; line-height: 1.7; }
.sn-f-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.sn-f-item svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: var(--sn-accent); stroke-width: 2; margin-top: 4px; }
.sn-copy { text-align: right; font-family: var(--sn-font-head); font-size: 16px; font-weight: 600; margin-top: 10px; }
.sn-copy a { color: var(--sn-accent); }
.sn-copy a:hover { text-decoration: underline; }
.sn-footer a { color: var(--sn-footer-color); }

.sn-scroll-up {
  position: fixed; right: 5px; bottom: 5px; width: 40px; height: 40px; background: var(--sn-accent);
  color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 90; border: 0;
}
.sn-scroll-up.sn-show { display: flex; }
.sn-scroll-up svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; }

/* ==========================================================
   9. Responsive
   ========================================================== */
@media (max-width: 1018px) {
  .sn-topbar, .sn-logo-row, .sn-nav { display: none; }
  .sn-mbar { display: block; }
  .sn-hero { grid-template-columns: 1fr; }
  .sn-single { grid-template-columns: 1fr; }
  .sn-single-side { position: static; top: auto; }
  .sn-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-cols-3 { grid-template-columns: 1fr; }
  .sn-cols-2 { grid-template-columns: 1fr; }
  .sn-grid4, .sn-biggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sn-hero-top, .sn-feat { grid-template-columns: 1fr; }
  .sn-grid3 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .sn-cols-4, .sn-grid4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sn-related .sn-grid2 { grid-template-columns: 1fr; }
  .sn-post-title { font-size: 26px; }
  .sn-content { font-size: 18px; }
  .sn-footer-cols { grid-template-columns: 1fr; }
  .sn-copy { text-align: left; }
  .sn-archive-grid { grid-template-columns: 1fr; }
  .sn-card-title { font-size: 16px; }
}


/* Accessibility: no zoom animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sn-thumb img,
  .sn-bg-item img,
  .sn-post-img img,
  .sn-content img {
    transition: none !important;
  }
  .sn-thumb:hover img,
  .sn-bg-item:hover img,
  .sn-post-img:hover img,
  .sn-content a:hover img,
  .sn-content figure:hover img {
    transform: none !important;
  }
}



/* ==========================================================
   Photocard page (theme header/footer kept)
   Download targets #sn-photocard – 3 layouts
   ========================================================== */
.sn-photocard-page { padding: 24px 0 40px; max-width: 760px; margin: 0 auto; }
.sn-photocard-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px; align-items: center;
}
.sn-btn {
  display: inline-block; padding: 8px 16px;
  border: 1px solid #ddd; background: #fff; color: #111;
  font-family: var(--sn-font-menu); font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; line-height: 1.4;
}
.sn-btn:hover { border-color: var(--sn-accent); color: var(--sn-accent); }
.sn-btn-primary {
  background: var(--sn-accent); border-color: var(--sn-accent); color: #fff;
}
.sn-btn-primary:hover { opacity: .9; color: #fff; }

.sn-pc-layout-picker {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.sn-pc-layout-btn {
  appearance: none; border: 1px solid #ddd; background: #fff;
  padding: 8px 14px; cursor: pointer;
  font-family: var(--sn-font-menu); font-size: 14px; font-weight: 700;
  color: #333;
}
.sn-pc-layout-btn.is-active,
.sn-pc-layout-btn:hover {
  border-color: var(--sn-accent); color: #fff; background: var(--sn-accent);
}

.sn-photocard-wrap {
  display: flex; justify-content: center;
  padding: 10px 0 20px;
}

/* Shared card shell */
#sn-photocard.sn-photocard,
.sn-photocard[data-pc-card] {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: visible; /* avoid clipping Bengali glyphs in export */
}

/* Category badge – html2canvas-safe for Bengali text */
.sn-pc-cat {
  display: inline-block !important;
  background: #e31c23;
  color: #fff !important;
  font-family: 'Noto Serif Bengali', var(--sn-font-menu), serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  padding: 6px 14px 8px !important;
  margin: 0 0 12px !important;
  border-radius: 2px;
  box-sizing: border-box;
  overflow: visible !important;
  white-space: nowrap !important;
  max-width: none !important;
  height: auto !important;
  min-height: 28px;
  vertical-align: top;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.sn-pc-cat span {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: inherit !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font: inherit !important;
  color: inherit !important;
}

.sn-pc-title {
  font-family: var(--sn-font-head);
  font-size: 22px; line-height: 1.45; font-weight: 700;
  margin: 0 0 10px; color: #111;
  overflow: visible;
}
.sn-pc-sub {
  font-size: 15px; line-height: 1.45; color: #666;
  margin: 0 0 12px;
}
.sn-pc-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #888;
  margin-bottom: 14px;
}
.sn-pc-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: #111;
}
.sn-pc-brand img { height: 28px; width: auto; display: block; }

/* Layout 1 – classic */
.sn-pc-layout-1 .sn-pc-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}
.sn-pc-layout-1 .sn-pc-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sn-pc-layout-1 .sn-pc-image--empty { min-height: 180px; background: #ddd; }
.sn-pc-layout-1 .sn-pc-content { padding: 16px 18px 18px; }

/* Layout 2 – full-bleed dark */
.sn-pc-layout-2 {
  border: 0;
}
.sn-pc-layout-2 .sn-pc-l2-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #222 center/cover no-repeat;
  color: #fff;
}
.sn-pc-layout-2 .sn-pc-l2-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.35) 100%);
}
.sn-pc-layout-2 .sn-pc-l2-top,
.sn-pc-layout-2 .sn-pc-l2-bottom {
  position: absolute; left: 0; right: 0; z-index: 2;
  padding: 16px 18px;
}
.sn-pc-layout-2 .sn-pc-l2-top { top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sn-pc-layout-2 .sn-pc-l2-logo {
  height: 32px; width: auto; background: #fff; padding: 4px 8px; border-radius: 4px;
}
.sn-pc-layout-2 .sn-pc-l2-bottom { bottom: 0; }
.sn-pc-layout-2 .sn-pc-title { color: #fff; font-size: 22px; }
.sn-pc-layout-2 .sn-pc-meta { color: rgba(255,255,255,.85); margin-bottom: 0; }
.sn-pc-layout-2 .sn-pc-cat { margin-bottom: 0; }

/* Layout 3 – magazine */
.sn-pc-layout-3 .sn-pc-l3-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 3px solid var(--sn-accent);
  background: #fafafa;
}
.sn-pc-layout-3 .sn-pc-l3-logo { height: 26px; width: auto; }
.sn-pc-layout-3 .sn-pc-l3-site { font-weight: 800; font-size: 14px; flex: 1; }
.sn-pc-layout-3 .sn-pc-l3-date { font-size: 12px; color: #777; }
.sn-pc-layout-3 .sn-pc-image {
  aspect-ratio: 16 / 9; overflow: hidden; background: #eee;
}
.sn-pc-layout-3 .sn-pc-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sn-pc-layout-3 .sn-pc-content { padding: 14px 16px 18px; }
.sn-pc-layout-3 .sn-pc-title { font-size: 20px; }

.sn-photocard-hint {
  text-align: center; font-size: 13px; color: var(--sn-muted);
  margin: 8px 0 0;
}
.sn-photocard-hint code {
  display: inline-block; background: #f3f3f3; padding: 2px 8px;
  border-radius: 3px; font-size: 12px; color: #333;
}
