/*
Theme Name: One Alo
Theme URI: https://bijoynews.online/
Author: BIJOY News / InnoSoln Limited
Author URI: https://bijoynews.online/
Description: A lightweight, responsive news theme for BIJOY News. Original layout inspired by modern Bangla news portals (not a clone). Includes breaking ticker, featured grid, category blocks, sidebar widgets, and clean typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: one-alo
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --oa-bg: #ffffff;
  --oa-text: #111111;
  --oa-muted: #555555;
  --oa-border: #e7e7e7;
  --oa-accent: #d71920;
  --oa-accent-2: #111111;
  --oa-card: #ffffff;
  --oa-soft: #f7f7f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans Bengali", "SolaimanLipi", sans-serif;
  background: var(--oa-bg);
  color: var(--oa-text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--oa-accent); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.row { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: 1.35fr 1fr 0.85fr; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--oa-bg);
  border-bottom: 1px solid var(--oa-border);
}
.topbar {
  background: var(--oa-accent-2);
  color: #fff;
  font-size: 14px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
}
.breaking {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.breaking .label {
  background: var(--oa-accent);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.breaking .items {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0;
}
.topbar a { color: #fff; opacity: 0.95; }
.topbar a:hover { opacity: 1; color: #fff; text-decoration: underline; }

.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.site-title {
  font-size: 22px; font-weight: 900; letter-spacing: 0.3px;
}
.site-title span { color: var(--oa-accent); }
.menu-toggle {
  display: none; border: 1px solid var(--oa-border);
  padding: 8px 10px; border-radius: 10px; background: var(--oa-soft);
}
.primary-nav ul {
  list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; flex-wrap: wrap;
}
.primary-nav a {
  padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: 15px;
}
.primary-nav a:hover { background: var(--oa-soft); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 6px; padding: 10px 0; }
}

.search-wrap form {
  display: flex; gap: 8px; align-items: center;
}
.search-wrap input[type="search"] {
  width: 220px; max-width: 50vw;
  padding: 10px 12px;
  border: 1px solid var(--oa-border);
  border-radius: 12px;
  outline: none;
}
.search-wrap button {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--oa-border);
  background: var(--oa-soft);
  font-weight: 700;
  cursor: pointer;
}
.search-wrap button:hover { border-color: var(--oa-accent); }

.main {
  padding: 18px 0 30px;
}
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--oa-border);
  padding-bottom: 8px;
  margin: 10px 0 14px;
}
.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
.badge {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--oa-accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.card {
  background: var(--oa-card);
  border: 1px solid var(--oa-border);
  border-radius: 16px;
  overflow: hidden;
}
.card .content { padding: 12px 14px 14px; }
.kicker {
  color: var(--oa-accent);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.meta { color: var(--oa-muted); font-size: 12px; margin-top: 6px; }
h1,h2,h3 { line-height: 1.25; }
.post-title {
  margin: 8px 0 0;
  font-weight: 900;
}
.post-title a { display: inline-block; }
.excerpt { color: var(--oa-muted); margin: 10px 0 0; }

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}
@media (max-width: 980px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-main .thumb {
  aspect-ratio: 16/9; background: var(--oa-soft);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-side {
  display: grid;
  gap: 12px;
}
.side-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}
.side-item .thumb { aspect-ratio: 16/9; background: var(--oa-soft); border-radius: 12px; overflow: hidden; }

.widget-area .widget {
  padding: 14px;
  border: 1px solid var(--oa-border);
  border-radius: 16px;
  background: var(--oa-card);
  margin-bottom: 14px;
}
.widget-title {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 16px;
}

.post-content {
  font-size: 18px;
}
.post-content p { margin: 0 0 14px; }
.post-content a { text-decoration: underline; }

.pagination {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0;
}
.pagination a, .pagination span {
  padding: 8px 12px;
  border: 1px solid var(--oa-border);
  border-radius: 12px;
  background: var(--oa-soft);
  font-weight: 800;
}
.pagination .current {
  background: var(--oa-accent);
  border-color: var(--oa-accent);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--oa-border);
  padding: 24px 0;
  background: var(--oa-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr; } }
.small { font-size: 13px; color: var(--oa-muted); }
.footer-links a { display: inline-block; margin-right: 10px; margin-bottom: 6px; font-weight: 800; }
