/*
Theme Name: BP News USA
Description: Bengali USA community and featured-news classic theme with compact mobile navigation, bottom news ticker and native WordPress editorial templates.
Version: 1.0.0
Author: BP News USA
Text Domain: bpnews-usa
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: news, blog, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, editor-style
*/
:root {
  --font-publication: "Tiro Bangla", serif;
  --background: #fefefe;
  --foreground: #202023;
  --muted: #f3f4f5;
  --muted-foreground: #696a6e;
  --accent: #cf292b;
  --accent-foreground: #fff;
  --border: #e1e2e4;
  --primary: #202023;
  --primary-foreground: #fafafa;
  --on-image: #fff;
  --image-scrim: linear-gradient(180deg, transparent 20%, rgba(18,18,18,.35) 48%, rgba(18,18,18,.95) 100%);
  --shadow-ticker: 0 -2px 12px rgba(18,18,18,.1);
  --ticker-height: 46px;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-publication); font-size: 16px; line-height: 1.7; }
button,input,select,textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a,button,input,textarea,select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1,h2,h3,h4,p,ul,ol,figure { margin: 0; }
h1,h2,h3 { text-wrap: pretty; }
p,h1,h2,h3,a { overflow-wrap: anywhere; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-foreground); }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 32px; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 100000; padding: 10px 16px; background: var(--primary); color: var(--primary-foreground); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.top-bar { background: var(--primary); color: var(--primary-foreground); }
.top-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; font-size: 12px; }
.top-inner span:last-child { opacity: .7; }
.masthead { border-bottom: 1px solid var(--border); }
.masthead-inner { padding-block: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: var(--foreground); }
.brand-mark { display: inline-flex; width: 56px; height: 56px; flex-shrink: 0; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-foreground); font-size: 24px; font-weight: 700; }
.brand-name { font-size: 36px; font-weight: 700; line-height: 1.3; }
.brand-tagline { margin-top: 4px; padding-left: 68px; font-size: 14px; color: var(--muted-foreground); }
.custom-logo-link img { max-height: 80px; width: auto; }
.brand-block:has(.custom-logo-link) .brand-tagline { padding-left: 0; }
.masthead-note { text-align: right; font-size: 14px; color: var(--muted-foreground); }
.masthead-note strong { color: var(--foreground); }
.main-navigation { position: relative; border-bottom: 2px solid var(--accent); }
.navigation-inner { display: flex; gap: 16px; align-items: center; }
.menu-items { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; width: 100%; min-width: 0; }
.menu-item a { display: block; padding-block: 12px; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.menu-item.is-current a { color: var(--accent); border-color: var(--accent); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--foreground); width: 36px; height: 36px; flex-shrink: 0; padding: 8px; }
.icon-button:hover { background: var(--muted); }
.menu-toggle { display: none; }
.news-ticker { border-bottom: 1px solid var(--border); background: var(--muted); }
.ticker-inner { display: flex; gap: 12px; align-items: center; min-height: var(--ticker-height); }
.ticker-label { color: var(--accent); font-size: 14px; border-right: 1px solid var(--border); padding-right: 12px; flex-shrink: 0; }
.ticker-window { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 60s linear infinite; }
.ticker-group { display: flex; gap: 40px; padding-right: 40px; align-items: center; }
.ticker-group a { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 14px; }
.ticker-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ticker-track:hover,.ticker-track:focus-within { animation-play-state: paused; }
.ticker-close { display: none; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.homepage { padding-top: 24px; }
.top-heading { margin-bottom: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.top-heading h2 { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.top-heading>span { font-size: 12px; color: var(--muted-foreground); }
.featured-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.featured-story { position: relative; isolation: isolate; overflow: hidden; color: var(--on-image); display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 20px; }
.featured-story:hover { color: var(--on-image); }
.featured-story:after { position: absolute; content: ""; inset: 0; background: var(--image-scrim); z-index: -1; }
.featured-story>.feature-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.featured-story:hover>.feature-image { transform: scale(1.025); }
.featured-primary { min-height: 480px; padding: 28px; }
.featured-secondary { display: grid; gap: 20px; }
.feature-label { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; }
.feature-label>span { background: var(--accent); padding: 3px 9px; color: var(--accent-foreground); }
.feature-label small { font-size: 12px; }
.featured-story h1 { font-size: 30px; font-weight: 700; line-height: 1.6; }
.featured-story h2 { font-size: 20px; font-weight: 700; line-height: 1.6; }
.feature-excerpt { margin-top: 12px; font-size: 14px; opacity: .85; line-height: 1.7; }
.feature-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 12px; opacity: .8; }
.feature-meta>span:last-child { font-size: 22px; line-height: 1; }
.news-section { margin-top: 48px; }
.homepage>.news-section:first-of-type { margin-top: 40px; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.section-heading h2 { font-size: 24px; font-weight: 700; display: flex; align-items: center; }
.section-heading h2:before { content: ""; height: 24px; width: 4px; background: var(--accent); margin-right: 10px; flex-shrink: 0; }
.section-heading>a { color: var(--accent); font-size: 14px; }
.section-heading>a:hover { text-decoration: underline; }
.news-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px 24px; margin-top: 20px; }
.news-card { min-width: 0; }
.card-image { display: block; overflow: hidden; }
.card-image img,.card-image .image-placeholder { aspect-ratio: 3/2; width: 100%; object-fit: cover; transition: transform .5s; }
.card-image:hover img { transform: scale(1.03); }
.card-copy { margin-top: 12px; }
.category-chip { color: var(--accent); font-size: 12px; font-weight: 600; }
.category-chip:hover { text-decoration: underline; }
.news-card h3 { margin-top: 4px; font-size: 18px; font-weight: 700; line-height: 1.7; }
.card-excerpt { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 12px; font-size: 12px; color: var(--muted-foreground); }
.latest-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.news-list-item { display: flex; gap: 20px; align-items: flex-start; padding-block: 20px; border-bottom: 1px solid var(--border); }
.news-list-item:last-child { border-bottom: 0; }
.list-image { width: 176px; flex-shrink: 0; }
.list-image img,.list-image .image-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.list-copy { min-width: 0; }
.list-copy h3 { font-size: 20px; line-height: 1.7; margin-top: 4px; }
.news-sidebar { border-left: 1px solid var(--border); padding-left: 28px; }
.news-sidebar>section+section { margin-top: 32px; }
.ranked-list { list-style: none; padding: 0; }
.ranked-list li { display: flex; align-items: flex-start; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--border); }
.ranked-list h3 { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.7; }
.rank { font-size: 30px; color: var(--accent); opacity: .6; padding-top: 4px; flex-shrink: 0; }
.sidebar-story { margin-top: 20px; }
.image-placeholder { background: var(--muted); color: var(--muted-foreground); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.archive-page { padding-top: 40px; }
.archive-heading { padding-bottom: 24px; border-bottom: 2px solid var(--foreground); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }
.archive-heading h1 { font-size: 36px; line-height: 1.6; margin-top: 12px; }
.archive-description { margin-top: 12px; max-width: 672px; color: var(--muted-foreground); }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px 24px; margin-top: 40px; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--border); }
.page-numbers.current { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }
.reading-page { max-width: 800px; padding: 40px 16px 0; }
.breadcrumbs { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted-foreground); font-size: 14px; }
.single-story { margin-top: 24px; }
.single-story h1 { margin-top: 16px; font-size: 36px; font-weight: 700; line-height: 1.6; }
.story-deck { margin-top: 12px; font-size: 18px; color: var(--muted-foreground); line-height: 1.8; }
.story-byline { display: flex; align-items: center; gap: 12px; border-block: 1px solid var(--border); padding-block: 12px; margin-top: 20px; font-size: 14px; }
.story-byline .brand-mark { height: 40px; width: 40px; font-size: 14px; }
.story-byline p { font-size: 12px; color: var(--muted-foreground); }
.story-figure { margin-top: 24px; }
.story-figure img { width: 100%; }
.story-figure figcaption { font-size: 12px; margin-top: 8px; color: var(--muted-foreground); font-style: italic; }
.entry-content { margin-top: 32px; font-size: 18px; line-height: 2; }
.entry-content>* { margin-bottom: 24px; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content h2 { font-size: 28px; }.entry-content h3 { font-size: 24px; }
.entry-content ul,.entry-content ol { padding-left: 24px; list-style: revert; }
.entry-content blockquote { margin-inline: 0; border-left: 4px solid var(--accent); padding-left: 20px; color: var(--muted-foreground); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content td,.entry-content th { border: 1px solid var(--border); padding: 8px; }
.entry-content pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--muted); padding: 16px; font-size: 14px; }
.entry-content iframe { max-width: 100%; }
.entry-content .alignwide { margin-inline: -32px; max-width: calc(100% + 64px); }
.entry-content .alignfull { margin-inline: 0; max-width: 100%; }
.story-taxonomy { margin-top: 40px; padding-top: 16px; border-top: 2px solid var(--foreground); font-size: 12px; color: var(--muted-foreground); }
.story-taxonomy a { color: var(--accent); }
.related-section { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.comments-area { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 24px; }
.comments-area h2 { font-size: 24px; }
.comment-list { padding: 0; list-style: none; }
.comment-list li { margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.comment-list .children { margin-left: 24px; }
.comment-author img { display: inline-block; margin-right: 8px; }
.comment-metadata { font-size: 12px; color: var(--muted-foreground); }
.comment-content { margin-top: 8px; }
.comment-form p { margin-top: 16px; }
.comment-form label { display: block; }
.comment-form input:not([type=checkbox]),.comment-form textarea { width: 100%; max-width: 100%; border: 1px solid var(--border); color: var(--foreground); background: var(--background); padding: 10px; border-radius: 0; }
.comment-form input[type=submit],.button { display: inline-block; width: auto; background: var(--accent); color: var(--accent-foreground); border: 0; padding: 10px 18px; font-weight: 600; }
.comment-form input[type=submit]:hover,.button:hover { color: var(--accent-foreground); opacity: .9; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.empty-state { padding-block: 80px; text-align: center; }
.empty-state h1,.empty-state h2 { font-size: 28px; }
.empty-state p { color: var(--muted-foreground); margin-top: 16px; }
.empty-state .button { margin-top: 24px; }
.site-footer { margin-top: 64px; border-top: 4px solid var(--accent); background: var(--primary); color: var(--primary-foreground); }
.footer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; padding-block: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; }
.footer-brand .brand-mark { width: 40px; height: 40px; font-size: 20px; }
.footer-about { font-size: 14px; opacity: .75; margin-top: 16px; max-width: 384px; }
.site-footer h3 { font-size: 18px; margin-bottom: 16px; }
.footer-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; font-size: 14px; }
.footer-stories { display: grid; gap: 12px; font-size: 14px; }
.footer-categories a,.footer-stories a { opacity: .75; }
.site-footer a:hover { color: var(--primary-foreground); text-decoration: underline; opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .container { padding-block: 16px; font-size: 12px; opacity: .6; }
@media (max-width: 1023px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .latest-layout { grid-template-columns: 1fr; }
  .news-sidebar { border-left: 0; padding-left: 0; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .container { padding-inline: 16px; }
  .masthead-inner { padding-block: 16px; }
  .brand-mark { height: 48px; width: 48px; }
  .brand-name { font-size: 30px; }
  .brand-tagline { padding-left: 60px; font-size: 12px; }
  .masthead-note { display: none; }
  .menu-items { gap: 0 16px; padding-right: 44px; position: relative; }
  .menu-overflow { display: none; }
  .menu-toggle { display: inline-flex; position: absolute; right: 16px; top: 5px; }
  .menu-toggle svg { transition: transform .2s; }
  .menu-open .menu-toggle svg { transform: rotate(180deg); }
  .menu-open .menu-items { padding-right: 0; }
  .menu-open .menu-item:nth-child(3) { margin-right: 44px; }
  .menu-open .menu-overflow { display: block; flex: 0 0 calc(50% - 8px); }
  .menu-open .menu-overflow a { padding-block: 8px; }
  .news-ticker { position: fixed; inset: auto 0 0; z-index: 1000; border-top: 1px solid var(--border); border-bottom: 0; box-shadow: var(--shadow-ticker); padding-bottom: env(safe-area-inset-bottom,0px); }
  body.has-ticker { padding-bottom: calc(var(--ticker-height) + env(safe-area-inset-bottom,0px)); }
  .ticker-inner { gap: 8px; }
  .ticker-close { display: inline-flex; width: 28px; height: 28px; color: var(--muted-foreground); }
  .news-ticker.mobile-closed { display: none; }
  .featured-primary { min-height: 410px; padding: 20px; }
  .featured-story h1 { font-size: 24px; }
  .featured-story h2 { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .list-image { width: 96px; }
  .news-list-item { gap: 16px; }
  .list-copy h3 { font-size: 16px; }
  .news-list-item .card-excerpt { display: none; }
  .archive-heading h1 { font-size: 30px; }
  .single-story h1 { font-size: 24px; }
  .reading-page { padding-top: 40px; }
  .entry-content .alignwide { margin-inline: 0; max-width: 100%; }
}
@media (max-width: 639px) {
  .featured-secondary,.news-grid,.archive-grid,.related-grid { grid-template-columns: 1fr; }
  .featured-primary { min-height: 410px; }
}
@media (max-width: 359px) {
  .brand-name { font-size: 24px; }
  .menu-item a { font-size: 12px; }
  .menu-items { gap: 0 10px; }
  .brand-tagline { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  *,*:before,*:after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
