/*
Theme Name: BanglaKantho Editorial Pro
Theme URI: https://banglakantho.com
Author: BanglaKantho Tech Team
Author URI: https://banglakantho.com
Description: A clean, organized, high-speed Bangladeshi magazine & news portal WordPress theme designed for banglakantho.com. Features structured lead grid, category sections, dark mode, auto Bangla date, and reading time.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: banglakantho-editorial
*/

:root {
  --primary: #c8102e;
  --primary-hover: #a00b23;
  --secondary: #0f172a;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-muted: #f8fafc;
  --text-main: #0f172a;
  --text-sub: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

body.dark-mode {
  --bg-page: #0b0f19;
  --bg-card: #151c2c;
  --bg-muted: #1e293b;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --border: #263147;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: 'Hind Siliguri', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Utility Bar */
.utility-bar {
  background: var(--secondary);
  color: #e2e8f0;
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icons a {
  color: #cbd5e1;
  margin-left: 10px;
  font-size: 14px;
}

.social-icons a:hover {
  color: #ffffff;
}

/* Header */
.site-header {
  background: var(--bg-card);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.brand-title span {
  color: var(--text-main);
}

.brand-tagline {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-top: 4px;
}

.header-banner {
  background: var(--bg-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px 32px;
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  min-width: 320px;
}

/* Main Navigation */
.primary-nav {
  background: var(--bg-card);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-menu li a {
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--primary);
  background: var(--bg-muted);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-mode {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-mode:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Breaking News Bar */
.breaking-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 18px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.breaking-tag {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.breaking-feed {
  padding: 8px 16px;
  width: 100%;
  font-size: 15.5px;
  font-weight: 500;
}

.breaking-feed a {
  margin-right: 28px;
}

/* Hero Lead Section (Front Page) */
.hero-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-bottom: 30px;
}

.hero-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.hero-main-img {
  height: 360px;
  position: relative;
  overflow: hidden;
  background: #1e293b;
}

.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main:hover .hero-main-img img {
  transform: scale(1.04);
}

.badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}

.hero-main-body {
  padding: 22px;
  flex: 1;
}

.hero-main-title {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-main-excerpt {
  font-size: 15.5px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-news-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.side-news-item:hover {
  transform: translateX(4px);
}

.side-news-thumb {
  height: 82px;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
}

.side-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-news-title {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
}

.meta-line {
  font-size: 12.5px;
  color: var(--text-sub);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Main Content + Sidebar Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 26px;
  margin-bottom: 45px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border);
  margin-bottom: 18px;
  padding-bottom: 8px;
}

.section-title {
  font-size: 21px;
  font-weight: 700;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  height: 195px;
  position: relative;
  overflow: hidden;
  background: #1e293b;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 8px;
}

.news-card-excerpt {
  font-size: 14.5px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

/* Single Article Page */
.article-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--text-sub);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  padding: 5px 12px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-tw { background: #0f172a; }

.article-featured-img {
  margin-bottom: 22px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-content {
  font-size: 18px;
  line-height: 1.85;
}

.article-content p {
  margin-bottom: 18px;
}

.article-tags {
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-tags a {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13.5px;
}

/* Sidebar */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-heading {
  font-size: 18.5px;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  margin-bottom: 16px;
}

.search-form {
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text-main);
  border-radius: 6px 0 0 6px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.search-form button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 18px;
  border-radius: 0 6px 6px 0;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.popular-list {
  list-style: none;
  counter-reset: pop-counter;
}

.popular-list li {
  counter-increment: pop-counter;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.popular-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-list li::before {
  content: counter(pop-counter);
  background: var(--bg-muted);
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.popular-list li a {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pills a {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.cat-pills a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Pagination */
.pagination-wrap {
  margin-top: 25px;
  display: flex;
  gap: 8px;
}

.pagination-wrap .page-numbers {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 25px;
  border-top: 4px solid var(--primary);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-title {
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e293b;
}

.footer-text {
  font-size: 14.5px;
  line-height: 1.75;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 9px;
  font-size: 14.5px;
}

.footer-nav a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-copy {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 14px;
  color: #94a3b8;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .hero-main-img {
    height: 230px;
  }
  .hero-main-title {
    font-size: 22px;
  }
  .brand-title {
    font-size: 30px;
  }
  .header-banner {
    display: none;
  }
  .article-box {
    padding: 18px;
  }
  .article-title {
    font-size: 24px;
  }
}
