/* =============================================================
   BULLETIN MAHARASHTRA — NEWS PORTAL
   Core Stylesheet
   ============================================================= */

/* -------------------------------------------------------------
   1. ROOT VARIABLES
   ------------------------------------------------------------- */
:root {
  --color-primary: #c40000;
  --color-primary-dark: #9a0000;
  --color-secondary: #111111;
  --color-bg: #ffffff;
  --color-section-bg: #f7f7f7;
  --color-border: #e5e5e5;
  --color-text: #333333;
  --color-text-light: #6b6b6b;
  --color-white: #ffffff;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  --transition-base: all 0.3s ease;
  --header-height: 90px;
}

/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-secondary);
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-py {
  padding: 48px 0;
}

.bg-section {
  background-color: var(--color-section-bg);
}

/* Skeleton lazy-load fade in */
img.lazy {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.lazy.loaded {
  opacity: 1;
}

/* -------------------------------------------------------------
   3. SECTION HEADING
   ------------------------------------------------------------- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-border);
}

.section-heading h2 {
  font-size: 24px;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
  border-left: 5px solid var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.section-heading .view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-heading .view-all i {
  margin-left: 4px;
  transition: var(--transition-base);
}

.section-heading .view-all:hover i {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   4. TOP HEADER BAR
   ------------------------------------------------------------- */
.top-bar {
  background-color: var(--color-secondary);
  color: #cfcfcf;
  font-size: 12.5px;
  padding: 7px 0;
}

.top-bar a {
  color: #cfcfcf;
}

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

.top-bar .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 6px;
  font-size: 12px;
}

.top-bar .social-icons a:hover {
  background: var(--color-primary);
  color: #fff;
}

.top-bar .top-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar .top-links a {
  margin-right: 16px;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.4px;
}

/* -------------------------------------------------------------
   5. LOGO / SEARCH / AD HEADER
   ------------------------------------------------------------- */
.header-main {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.brand-logo .brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
}

.brand-logo .brand-name span {
  color: var(--color-primary);
}

.brand-logo .brand-tagline {
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 4px;
}

.header-search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  padding: 6px 6px 6px 18px;
  min-width: 260px;
}

.header-search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13.5px;
  background: transparent;
}

.header-search-box button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-ad-banner {
  text-align: center;
}

.header-ad-banner img {
  border-radius: var(--radius-sm);
  margin: 0 auto;
}

/* -------------------------------------------------------------
   6. STICKY NAVIGATION / MEGA MENU
   ------------------------------------------------------------- */
.main-navbar {
  background-color: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-base);
}

.main-navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.main-navbar .navbar-nav {
  flex-direction: row;
  flex-wrap: wrap;
}

.main-navbar .nav-item {
  position: static;
}

.main-navbar .nav-link {
  color: #f2f2f2 !important;
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 16px 15px !important;
  position: relative;
}

.main-navbar .nav-item.active .nav-link,
.main-navbar .nav-link:hover {
  color: #fff !important;
  background: var(--color-primary);
}

.main-navbar .nav-link.hot::after {
  content: 'HOT';
  position: absolute;
  top: 6px;
  right: 2px;
  background: var(--color-primary);
  color: #fff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* Mega Menu */
.mega-menu-wrap {
  position: static;
}

.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--color-primary);
  padding: 28px 0;
  z-index: 999;
}

.mega-menu-wrap:hover .mega-menu {
  display: block;
}

.mega-menu-col h6 {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--color-primary);
  margin-bottom: 14px;
  font-weight: 700;
}

.mega-menu-col ul li {
  margin-bottom: 9px;
}

.mega-menu-col ul li a {
  font-size: 13.5px;
  color: var(--color-text);
}

.mega-menu-col ul li a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.mega-menu-feature img {
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.mega-menu-feature .badge-category {
  margin-bottom: 8px;
}

/* Mobile toggler */
.navbar-toggler {
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 10px 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* Search toggle panel */
.search-toggle-panel {
  display: none;
  background: var(--color-secondary);
  padding: 16px 0;
}

.search-toggle-panel.active {
  display: block;
}

.search-toggle-panel .form-control {
  border-radius: 30px 0 0 30px;
  border: none;
  padding-left: 20px;
}

.search-toggle-panel .btn {
  border-radius: 0 30px 30px 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0 22px;
}

/* -------------------------------------------------------------
   7. BREAKING NEWS TICKER
   ------------------------------------------------------------- */
.breaking-ticker {
  background: var(--color-section-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0;
}

.breaking-label {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
  padding-right: 26px;
}

.ticker-viewport {
  overflow: hidden;
  flex: 1;
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track span {
  padding: 0 40px;
  font-size: 13.5px;
  font-weight: 500;
  border-right: 1px solid var(--color-border);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* -------------------------------------------------------------
   8. HERO SLIDER
   ------------------------------------------------------------- */
.hero-section {
  padding: 24px 0;
}

.hero-slider {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-slider .swiper-slide {
  position: relative;
  height: 460px;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 34px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  color: #fff;
}

.hero-slide-caption .badge-category {
  margin-bottom: 12px;
}

.hero-slide-caption h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.hero-slide-caption .meta {
  font-size: 12.5px;
  color: #d8d8d8;
  display: flex;
  gap: 16px;
}

.hero-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--color-primary);
  opacity: 1;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 15px;
}

/* Trending sidebar (next to hero) */
.trending-side-list {
  height: 460px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.trending-side-list h5 {
  text-transform: uppercase;
  font-size: 14px;
  border-left: 4px solid var(--color-primary);
  padding-left: 10px;
  margin-bottom: 16px;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item .trend-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-border);
  min-width: 28px;
}

.trending-item h6 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.trending-item .meta {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* -------------------------------------------------------------
   9. BADGES / CATEGORY LABELS
   ------------------------------------------------------------- */
.badge-category {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-category.dark { background: var(--color-secondary); }
.badge-category.outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

/* -------------------------------------------------------------
   10. NEWS CARDS
   ------------------------------------------------------------- */
.news-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
}

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

.news-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.news-card .card-img-wrap .badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
}

.news-card .card-body-custom {
  padding: 18px;
}

.news-card .card-body-custom h3,
.news-card .card-body-custom h4 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-card .card-body-custom h3 a:hover,
.news-card .card-body-custom h4 a:hover {
  color: var(--color-primary);
}

.news-card .card-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--color-text-light);
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.news-card .card-meta .author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card .card-meta .author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.news-card .read-more-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* List style news item (compact) */
.news-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.news-list-item .thumb {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.news-list-item h6 {
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
}

.news-list-item h6 a:hover { color: var(--color-primary); }

.news-list-item .meta {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* Featured grid main + side layout */
.featured-main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 360px;
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  transition: transform 0.5s ease;
}

.featured-main:hover img { transform: scale(1.05); }

.featured-main .overlay-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

.featured-main .overlay-caption h3 {
  color: #fff;
  font-size: 21px;
  margin: 12px 0 8px;
}

/* -------------------------------------------------------------
   11. TABS (category sections)
   ------------------------------------------------------------- */
.category-tabs .nav-link {
  border: none;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}

.category-tabs .nav-link.active {
  background: var(--color-primary);
  color: #fff;
}

/* -------------------------------------------------------------
   12. ADVERTISEMENT BLOCKS
   ------------------------------------------------------------- */
.ad-banner {
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--color-section-bg);
  position: relative;
}

.ad-banner::before {
  content: 'ADVERTISEMENT';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--color-text-light);
  background: var(--color-section-bg);
  padding: 0 6px;
}

.ad-banner img {
  border-radius: 4px;
  margin: 12px auto 0;
}

.ad-sidebar img { width: 100%; }

.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1050;
}

.sticky-bottom-ad .close-ad {
  position: absolute;
  right: 10px;
  top: 6px;
  cursor: pointer;
  color: var(--color-text-light);
}

.ad-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.ad-popup-overlay.active {
  display: flex;
}

.ad-popup-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.ad-popup-box .close-popup {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #fff;
}

/* -------------------------------------------------------------
   13. VIDEO SECTION
   ------------------------------------------------------------- */
.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(196, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: var(--transition-base);
}

.video-card:hover .video-play-btn {
  background: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card .video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* -------------------------------------------------------------
   14. PHOTO GALLERY
   ------------------------------------------------------------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.12); }

.gallery-item .gallery-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.35);
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-icon { opacity: 1; }

/* -------------------------------------------------------------
   15. NEWSLETTER
   ------------------------------------------------------------- */
.newsletter-section {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.newsletter-section h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
}

.newsletter-section p {
  color: #c9c9c9;
  font-size: 13.5px;
  margin-bottom: 0;
}

.newsletter-form {
  display: flex;
  max-width: 420px;
  margin-left: auto;
}

.newsletter-form input {
  border: none;
  border-radius: 30px 0 0 30px;
  padding: 13px 20px;
  flex: 1;
  outline: none;
  font-size: 13.5px;
}

.newsletter-form button {
  border: none;
  border-radius: 0 30px 30px 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0 26px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

/* -------------------------------------------------------------
   16. SIDEBAR WIDGETS
   ------------------------------------------------------------- */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 26px;
}

.sidebar-widget h5 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  border-left: 4px solid var(--color-primary);
  padding-left: 10px;
  margin-bottom: 18px;
}

.sidebar-search {
  display: flex;
}

.sidebar-search input {
  border: 1px solid var(--color-border);
  border-radius: 30px 0 0 30px;
  padding: 10px 16px;
  flex: 1;
  outline: none;
  font-size: 13px;
}

.sidebar-search button {
  border: none;
  border-radius: 0 30px 30px 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0 18px;
}

.tag-cloud a {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  margin: 0 6px 8px 0;
}

.tag-cloud a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.category-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13.5px;
  font-weight: 500;
}

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

.category-list li span {
  color: var(--color-text-light);
  font-size: 12px;
}

/* -------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: var(--color-secondary);
  color: #b9b9b9;
  padding-top: 56px;
  font-size: 13.5px;
}

.site-footer h5 {
  color: #fff;
  text-transform: uppercase;
  font-size: 14.5px;
  margin-bottom: 20px;
  letter-spacing: 0.4px;
}

.site-footer .brand-logo .brand-name { color: #fff; }
.site-footer .brand-logo .brand-tagline { color: #999; }

.site-footer p { color: #a5a5a5; }

.site-footer ul li {
  margin-bottom: 11px;
}

.site-footer ul li a {
  color: #b9b9b9;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #3a3a3a;
  margin-right: 8px;
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.footer-map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 160px;
  background: #1b1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  border: 1px solid #2a2a2a;
}

.footer-newsletter input {
  border-radius: 30px;
  border: none;
  padding: 11px 18px;
  width: 100%;
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-newsletter button {
  border: none;
  border-radius: 30px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 22px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  margin-top: 40px;
  padding: 18px 0;
  font-size: 12.5px;
  color: #888;
}

.footer-bottom a { color: #b9b9b9; }
.footer-bottom a:hover { color: var(--color-primary); }

/* -------------------------------------------------------------
   18. BACK TO TOP
   ------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  z-index: 1040;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
}

/* -------------------------------------------------------------
   19. BREADCRUMB / PAGE BANNER (category/subcategory/search)
   ------------------------------------------------------------- */
.page-banner {
  background: var(--color-secondary);
  padding: 34px 0;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(196,0,0,0.25), transparent 60%);
}

.page-banner .breadcrumb {
  margin-bottom: 8px;
  font-size: 12.5px;
}

.page-banner .breadcrumb a { color: #b9b9b9; }
.page-banner .breadcrumb .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #666; }

.page-banner h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-banner .page-sub {
  color: #c9c9c9;
  font-size: 13.5px;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------
   20. PAGINATION
   ------------------------------------------------------------- */
.custom-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.custom-pagination a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.custom-pagination a.active,
.custom-pagination a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* -------------------------------------------------------------
   21. NEWS DETAILS PAGE
   ------------------------------------------------------------- */
.article-header .badge-category { margin-bottom: 14px; }

.article-header h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--color-text-light);
}

.article-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta .author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.article-meta .author strong {
  display: block;
  color: var(--color-secondary);
  font-size: 13.5px;
}

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

.social-share {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-share a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.article-content {
  font-size: 15.5px;
  line-height: 1.9;
  color: #3d3d3d;
}

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

.article-content h3 {
  font-size: 20px;
  margin: 28px 0 14px;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 14px 22px;
  background: var(--color-section-bg);
  font-style: italic;
  font-size: 16px;
  margin: 22px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.article-gallery img {
  border-radius: var(--radius-sm);
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.article-tags a {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12.5px;
}

.article-tags a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.prev-next-nav {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 26px 0;
}

.prev-next-nav > div {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.prev-next-nav .next-article {
  text-align: right;
  flex-direction: row-reverse;
}

.prev-next-nav img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.prev-next-nav .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.prev-next-nav h6 {
  font-size: 13px;
  line-height: 1.4;
}

/* Comments */
.comment-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.comment-item img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-item .comment-body {
  background: var(--color-section-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  flex: 1;
}

.comment-item .comment-body h6 {
  font-size: 13.5px;
  margin-bottom: 4px;
}

.comment-item .comment-body .comment-date {
  font-size: 11px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.comment-item .comment-body p {
  font-size: 13.5px;
  margin-bottom: 8px;
}

.comment-item .reply-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
}

.comment-form textarea,
.comment-form input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  font-size: 13.5px;
  margin-bottom: 14px;
  outline: none;
}

.comment-form button {
  border: none;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

/* -------------------------------------------------------------
   22. SEARCH PAGE
   ------------------------------------------------------------- */
.search-hero-box {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
}

.search-hero-box input {
  flex: 1;
  border: none;
  border-radius: 30px 0 0 30px;
  padding: 15px 24px;
  font-size: 14.5px;
  outline: none;
}

.search-hero-box button {
  border: none;
  background: var(--color-primary);
  color: #fff;
  padding: 0 30px;
  border-radius: 0 30px 30px 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
}

.result-count-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13.5px;
  color: var(--color-text-light);
}

/* -------------------------------------------------------------
   23. 404 PAGE
   ------------------------------------------------------------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .error-code {
  font-size: 140px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -4px;
}

.error-page h2 {
  font-size: 24px;
  margin: 10px 0 12px;
}

.error-page p {
  color: var(--color-text-light);
  max-width: 420px;
  margin: 0 auto 26px;
}

.error-page .btn-home {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-block;
}

.error-page .btn-home:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* -------------------------------------------------------------
   24. BUTTONS / GENERIC
   ------------------------------------------------------------- */
.btn-primary-custom {
  background: var(--color-primary);
  border: none;
  color: #fff;
  padding: 11px 26px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  transition: var(--transition-base);
}

.btn-primary-custom:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-outline-custom {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.btn-outline-custom:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
