/* ============================================
   Aaj Talkss — Main Stylesheet
   ============================================ */

:root {
  --red:      #d32f2f;
  --red-dark: #b71c1c;
  --red-light:#ffebee;
  --dark:     #1a1a2e;
  --dark2:    #16213e;
  --text:     #212121;
  --text2:    #555;
  --border:   #e0e0e0;
  --bg:       #f5f5f5;
  --white:    #ffffff;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
  --shadow-h: 0 8px 30px rgba(0,0,0,.15);
  --radius:   10px;
  --radius-s: 6px;
  --font:     'Inter', 'Noto Sans Bengali', sans-serif;
  --trans:    all .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; transition: var(--trans); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid var(--red);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.topbar-left i { margin-right: 5px; color: var(--red); }
.topbar-right { display: flex; gap: 14px; }
.topbar-right a { color: #ccc; font-size: 13px; }
.topbar-right a:hover { color: var(--white); }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
}
.site-logo img { max-height: 56px; width: auto; }
.header-search {
  flex: 1;
  max-width: 420px;
  margin-left: auto;
}
.header-search form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--trans);
}
.header-search form:focus-within { border-color: var(--red); }
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--font);
  background: transparent;
}
.header-search button {
  background: var(--red);
  color: var(--white);
  padding: 8px 18px;
  font-size: 14px;
}
.header-search button:hover { background: var(--red-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== NAV ===== */
.main-nav {
  background: var(--dark);
  border-bottom: 3px solid var(--red);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li a {
  display: block;
  padding: 11px 14px;
  color: #ddd;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  letter-spacing: .3px;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* ===== BREAKING TICKER ===== */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  padding: 7px 0;
  overflow: hidden;
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.breaking-label {
  background: var(--dark);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.breaking-label i { margin-right: 4px; }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 0 16px;
}
.ticker-item:hover { text-decoration: underline; }
.ticker-sep { opacity: .5; font-size: 10px; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== AD SLOTS ===== */
.ad-slot { text-align: center; padding: 10px 0; }
.ad-header { background: var(--white); border-bottom: 1px solid var(--border); }
.ad-footer { background: var(--white); border-top: 1px solid var(--border); }

/* ===== MAIN LAYOUT ===== */
.main-content { padding: 20px 0 40px; }
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HERO SLIDER ===== */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-h);
}
.hero-slider { position: relative; height: 480px; }
.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.slider-slide.active { opacity: 1; }
.slide-link { display: block; height: 100%; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 6s ease;
}
.slider-slide.active .slide-bg { transform: scale(1); }
.slide-bg-fallback { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}
.slide-inner {
  padding: 28px 32px;
  color: var(--white);
  max-width: 680px;
}
.slide-cat {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.slide-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.slide-excerpt {
  font-size: 13px;
  opacity: .85;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-meta { font-size: 12px; opacity: .75; display: flex; gap: 14px; margin-bottom: 12px; }
.slide-meta i { margin-right: 4px; }
.slide-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.slide-read-more:hover { background: var(--red-dark); }

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 10;
  transition: var(--trans);
}
.slider-arrow:hover { background: var(--red); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: var(--trans);
}
.slider-dot.active { background: var(--white); transform: scale(1.3); }

/* Thumbnails strip */
.slider-thumbs {
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 10;
  gap: 3px;
  padding: 0 3px 3px;
}
.slider-thumbs::-webkit-scrollbar { display: none; }
.slider-thumb {
  position: relative;
  flex: 0 0 110px;
  height: 66px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: var(--trans);
}
.slider-thumb.active,
.slider-thumb:hover { border-color: var(--red); }
.slider-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  transition: var(--trans);
}
.slider-thumb.active .thumb-overlay { background: rgba(211,47,47,.3); }
.thumb-title {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  font-size: 9px;
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

/* ===== SECTION HEADINGS ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--red);
  padding-bottom: 10px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}
.section-title span {
  position: relative;
  padding-bottom: 3px;
}
.section-title span::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
}
.section-viewall {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 5px;
}
.section-viewall:hover { color: var(--red-dark); }

/* ===== NEWS CARD GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }

.card-img-link, .card-thumb-link { display: block; }
.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56%;
  overflow: hidden;
  background: var(--bg);
}
.card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}
.card-img-placeholder i { font-size: 32px; color: #9fa8da; }

.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-cat-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.card-cat-tag:hover { background: var(--red); color: var(--white); }
.card-headline, .card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-headline a:hover, .card-title a:hover { color: var(--red); }
.card-summary, .card-excerpt {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.card-footer-meta, .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #999;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.card-footer-meta i, .card-meta i { color: var(--red); margin-right: 3px; }

/* ===== CATEGORY STRIP ===== */
.cat-strip { margin-bottom: 32px; }
.cat-strip-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.cat-featured-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  position: relative;
  box-shadow: var(--shadow);
}
.cat-featured-img {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  background: var(--bg);
}
.cat-featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cat-featured-card:hover .cat-featured-img img { transform: scale(1.05); }
.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
}
.cat-featured-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  color: var(--white);
}
.cat-featured-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-featured-time { font-size: 11px; opacity: .8; margin-top: 5px; display: block; }
.cat-featured-time i { margin-right: 3px; }

.cat-small-list { display: flex; flex-direction: column; gap: 10px; }
.cat-small-item {
  display: flex;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.cat-small-item:hover { transform: translateX(3px); }
.cat-small-thumb {
  flex: 0 0 80px;
  height: 62px;
  overflow: hidden;
}
.cat-small-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-small-body { padding: 8px 10px 8px 0; flex: 1; }
.cat-small-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-small-title:hover { color: var(--red); }
.cat-small-time { font-size: 11px; color: #aaa; margin-top: 4px; display: block; }

/* ===== ARTICLE PAGE ===== */
.article-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.article-header { margin-bottom: 20px; }
.article-category-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.article-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 16px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { font-size: 36px; color: #ccc; }
.author-name { display: block; font-weight: 700; font-size: 14px; }
.author-date { display: block; font-size: 12px; color: var(--text2); }
.meta-pill {
  background: var(--bg);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-pill i { color: var(--red); }
.article-meta-right { display: flex; gap: 8px; flex-wrap: wrap; }

/* Share bar */
.share-bar {
  background: var(--bg);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.share-bar-label { font-size: 13px; font-weight: 600; color: var(--text2); white-space: nowrap; }
.share-bar-label i { margin-right: 4px; color: var(--red); }
.share-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.shr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  transition: var(--trans);
}
.shr-btn:hover { opacity: .85; transform: translateY(-1px); }
.shr-fb   { background: #1877f2; }
.shr-wa   { background: #25d366; }
.shr-tw   { background: #000; }
.shr-page { background: #1877f2; }
.shr-copy { background: #607d8b; }

.article-figure { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.article-hero-img { width: 100%; border-radius: var(--radius); }

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.article-body p { margin-bottom: 1.1em; }
.article-body h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 1.5em 0 .6em; }
.article-body h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 1.2em 0 .5em; }
.article-body img { border-radius: var(--radius-s); margin: 1em 0; }
.article-body ul,
.article-body ol { padding-left: 1.5em; margin-bottom: 1em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 10px 18px;
  background: var(--red-light);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 1.2em 0;
  font-style: italic;
  color: var(--text2);
}
.article-body figure { margin: 1.5em 0; }
.article-body figcaption { font-size: 12px; color: #999; margin-top: 5px; text-align: center; }

/* Tags */
.article-tags { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.tags-label i { margin-right: 4px; color: var(--red); }
.tag-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  transition: var(--trans);
}
.tag-pill:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ===== RELATED POSTS ===== */
.related-section { margin-top: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.related-card {
  background: var(--white);
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.related-img-wrap { position: relative; padding-top: 60%; overflow: hidden; background: var(--bg); }
.related-img-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.related-card:hover .related-img-wrap img { transform: scale(1.05); }
.related-body { padding: 10px 12px; }
.related-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.35; margin-bottom: 5px; }
.related-title a:hover { color: var(--red); }
.related-time { font-size: 11px; color: #aaa; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.page-header-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.page-header-title i { color: var(--red); }
.page-header-count { font-size: 13px; opacity: .75; margin-top: 5px; }
.page-header-count strong { color: var(--white); }

/* Breadcrumb */
.breadcrumb { margin-bottom: 16px; }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); flex-wrap: wrap; }
.breadcrumb ol li + li::before { content: '›'; color: #bbb; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--text); }

/* ===== SEARCH PAGE ===== */
.search-page-form { margin-bottom: 24px; }
.search-input-wrap {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  max-width: 600px;
  box-shadow: var(--shadow);
}
.search-input-wrap:focus-within { border-color: var(--red); }
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 15px;
  font-family: var(--font);
}
.search-input-wrap button {
  background: var(--red);
  color: var(--white);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-input-wrap button:hover { background: var(--red-dark); }

/* Search results list */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-list-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.news-list-item:hover { transform: translateX(3px); }
.list-item-thumb {
  flex: 0 0 160px;
  height: 110px;
  overflow: hidden;
}
.list-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-list-item:hover .list-item-thumb img { transform: scale(1.05); }
.list-item-body { padding: 14px 16px 14px 0; flex: 1; }
.list-item-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.list-item-title a:hover { color: var(--red); }
.list-item-excerpt { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 8px; }
.card-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; display: block; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-h); }
.gallery-thumb {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  background: var(--bg);
}
.gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover .gallery-thumb img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  transition: var(--trans);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text2);
  background: var(--white);
  line-height: 1.3;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lb-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lb-inner img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-s); display: block; }
.lb-caption { color: #ddd; text-align: center; font-size: 13px; margin-top: 10px; }
.lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: var(--white);
  font-size: 22px;
  background: rgba(255,255,255,.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lb-close:hover { background: var(--red); }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 18px;
  background: rgba(255,255,255,.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: var(--red); }
.lb-share { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.lbs-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--trans);
}
.lbs-fb { background: #1877f2; }
.lbs-wa { background: #25d366; }
.lbs-copy { background: #607d8b; }
.lbs-btn:hover { transform: scale(1.1); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-title {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .3px;
  border-bottom: 3px solid var(--red);
}
.widget-title i { color: var(--red); }
.widget-body { padding: 14px; }

.widget-post-list { display: flex; flex-direction: column; gap: 12px; }
.widget-post-item { display: flex; gap: 10px; align-items: flex-start; }
.widget-thumb { flex: 0 0 72px; height: 54px; overflow: hidden; border-radius: var(--radius-s); }
.widget-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.widget-post-item:hover .widget-thumb img { transform: scale(1.07); }
.widget-post-info { flex: 1; }
.widget-post-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-post-title:hover { color: var(--red); }
.widget-post-time { font-size: 11px; color: #aaa; margin-top: 3px; display: block; }
.widget-post-time i { color: var(--red); margin-right: 3px; }

.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--radius-s);
  transition: var(--trans);
}
.cat-list li a:hover { background: var(--red-light); color: var(--red); }
.cat-count {
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

.widget-about-text { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.widget-social { display: flex; flex-direction: column; gap: 8px; }
.btn-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  transition: var(--trans);
}
.btn-social:hover { opacity: .85; }
.btn-social.fb { background: #1877f2; }
.btn-social.yt { background: #ff0000; }
.btn-social i { font-size: 15px; }

/* ===== PAGINATION ===== */
.pagination { margin: 24px 0 10px; }
.pagination ul { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--trans);
}
.pagination ul li a:hover,
.pagination ul li.active a {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
}
.empty-state i { font-size: 48px; color: #ddd; margin-bottom: 14px; display: block; }
.empty-state p { font-size: 15px; margin-bottom: 16px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-s);
  font-size: 14px;
  font-weight: 600;
  transition: var(--trans);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

/* 404 */
.not-found { display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.not-found-inner { text-align: center; padding: 40px; }
.nf-code { font-size: 80px; font-weight: 900; color: var(--red); line-height: 1; display: block; }
.not-found-inner h1 { font-size: 22px; margin: 10px 0; color: var(--dark); }
.not-found-inner p { color: var(--text2); margin-bottom: 20px; }
.nf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 11px 24px;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.nf-btn:hover { background: var(--red-dark); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: #ccc; margin-top: 20px; }
.footer-top { padding: 40px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { filter: brightness(0) invert(1); opacity: .9; }
.footer-desc { font-size: 13px; line-height: 1.7; color: #aaa; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  transition: var(--trans);
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-heading { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links li a { font-size: 13px; color: #aaa; display: flex; align-items: center; gap: 7px; transition: var(--trans); }
.footer-links li a:hover { color: var(--white); padding-left: 4px; }
.footer-links li a i { color: var(--red); font-size: 10px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #aaa; }
.footer-contact i { color: var(--red); width: 16px; text-align: center; }
.footer-contact a { color: #aaa; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; }
.footer-bottom p { text-align: center; font-size: 12px; color: #777; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .cat-strip-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr 280px; }
}

@media (max-width: 768px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .hero-slider { height: 320px; }
  .slider-thumbs { display: none; }
  .slide-inner { padding: 16px 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .cat-strip-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hamburger { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-list li a { border-bottom: 1px solid rgba(255,255,255,.07); border-bottom-width: 0; }
  .article-wrap { padding: 18px 16px; }
  .list-item-thumb { flex: 0 0 100px; height: 80px; }
  .article-meta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-slider { height: 240px; }
  .slide-title { font-size: 16px; }
  .slide-excerpt { display: none; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .news-list-item { flex-direction: column; }
  .list-item-thumb { flex: none; width: 100%; height: 180px; }
  .list-item-body { padding: 12px 14px; }
}
