/*
Theme Name: BanglaKantho Editorial Minimal (Prothom Alo Style)
Theme URI: https://banglakantho.com
Author: BanglaKantho Dev
Description: Clean, minimalist, white-background editorial newspaper WordPress theme inspired by Prothom Alo layout with multi-level sub-menus and crisp Bengali typography.
Version: 6.0
License: GNU General Public License v2 or later
Text Domain: banglakantho
*/

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f7f7f7;
  --text-primary: #121212;
  --text-secondary: #555555;
  --text-muted: #767676;
  --accent-red: #d90429;
  --accent-blue: #0056b3;
  --border-light: #e2e2e2;
  --border-dark: #222222;
}

body.dark-mode {
  --bg-page: #121212;
  --bg-subtle: #1c1c1c;
  --text-primary: #f0f0f0;
  --text-secondary: #bbbbbb;
  --text-muted: #888888;
  --border-light: #2e2e2e;
  --border-dark: #555555;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Hind Siliguri', 'Noto Serif Bengali', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--accent-red); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 16px; }

/* Minimal Top Utility Bar */
.pa-topbar {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.pa-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pa-top-left { display: flex; align-items: center; gap: 15px; }
.pa-top-right { display: flex; align-items: center; gap: 14px; }
.pa-pill-btn {
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pa-pill-btn:hover { border-color: var(--text-primary); }

/* Center Logo Masthead (Prothom Alo Style) */
.pa-masthead {
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.pa-logo h1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text-primary);
  display: inline-block;
}
.pa-logo h1 span { color: var(--accent-red); }
.pa-logo p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Clean Sticky Navigation with Multi-level Dropdowns */
.pa-navbar {
  background: var(--bg-page);
  border-bottom: 2px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.pa-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pa-menu {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.pa-menu > li { position: relative; }
.pa-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.pa-menu > li > a:hover,
.pa-menu > li.current-menu-item > a {
  color: var(--accent-red);
}
.pa-menu li.menu-item-has-children > a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: var(--text-muted);
}

/* Sub-menu Dropdown */
.pa-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--accent-red);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 1001;
}
.pa-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pa-menu .sub-menu li { position: relative; border-bottom: 1px solid var(--border-light); }
.pa-menu .sub-menu li:last-child { border-bottom: none; }
.pa-menu .sub-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 500;
}
.pa-menu .sub-menu li a:hover {
  background: var(--bg-subtle);
  color: var(--accent-red);
}
.pa-menu .sub-menu .sub-menu { top: 0; left: 100%; }

/* Search Bar Toggle */
.pa-nav-tools { display: flex; align-items: center; gap: 10px; }
.pa-search-bar {
  display: none;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
}
.pa-search-bar.active { display: block; }
.pa-search-form { display: flex; max-width: 500px; margin: 0 auto; }
.pa-search-form input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
}
.pa-search-form button {
  padding: 8px 18px;
  background: var(--text-primary);
  color: var(--bg-page);
  border: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Prothom Alo Signature 3-Column Hero Lead Grid */
.pa-hero-section {
  padding: 24px 0;
  border-bottom: 2px solid var(--border-dark);
}
.pa-hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
}
.pa-col-left {
  border-right: 1px solid var(--border-light);
  padding-right: 20px;
}
.pa-col-center {
  border-right: 1px solid var(--border-light);
  padding-right: 20px;
}

/* Editorial Story Items */
.pa-story-item {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.pa-story-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pa-story-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 6px;
}
.pa-story-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 6px;
}
.pa-time-ago {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

/* Center Main Lead Story */
.pa-lead-thumb {
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-subtle);
}
.pa-lead-thumb img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.3s;
}
.pa-lead-card:hover .pa-lead-thumb img { transform: scale(1.02); }
.pa-lead-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.pa-lead-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* Sub-lead 2-column row under Center Lead */
.pa-center-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}
.pa-sub-card img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  margin-bottom: 8px;
}
.pa-sub-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 5px;
}

/* Right Column Horizontal Thumb Items */
.pa-right-item {
  display: flex;
  gap: 12px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}
.pa-right-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pa-right-text { flex: 1; }
.pa-right-text h3 { font-size: 16px; font-weight: 700; line-height: 1.38; margin-bottom: 5px; }
.pa-right-thumb { width: 105px; height: 75px; flex-shrink: 0; overflow: hidden; }
.pa-right-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Horizontal Strip Below Hero */
.pa-strip-section {
  padding: 22px 0;
  border-bottom: 2px solid var(--border-dark);
}
.pa-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pa-strip-card {
  border-right: 1px solid var(--border-light);
  padding-right: 18px;
}
.pa-strip-card:last-child { border-right: none; padding-right: 0; }
.pa-strip-card img { width: 100%; height: 145px; object-fit: cover; margin-bottom: 10px; }
.pa-strip-card h3 { font-size: 17px; font-weight: 700; line-height: 1.38; margin-bottom: 6px; }

/* Category Editorial Sections */
.pa-cat-block {
  padding: 26px 0;
  border-bottom: 1px solid var(--border-light);
}
.pa-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-dark);
}
.pa-cat-header h2 {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pa-cat-header h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent-red);
}
.pa-cat-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pa-cat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pa-cat-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  margin-bottom: 10px;
}
.pa-cat-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 6px;
}

/* Single Article & Archive */
.pa-main-wrap {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
  padding: 28px 0 45px;
}
.pa-article-header { margin-bottom: 20px; }
.pa-article-cat {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  margin-bottom: 8px;
}
.pa-article-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.pa-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}
.pa-share-btns { display: flex; gap: 8px; }
.pa-share-btns a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.pa-article-body {
  font-size: 19px;
  line-height: 1.85;
  margin-top: 20px;
}
.pa-article-body p { margin-bottom: 20px; }

/* Sidebar */
.pa-sidebar-box {
  border-top: 2px solid var(--border-dark);
  padding-top: 14px;
  margin-bottom: 28px;
}
.pa-sidebar-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.pa-numbered-list { list-style: none; counter-reset: pa-counter; }
.pa-numbered-list li {
  counter-increment: pa-counter;
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.pa-numbered-list li::before {
  content: counter(pa-counter);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.1;
}
.pa-numbered-list li a { font-size: 16px; font-weight: 600; line-height: 1.4; }

/* Clean Minimal Footer */
.pa-footer {
  border-top: 2px solid var(--border-dark);
  background: var(--bg-subtle);
  padding: 36px 0 24px;
  margin-top: 30px;
}
.pa-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.pa-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
}
.pa-footer-bottom {
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Mobile Menu Button */
.pa-mobile-toggle { display: none; }

@media (max-width: 992px) {
  .pa-hero-grid { grid-template-columns: 1fr; }
  .pa-col-left, .pa-col-center { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; }
  .pa-strip-grid, .pa-cat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pa-strip-card { border-right: none; padding-right: 0; }
  .pa-main-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pa-logo h1 { font-size: 34px; }
  .pa-mobile-toggle { display: inline-flex; }
  .pa-menu { display: none; flex-direction: column; width: 100%; align-items: flex-start; border-top: 1px solid var(--border-light); }
  .pa-menu.open { display: flex; }
  .pa-menu > li { width: 100%; border-bottom: 1px solid var(--border-light); }
  .pa-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 18px; display: none; }
  .pa-menu li.sub-open > .sub-menu { display: block; }
  .pa-center-subgrid, .pa-strip-grid, .pa-cat-grid-4 { grid-template-columns: 1fr; }
  .pa-lead-thumb img { height: 220px; }
  .pa-lead-title { font-size: 24px; }
}
