/*
Theme Name: BanglaKantho Ultimate Pro v4
Theme URI: https://banglakantho.com
Author: BanglaKantho Team
Author URI: https://banglakantho.com
Description: banglakantho.com এর জন্য তৈরি সম্পূর্ণ কাস্টমাইজেবল, প্রিমিয়াম, ফাস্ট এবং ক্যাটাগরি-সাজানো বাংলা নিউজ পোর্টাল ওয়ার্ডপ্রেস থিম।
Version: 4.0.0
License: GNU General Public License v2 or later
Text Domain: banglakantho
*/

:root {
  --primary: #d90429;
  --primary-dark: #a6001d;
  --secondary: #0f172a;
  --bg-body: #f3f5f8;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
}

body.dark-mode {
  --bg-body: #0f1115;
  --bg-card: #181b20;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #2a2e37;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Hind Siliguri', sans-serif;
  background-color: var(--bg-body);
  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 15px;
}

/* Top Bar */
.top-bar {
  background: var(--secondary);
  color: #e2e8f0;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

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

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

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

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

.site-logo h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.site-logo h1 span {
  color: var(--text-main);
}

.site-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-ad-slot {
  max-width: 728px;
  width: 100%;
  min-height: 80px;
  background: var(--bg-body);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
}

/* Navigation */
.main-nav {
  background: var(--secondary);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

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

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

.nav-menu li a {
  display: block;
  color: #ffffff;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.07);
}

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

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

.btn-theme-toggle {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: none;
  padding: 7px 13px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-theme-toggle:hover {
  background: var(--primary);
}

/* Breaking Ticker */
.breaking-ticker {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 15px auto 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ticker-badge {
  background: var(--primary);
  color: #ffffff;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-content {
  padding: 8px 15px;
  width: 100%;
  font-size: 15px;
  font-weight: 500;
}

.ticker-content a {
  margin-right: 25px;
}

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

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--primary);
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

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

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

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

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

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

.hero-main-body {
  padding: 20px;
}

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

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.hero-side-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-news-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.side-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.side-news-thumb {
  width: 110px;
  height: 75px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
}

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

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

/* Main Content + Sidebar Layout */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 25px;
  margin-bottom: 35px;
}

/* Category Split Block (National) */
.cat-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

.featured-card-thumb {
  height: 210px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  background: #1e293b;
}

.featured-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

/* 2-Column Category Boxes */
.two-col-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.bullet-news-list {
  list-style: none;
  margin-top: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.bullet-news-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bullet-news-list li:last-child {
  border-bottom: none;
}

.bullet-news-list li i {
  color: var(--primary);
  margin-top: 5px;
  font-size: 12px;
}

/* 3-Column Visual Grid (Sports) */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-body);
}

.grid-card-thumb {
  height: 155px;
  overflow: hidden;
  background: #1e293b;
}

.grid-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-card-body {
  padding: 12px;
}

.grid-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

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

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

.search-form {
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  border-radius: 5px 0 0 5px;
  font-family: inherit;
}

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

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

.cat-badge-cloud a {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

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

/* Single Post & Archive */
.single-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

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

.single-headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.single-meta-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

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

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

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

.single-featured-img {
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
}

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 30px;
}

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

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

.footer-links li {
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .layout-with-sidebar,
  .split-grid,
  .two-col-cats,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .three-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }
  .site-logo h1 {
    font-size: 30px;
  }
  .hero-main-thumb {
    height: 220px;
  }
}
