/*
Theme Name: Meritcom ProthomAlo Studio
Theme URI: https://meritcom.shop
Author: Meritcom
Description: Elementor-grade Bengali News Portal WordPress Theme with Bundled Studio Visual Builder Plugin, Live Device Preview, Theme Color Presets, 1280x50 Banner Ads (excluding About Us & Privacy Policy), Sticky Sidebar Ads, Floating Chat Dock, and Color-Preserving Speed Optimization.
Version: 8.0.0
Text Domain: meritcom-pa
*/

:root {
  --pa-blue: #0047AB;
  --pa-blue-dark: #003078;
  --pa-body-bg: #F4F7FB;
  --pa-card-bg: #FFFFFF;
  --pa-red: #D61F26;
  --pa-ink: #111827;
  --pa-muted: #4B5563;
  --pa-line: #E2E8F0;
  --pa-soft: #F8FAFC;
  --pa-ad-bg: #EEF4FF;
  --pa-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  --pa-shadow-hover: 0 10px 24px rgba(0, 71, 171, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Serif Bengali', SolaimanLipi, Arial, sans-serif;
  color: var(--pa-ink);
  background-color: var(--pa-body-bg);
  background-image: radial-gradient(rgba(0, 71, 171, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

a { color: inherit; text-decoration: none; transition: color 0.16s ease, transform 0.16s ease; }
a:hover { color: var(--pa-blue); }

/* Strict Image Color Preservation */
img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none !important;
  -webkit-filter: none !important;
  image-rendering: auto;
  border-radius: 6px;
}

.pa-wrap { max-width: 1280px; margin: 0 auto; padding: 0 15px; }

.pa-topbar {
  background: var(--pa-blue-dark);
  color: #E2ECFC;
  font-size: 13px;
  padding: 6px 0;
}
.pa-topbar-flex { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.pa-header {
  background: linear-gradient(135deg, var(--pa-blue) 0%, #005CE6 100%);
  color: #FFFFFF;
  border-bottom: 3px solid var(--pa-red);
  box-shadow: 0 4px 18px rgba(0, 48, 120, 0.18);
}
.pa-header-main { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 12px; }
.pa-logo a { font-size: 35px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.5px; }
.pa-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pa-btn {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pa-btn:hover { background: var(--pa-red); border-color: var(--pa-red); color: #FFFFFF; }
.pa-btn-studio {
  background: linear-gradient(135deg, #FFD60A, #F59E0B);
  color: #0F172A;
  border: none;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.pa-nav { background: var(--pa-blue-dark); }
.pa-nav-list { display: flex; list-style: none; overflow-x: auto; white-space: nowrap; }
.pa-nav-list li a { display: block; padding: 11px 16px; color: #FFFFFF; font-size: 15px; font-weight: 600; }
.pa-nav-list li a:hover { background: rgba(255,255,255,0.14); color: #FFFFFF; }

.pa-search-bar { display: none; background: #EAF2FF; padding: 12px 0; border-bottom: 1px solid #C7DDFC; }
.pa-search-bar.open { display: block; }
.pa-search-form { display: flex; max-width: 620px; margin: 0 auto; gap: 8px; }
.pa-search-form input { flex: 1; padding: 10px 14px; border: 1px solid #B3CCF0; border-radius: 6px; font-size: 15px; }
.pa-search-form button { background: var(--pa-blue); color: #FFFFFF; border: none; padding: 10px 22px; border-radius: 6px; font-weight: 600; cursor: pointer; }

.pa-ticker { background: #FFFFFF; border-bottom: 1px solid var(--pa-line); height: 42px; overflow: hidden; }
.pa-ticker-inner { display: flex; align-items: center; height: 100%; }
.pa-ticker-badge { background: var(--pa-red); color: #FFFFFF; font-size: 13px; font-weight: 700; padding: 0 16px; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.pa-ticker-box { flex: 1; overflow: hidden; position: relative; }
.pa-ticker-move { display: inline-block; white-space: nowrap; padding-left: 100%; font-size: 14px; font-weight: 600; color: #111111; animation: paTickerScroll 32s linear infinite; will-change: transform; }
.pa-ticker-move:hover { animation-play-state: paused; }
@keyframes paTickerScroll { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-100%,0,0); } }

.pa-ad-1280x50-wrap { max-width: 1280px; margin: 14px auto; padding: 0 15px; }
.pa-ad-1280x50-box {
  width: 100%;
  max-width: 1280px;
  min-height: 50px;
  background: var(--pa-ad-bg);
  border: 1px dashed #4A89DC;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
  box-shadow: var(--pa-shadow);
}
.pa-ad-1280x50-box img, .pa-ad-1280x50-box iframe { max-width: 100%; max-height: 50px; object-fit: cover; border-radius: 0; }
.pa-ad-1280x50-demo { font-size: 13px; font-weight: 700; color: var(--pa-blue-dark); padding: 6px 12px; line-height: 1.2; }
.pa-ad-badge-mini { position: absolute; top: 0; right: 0; background: rgba(0, 48, 120, 0.8); color: #fff; font-size: 9px; padding: 1px 5px; border-bottom-left-radius: 4px; }

.pa-ad-tag { display: block; font-size: 11px; color: #777777; text-align: center; margin-bottom: 5px; }
.pa-ad-demo { background: var(--pa-ad-bg); border: 1px dashed #6B9CE8; color: var(--pa-blue-dark); padding: 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }

.pa-grid-main { display: grid; grid-template-columns: 165px minmax(0, 1fr) 165px; gap: 16px; margin-top: 14px; align-items: start; }
.pa-side-ad { position: sticky; top: 14px; background: var(--pa-card-bg); border: 1px solid var(--pa-line); border-radius: 8px; padding: 8px; text-align: center; min-height: 260px; box-shadow: var(--pa-shadow); }
.pa-side-stack { display: flex; flex-direction: column; gap: 10px; }

.pa-surface-box { background: var(--pa-card-bg); border: 1px solid var(--pa-line); border-radius: 10px; padding: 18px; margin-bottom: 18px; box-shadow: var(--pa-shadow); }

.pa-lead-grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: 18px; }
.pa-lead-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; padding-right: 16px; border-right: 1px solid var(--pa-line); }
.pa-lead-main h2 { font-size: 24px; font-weight: 700; line-height: 1.32; margin-bottom: 8px; }
.pa-lead-main p { font-size: 14px; color: var(--pa-muted); margin-bottom: 8px; }
.pa-sub-item { display: flex; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--pa-line); }
.pa-sub-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pa-sub-item img { width: 104px; height: 70px; object-fit: cover; flex-shrink: 0; }
.pa-sub-item h3 { font-size: 15px; font-weight: 700; line-height: 1.35; }

.pa-sec-head { display: flex; justify-content: space-between; align-items: center; border-top: 3px solid var(--pa-blue); border-bottom: 1px solid var(--pa-line); padding: 8px 0; margin: 0 0 14px; }
.pa-sec-head h2 { font-size: 20px; font-weight: 700; color: var(--pa-blue); }
.pa-sec-head a { font-size: 14px; font-weight: 600; color: var(--pa-blue); }

.pa-cols-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pa-story-box { background: linear-gradient(180deg, #EDF3FC 0%, #FFFFFF 100%); padding: 16px; border: 1px solid var(--pa-line); border-radius: 10px; margin-bottom: 18px; box-shadow: var(--pa-shadow); }
.pa-story-card { background: #FFFFFF; border: 1px solid var(--pa-line); border-radius: 8px; padding: 8px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pa-story-card:hover { transform: translateY(-2px); box-shadow: var(--pa-shadow-hover); }
.pa-story-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 8px; }
.pa-story-card h4 { font-size: 14px; font-weight: 700; line-height: 1.35; }

.pa-cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pa-card { padding-right: 14px; border-right: 1px solid var(--pa-line); }
.pa-card:last-child { border-right: none; padding-right: 0; }
.pa-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 8px; }
.pa-card h3 { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.pa-card p { font-size: 13px; color: var(--pa-muted); margin-bottom: 6px; }
.pa-time { font-size: 12px; color: #6B7280; }

.pa-opinion-sec { background: var(--pa-card-bg); border: 1px solid var(--pa-line); padding: 18px; margin-top: 18px; border-radius: 10px; box-shadow: var(--pa-shadow); }
.pa-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pa-opinion-card { background: var(--pa-soft); border: 1px solid var(--pa-line); border-radius: 8px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; }
.pa-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--pa-blue); }

.pa-video-sec { background: linear-gradient(135deg, #0B132B 0%, #1E293B 100%); color: #FFFFFF; padding: 20px; margin-top: 18px; border-radius: 10px; box-shadow: var(--pa-shadow); }
.pa-video-sec .pa-sec-head { border-top-color: #60A5FA; border-bottom-color: rgba(255,255,255,0.15); margin-top: 0; }
.pa-video-sec .pa-sec-head h2 { color: #60A5FA; }
.pa-video-thumb { position: relative; }
.pa-play { position: absolute; bottom: 8px; left: 8px; background: var(--pa-red); color: #FFFFFF; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }

.pa-single-wrap { background: var(--pa-card-bg); border: 1px solid var(--pa-line); border-radius: 10px; padding: 22px; box-shadow: var(--pa-shadow); }
.pa-single-title { font-size: 30px; font-weight: 700; line-height: 1.32; margin-bottom: 10px; }
.pa-single-meta { font-size: 13px; color: var(--pa-muted); border-bottom: 1px solid var(--pa-line); padding-bottom: 10px; margin-bottom: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pa-single-body { font-size: 17px; line-height: 1.82; }
.pa-single-body p { margin-bottom: 15px; }
.pa-share { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.pa-share a { padding: 7px 14px; border-radius: 6px; color: #FFFFFF; font-size: 13px; font-weight: 600; }

.pa-chat-dock { position: fixed; bottom: 20px; right: 20px; z-index: 9990; display: flex; flex-direction: column; gap: 8px; }
.pa-chat-btn { padding: 8px 15px; border-radius: 25px; color: #FFFFFF; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.bg-wa { background: #25D366; }
.bg-tg { background: #0088CC; }
.bg-wc { background: #07C160; }
.bg-imo { background: #00A2E8; }

.pa-footer { background: #FFFFFF; border-top: 3px solid var(--pa-blue); margin-top: 34px; padding: 28px 0 16px; font-size: 14px; }
.pa-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #E2E8F0; }
.pa-footer-grid h4 { color: var(--pa-blue); margin-bottom: 8px; }
.pa-footer-bottom { text-align: center; padding-top: 14px; font-size: 13px; color: #64748B; }

@media (max-width: 1080px) {
  .pa-grid-main { grid-template-columns: minmax(0, 1fr); }
  .pa-side-ad { display: none; }
}
@media (max-width: 768px) {
  .pa-lead-grid, .pa-lead-main, .pa-cols-5, .pa-cols-4, .pa-cols-3, .pa-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .pa-lead-main, .pa-card { border-right: none; padding-right: 0; }
}
