/*
Theme Name: EBN News
Theme URI: http://localhost/ebanglanews
Author: Rabbi Husen Roki
Author URI: https://facebook.com/tahsin.rocky.5
Description: Custom Bangla news portal theme for EBN.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: ebn-news
*/

:root {
  --ebn-accent: #c40018;
  --ebn-text: #161616;
  --ebn-muted: #6b7280;
  --ebn-bg: #f6f7f9;
  --ebn-surface: #ffffff;
  --ebn-border: #e8eaee;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--ebn-bg);
  color: var(--ebn-text);
  font-family: Arial, "Noto Sans Bengali", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ebn-accent);
}

.ebn-container {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.ebn-panel,
.widget {
  background: var(--ebn-surface);
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.ebn-top-ad {
  background: #fff;
  border-bottom: 1px solid var(--ebn-border);
  padding: 12px 0;
}

.ebn-site-header {
  background: #fff;
}

.ebn-site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.ebn-site-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.ebn-site-title a {
  color: inherit;
}

.ebn-site-tagline {
  margin: 6px 0 0;
  color: var(--ebn-muted);
  font-size: 14px;
}

.ebn-main-nav {
  background: var(--ebn-accent);
  color: #fff;
}

.ebn-main-nav-inner {
  padding: 12px 0;
}

.ebn-main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ebn-main-nav a {
  color: #fff;
  font-weight: 600;
}

.ebn-menu-placeholder,
.ebn-widget-placeholder,
.ebn-note {
  color: var(--ebn-muted);
  font-size: 14px;
}

.ebn-page-shell {
  padding: 28px 0 48px;
}

.ebn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.ebn-entry-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.3;
}

.ebn-entry-title--small {
  font-size: 22px;
}

.ebn-entry-meta {
  color: var(--ebn-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.ebn-sidebar-stack {
  position: sticky;
  top: 24px;
}

.ebn-widget-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

.ebn-footer {
  background: #111827;
  color: #fff;
  padding: 40px 0 24px;
}

.ebn-footer a {
  color: #fff;
}

.ebn-footer-bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .ebn-site-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ebn-layout {
    grid-template-columns: 1fr;
  }

  .ebn-sidebar-stack {
    position: static;
    top: auto;
  }

  .ebn-main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

.ebn-utility-bar {
  background: #111827;
  color: #fff;
  font-size: 13px;
}

.ebn-utility-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.ebn-breaking-ticker {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ebn-breaking-ticker__label {
  background: var(--ebn-accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
}

.ebn-ticker-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.ebn-ticker-list li {
  position: relative;
}

.ebn-ticker-list li:not(:last-child)::after {
  content: "•";
  color: var(--ebn-accent);
  margin-left: 12px;
}

.ebn-home-block {
  overflow: hidden;
}

.ebn-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ebn-section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.ebn-more-link {
  color: var(--ebn-accent);
  font-weight: 600;
}

.ebn-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}

.ebn-card-media,
.ebn-featured-card__media,
.ebn-compact-card__media {
  margin-bottom: 12px;
}

.ebn-card-media img,
.ebn-featured-card__media img,
.ebn-compact-card__media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.ebn-card-body p {
  margin: 0;
  color: var(--ebn-muted);
}

.ebn-category-pill {
  display: inline-block;
  background: rgba(196, 0, 24, 0.08);
  color: var(--ebn-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ebn-hero-secondary,
.ebn-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ebn-compact-card,
.ebn-featured-card,
.ebn-category-lead,
.ebn-list-item {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 14px;
}

.ebn-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.ebn-category-list {
  display: grid;
  gap: 12px;
}

.ebn-list-item a {
  font-weight: 600;
}

@media (max-width: 991px) {
  .ebn-breaking-ticker {
    grid-template-columns: 1fr;
  }

  .ebn-hero-grid,
  .ebn-category-grid,
  .ebn-featured-grid,
  .ebn-hero-secondary {
    grid-template-columns: 1fr;
  }
}

.ebn-utility-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ebn-topbar-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.ebn-topbar-menu a {
  color: #fff;
  font-size: 13px;
}

.ebn-topbar-menu a:hover {
  color: #fca5a5;
}

.ebn-utility-note {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.ebn-ad-slot {
  margin: 0 0 20px;
}

.ebn-ad-slot__inner {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.ebn-ad-slot__label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ebn-accent);
  background: rgba(196, 0, 24, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}

.ebn-ad-slot__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.ebn-ad-slot--header .ebn-ad-slot__inner,
.ebn-ad-slot--home-between .ebn-ad-slot__inner,
.ebn-ad-slot--footer .ebn-ad-slot__inner {
  text-align: center;
}

.ebn-ad-slot--sidebar-sticky {
  position: relative;
}

@media (min-width: 992px) {
  .ebn-ad-slot--sidebar-sticky {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 991px) {
  .ebn-ad-slot--sidebar-sticky {
    position: static;
    top: auto;
  }
}

.ebn-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}

.ebn-video-list,
.ebn-video-archive-grid {
  display: grid;
  gap: 16px;
}

.ebn-video-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebn-video-thumb-wrap {
  position: relative;
  margin-bottom: 12px;
}

.ebn-video-thumb {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.ebn-video-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(196, 0, 24, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.ebn-video-thumb-wrap--small .ebn-video-badge {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.ebn-video-card,
.ebn-video-lead,
.ebn-video-archive-card {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 14px;
}

.ebn-video-archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebn-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 18px;
}

.ebn-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991px) {
  .ebn-video-grid,
  .ebn-video-list,
  .ebn-video-archive-grid {
    grid-template-columns: 1fr;
  }
}

.ebn-entry-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ebn-entry-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ebn-view-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ebn-muted);
}

.ebn-view-count--soft {
  background: #f9fafb;
  border: 1px solid var(--ebn-border);
  border-radius: 999px;
  padding: 10px 14px;
}

.ebn-category-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ebn-single-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.ebn-like-button {
  border: 1px solid var(--ebn-border);
  background: #fff;
  color: var(--ebn-text);
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ebn-like-button:hover {
  border-color: #fca5a5;
  color: var(--ebn-accent);
}

.ebn-like-button.is-liked {
  background: rgba(196, 0, 24, 0.08);
  border-color: rgba(196, 0, 24, 0.18);
  color: var(--ebn-accent);
}

.ebn-like-button.is-loading {
  opacity: 0.75;
}

.ebn-like-button:disabled {
  cursor: not-allowed;
}

.ebn-like-button__icon {
  font-size: 16px;
  line-height: 1;
}

.ebn-single-content > *:first-child {
  margin-top: 0;
}

.ebn-single-content p {
  margin: 0 0 1.1em;
}

.ebn-discovery-list {
  display: grid;
  gap: 14px;
}

.ebn-discovery-item {
  border-bottom: 1px solid var(--ebn-border);
  padding-bottom: 12px;
}

.ebn-discovery-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ebn-discovery-item a {
  font-weight: 700;
  line-height: 1.5;
}

.ebn-discovery-meta {
  margin-top: 6px;
  color: var(--ebn-muted);
  font-size: 13px;
}

@media (max-width: 991px) {
  .ebn-entry-meta-row,
  .ebn-single-actions {
    align-items: flex-start;
  }
}

.ebn-share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 14px 0;
  border-top: 1px solid var(--ebn-border);
  border-bottom: 1px solid var(--ebn-border);
}

.ebn-share-bar__label {
  font-weight: 700;
}

.ebn-share-bar__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ebn-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ebn-border);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ebn-share-button:hover {
  border-color: var(--ebn-accent);
  color: var(--ebn-accent);
}

.ebn-author-box {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ebn-author-box__avatar img {
  border-radius: 999px;
  display: block;
}

.ebn-author-box__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--ebn-accent);
  font-weight: 700;
}

.ebn-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ebn-related-card {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 14px;
}

.ebn-post-nav__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ebn-post-nav__item {
  min-height: 100px;
  border: 1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.ebn-post-nav__item--next {
  text-align: right;
}

.ebn-post-nav__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ebn-muted);
  font-size: 13px;
  font-weight: 700;
}

.comments-area {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  padding: 20px;
}

.comments-area .comments-title,
.comments-area .comment-reply-title {
  margin-top: 0;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--ebn-border);
}

.comment-list .comment:last-child {
  border-bottom: 0;
}

.comment-author {
  font-weight: 700;
  margin-bottom: 6px;
}

.comment-meta {
  font-size: 13px;
  color: var(--ebn-muted);
  margin-bottom: 10px;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  border: 1px solid var(--ebn-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font: inherit;
}

.comment-respond input[type="submit"] {
  border: 0;
  background: var(--ebn-accent);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 991px) {
  .ebn-author-box,
  .ebn-related-grid,
  .ebn-post-nav__grid {
    grid-template-columns: 1fr;
  }

  .ebn-post-nav__item--next {
    text-align: left;
  }
}

body.ebn-ui-locked {
  overflow: hidden;
}

.ebn-sticky-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.ebn-sticky-shell.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ebn-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ebn-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ebn-border);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.ebn-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ebn-text);
  border-radius: 999px;
}

.ebn-header-search form {
  display: flex;
  gap: 8px;
}

.ebn-header-search input[type="search"] {
  min-width: 220px;
  border: 1px solid var(--ebn-border);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}

.ebn-header-search input[type="submit"] {
  border: 0;
  background: var(--ebn-accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.ebn-promo-video-panel {
  padding: 0;
  overflow: hidden;
}

.ebn-promo-card {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: block;
}

.ebn-promo-card__media {
  position: relative;
}

.ebn-promo-card__media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ebn-promo-card__content {
  padding: 16px;
}

.ebn-promo-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(196, 0, 24, 0.08);
  color: var(--ebn-accent);
  font-weight: 700;
}

.ebn-backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ebn-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.2s ease;
  box-shadow: 0 10px 24px rgba(196, 0, 24, 0.28);
}

.ebn-backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ebn-modal[hidden] {
  display: none !important;
}

.ebn-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.ebn-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
}

.ebn-modal__dialog {
  position: relative;
  width: min(100% - 32px, 900px);
  margin: 48px auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.ebn-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ebn-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ebn-modal__title {
  margin: 0 48px 16px 0;
  font-size: 24px;
  line-height: 1.2;
}

.ebn-video-embed--modal {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .ebn-header-search {
    display: none;
  }

  .ebn-menu-toggle {
    display: inline-flex;
  }

  .ebn-main-nav {
    display: none;
  }

  .ebn-main-nav.is-open {
    display: block;
  }

  .ebn-main-nav .ebn-container {
    width: min(100% - 20px, 1240px);
  }

  .ebn-modal__dialog {
    width: min(100% - 20px, 900px);
    margin: 20px auto;
    padding: 16px;
  }

  .ebn-modal__title {
    font-size: 20px;
    margin-right: 44px;
  }
}

/* Better hover + polish */
.ebn-card-link { display: block; }
.ebn-card-media img,
.ebn-featured-card__media img {
  transition: transform .35s ease, filter .35s ease;
}
.ebn-card-link:hover .ebn-card-media img,
.ebn-card-link:hover .ebn-featured-card__media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

/* Category layout variations */
.ebn-category-block--layout-2 .ebn-category-alt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.ebn-category-block--layout-2 .ebn-alt-card {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 14px;
}
.ebn-category-mini-list {
  display: grid;
  gap: 10px;
}
.ebn-mini-item a {
  font-weight: 700;
  color: var(--ebn-text);
}

.ebn-category-block--layout-3 .ebn-category-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* List items with thumbs */
.ebn-list-item--thumb a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.ebn-list-item__thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 991px) {
  .ebn-category-block--layout-2 .ebn-category-alt-grid,
  .ebn-category-block--layout-3 .ebn-category-card-grid {
    grid-template-columns: 1fr;
  }
  .ebn-list-item--thumb a {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

/* Hover overlay like competitors */
.ebn-media { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.ebn-media img { width: 100%; height: auto; display:block; transition: transform .35s ease, filter .35s ease; }
.ebn-media__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);
  opacity: 0; transition: opacity .25s ease;
}
.ebn-hover-card:hover .ebn-media img { transform: scale(1.05); filter: saturate(1.08); }
.ebn-hover-card:hover .ebn-media__overlay { opacity: 1; }

/* Category layouts */
.ebn-cat-layout-a{
  display:grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,0.8fr);
  gap: 18px;
}
.ebn-cat-list{ display:grid; gap: 12px; }
.ebn-cat-list-item{ border-bottom: 1px solid var(--ebn-border); padding-bottom: 10px; }
.ebn-cat-list-item:last-child{ border-bottom:0; padding-bottom:0; }
.ebn-cat-list-item__title{ font-weight: 700; }

.ebn-cat-layout-b{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.ebn-cat-grid-card{
  background:#fff;
  border:1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 14px;
}

.ebn-cat-layout-c{ display:grid; gap: 12px; }
.ebn-thumb-row{
  background:#fff;
  border:1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 12px;
}
.ebn-thumb-row__link{
  display:grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 12px;
  align-items: center;
}
.ebn-thumb-row__thumb img{ border-radius: 10px; object-fit: cover; }

@media (max-width: 991px){
  .ebn-cat-layout-a{ grid-template-columns: 1fr; }
  .ebn-cat-layout-b{ grid-template-columns: 1fr; }
  .ebn-thumb-row__link{ grid-template-columns: 72px minmax(0,1fr); }
}

/* Category accent like portals */
.ebn-cat-block { border-top: 4px solid var(--ebn-cat-accent, var(--ebn-accent)); }

/* Hover overlay */
.ebn-media { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.ebn-media img { width:100%; display:block; transition: transform .35s ease, filter .35s ease; }
.ebn-media__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.38) 100%);
  opacity:0; transition: opacity .25s ease;
}
.ebn-hover-card:hover .ebn-media img { transform: scale(1.05); filter: saturate(1.10); }
.ebn-hover-card:hover .ebn-media__overlay { opacity:1; }

/* Layout: lead + list */
.ebn-cat-layout--lead-list{
  display:grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
  gap: 18px;
}
.ebn-cat-list{ display:grid; gap:12px; }
.ebn-cat-list-item{ border-bottom:1px solid var(--ebn-border); padding-bottom:10px; }
.ebn-cat-list-item:last-child{ border-bottom:0; padding-bottom:0; }
.ebn-cat-list-item a{ font-weight:800; line-height:1.5; }

/* Layout: photo grid */
.ebn-cat-layout--photo-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}
.ebn-cat-grid-card{ background:#fff;border:1px solid var(--ebn-border);border-radius:10px;padding:14px; }

/* Layout: mix */
.ebn-cat-layout--mix .ebn-cat-mix-top{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
  margin-bottom: 14px;
}
.ebn-cat-mini-list{ display:grid; gap:10px; }
.ebn-mini-item a{ font-weight:800; }

/* Layout: scroll playlist (video) */
.ebn-cat-layout--scroll-playlist{
  display:grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
  gap:18px;
}
.ebn-playlist-scroll{
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  background: #fff;
}
.ebn-playlist-item{ padding: 12px 14px; border-bottom:1px solid var(--ebn-border); }
.ebn-playlist-item:last-child{ border-bottom:0; }
.ebn-playlist-item__title{ display:block; font-weight:800; line-height:1.45; }
.ebn-playlist-item__meta{ display:block; margin-top:6px; font-size:12px; color: var(--ebn-muted); }

@media (max-width: 991px){
  .ebn-cat-layout--lead-list,
  .ebn-cat-layout--scroll-playlist{ grid-template-columns: 1fr; }
  .ebn-cat-layout--photo-grid{ grid-template-columns: 1fr; }
  .ebn-cat-layout--mix .ebn-cat-mix-top{ grid-template-columns: 1fr; }
}

/* Category accent like big portals */
.ebn-cat-block { border-top: 4px solid var(--ebn-cat-accent, var(--ebn-accent)); }

/* Media hover overlay */
.ebn-media { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.ebn-media img { width: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .35s ease, filter .35s ease; }
.ebn-media__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.38) 100%);
  opacity: 0; transition: opacity .25s ease;
}
.ebn-hover-card:hover .ebn-media img { transform: scale(1.05); filter: saturate(1.10); }
.ebn-hover-card:hover .ebn-media__overlay { opacity: 1; }

/* Lead + list layout */
.ebn-cat-layout--lead-list{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 18px;
}
.ebn-cat-list{ display: grid; gap: 12px; }
.ebn-cat-list-item{ border-bottom: 1px solid var(--ebn-border); padding-bottom: 10px; }
.ebn-cat-list-item:last-child{ border-bottom: 0; padding-bottom: 0; }
.ebn-cat-list-item a{ font-weight: 800; line-height: 1.5; }

/* Photo grid layout */
.ebn-cat-layout--photo-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ebn-cat-grid-card{ background:#fff; border:1px solid var(--ebn-border); border-radius: 10px; padding: 14px; }

/* Mix layout */
.ebn-cat-layout--mix .ebn-cat-mix-top{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.ebn-cat-mini-list{ display: grid; gap: 10px; }
.ebn-mini-item a{ font-weight: 800; }

/* Thumb list layout */
.ebn-cat-layout--thumb-list{ display: grid; gap: 12px; }
.ebn-thumb-row{ background:#fff; border:1px solid var(--ebn-border); border-radius: 10px; padding: 12px; }
.ebn-thumb-row__link{ display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 12px; align-items: center; }
.ebn-thumb-row__thumb img{ border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.ebn-thumb-row__title{ font-weight: 800; line-height: 1.45; }

/* Video playlist block */
.ebn-video-playlist{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 18px;
}
.ebn-video-playlist__scroll{
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  background: #fff;
}
.ebn-playlist-item{ padding: 12px 14px; border-bottom: 1px solid var(--ebn-border); }
.ebn-playlist-item:last-child{ border-bottom: 0; }
.ebn-playlist-item__title{ display:block; font-weight: 800; line-height: 1.45; }
.ebn-playlist-item__meta{ display:block; margin-top:6px; font-size: 12px; color: var(--ebn-muted); }

@media (max-width: 991px){
  .ebn-cat-layout--lead-list,
  .ebn-video-playlist{ grid-template-columns: 1fr; }

  .ebn-cat-layout--photo-grid{ grid-template-columns: 1fr; }
  .ebn-cat-layout--mix .ebn-cat-mix-top{ grid-template-columns: 1fr; }
  .ebn-thumb-row__link{ grid-template-columns: 72px minmax(0, 1fr); }
}

.ebn-live-card{
  width:100%;
  border:0;
  background: linear-gradient(135deg, #111827, #0b1220);
  color:#fff;
  border-radius: 14px;
  padding: 16px;
  text-align:left;
  cursor:pointer;
}

.ebn-live-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ebn-live-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(196,0,24,.95);
  font-weight: 900;
  letter-spacing: .4px;
}

.ebn-live-badge::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:#fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

.ebn-live-card__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-weight: 800;
}

/* Modal video loading UI (poster + spinner) */
.ebn-modal-video { position: relative; }

.ebn-modal-poster{
  position:absolute;
  inset:0;
  background:#0b1220;
  background-size:cover;
  background-position:center;
  z-index:2;
}

.ebn-modal-spinner{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff;
  font-weight:700;
  background: rgba(0,0,0,.28);
}

.ebn-spinner{
  width:28px;height:28px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  animation: ebnSpin .8s linear infinite;
}

@keyframes ebnSpin { to { transform: rotate(360deg); } }

/* Make overlays not block the video */
.ebn-modal-poster,
.ebn-modal-spinner {
  pointer-events: none;
}

/* Smooth fade out when loaded */
.ebn-modal-video .ebn-modal-poster,
.ebn-modal-video .ebn-modal-spinner {
  transition: opacity .25s ease, visibility .25s ease;
}

.ebn-modal-video.is-loaded .ebn-modal-poster,
.ebn-modal-video.is-loaded .ebn-modal-spinner {
  opacity: 0;
  visibility: hidden;
}

/* Title clamps (pixel-perfect) */
.ebn-title-clamp-2,
.ebn-title-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ebn-title-clamp-2 { -webkit-line-clamp: 2; }
.ebn-title-clamp-3 { -webkit-line-clamp: 3; }

/* Make small images fit nicely */
.ebn-compact-card__media img,
.ebn-featured-card__media img,
.ebn-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

/* Section heading top shape */
.ebn-section-heading h2 {
  position: relative;
  padding-left: 14px;
}

.ebn-section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 6px;
  height: 1.1em;
  background: var(--ebn-accent);
  border-radius: 999px;
}

/* Menu hover polish */
.ebn-main-nav a {
  position: relative;
  padding: 6px 0;
  display: inline-block;
}

.ebn-main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: rgba(255,255,255,.95);
  transition: width .22s ease;
}

.ebn-main-nav a:hover::after {
  width: 100%;
}

/* Accordion UI */
.ebn-accordion { padding: 0; overflow: hidden; }
.ebn-acc-item { border-bottom: 1px solid var(--ebn-border); }
.ebn-acc-item:last-child { border-bottom: 0; }

.ebn-acc-trigger {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
}

.ebn-acc-panel {
  padding: 0 16px 16px;
}

.ebn-acc-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* ===== FIX: overlay spreading issue ===== */
.ebn-card-media,
.ebn-featured-card__media,
.ebn-compact-card__media,
.ebn-video-thumb-wrap,
.ebn-promo-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Overlay must be scoped inside media wrapper */
.ebn-media__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.42) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.ebn-card-link:hover .ebn-media__overlay,
.ebn-hover-card:hover .ebn-media__overlay {
  opacity: 1;
}

/* ===== Top color bar for ALL blocks (hero/editors pick/video/categories) ===== */
.ebn-home-block {
  position: relative;
  padding-top: 18px;
}

.ebn-home-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--ebn-section-accent, var(--ebn-accent));
}

/* Category blocks use their own accent */
.ebn-cat-block {
  --ebn-section-accent: var(--ebn-cat-accent, var(--ebn-accent));
}

/* ===== Sidebar tabs (Trending/Popular switch) ===== */
.ebn-tabs { padding: 0; overflow: hidden; }
.ebn-tabs__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ebn-border);
}
.ebn-tab {
  border: 0;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
}
.ebn-tab.is-active {
  color: var(--ebn-accent);
  box-shadow: inset 0 -3px 0 var(--ebn-accent);
}
.ebn-tabs__panel { padding: 14px 16px 16px; }

/* ===== Category layout CSS (unique per section) ===== */
.ebn-cat-layout { display: grid; gap: 16px; }

.ebn-cat-rajniti { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.ebn-cat-list { display: grid; gap: 12px; }
.ebn-cat-list-item a { display:block; }
.ebn-cat-list-item strong { display:block; line-height: 1.5; }
.ebn-cat-list-item .ebn-entry-meta { display:block; margin-top:6px; font-size:12px; color: var(--ebn-muted); }

.ebn-cat-sb-top { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.ebn-cat-sb-two { display:grid; gap: 16px; }

.ebn-cat-jt-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }

.ebn-cat-photo-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.ebn-cat-grid-card { background:#fff; border:1px solid var(--ebn-border); border-radius:10px; padding:14px; }

.ebn-cat-numbered { display:grid; gap: 10px; }
.ebn-number-item { display:grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items:start; padding: 10px 0; border-bottom:1px solid var(--ebn-border); }
.ebn-number-item:last-child { border-bottom:0; }
.ebn-number { width:38px; height:38px; border-radius:999px; background: rgba(196,0,24,.08); color: var(--ebn-accent); display:flex; align-items:center; justify-content:center; font-weight: 900; }
.ebn-number-title { display:block; font-weight: 800; line-height: 1.45; }

.ebn-cat-thumb-rows { display:grid; gap: 12px; }

.ebn-cat-overlay { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items:start; }
.ebn-cat-overlay .ebn-cat-mini-list { display:grid; gap:10px; }

.ebn-mini-item a { display:block; font-weight:800; }
.ebn-mini-item .ebn-entry-meta { display:block; margin-top:6px; font-size:12px; color: var(--ebn-muted); }

@media (max-width: 991px) {
  .ebn-cat-rajniti,
  .ebn-cat-overlay,
  .ebn-cat-sb-top { grid-template-columns: 1fr; }

  .ebn-cat-photo-grid,
  .ebn-cat-jt-grid { grid-template-columns: 1fr; }
}

/* Newspaper-friendly Bangla font */
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", Arial, sans-serif;
}

/* Title clamps */
.ebn-title-clamp-2, .ebn-title-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ebn-title-clamp-2 { -webkit-line-clamp: 2; }
.ebn-title-clamp-3 { -webkit-line-clamp: 3; }

/* Hero secondary title smaller + more lines visible */
.ebn-hero-secondary-title {
  font-size: 15px;
  line-height: 1.35;
}

/* Editors Pick 3 column grid */
.ebn-featured-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
@media (max-width: 991px) {
  .ebn-featured-grid--3 { grid-template-columns: 1fr; }
}

/* Breaking slider show one item */
.ebn-ticker-item { display: none; }
.ebn-ticker-item.is-active { display: block; }
.ebn-ticker-list { margin: 0; padding: 0; list-style: none; }
.ebn-breaking-ticker__items {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 40px;
  align-items: center;
  gap: 10px;
}
.ebn-ticker-nav{
  border: 0;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* Sidebar ranked list */
.ebn-discovery-list--ranked .ebn-discovery-item{
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--ebn-border);
  padding-bottom: 10px;
}
.ebn-discovery-list--ranked .ebn-discovery-item:last-child{ border-bottom:0; padding-bottom:0; }
.ebn-rank{
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(196,0,24,.08);
  color: var(--ebn-accent);
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
}

/* Tabs nav */
.ebn-tabs { padding: 0; overflow: hidden; }
.ebn-tabs__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ebn-border);
}
.ebn-tab {
  border: 0;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
}
.ebn-tab.is-active {
  color: var(--ebn-accent);
  box-shadow: inset 0 -3px 0 var(--ebn-accent);
}
.ebn-tabs__panel { padding: 14px 16px 16px; }

/* Video playlist rows */
.ebn-video-playlist{
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
  gap: 18px;
}
.ebn-video-playlist__scroll{
  max-height: 540px;
  overflow: auto;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  background: #fff;
}
.ebn-video-playlist__scroll::-webkit-scrollbar{ width: 10px; }
.ebn-video-playlist__scroll::-webkit-scrollbar-thumb{ background:#e5e7eb; border-radius: 999px; }
.ebn-video-playlist__scroll::-webkit-scrollbar-thumb:hover{ background:#d1d5db; }

.ebn-playlist-row a{
  display: grid;
  grid-template-columns: 108px minmax(0,1fr);
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--ebn-border);
  align-items: center;
}
.ebn-playlist-row:last-child a{ border-bottom:0; }
.ebn-playlist-row__thumb{ position: relative; }
.ebn-playlist-row__thumb img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  display:block;
}
.ebn-playlist-row__title{ font-weight: 900; line-height: 1.4; display:block; }
.ebn-playlist-row__meta{ display:block; margin-top: 6px; font-size: 12px; color: var(--ebn-muted); }

/* Live badge blink + play icon pulse */
@keyframes ebnPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .85; }
}
.ebn-live-badge { animation: ebnPulse 1.1s ease-in-out infinite; }
.ebn-video-badge--pulse { animation: ebnPulse 1.2s ease-in-out infinite; }

@media (max-width: 991px) {
  .ebn-video-playlist{ grid-template-columns: 1fr; }
}

/* ===== Section-wise title hover color ===== */
.ebn-home-block a:hover .ebn-entry-title,
.ebn-home-block a:hover .ebn-thumb-row__title,
.ebn-home-block a:hover .ebn-shaped-title {
  color: var(--ebn-cat-accent, var(--ebn-accent));
}

/* ===== Wave/flash hover (subtle) ===== */
.ebn-hover-card .ebn-card-media::after,
.ebn-hover-card .ebn-featured-card__media::after,
.ebn-hover-card .ebn-compact-card__media::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -80%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}

.ebn-hover-card:hover .ebn-card-media::after,
.ebn-hover-card:hover .ebn-featured-card__media::after,
.ebn-hover-card:hover .ebn-compact-card__media::after {
  opacity: 1;
  animation: ebnFlashSwipe .65s ease;
}

@keyframes ebnFlashSwipe {
  from { left: -80%; }
  to { left: 140%; }
}

/* ===== Rajniti layout ===== */
.ebn-cat-rajniti {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px;
}
.ebn-cat-side-rows { display: grid; gap: 12px; }

/* ===== Thumb row shared ===== */
.ebn-thumb-row__link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.ebn-thumb-row__thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.ebn-thumb-row__body { display: grid; gap: 6px; }
.ebn-thumb-row__title { font-weight: 900; line-height: 1.4; }
.ebn-thumb-row__meta { font-size: 12px; color: var(--ebn-muted); }

/* ===== Sara Bangla grid4 + shaped list ===== */
.ebn-cat-sb-grid4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.ebn-shaped-list { display: grid; gap: 10px; }
.ebn-shaped-item a {
  display: grid;
  grid-template-columns: 14px minmax(0,1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--ebn-border);
}
.ebn-shaped-item:last-child a { border-bottom: 0; }
.ebn-shaped-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ebn-cat-accent, var(--ebn-accent));
  margin-top: 6px;
}
.ebn-shaped-title { font-weight: 900; line-height: 1.45; display:block; }
.ebn-shaped-meta { font-size: 12px; color: var(--ebn-muted); display:block; grid-column: 2; }

/* ===== Jatiyo ===== */
.ebn-cat-jt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.ebn-thumb-rows { display: grid; gap: 12px; }

/* ===== Antorjatik ===== */
.ebn-cat-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

/* ===== Shikkha & Shastho (bigger thumb) ===== */
.ebn-thumb-rows--large .ebn-thumb-row__link { grid-template-columns: 140px minmax(0, 1fr); }
.ebn-thumb-rows--large .ebn-thumb-row__thumb img { aspect-ratio: 4/3; }

/* ===== Poribesh lead wide + medium rows ===== */
.ebn-card-media--wide img { aspect-ratio: 21/9; }
.ebn-thumb-rows--medium .ebn-thumb-row__link { grid-template-columns: 150px minmax(0, 1fr); }
.ebn-thumb-rows--medium .ebn-thumb-row__thumb img { aspect-ratio: 16/9; }

@media (max-width: 991px) {
  .ebn-cat-rajniti { grid-template-columns: 1fr; }
  .ebn-cat-jt-grid,
  .ebn-cat-photo-grid { grid-template-columns: 1fr; }
  .ebn-cat-sb-grid4 { grid-template-columns: 1fr; }
  .ebn-thumb-rows--large .ebn-thumb-row__link,
  .ebn-thumb-rows--medium .ebn-thumb-row__link { grid-template-columns: 110px minmax(0,1fr); }
}

/* ---------- Font stack like ProthomAlo (fallback-friendly) ---------- */
body{
  font-family: "Shurjo", "Siyam Rupali", "Hind Siliguri", "Roboto", Arial, Helvetica, Monospace;
}

/* ---------- Menu centered (desktop) ---------- */
@media (min-width: 992px){
  .ebn-main-nav ul{
    justify-content: center;
  }
}

/* ---------- Search: nicer shape + hover ---------- */
.ebn-header-search input[type="search"]{
  height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
}
.ebn-header-search input[type="submit"]{
  height: 42px;
  border-radius: 999px;
  transition: filter .2s ease, transform .2s ease;
}
.ebn-header-search input[type="submit"]:hover{
  filter: brightness(.95);
  transform: translateY(-1px);
}

/* ---------- Fix: title overlap safety ---------- */
.ebn-card-body,
.ebn-featured-card__body,
.ebn-compact-card__body{
  position: relative;
  z-index: 1;
}
.ebn-entry-title{
  word-break: break-word;
}

/* ---------- Breaking dot BEFORE title ---------- */
.ebn-ticker-dot{
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ebn-accent);
  margin-right: 10px;
  box-shadow: 0 0 0 4px rgba(196,0,24,.10);
}

/* Remove old bullet behavior if any older CSS exists */
.ebn-ticker-list li::after{ content: none !important; }

/* ---------- Video play icon: consistent center (all sizes) ---------- */
.ebn-video-badge{
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

/* small badge sizing */
.ebn-video-badge--small{
  width: 34px;
  height: 34px;
  font-size: 15px;
}

/* reduce extra gap under lead video */
.ebn-video-playlist__lead .ebn-entry-title{
  margin: 10px 0 6px;
}
.ebn-video-playlist__lead .ebn-entry-meta{
  margin-bottom: 0;
}

/* premium playlist rows clickable feel */
.ebn-playlist-row a:hover{
  background: #f9fafb;
}

/* ---------- Rajniti: force responsive stack on mobile (hard override) ---------- */
@media (max-width: 991px){
  .ebn-cat-rajniti{
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Modal overlay should not block video ---------- */
.ebn-modal-poster,
.ebn-modal-spinner{
  pointer-events: none;
}

/* ---------- Live badge pulse already exists; make slightly more visible ---------- */
.ebn-live-badge{
  box-shadow: 0 0 0 6px rgba(196,0,24,.10);
}

/* =========================
   FULL TITLE MODE (NO ELLIPSIS)
   ========================= */

/* Disable all title clamps globally */
.ebn-title-clamp-2,
.ebn-title-clamp-3 {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

/* Make sure titles wrap nicely (no overlap/cut) */
.ebn-entry-title,
.ebn-thumb-row__title,
.ebn-shaped-title,
.ebn-number-title,
.ebn-playlist-row__title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
  word-break: break-word;
}

/* ProthomAlo-ish medium/small titles */
.ebn-entry-title--small,
.ebn-hero-secondary-title,
.ebn-playlist-row__title {
  font-size: calc(1rem * 1.112) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* Your point (padding-top: 3px) – make title sit perfectly under image */
.ebn-card-body,
.ebn-featured-card__body,
.ebn-compact-card__body {
  padding-top: 3px !important;
}

/* Extra safety: ensure image blocks never overlap text */
.ebn-card-media,
.ebn-featured-card__media,
.ebn-compact-card__media {
  margin-bottom: 10px !important;
}

/* =========================
   RAJNITI PIXEL PERFECT + RESPONSIVE
   ========================= */

.ebn-cat-rajniti-wrap{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px;
  align-items: start;
}

.ebn-cat-rajniti-side{
  display: grid;
  gap: 12px;
}

.ebn-rajniti-row__link{
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  background: #fff;
}

.ebn-rajniti-row__thumb img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.ebn-rajniti-row__title{
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.ebn-rajniti-row__meta{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ebn-muted);
}

@media (max-width: 991px){
  .ebn-cat-rajniti-wrap{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   VIDEO PLAY ICON: FORCE PERFECT CENTER (ALL VIDEO THUMBS)
   ========================================================= */

/* Ensure parent wrappers are positioning context */
.ebn-card-media,
.ebn-playlist-row__thumb,
.ebn-video-thumb-wrap,
.ebn-promo-card__media {
  position: relative !important;
}

/* Center badge reliably */
.ebn-video-badge {
  position: absolute !important;
  inset: 0 !important;
  margin: auto !important;
  transform: none !important;
  z-index: 5 !important;
}

/* Keep small badge sized */
.ebn-video-badge--small {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

/* =========================================================
   RAJNITI: 100% RESPONSIVE + NO BROKEN EMPTY COLUMN
   ========================================================= */
.ebn-rajniti-layout{
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  gap: 16px;
  align-items: start;
}

.ebn-rajniti-lead,
.ebn-rajniti-side{
  min-width: 0;
}

.ebn-rajniti-side{
  display: grid;
  gap: 12px;
}

.ebn-rajniti-item__link{
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
}

.ebn-rajniti-item__thumb img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.ebn-rajniti-item__title{
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.ebn-rajniti-item__meta{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ebn-muted);
}

/* Mobile-first stack */
@media (max-width: 991px){
  .ebn-rajniti-layout{
    display: flex !important;
    flex-direction: column !important;
  }

  .ebn-rajniti-item__link{
    grid-template-columns: 110px minmax(0,1fr);
  }
}

/* =========================================================
   TOPBAR: separator style (|) look
   ========================================================= */
.ebn-utility-date{
  font-weight: 700;
  letter-spacing: .2px;
}

/* =========================================================
   PERMANENT RAJNITI FIX (high specificity + conflict-proof)
   ========================================================= */

/* Lock layout with flex (more conflict-proof than grid) */
.ebn-cat-rajniti .ebn-rajniti-fixed{
  display: flex !important;
  gap: 16px !important;
  align-items: flex-start !important;
  width: 100% !important;
}

/* main column flexible */
.ebn-cat-rajniti .ebn-rajniti-fixed__main{
  flex: 1 1 520px !important;
  min-width: 0 !important;
}

/* side column fixed-ish */
.ebn-cat-rajniti .ebn-rajniti-fixed__side{
  flex: 0 0 360px !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 12px !important;
}

/* rows */
.ebn-cat-rajniti .ebn-rajniti-fixed__rowlink{
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border: 1px solid var(--ebn-border) !important;
  border-radius: 12px !important;
}

/* thumb */
.ebn-cat-rajniti .ebn-rajniti-fixed__thumb img{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
}

/* title/meta */
.ebn-cat-rajniti .ebn-rajniti-fixed__title{
  display: block !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}
.ebn-cat-rajniti .ebn-rajniti-fixed__meta{
  display: block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  color: var(--ebn-muted) !important;
}

/* Mobile-first: force stack */
@media (max-width: 991px){
  .ebn-cat-rajniti .ebn-rajniti-fixed{
    flex-direction: column !important;
  }

  .ebn-cat-rajniti .ebn-rajniti-fixed__side{
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  .ebn-cat-rajniti .ebn-rajniti-fixed__rowlink{
    grid-template-columns: 110px minmax(0, 1fr) !important;
  }
}

/* =========================================================
   PERMANENT VIDEO BADGE CENTER FIX
   ========================================================= */
.ebn-card-media .ebn-video-badge,
.ebn-playlist-row__thumb .ebn-video-badge,
.ebn-video-thumb-wrap .ebn-video-badge,
.ebn-promo-card__media .ebn-video-badge {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 6 !important;
}

/* =========================================================
   RAJNITI HARD LOCK (conflict-proof, mobile-first)
   Works even if old grid/flex CSS exists.
   ========================================================= */

/* Desktop: 2-column grid */
.ebn-cat-rajniti .ebn-rajniti-lock{
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  gap: 16px !important;
  align-items: start !important;
  width: 100% !important;
}

/* Prevent overflow bugs */
.ebn-cat-rajniti .ebn-rajniti-lock__lead,
.ebn-cat-rajniti .ebn-rajniti-lock__side{
  min-width: 0 !important;
}

/* Side list */
.ebn-cat-rajniti .ebn-rajniti-lock__side{
  display: grid !important;
  gap: 12px !important;
}

/* Item row */
.ebn-cat-rajniti .ebn-rajniti-lock__link{
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border: 1px solid var(--ebn-border) !important;
  border-radius: 12px !important;
}

/* Thumb */
.ebn-cat-rajniti .ebn-rajniti-lock__thumb img{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
}

/* Text */
.ebn-cat-rajniti .ebn-rajniti-lock__title{
  display: block !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}
.ebn-cat-rajniti .ebn-rajniti-lock__meta{
  display: block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  color: var(--ebn-muted) !important;
}

/* Mobile: always stack */
@media (max-width: 991px){
  .ebn-cat-rajniti .ebn-rajniti-lock{
    grid-template-columns: 1fr !important;
  }

  .ebn-cat-rajniti .ebn-rajniti-lock__link{
    grid-template-columns: 110px minmax(0, 1fr) !important;
  }
}

/* Stronger blink (no transform, so centering stays perfect) */
@keyframes ebnBlinkStrong {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196,0,24,.0); }
  50% { opacity: .55; box-shadow: 0 0 0 10px rgba(196,0,24,.18); }
}

.ebn-video-badge--pulse {
  animation: ebnBlinkStrong 1s ease-in-out infinite !important;
}

.ebn-live-badge {
  animation: ebnBlinkStrong 1.05s ease-in-out infinite !important;
}

/* =========================================================
   HOTFIX: prevent category wrapper from becoming a grid
   Rajniti wrapper must be a normal block element.
   ========================================================= */
.ebn-panel.ebn-home-block.ebn-cat-block.ebn-cat-rajniti {
  display: block !important;
}

/* safety: if any old grid props exist on wrapper, neutralize */
.ebn-panel.ebn-home-block.ebn-cat-block.ebn-cat-rajniti {
  grid-template-columns: unset !important;
  gap: unset !important;
}

/* Category sections should never be grids themselves */
.ebn-panel.ebn-home-block.ebn-cat-block {
  display: block;
}

/* =========================
   SINGLE + ARCHIVE POLISH
   ========================= */

.ebn-dot { margin: 0 8px; color: var(--ebn-muted); }

/* Archive header */
.ebn-archive-header { --ebn-section-accent: var(--ebn-accent); position: relative; }
.ebn-archive-header::before {
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:4px;
  background: var(--ebn-section-accent);
  border-radius: 12px 12px 0 0;
}
.ebn-archive-title { margin: 0; font-size: 30px; line-height: 1.2; }
.ebn-archive-desc { margin: 10px 0 0; color: var(--ebn-muted); }

/* Archive layout */
.ebn-archive-stack { display: grid; gap: 16px; }

.ebn-archive-lead .ebn-card-link { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: start; }
.ebn-archive-lead__media img { width:100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; display:block; }
.ebn-archive-lead__title { margin: 0 0 10px; font-size: 26px; line-height: 1.25; font-weight: 800; }
.ebn-archive-meta { color: var(--ebn-muted); font-size: 13px; margin-bottom: 10px; display:flex; flex-wrap: wrap; align-items:center; }
.ebn-archive-excerpt { margin: 0; color: #374151; }

.ebn-archive-row__link { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 16px; align-items: start; }
.ebn-archive-row__thumb img { width:100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; display:block; }
.ebn-archive-row__title { margin: 0 0 8px; font-size: 18px; line-height: 1.35; font-weight: 800; }
.ebn-pagination { text-align:center; }

/* Single */
.ebn-single-title { margin: 0 0 12px; font-size: 34px; line-height: 1.15; }
.ebn-single-meta { color: var(--ebn-muted); font-size: 14px; display:flex; flex-wrap: wrap; align-items:center; margin-bottom: 18px; }
.ebn-single-featured img { width: 100%; border-radius: 14px; display:block; }
.ebn-standfirst { margin: 14px 0 0; font-size: 16px; color: #374151; }

.ebn-single-content {
  font-size: 17px;
  line-height: 1.85;
}
.ebn-single-content p { margin: 0 0 1.05em; }
.ebn-single-content h2,
.ebn-single-content h3 { margin: 1.2em 0 .6em; line-height: 1.3; }
.ebn-single-content img { border-radius: 14px; }

/* Responsive */
@media (max-width: 991px) {
  .ebn-archive-lead .ebn-card-link { grid-template-columns: 1fr; }
  .ebn-archive-row__link { grid-template-columns: 1fr; }
  .ebn-single-title { font-size: 28px; }
}

/* Toolbar (Like/Views + Share) */
.ebn-post-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.ebn-post-toolbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ebn-view-count--inline {
  background: #f9fafb;
  border: 1px solid var(--ebn-border);
  border-radius: 999px;
  padding: 10px 14px;
}

.ebn-post-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ebn-post-toolbar__label {
  font-weight: 800;
  color: var(--ebn-muted);
}

/* Author link */
.ebn-author-link {
  font-weight: 800;
  color: inherit;
}
.ebn-author-link:hover {
  color: var(--ebn-accent);
}

/* Author role pill */
.ebn-author-box__top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ebn-author-role {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(196, 0, 24, 0.08);
  color: var(--ebn-accent);
}

/* Fix overlay spill on archive/category cards */
.ebn-archive-lead__media,
.ebn-archive-row__thumb,
.ebn-video-thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.ebn-archive-lead__media img,
.ebn-archive-row__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Category lead full width */
.ebn-cat-lead__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 14px;
}
.ebn-cat-lead__media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}
.ebn-cat-lead__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}
.ebn-cat-lead__meta {
  color: var(--ebn-muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.ebn-cat-lead__excerpt { margin: 0; color: #374151; }

/* Pagination pro */
.ebn-pagination--pro .nav-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.ebn-pagination--pro .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ebn-border);
  background: #fff;
  font-weight: 800;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.ebn-pagination--pro .page-numbers:hover {
  transform: translateY(-1px);
  border-color: rgba(196,0,24,.35);
}
.ebn-pagination--pro .page-numbers.current {
  background: rgba(196,0,24,.10);
  border-color: rgba(196,0,24,.35);
  color: var(--ebn-accent);
}

/* Archive/category hover overlay spill safety */
.ebn-archive-row__thumb,
.ebn-archive-lead__media,
.ebn-cat-lead__media {
  position: relative;
  overflow: hidden;
}

/* =========================
   PREMIUM PAGINATION (global)
   Works for the_posts_pagination + paginate_links
   ========================= */

.ebn-pagination--pro .nav-links,
.ebn-pagination--pro .page-numbers,
.ebn-pagination--pro {
  text-align: center;
}

.ebn-pagination--pro {
  --pg-bg: #ffffff;
  --pg-border: var(--ebn-border);
  --pg-accent: var(--ebn-accent);
}

.ebn-pagination--pro .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ebn-pagination--pro .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--pg-border);
  background: var(--pg-bg);
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.ebn-pagination--pro .page-numbers:hover {
  transform: translateY(-1px);
  border-color: rgba(196,0,24,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.ebn-pagination--pro .page-numbers.current {
  background: rgba(196,0,24,.10);
  border-color: rgba(196,0,24,.45);
  color: var(--pg-accent);
  box-shadow: 0 12px 26px rgba(196,0,24,.10);
}

.ebn-pagination--pro .page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: auto;
  padding: 0 6px;
  box-shadow: none;
}

.ebn-pagination--pro .page-numbers.prev,
.ebn-pagination--pro .page-numbers.next {
  padding-inline: 16px;
}

.ebn-team-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.ebn-team-card__link{ display:block; text-align:center; }
.ebn-team-card__avatar img{ border-radius:999px; }
.ebn-team-card__cta{
  display:inline-flex;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(196,0,24,.10);
  color: var(--ebn-accent);
  font-weight: 900;
}
@media (max-width: 991px){
  .ebn-team-grid{ grid-template-columns: 1fr; }
}

/* Team grid premium */
.ebn-team-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.ebn-team-card{
  background:#fff;
  border:1px solid var(--ebn-border);
  border-radius: 16px;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ebn-team-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  border-color: rgba(196,0,24,.22);
}
.ebn-team-card__link{ display:block; text-align:center; }
.ebn-team-card__avatar img{ border-radius:999px; border:4px solid rgba(196,0,24,.10); }
.ebn-team-card__name{ margin: 12px 0 6px; font-size: 18px; font-weight: 900; }
.ebn-team-card__role{ color: var(--ebn-muted); font-weight: 800; font-size: 13px; }
.ebn-team-card__cta{
  display:inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(196,0,24,.10);
  color: var(--ebn-accent);
  font-weight: 900;
}

/* Footer 3 columns */
.ebn-footer-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
  margin-top: 18px;
}
.ebn-footer-title{ margin:0 0 10px; font-size: 16px; font-weight: 900; }
.ebn-footer-note{ margin:10px 0 0; opacity:.85; }
@media (max-width: 991px){
  .ebn-team-grid{ grid-template-columns: 1fr; }
  .ebn-footer-grid{ grid-template-columns: 1fr; }
}

/* Nav home icon */
.ebn-nav-wrap{
  display:flex;
  align-items:center;
  gap: 14px;
}
.ebn-nav-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  transition: transform .15s ease, background .15s ease;
}
.ebn-nav-home:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
}
.ebn-nav-menu{ flex: 1; }
.ebn-nav-menu ul{ justify-content: center; }

/* Pagination numbers already styled + now digits converted via filter */

/* =========================================================
   1) MENU HOME ICON: circle এর ভিতরে perfect center + menu true center
   ========================================================= */

/* Make nav wrap a 3-column grid so menu stays perfectly centered */
@media (min-width: 992px){
  .ebn-nav-wrap{
    display: grid !important;
    grid-template-columns: 44px 1fr 44px !important; /* left icon + centered menu + right spacer */
    align-items: center !important;
    gap: 0 !important;
  }

  .ebn-nav-home{
    justify-self: start !important;
  }

  .ebn-nav-menu{
    justify-self: center !important;
    width: 100% !important;
  }

  .ebn-nav-menu ul{
    justify-content: center !important;
  }
}

/* Perfect center inside circle */
.ebn-nav-home{
  padding: 0 !important;
  line-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.ebn-nav-home svg{
  display: block !important;
  margin: 0 !important;
}

/* =========================================================
   2) TEAM PAGE: cards + content perfectly centered
   ========================================================= */

.ebn-team-grid{
  justify-items: center !important;
}

.ebn-team-card{
  width: 100% !important;
  max-width: 360px !important;
}

.ebn-team-card__link{
  text-align: center !important;
  margin-inline: auto !important;
}

.ebn-team-card__avatar{
  display: flex !important;
  justify-content: center !important;
}

/* =========================================================
   3) FOOTER: white widget boxes remove + transparent + white text
   ========================================================= */

/* Footer widgets should NOT look like white panels */
.ebn-footer .widget,
.ebn-footer .ebn-panel{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
  border-radius: 0 !important;
}

/* Footer text colors */
.ebn-footer,
.ebn-footer p,
.ebn-footer li,
.ebn-footer a{
  color: #fff !important;
}

.ebn-footer a:hover{
  color: #fca5a5 !important;
}

.ebn-footer .widget-title,
.ebn-footer .ebn-footer-title{
  color: #c40018 !important;
}

/* =========================================================
   NAV: Home icon close to menu + centered group (desktop)
   ========================================================= */

@media (min-width: 992px) {
  /* Center the whole nav group */
  .ebn-main-nav-inner {
    display: flex !important;
    justify-content: center !important;
  }

  /* Turn nav wrap into an inline group (NOT grid) */
  .ebn-nav-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;          /* icon + menu gap (adjust if needed) */
    width: auto !important;
    grid-template-columns: unset !important;  /* kill previous grid rule */
  }

  /* Stop menu container from taking full width */
  .ebn-nav-menu {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  /* Menu list should not re-center inside itself now */
  .ebn-nav-menu ul {
    justify-content: flex-start !important;
  }
}

/* =========================================================
   HEADER HEIGHT LOCK (82px) + LOGO MAX 70px (6px top/bottom)
   ========================================================= */

/* Stop old padding from increasing header height */
.ebn-site-header-row {
  min-height: 82px !important;
  padding: 6px 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

/* Branding box should not add extra height */
.ebn-site-branding {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  min-width: 0;
}

/* Custom logo: prevent inline-image baseline gap */
.custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0 !important;
}
.custom-logo {
  max-height: 70px !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
}

/* If tagline exists, keep it from pushing height */
.ebn-site-tagline {
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Mobile-first: keep header row horizontal (logo left, hamburger right) */
@media (max-width: 991px) {
  .ebn-site-header-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  /* Tagline hides on mobile to avoid extra height */
  .ebn-site-tagline {
    display: none !important;
  }

  /* Search already hidden in your CSS, keep it hidden */
  .ebn-header-search {
    display: none !important;
  }
}

/* =========================================================
   MOBILE NAV: Home icon top, menu list below (vertical)
   + Creative hamburger -> X animation
   ========================================================= */

@media (max-width: 991px) {

  /* Make nav container look like a dropdown panel */
  .ebn-main-nav.is-open .ebn-main-nav-inner {
    padding: 12px 0 18px;
  }

  /* IMPORTANT: mobile layout should be column */
  .ebn-nav-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Home icon must be first row */
  .ebn-nav-home {
    order: 0;
    align-self: flex-start;
    margin-left: 0;
  }

  /* Menu block full width */
  .ebn-nav-menu {
    order: 1;
    width: 100% !important;
  }

  /* Menu list vertical */
  .ebn-primary-menu,
  .ebn-nav-menu ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ebn-main-nav a {
    padding: 6px 0 !important;
  }
}

/* ===== Creative Hamburger Animation ===== */
.ebn-menu-toggle {
  position: relative;
}

.ebn-menu-toggle span {
  transition: transform .18s ease, opacity .18s ease;
  transform-origin: center;
}

/* Open state -> X */
.ebn-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ebn-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.ebn-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.ebn-social-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.ebn-social-btn{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ebn-border);
  font-weight: 900;
  background:#fff;
  transition: transform .15s ease, border-color .15s ease;
}
.ebn-social-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(196,0,24,.35);
}

/* ===== Premium Social Panel ===== */
.ebn-social-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ebn-social-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ebn-social-card{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--ebn-border);
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ebn-social-card:hover{
  transform: translateY(-1px);
  border-color: rgba(196,0,24,.22);
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.ebn-social-icon{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  flex: 0 0 auto;
}

.ebn-social-icon svg{
  width: 20px;
  height: 20px;
  display:block;
}

.ebn-social-info{
  display:flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ebn-social-name{
  font-weight: 900;
  line-height: 1.2;
}

.ebn-social-sub{
  font-size: 12px;
  color: var(--ebn-muted);
  font-weight: 700;
}

.ebn-social-go{
  margin-left: auto;
  font-size: 20px;
  color: var(--ebn-muted);
  font-weight: 900;
}

/* Brand colors */
.ebn-social-card--youtube .ebn-social-icon{ background:#ff0033; }
.ebn-social-card--facebook .ebn-social-icon{ background:#1877f2; }
.ebn-social-card--instagram .ebn-social-icon{
  background: radial-gradient(circle at 30% 30%, #feda75, #fa7e1e 30%, #d62976 55%, #962fbf 75%, #4f5bd5);
}
.ebn-social-card--x .ebn-social-icon{ background:#111827; }

/* ===== Premium Poll UI ===== */
.ebn-poll__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.ebn-poll__badge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(196,0,24,.10);
  color: var(--ebn-accent);
}
.ebn-poll__q{
  margin: 0 0 12px;
  font-weight: 900;
  line-height: 1.5;
}
.ebn-poll__opt{
  width:100%;
  border:1px solid var(--ebn-border);
  background:#fff;
  border-radius:14px;
  padding:12px 12px 14px;
  margin-bottom:10px;
  cursor:pointer;
  text-align:left;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ebn-poll__opt:hover{
  transform: translateY(-1px);
  border-color: rgba(196,0,24,.25);
  box-shadow: 0 14px 26px rgba(0,0,0,.06);
}
.ebn-poll__opt.is-loading{ opacity:.75; }
.ebn-poll__opt:disabled{ cursor:not-allowed; }

.ebn-poll__optLabel{ font-weight:900; display:block; }
.ebn-poll__pct{
  float:right;
  font-weight:900;
  color: var(--ebn-muted);
}
.ebn-poll__bar{
  display:block;
  height:10px;
  border-radius:999px;
  background:#f3f4f6;
  overflow:hidden;
  margin-top:10px;
}
.ebn-poll__fill{
  display:block;
  height:100%;
  background: linear-gradient(90deg, rgba(196,0,24,.85), rgba(196,0,24,.45));
  border-radius:999px;
}
.ebn-poll__foot{
  margin-top:8px;
  color: var(--ebn-muted);
  font-size: 13px;
  font-weight: 800;
}

.ebn-poll__opt.is-selected{
  border-color: rgba(196,0,24,.35);
  box-shadow: 0 14px 26px rgba(196,0,24,.10);
}

/* =========================================================
   POLL: Premium animation + winner/loser color swap
   ========================================================= */

.ebn-poll__fill{
  transition: width .75s cubic-bezier(.22,1,.36,1), background .25s ease;
}

/* optional: subtle glow for winning bar */
.ebn-poll[data-winner="a"] [data-ebn-poll-fill="a"],
.ebn-poll[data-winner="b"] [data-ebn-poll-fill="b"]{
  box-shadow: 0 10px 24px rgba(22,163,74,.18);
}

/* WIN/LOSE color logic (auto swap) */
.ebn-poll{
  --ebn-poll-win: linear-gradient(90deg, #16a34a, #86efac);  /* green */
  --ebn-poll-lose: linear-gradient(90deg, #ef4444, #fecaca); /* red/soft */
}

/* Default (no votes yet) */
.ebn-poll[data-winner=""] [data-ebn-poll-fill="a"],
.ebn-poll[data-winner=""] [data-ebn-poll-fill="b"]{
  background: linear-gradient(90deg, rgba(196,0,24,.65), rgba(196,0,24,.25));
}

/* Winner A */
.ebn-poll[data-winner="a"] [data-ebn-poll-fill="a"]{ background: var(--ebn-poll-win); }
.ebn-poll[data-winner="a"] [data-ebn-poll-fill="b"]{ background: var(--ebn-poll-lose); }

/* Winner B */
.ebn-poll[data-winner="b"] [data-ebn-poll-fill="b"]{ background: var(--ebn-poll-win); }
.ebn-poll[data-winner="b"] [data-ebn-poll-fill="a"]{ background: var(--ebn-poll-lose); }

/* Make winning percentage label slightly stronger */
.ebn-poll[data-winner="a"] [data-ebn-poll-pct="a"],
.ebn-poll[data-winner="b"] [data-ebn-poll-pct="b"]{
  color:#16a34a;
}
.ebn-poll[data-winner="a"] [data-ebn-poll-pct="b"],
.ebn-poll[data-winner="b"] [data-ebn-poll-pct="a"]{
  color:#ef4444;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  .ebn-poll__fill{ transition: none; }
}

/* ===== District search block ===== */
.ebn-district-form{
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: center;
}

.ebn-district-select{
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.ebn-district-btn{
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ebn-accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.ebn-district-results{
  max-height: 420px;         /* fixed size so page won't grow */
  overflow: auto;
  margin-top: 14px;
  border: 1px solid var(--ebn-border);
  border-radius: 14px;
  background: #fff;
}

.ebn-district-item{
  border-bottom: 1px solid var(--ebn-border);
}
.ebn-district-item:last-child{
  border-bottom: 0;
}

.ebn-district-link{
  display: grid;
  grid-template-columns: 120px minmax(0,1fr);
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.ebn-district-thumb{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.ebn-district-thumb img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ebn-thumb-fallback{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  border-radius:12px;
  background:#f3f4f6;
}

.ebn-district-title{
  display:block;
  font-weight: 900;
  line-height: 1.4;
}

.ebn-district-meta{
  display:block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ebn-muted);
  font-weight: 800;
}

.ebn-district-actions{
  margin-top: 12px;
  display:flex;
  justify-content:center;
}

.ebn-district-loadmore{
  border: 1px solid var(--ebn-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 991px){
  .ebn-district-form{
    grid-template-columns: 1fr;
  }
  .ebn-district-btn{
    width: 100%;
  }
  .ebn-district-results{
    max-height: 360px;
  }
  .ebn-district-link{
    grid-template-columns: 110px minmax(0,1fr);
  }
}

/* ===== District search premium UI ===== */
.ebn-district-form{
  display: grid;
  grid-template-columns: 1fr 1fr 140px;
  gap: 12px;
  align-items: end;
}

.ebn-field label{
  display:block;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ebn-muted);
}

.ebn-select{
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--ebn-border);
  border-radius: 14px;
  padding: 10px 44px 10px 14px;
  font: inherit;
  font-weight: 700;
  background: #fff;
  color: var(--ebn-text);

  /* remove default blue-ish native look */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.ebn-select:focus{
  outline: none;
  border-color: rgba(196,0,24,.35);
  box-shadow: 0 0 0 4px rgba(196,0,24,.10);
}

.ebn-district-btn{
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--ebn-accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.ebn-district-btn:hover{ transform: translateY(-1px); filter: brightness(.97); }
.ebn-district-btn:disabled{ opacity:.7; cursor:not-allowed; }

.ebn-district-results{
  max-height: 420px;
  overflow: auto;
  margin-top: 14px;
  border: 1px solid var(--ebn-border);
  border-radius: 16px;
  background: #fff;
  scroll-behavior: smooth;
}

/* premium scrollbar like video */
.ebn-district-results::-webkit-scrollbar{ width: 10px; }
.ebn-district-results::-webkit-scrollbar-thumb{ background:#e5e7eb; border-radius: 999px; }
.ebn-district-results::-webkit-scrollbar-thumb:hover{ background:#d1d5db; }

.ebn-district-item{ border-bottom: 1px solid var(--ebn-border); }
.ebn-district-item:last-child{ border-bottom: 0; }

.ebn-district-link{
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.ebn-district-thumb{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.ebn-district-thumb img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ebn-thumb-fallback{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  border-radius:14px;
  background:#f3f4f6;
}

.ebn-district-title{
  display:block;
  font-weight: 900;
  line-height: 1.4;
}
.ebn-district-meta{
  display:block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ebn-muted);
  font-weight: 800;
}

.ebn-district-actions{
  margin-top: 12px;
  display:flex;
  justify-content:center;
}

.ebn-district-loadmore{
  border: 1px solid var(--ebn-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ebn-district-loadmore:hover{
  transform: translateY(-1px);
  border-color: rgba(196,0,24,.25);
  box-shadow: 0 14px 26px rgba(0,0,0,.06);
}
.ebn-district-loadmore.is-loading{ opacity: .75; }
.ebn-lm-spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(196,0,24,.25);
  border-top-color: rgba(196,0,24,.9);
  display:none;
  animation: ebnSpin .8s linear infinite;
}
.ebn-district-loadmore.is-loading .ebn-lm-spinner{ display:inline-block; }

.ebn-district-skel{
  padding: 14px;
  color: var(--ebn-muted);
  font-weight: 800;
}

@media (max-width: 991px){
  .ebn-district-form{
    grid-template-columns: 1fr;
  }
  .ebn-district-link{
    grid-template-columns: 120px minmax(0,1fr);
  }
}

.ebn-district-empty{
  text-align: center;
  color: #dc2626;
  padding: 6px 0;
  font-weight: 600;
}

@media (max-width: 991px){
  .ebn-district-empty{
    padding: 8px 0;
    font-size: 14px;
  }
}

/* Premium notice (no alert popup) */
.ebn-district-notice{
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid var(--ebn-border);
  background: #fff;
  margin-bottom: 6px;
}
.ebn-district-notice.is-error{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.06);
  color: #b91c1c;
}
.ebn-district-notice.is-success{
  border-color: rgba(34,197,94,.30);
  background: rgba(34,197,94,.08);
  color: #166534;
}

/* Invalid field highlight */
.ebn-select.is-invalid{
  border-color: rgba(239,68,68,.55) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.12) !important;
}

/* Select UI (consistent) */
.ebn-select{
  background-color: #fff !important;
  color: var(--ebn-text) !important;
}

/* NOTE: option dropdown list (opened) is OS-native in many browsers and can't be fully styled. */
.ebn-select option{
  color: #111827;
}

/* Load more premium animation */
.ebn-district-loadmore.is-loading{
  opacity: .75;
}

/* =========================================================
   UI HOTFIX PACK
   - compact ad sections
   - only menu sticky
   - content scale balanced
   - iframe/video ads fully responsive
   ========================================================= */

/* =========================
   1) ONLY MENU STICKY
   ========================= */

/* Stop sticky on logo/search wrapper */
.ebn-sticky-shell {
  position: static !important;
  top: auto !important;
  box-shadow: none !important;
}

/* Make nav only sticky */
.ebn-main-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

/* Shadow only on sticky nav while scrolling */
.ebn-sticky-shell.is-scrolled .ebn-main-nav,
.ebn-main-nav {
  transition: box-shadow .2s ease;
}
.ebn-sticky-shell.is-scrolled .ebn-main-nav {
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* =========================
   2) ADS / SPONSOR BLOCKS COMPACT
   ========================= */

/* Less empty space around banners */
.ebn-ad-slot {
  margin: 0 0 16px !important;
}

.ebn-ad-slot__inner {
  position: relative !important;
  padding: 8px !important;   /* reduced from big padding */
  overflow: hidden !important;
  border-radius: 12px !important;
}

/* Label overlay so it doesn't consume extra height */
.ebn-ad-slot__label {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  margin: 0 !important;
  z-index: 5 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
}

/* Images should define section height naturally */
.ebn-ad-slot__image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px !important;
}

/* If sponsor/ad code uses div wrappers, don't force extra gaps */
.ebn-ad-slot__code {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make any embedded media inside ad/code blocks responsive */
.ebn-ad-slot__code iframe,
.ebn-ad-slot__code video,
.ebn-ad-slot__code embed,
.ebn-ad-slot__code object,
.ebn-ad-slot__code img {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  border: 0 !important;
  border-radius: 8px !important;
}

/* iframe: no more left-half visible / right hidden */
.ebn-ad-slot__code iframe {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 220px !important;
}

/* HTML5 video promo */
.ebn-ad-slot__code video {
  height: auto !important;
}

/* Any first child inside code box should not create weird margins */
.ebn-ad-slot__code > *:first-child {
  margin-top: 0 !important;
}
.ebn-ad-slot__code > *:last-child {
  margin-bottom: 0 !important;
}

/* Compact top/home/footer banners specifically */
.ebn-ad-slot--header .ebn-ad-slot__inner,
.ebn-ad-slot--home-between .ebn-ad-slot__inner,
.ebn-ad-slot--home-sponsor .ebn-ad-slot__inner,
.ebn-ad-slot--footer .ebn-ad-slot__inner {
  padding: 6px !important;
}

/* Sidebar banners too */
.ebn-ad-slot--sidebar-top .ebn-ad-slot__inner,
.ebn-ad-slot--sidebar-sponsor .ebn-ad-slot__inner,
.ebn-ad-slot--sidebar-sticky .ebn-ad-slot__inner {
  padding: 8px !important;
}

/* =========================
   3) CONTENT SCALE LESS "ZOOMED"
   ========================= */

/* Slightly reduce panel padding overall */
.ebn-panel,
.widget {
  padding: 16px !important;
}

/* More balanced section heading */
.ebn-section-heading {
  margin-bottom: 14px !important;
}
.ebn-section-heading h2 {
  font-size: 22px !important;
  line-height: 1.2 !important;
}

/* Home titles less oversized */
.ebn-home-block .ebn-entry-title {
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.25 !important;
}
.ebn-home-block .ebn-entry-title--small,
.ebn-home-block .ebn-hero-secondary-title,
.ebn-home-block .ebn-playlist-row__title {
  font-size: calc(1rem * 1.02) !important;
  line-height: 1.35 !important;
}

/* Reduce giant feeling in home cards */
.ebn-home-block .ebn-card-body p {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Keep home media balanced */
.ebn-home-block .ebn-card-media img,
.ebn-home-block .ebn-featured-card__media img,
.ebn-home-block .ebn-compact-card__media img,
.ebn-home-block .ebn-video-thumb {
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

/* Slightly tighter spacing in homepage blocks */
.ebn-home-block .ebn-card-body {
  padding-top: 2px !important;
}

/* =========================
   4) VIDEO / EMBED / IFRAME SAFE RESPONSIVE
   ========================= */

/* General responsive video embeds */
.ebn-video-embed {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.ebn-video-embed iframe,
.ebn-video-embed video,
.ebn-video-embed embed,
.ebn-video-embed object {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0 !important;
}

/* Promo/live modal embeds */
.ebn-video-embed--modal {
  max-width: 100% !important;
}

/* =========================
   5) MOBILE POLISH
   ========================= */
@media (max-width: 991px) {
  .ebn-panel,
  .widget {
    padding: 14px !important;
  }

  .ebn-section-heading h2 {
    font-size: 20px !important;
  }

  .ebn-home-block .ebn-entry-title {
    font-size: 22px !important;
  }

  .ebn-home-block .ebn-entry-title--small {
    font-size: 15px !important;
  }

  .ebn-ad-slot__code iframe {
    min-height: 180px !important;
  }
}

/* =========================================================
   COMPACT PORTAL UI HOTFIX
   Goal:
   - more content visible on screen
   - only red nav sticky
   - smaller/tighter homepage sections
   - hide ad/sponsored labels
   ========================================================= */

/* =========================
   1) Container width একটু compact
   ========================= */
.ebn-container {
  width: min(100% - 28px, 1180px) !important;
}

/* =========================
   2) Only menu sticky (desktop + mobile)
   ========================= */
.ebn-sticky-shell,
.ebn-site-header {
  position: static !important;
  top: auto !important;
  box-shadow: none !important;
}

.ebn-main-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

/* WP admin bar offset */
body.admin-bar .ebn-main-nav {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar .ebn-main-nav {
    top: 46px !important;
  }
}

/* =========================
   3) Header/search compact
   ========================= */
.ebn-site-header-row {
  min-height: 68px !important;
  padding: 4px 0 !important;
}
.custom-logo {
  max-height: 58px !important;
}
.ebn-header-search input[type="search"] {
  height: 38px !important;
  min-width: 190px !important;
  padding: 8px 14px !important;
}
.ebn-header-search input[type="submit"] {
  height: 38px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
}

/* =========================
   4) Topbar smaller
   ========================= */
.ebn-utility-bar-inner {
  padding: 8px 0 !important;
}
.ebn-utility-bar,
.ebn-topbar-menu a,
.ebn-utility-note {
  font-size: 12px !important;
}

/* =========================
   5) Panels/cards less bulky
   ========================= */
.ebn-panel,
.widget {
  padding: 12px !important;
  margin-bottom: 14px !important;
  border-radius: 10px !important;
}

.ebn-page-shell {
  padding: 18px 0 32px !important;
}

.ebn-home-block {
  padding-top: 14px !important;
}

/* Section titles smaller */
.ebn-section-heading {
  margin-bottom: 12px !important;
}
.ebn-section-heading h2 {
  font-size: 19px !important;
  line-height: 1.2 !important;
}

/* "আরও" smaller */
.ebn-more-link {
  font-size: 12px !important;
}

/* =========================
   6) Homepage titles + text compact
   ========================= */
.ebn-home-block .ebn-entry-title {
  font-size: 22px !important;
  line-height: 1.22 !important;
  margin-bottom: 6px !important;
}
.ebn-home-block .ebn-entry-title--small,
.ebn-home-block .ebn-hero-secondary-title,
.ebn-home-block .ebn-playlist-row__title,
.ebn-home-block .ebn-rajniti-lock__title,
.ebn-home-block .ebn-thumb-row__title {
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
}
.ebn-home-block .ebn-entry-meta,
.ebn-home-block .ebn-thumb-row__meta,
.ebn-home-block .ebn-rajniti-lock__meta,
.ebn-home-block .ebn-playlist-row__meta {
  font-size: 11px !important;
  margin-top: 4px !important;
}
.ebn-home-block .ebn-card-body p,
.ebn-home-block .ebn-note {
  font-size: 13px !important;
  line-height: 1.55 !important;
}

/* =========================
   7) Grids/gaps tighter so more fits on screen
   ========================= */
.ebn-layout {
  gap: 18px !important;
}
.ebn-hero-grid,
.ebn-category-grid,
.ebn-featured-grid,
.ebn-video-grid,
.ebn-video-playlist,
.ebn-cat-rajniti,
.ebn-cat-rajniti-wrap,
.ebn-rajniti-layout,
.ebn-rajniti-fixed,
.ebn-cat-sb-grid4,
.ebn-cat-jt-grid,
.ebn-cat-photo-grid,
.ebn-related-grid,
.ebn-post-nav__grid {
  gap: 12px !important;
}
.ebn-hero-secondary,
.ebn-video-list,
.ebn-category-list,
.ebn-cat-list,
.ebn-cat-mini-list,
.ebn-thumb-rows,
.ebn-discovery-list {
  gap: 10px !important;
}

/* =========================
   8) Images smaller/cleaner; less giant look
   ========================= */
.ebn-card-media img,
.ebn-featured-card__media img,
.ebn-compact-card__media img,
.ebn-thumb-row__thumb img,
.ebn-playlist-row__thumb img,
.ebn-video-thumb,
.ebn-archive-row__thumb img,
.ebn-archive-lead__media img,
.ebn-single-featured img {
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
}

/* Homepage media aspect a little shorter to reduce giant feel */
.ebn-home-block .ebn-card-media img,
.ebn-home-block .ebn-featured-card__media img,
.ebn-home-block .ebn-compact-card__media img,
.ebn-home-block .ebn-video-thumb {
  aspect-ratio: 16 / 9 !important;
}

/* =========================
   9) Ads/sponsored sections compact + label hidden
   ========================= */
.ebn-ad-slot {
  margin-bottom: 14px !important;
}
.ebn-ad-slot__inner {
  padding: 4px !important;
  border-radius: 10px !important;
}
.ebn-ad-slot__label {
  display: none !important; /* hide বিজ্ঞাপন / স্পন্সরড text */
}
.ebn-ad-slot__image,
.ebn-ad-slot__code img,
.ebn-ad-slot__code iframe,
.ebn-ad-slot__code video,
.ebn-ad-slot__code embed,
.ebn-ad-slot__code object {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  border-radius: 8px !important;
}
.ebn-ad-slot__code iframe {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 160px !important;
}
.ebn-ad-slot__code > * {
  margin: 0 !important;
}

/* Footer/home/header sponsor areas less tall */
.ebn-ad-slot--header .ebn-ad-slot__inner,
.ebn-ad-slot--footer .ebn-ad-slot__inner,
.ebn-ad-slot--home-between .ebn-ad-slot__inner,
.ebn-ad-slot--home-sponsor .ebn-ad-slot__inner,
.ebn-ad-slot--sidebar-sponsor .ebn-ad-slot__inner,
.ebn-ad-slot--sidebar-top .ebn-ad-slot__inner,
.ebn-ad-slot--sidebar-sticky .ebn-ad-slot__inner {
  padding: 4px !important;
}

/* =========================
   10) Sidebar blocks more compact
   ========================= */
.ebn-sidebar-stack .ebn-panel {
  padding: 12px !important;
}
.ebn-sidebar .ebn-widget-title {
  font-size: 16px !important;
  margin-bottom: 10px !important;
}
.ebn-discovery-item a {
  font-size: 14px !important;
  line-height: 1.45 !important;
}
.ebn-discovery-meta {
  font-size: 11px !important;
}

/* =========================
   11) Single/archive less giant
   ========================= */
.ebn-single-title {
  font-size: 28px !important;
  line-height: 1.16 !important;
}
.ebn-archive-title {
  font-size: 26px !important;
}
.ebn-archive-lead__title {
  font-size: 22px !important;
}
.ebn-archive-row__title {
  font-size: 17px !important;
}

/* =========================
   12) Mobile first compactness
   ========================= */
@media (max-width: 991px) {
  .ebn-container {
    width: min(100% - 20px, 1180px) !important;
  }

  .ebn-page-shell {
    padding: 14px 0 24px !important;
  }

  .ebn-panel,
  .widget {
    padding: 10px !important;
    margin-bottom: 12px !important;
  }

  .ebn-site-header-row {
    min-height: 58px !important;
    padding: 4px 0 !important;
  }

  .custom-logo {
    max-height: 46px !important;
  }

  .ebn-main-nav {
    top: 0 !important;
  }

  .ebn-layout,
  .ebn-hero-grid,
  .ebn-category-grid,
  .ebn-featured-grid,
  .ebn-video-grid,
  .ebn-video-playlist,
  .ebn-cat-rajniti,
  .ebn-cat-rajniti-wrap,
  .ebn-rajniti-layout,
  .ebn-rajniti-fixed,
  .ebn-cat-sb-grid4,
  .ebn-cat-jt-grid,
  .ebn-cat-photo-grid,
  .ebn-related-grid,
  .ebn-post-nav__grid {
    gap: 10px !important;
  }

  .ebn-home-block .ebn-entry-title {
    font-size: 19px !important;
  }

  .ebn-home-block .ebn-entry-title--small,
  .ebn-home-block .ebn-hero-secondary-title,
  .ebn-home-block .ebn-playlist-row__title,
  .ebn-home-block .ebn-rajniti-lock__title,
  .ebn-home-block .ebn-thumb-row__title {
    font-size: 14px !important;
  }

  .ebn-ad-slot__code iframe {
    min-height: 140px !important;
  }
}

/* =========================================================
   FINAL REFINEMENT PACK
   - Proper sticky nav (header hides, nav stays)
   - Cleaner ad/sponsor visuals
   - Better readable font rendering
   ========================================================= */

/* =========================
   1) CLEANER FONT RENDERING
   ========================= */
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", Arial, sans-serif !important;
  font-weight: 500;
  color: #111827;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ebn-entry-title,
.ebn-widget-title,
.ebn-archive-title,
.ebn-single-title,
.ebn-site-title {
  font-family: inherit;
  letter-spacing: -0.01em;
  color: #111827;
}

.ebn-note,
.ebn-entry-meta,
.ebn-discovery-meta,
.ebn-thumb-row__meta,
.ebn-playlist-row__meta {
  color: #6b7280 !important;
}

/* =========================
   2) REAL STICKY NAV ONLY
   Problem reason:
   sticky-shell was static, so nav scrolled away.
   Fix:
   sticky the wrapper, and collapse header on scroll.
   ========================= */
.ebn-sticky-shell {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: #fff;
}

/* admin bar offset */
body.admin-bar .ebn-sticky-shell {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar .ebn-sticky-shell {
    top: 46px !important;
  }
}

/* Header is visible initially */
.ebn-site-header {
  max-height: 120px;
  overflow: hidden;
  transition: max-height .25s ease, opacity .25s ease, border-color .25s ease;
  opacity: 1;
  border-bottom: 1px solid transparent;
}

/* When scrolling, collapse logo+search area so only nav stays */
.ebn-sticky-shell.is-scrolled .ebn-site-header {
  max-height: 0 !important;
  opacity: 0 !important;
  border-bottom: 0 !important;
}

/* nav gets shadow while sticky */
.ebn-main-nav {
  position: relative !important;
  top: auto !important;
  z-index: 1001 !important;
  box-shadow: none;
}
.ebn-sticky-shell.is-scrolled .ebn-main-nav {
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* =========================
   3) ADS / SPONSOR VISUAL CLEANUP
   Remove ugly white card feel for big banners.
   ========================= */

/* Remove white panel box for ad wrappers */
.ebn-ad-slot__inner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Ad image/code itself becomes the card */
.ebn-ad-slot__image,
.ebn-ad-slot__code iframe,
.ebn-ad-slot__code video,
.ebn-ad-slot__code img,
.ebn-ad-slot__code > div,
.ebn-ad-slot__code > a,
.ebn-ad-slot__code > section {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

/* Big banner section should not take extra dead space */
.ebn-ad-slot--header,
.ebn-ad-slot--home-between,
.ebn-ad-slot--home-sponsor,
.ebn-ad-slot--footer {
  margin-bottom: 12px !important;
}

/* Sidebar sponsor/ad also clean */
.ebn-ad-slot--sidebar-top,
.ebn-ad-slot--sidebar-sponsor,
.ebn-ad-slot--sidebar-sticky {
  margin-bottom: 12px !important;
}

/* Hide ad/sponsored label text */
.ebn-ad-slot__label {
  display: none !important;
}

/* iframe full responsive */
.ebn-ad-slot__code iframe {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 160px !important;
  border: 0 !important;
}

/* =========================
   4) GENERAL COMPACTNESS (less zoomed look)
   ========================= */
.ebn-panel,
.widget {
  padding: 12px !important;
  margin-bottom: 12px !important;
}

.ebn-page-shell {
  padding: 14px 0 28px !important;
}

.ebn-layout {
  gap: 16px !important;
}

.ebn-section-heading {
  margin-bottom: 12px !important;
}
.ebn-section-heading h2 {
  font-size: 18px !important;
}

.ebn-home-block .ebn-entry-title {
  font-size: 20px !important;
  line-height: 1.24 !important;
}
.ebn-home-block .ebn-entry-title--small,
.ebn-home-block .ebn-thumb-row__title,
.ebn-home-block .ebn-rajniti-lock__title,
.ebn-home-block .ebn-playlist-row__title {
  font-size: 14px !important;
  line-height: 1.34 !important;
  font-weight: 700 !important;
}

.ebn-home-block .ebn-entry-meta,
.ebn-home-block .ebn-thumb-row__meta,
.ebn-home-block .ebn-rajniti-lock__meta,
.ebn-home-block .ebn-playlist-row__meta {
  font-size: 11px !important;
}

/* =========================
   5) MOBILE POLISH
   ========================= */
@media (max-width: 991px) {
  .ebn-sticky-shell {
    top: 0 !important;
  }

  .ebn-site-header-row {
    min-height: 56px !important;
    padding: 4px 0 !important;
  }

  .custom-logo {
    max-height: 44px !important;
  }

  .ebn-home-block .ebn-entry-title {
    font-size: 18px !important;
  }

  .ebn-home-block .ebn-entry-title--small,
  .ebn-home-block .ebn-thumb-row__title,
  .ebn-home-block .ebn-rajniti-lock__title,
  .ebn-home-block .ebn-playlist-row__title {
    font-size: 13px !important;
  }
}

/* =========================
   PREMIUM LIVE CARD (no ugly white outer box)
   ========================= */
.ebn-live-panel {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ebn-live-card {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #111827 55%, #1e293b);
  color: #fff;
  text-align: left;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ebn-live-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.ebn-live-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ebn-live-card .ebn-widget-title {
  color: #fff !important;
}

.ebn-live-card .ebn-note {
  color: rgba(255,255,255,.78) !important;
}

body {
  font-family: "Noto Sans Bengali", "Siyam Rupali", "SolaimanLipi", Arial, sans-serif !important;
  font-weight: 400 !important;
}
.ebn-entry-title,
.ebn-widget-title,
.ebn-archive-title,
.ebn-single-title,
.ebn-site-title {
  font-family: "Noto Sans Bengali", "Siyam Rupali", "SolaimanLipi", Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* =========================================================
   CLEAN NEWSPAPER UI REFINEMENT PACK
   ========================================================= */

/* 1) Main font priority */
body,
.ebn-entry-title,
.ebn-widget-title,
.ebn-archive-title,
.ebn-single-title,
.ebn-site-title {
  font-family: "SolaimanLipi", "Noto Sans Bengali", Arial, sans-serif !important;
}

/* 2) Less bazari radius: cards mild, images cleaner */
.ebn-panel,
.widget,
.ebn-compact-card,
.ebn-featured-card,
.ebn-cat-grid-card,
.ebn-thumb-row,
.ebn-rajniti-lock__link,
.ebn-social-card,
.ebn-poll__opt,
.ebn-team-card {
  border-radius: 8px !important;
}

.ebn-card-media,
.ebn-featured-card__media,
.ebn-compact-card__media,
.ebn-video-thumb-wrap,
.ebn-playlist-row__thumb,
.ebn-district-thumb,
.ebn-archive-row__thumb,
.ebn-archive-lead__media,
.ebn-cat-lead__media,
.ebn-single-featured,
.ebn-promo-card__media {
  border-radius: 4px !important;
}

.ebn-card-media img,
.ebn-featured-card__media img,
.ebn-compact-card__media img,
.ebn-video-thumb,
.ebn-playlist-row__thumb img,
.ebn-district-thumb img,
.ebn-archive-row__thumb img,
.ebn-archive-lead__media img,
.ebn-cat-lead__media img,
.ebn-single-featured img,
.ebn-promo-card__media img {
  border-radius: 4px !important;
}

/* 3) Bigger text for bigger visual items */
.ebn-hero-lead .ebn-entry-title,
.ebn-cat-lead__title,
.ebn-cat-rajniti .ebn-rajniti-lock__lead .ebn-entry-title,
.ebn-video-playlist__lead .ebn-entry-title,
.ebn-archive-lead__title,
.ebn-cat-lead__title {
  font-size: 24px !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
}

.ebn-entry-title--small,
.ebn-hero-secondary-title,
.ebn-thumb-row__title,
.ebn-playlist-row__title,
.ebn-rajniti-lock__title,
.ebn-archive-row__title {
  font-size: 15px !important;
  line-height: 1.34 !important;
  font-weight: 700 !important;
}

/* 4) Creative section heading accent (not pill/button style) */
.ebn-section-heading h2 {
  position: relative;
  padding-left: 25px !important;
}

.ebn-section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 6px;
  height: 1.05em;
  background: var(--ebn-section-accent, var(--ebn-accent));
  border-radius: 999px;
}

.ebn-section-heading h2::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--ebn-section-accent, var(--ebn-accent));
  transform: rotate(45deg);
  opacity: 0.18;
}

/* 5) District search spacing */
.ebn-district-search .ebn-district-form {
  margin-top: 10px !important;
}

.ebn-district-search .ebn-section-heading {
  margin-bottom: 14px !important;
}

/* 6) Footer pre-footer ad styling */
.ebn-ad-slot--prefooter {
  padding: 14px 0 0 !important;
  margin-bottom: 0 !important;
}

.ebn-ad-slot--prefooter .ebn-ad-slot__inner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ebn-ad-slot--prefooter .ebn-ad-slot__label {
  display: none !important;
}

/* 7) Footer fully centered */
.ebn-footer {
  text-align: center !important;
}

.ebn-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px !important;
  align-items: start;
  text-align: center !important;
}

.ebn-footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

/* Transparent footer widgets */
.ebn-footer .widget,
.ebn-footer .ebn-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Footer text spacing */
.ebn-footer-title,
.ebn-footer .widget-title {
  margin: 0 0 10px !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.ebn-footer-note,
.ebn-footer p,
.ebn-footer li,
.ebn-footer a,
.ebn-footer strong {
  color: #fff !important;
  line-height: 1.85 !important;
  font-size: 14px !important;
  text-align: center !important;
}

.ebn-footer p {
  margin: 0 0 8px !important;
}

.ebn-footer-bottom {
  margin-top: 24px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center !important;
}

/* 8) Footer logo center */
.ebn-footer .custom-logo-link {
  justify-content: center !important;
}

/* 9) Mobile first */
@media (max-width: 991px) {
  .ebn-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .ebn-hero-lead .ebn-entry-title,
  .ebn-cat-lead__title,
  .ebn-cat-rajniti .ebn-rajniti-lock__lead .ebn-entry-title,
  .ebn-video-playlist__lead .ebn-entry-title,
  .ebn-archive-lead__title {
    font-size: 20px !important;
  }

  .ebn-entry-title--small,
  .ebn-hero-secondary-title,
  .ebn-thumb-row__title,
  .ebn-playlist-row__title,
  .ebn-rajniti-lock__title,
  .ebn-archive-row__title {
    font-size: 14px !important;
  }

  .ebn-district-search .ebn-district-form {
    margin-top: 8px !important;
  }
}

/* =========================================================
   FINAL PREMIUM MICRO POLISH PACK
   ========================================================= */

/* 1) Breaking label unique shape */
.ebn-breaking-ticker {
  align-items: center !important;
}

.ebn-breaking-ticker__label {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 10px 14px !important;
  border-radius: 8px 14px 14px 8px !important;
  background: linear-gradient(135deg, #c40018, #e11d48);
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.ebn-breaking-ticker__label::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: 20px;
  height: 100%;
  background: inherit;
  transform: skewX(-24deg);
}

/* mobile: compact center, not full width */
@media (max-width: 991px) {
  .ebn-breaking-ticker {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }

  .ebn-breaking-ticker__label {
    width: auto !important;
    max-width: max-content;
    margin: 0 auto 8px;
  }
}

/* 2) Breaking dot blink */
.ebn-ticker-dot {
  animation: ebnTickerDotBlink 1s ease-in-out infinite;
}

@keyframes ebnTickerDotBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196,0,24,0); }
  50% { opacity: .55; box-shadow: 0 0 0 6px rgba(196,0,24,.16); }
}

/* 3) Breaking active text subtle lightning glow */
.ebn-ticker-item.is-active a {
  animation: ebnTickerGlow 3.2s ease-in-out infinite;
}

@keyframes ebnTickerGlow {
  0%, 100% {
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  50% {
    text-shadow: 0 0 10px rgba(255,255,255,.45);
  }
}

/* 4) Ads / sponsor image should NOT be rounded */
.ebn-ad-slot__image,
.ebn-ad-slot__code iframe,
.ebn-ad-slot__code video,
.ebn-ad-slot__code img,
.ebn-ad-slot__code > div,
.ebn-ad-slot__code > section,
.ebn-ad-slot__code > a {
  border-radius: 0 !important;
}

/* 5) Footer top ad gap */
.ebn-ad-slot--prefooter {
  padding: 20px 0 10px !important;
  margin-bottom: 0 !important;
}

/* 6) District search better spacing */
.ebn-district-search .ebn-district-form {
  margin-top: 12px !important;
  margin-bottom: 8px !important;
}

.ebn-district-search .ebn-district-results-wrap {
  padding-bottom: 6px;
}

/* 7) Sara Bangla list creative marker instead of circle */
.ebn-shaped-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 3px !important;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--ebn-cat-accent, var(--ebn-accent)), rgba(255,255,255,.15));
  box-shadow: 0 0 0 4px rgba(196,0,24,.08);
}

/* 8) Education & Health unique layout styles */
.ebn-edu-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 12px;
  margin-bottom: 12px;
}

.ebn-edu-side {
  display: grid;
  gap: 12px;
}

.ebn-edu-side-card {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 991px) {
  .ebn-edu-top {
    grid-template-columns: 1fr;
  }
}

/* 9) Footer desktop left align, mobile center */
.ebn-footer {
  text-align: left !important;
}

.ebn-footer-grid {
  text-align: left !important;
  align-items: start !important;
}

.ebn-footer-col {
  align-items: flex-start !important;
  text-align: left !important;
}

.ebn-footer p,
.ebn-footer li,
.ebn-footer a,
.ebn-footer strong,
.ebn-footer-title,
.ebn-footer .widget-title {
  text-align: left !important;
}

.ebn-footer-bottom {
  position: relative;
  margin-top: 24px !important;
  padding: 14px 18px !important;
  border-top: 0 !important;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 991px) {
  .ebn-footer,
  .ebn-footer-grid,
  .ebn-footer-col,
  .ebn-footer p,
  .ebn-footer li,
  .ebn-footer a,
  .ebn-footer strong,
  .ebn-footer-title,
  .ebn-footer .widget-title {
    text-align: center !important;
  }

  .ebn-footer-col {
    align-items: center !important;
  }

  .ebn-footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* =========================================================
   VIDEO + DISTRICT VISUAL DIFFERENTIATION
   ========================================================= */

/* Video section tinted premium bg */
.ebn-video-playlist-block {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%) !important;
  border-color: #d9e8ff !important;
}

/* District section tinted premium bg */
.ebn-district-search {
  background: linear-gradient(180deg, #f7fffb 0%, #eefcf6 100%) !important;
  border-color: #d6f4e4 !important;
}

/* Keep inner result/items white for balance */
.ebn-video-playlist__scroll,
.ebn-district-results {
  background: #fff !important;
}

/* =========================================================
   VIDEO LEAD EXTRA CREATIVE SHAPE ANIMATION
   ========================================================= */
.ebn-video-playlist__lead .ebn-card-media {
  position: relative;
  overflow: hidden;
}

/* decorative side ribbon */
.ebn-video-playlist__lead .ebn-card-media::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 18px;
  width: 54px;
  height: 14px;
  background: linear-gradient(90deg, #c40018, #ef4444);
  transform: rotate(-32deg);
  border-radius: 999px;
  z-index: 4;
  box-shadow: 0 6px 18px rgba(196, 0, 24, .20);
  animation: ebnVideoRibbonFloat 2.6s ease-in-out infinite;
}

@keyframes ebnVideoRibbonFloat {
  0%, 100% { transform: rotate(-32deg) translateY(0); opacity: .9; }
  50% { transform: rotate(-32deg) translateY(-3px); opacity: 1; }
}

/* =========================================================
   PROMO PLAY ICON BLINK
   ========================================================= */
.ebn-promo-card__media .ebn-video-badge {
  animation: ebnBlinkStrong 1s ease-in-out infinite !important;
}

/* =========================================================
   SARA BANGLA SHAPED LIST ICON ALIGN FIX
   ========================================================= */
.ebn-shaped-item a {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 10px 10px 10px 4px !important;
}

.ebn-shaped-dot {
  justify-self: center;
  align-self: start;
  margin-top: 5px !important;
}

/* =========================================================
   EDUCATION & HEALTH UNIQUE GRID (NO BLANK GAP)
   ========================================================= */
.ebn-edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 12px;
}

.ebn-edu-grid__lead {
  grid-row: 1 / span 2;
  min-width: 0;
}

.ebn-edu-grid__side {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 991px) {
  .ebn-edu-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ebn-edu-grid__lead {
    grid-row: auto;
  }
}

/* =========================================================
   FOOTER TOP AD MORE GAP
   ========================================================= */
.ebn-ad-slot--prefooter {
  padding: 28px 0 14px !important;
}

/* =========================================================
   SECTION HEADING MORE DISTINCTIVE
   ========================================================= */
.ebn-section-heading h2::before {
  width: 5px !important;
  height: 1.15em !important;
}

.ebn-section-heading h2::after {
  width: 10px !important;
  height: 10px !important;
  left: 7px !important;
  top: 0.52em !important;
  opacity: 0.22 !important;
}

/* =========================================================
   VIDEO HUB PREMIUM REDESIGN
   ========================================================= */
.ebn-video-hub {
  background:
    radial-gradient(circle at top left, rgba(220,38,38,.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(59,130,246,.12), transparent 22%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #fff !important;
  overflow: hidden;
}

.ebn-video-hub .ebn-section-heading h2,
.ebn-video-hub .ebn-section-heading h2 a,
.ebn-video-hub .ebn-more-link {
  color: #fff !important;
}

.ebn-video-hub .ebn-section-heading h2::before {
  background: #ef4444 !important;
}
.ebn-video-hub .ebn-section-heading h2::after {
  background: #fca5a5 !important;
  opacity: .28 !important;
}

.ebn-video-hub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 14px;
}

.ebn-video-hub__lead .ebn-entry-title {
  color: #fff !important;
  font-size: 22px !important;
}

.ebn-video-hub__lead .ebn-entry-meta,
.ebn-video-hub__meta {
  color: rgba(255,255,255,.75) !important;
}

.ebn-video-hub__leadmedia {
  position: relative;
  overflow: hidden;
}

/* extra decorative shapes */
.ebn-video-hub__leadmedia::before,
.ebn-video-hub__leadmedia::after {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border-radius: 999px;
}

.ebn-video-hub__leadmedia::before {
  width: 56px;
  height: 14px;
  left: -18px;
  top: 20px;
  background: linear-gradient(90deg, #ef4444, #fb7185);
  transform: rotate(-30deg);
  animation: ebnVideoShapeFloat 2.8s ease-in-out infinite;
}

.ebn-video-hub__leadmedia::after {
  width: 12px;
  height: 12px;
  right: 18px;
  top: 18px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 8px rgba(255,255,255,.06);
  animation: ebnVideoGlow 2.2s ease-in-out infinite;
}

@keyframes ebnVideoShapeFloat {
  0%,100% { transform: rotate(-30deg) translateY(0); opacity: .85; }
  50% { transform: rotate(-30deg) translateY(-3px); opacity: 1; }
}
@keyframes ebnVideoGlow {
  0%,100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.ebn-video-hub__list {
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.ebn-video-hub__list::-webkit-scrollbar {
  width: 10px;
}
.ebn-video-hub__list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}
.ebn-video-hub__list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.28);
}

.ebn-video-hub__item {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ebn-video-hub__item:last-child {
  border-bottom: 0;
}

.ebn-video-hub__link {
  display: grid;
  grid-template-columns: 108px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.ebn-video-hub__link:hover {
  background: rgba(255,255,255,.05);
  transform: translateX(3px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.ebn-video-hub__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.ebn-video-hub__thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ebn-video-hub__title {
  display: block;
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
}

.ebn-video-hub__link:hover .ebn-video-hub__title {
  color: #fecaca;
}

@media (max-width: 991px) {
  .ebn-video-hub__grid {
    grid-template-columns: 1fr;
  }

  .ebn-video-hub__list {
    max-height: 360px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 8px;
  }

  .ebn-video-hub__link {
    grid-template-columns: 100px minmax(0,1fr);
  }
}

/* =========================================================
   DISTRICT SEARCH SECTION VISUAL POLISH
   ========================================================= */
.ebn-district-search {
  background: linear-gradient(180deg, #f8fffd 0%, #eefcf6 100%) !important;
  border-color: #d8f2e6 !important;
}

/* =========================================================
   PROMO CARD PLAY ICON BLINK
   ========================================================= */
.ebn-promo-card__media .ebn-video-badge {
  animation: ebnBlinkStrong 1s ease-in-out infinite !important;
}

/* =========================================================
   SARA BANGLA ICON ALIGN
   ========================================================= */
.ebn-shaped-item a {
  grid-template-columns: 18px minmax(0,1fr) !important;
  column-gap: 10px !important;
  align-items: start !important;
  padding: 10px 10px 10px 8px !important;
}

.ebn-shaped-dot {
  justify-self: center !important;
  align-self: start !important;
  margin-top: 4px !important;
}

/* More premium diamond */
.ebn-shaped-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 2px !important;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--ebn-cat-accent, var(--ebn-accent)), rgba(255,255,255,.18));
  box-shadow: 0 0 0 4px rgba(196,0,24,.08);
}

/* =========================================================
   EDUCATION & HEALTH UNIQUE CREATIVE LAYOUT
   ========================================================= */
.ebn-edu-health-layout__lead {
  margin-bottom: 12px;
}

.ebn-edu-health-layout__mid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ebn-edu-health-card {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 991px) {
  .ebn-edu-health-layout__mid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FOOTER TOP AD GAP
   ========================================================= */
.ebn-ad-slot--prefooter {
  padding: 30px 0 16px !important;
}

/* =========================================================
   FINAL PREMIUM PATCH
   ========================================================= */

/* 1) Breaking ticker outside home spacing */
.ebn-global-breaking-wrap {
  padding-top: 12px;
}

/* 2) Breaking label more premium */
.ebn-breaking-ticker__label {
  border-radius: 8px 16px 16px 8px !important;
  box-shadow: 0 10px 24px rgba(196,0,24,.18);
}

/* 3) Breaking arrows more premium */
.ebn-ticker-nav {
  background: linear-gradient(180deg, #fff, #f3f4f6) !important;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ebn-ticker-nav:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(196,0,24,.22);
  box-shadow: 0 14px 26px rgba(0,0,0,.08);
}

/* 4) Breaking active text stronger creative shimmer */
.ebn-ticker-item.is-active a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.ebn-ticker-item.is-active a::after {
  content: "";
  position: absolute;
  left: -90%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-24deg);
  animation: ebnTickerShimmer 2.6s ease-in-out infinite;
}
@keyframes ebnTickerShimmer {
  from { left: -90%; }
  to { left: 140%; }
}

/* 5) Single toolbar premium look */
.ebn-post-toolbar {
  position: relative;
  padding: 14px 16px !important;
  border: 1px solid rgba(196,0,24,.10) !important;
  background: linear-gradient(180deg, #fff 0%, #fdf8f8 100%) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.04) !important;
}

.ebn-post-toolbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ebn-accent), transparent 70%);
  border-radius: 12px 12px 0 0;
}

.ebn-post-toolbar__left {
  gap: 10px !important;
}
.ebn-post-toolbar__right {
  gap: 10px !important;
}

.ebn-like-button,
.ebn-view-count--inline,
.ebn-share-button {
  min-height: 38px;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.ebn-like-button {
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.ebn-view-count--inline {
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.ebn-share-button {
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.ebn-share-button:hover,
.ebn-like-button:hover {
  transform: translateY(-1px);
}

/* 6) Previous / Next article cards premium */
.ebn-post-nav {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%) !important;
}

.ebn-post-nav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ebn-accent), transparent 70%);
  border-radius: 12px 12px 0 0;
}

.ebn-post-nav__item {
  background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%) !important;
  border: 1px solid var(--ebn-border) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ebn-post-nav__item:hover {
  transform: translateY(-2px);
  border-color: rgba(196,0,24,.18) !important;
  box-shadow: 0 14px 26px rgba(0,0,0,.06);
}

.ebn-post-nav__label {
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ebn-accent) !important;
}

/* 7) Video hub more YouTube-like premium */
.ebn-video-hub {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(220,38,38,.22), transparent 24%),
    radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 22%),
    linear-gradient(180deg, #111827 0%, #0b1220 100%) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.16) !important;
}

/* .ebn-video-hub::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 84px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 18px rgba(255,255,255,.03);
} */

.ebn-video-hub__leadmedia {
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 50px rgba(0,0,0,.22);
}

.ebn-video-hub__leadmedia::before {
  box-shadow: 0 0 18px rgba(239,68,68,.38), 0 6px 18px rgba(196,0,24,.20) !important;
}

.ebn-video-hub__leadmedia::after {
  box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 0 18px rgba(255,255,255,.06) !important;
}

.ebn-video-hub__list {
  border-left: 1px solid rgba(255,255,255,.10) !important;
}

.ebn-video-hub__item {
  position: relative;
}

.ebn-video-hub__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: transparent;
  transition: background .2s ease;
}

.ebn-video-hub__item:hover::before {
  background: #ef4444;
}

.ebn-video-hub__link {
  position: relative;
}

.ebn-video-hub__link:hover {
  background: rgba(255,255,255,.06) !important;
  transform: translateX(4px) !important;
}

.ebn-video-hub__link:hover .ebn-video-hub__thumb img {
  transform: scale(1.04);
  transition: transform .25s ease;
}

.ebn-video-hub__thumb {
  border-radius: 6px !important;
}

/* 8) Footer prefooter ad now perfectly constrained and spaced */
.ebn-prefooter-ad {
  padding-top: 26px;
  padding-bottom: 12px;
}

.ebn-prefooter-ad .ebn-container {
  width: min(100% - 28px, 1180px) !important;
}

.ebn-ad-slot--prefooter .ebn-ad-slot__inner {
  background: transparent !important;
}

/* 9) Footer bottom glossy more premium */
.ebn-footer-bottom {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px rgba(0,0,0,.08);
}

/* 10) Mobile breaking arrows compact */
@media (max-width: 991px) {
  .ebn-ticker-nav {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }
}

/* =========================================================
   FINAL MICRO POLISH PATCH
   - video "আরও" alignment
   - breaking dot visibility
   - hover colors consistency
   - premium like/view/share buttons
   ========================================================= */

/* 1) VIDEO SECTION: "আরও" link proper centered inside its shape */
.ebn-video-hub .ebn-more-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 58px;
  min-height: 28px;
  padding: 6px 12px !important;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.ebn-video-hub .ebn-more-link:hover {
  color: var(--ebn-accent) !important;
  background: rgba(255,255,255,.12);
}

/* mobile: keep centered and not visually drifting */
@media (max-width: 991px) {
  .ebn-video-hub .ebn-section-heading {
    align-items: center !important;
  }

  .ebn-video-hub .ebn-more-link {
    margin-left: auto;
    margin-right: 0;
  }
}

/* 2) BREAKING DOT fully visible and aligned */
.ebn-ticker-item a {
  padding-left: 4px !important;
}

.ebn-ticker-dot {
  flex: 0 0 10px !important;
  width: 10px !important;
  height: 10px !important;
  margin-right: 10px !important;
  margin-left: 2px !important;
  box-sizing: content-box;
  position: relative;
  top: 0;
  left: 0;
}

/* 3) CONSISTENT HOVER COLORS */
/* footer developer link */
.ebn-footer a:hover {
  color: var(--ebn-accent) !important;
}

/* video section titles hover */
.ebn-video-hub__link:hover .ebn-video-hub__title,
.ebn-video-hub .ebn-entry-title:hover,
.ebn-video-hub a:hover .ebn-entry-title {
  color: var(--ebn-accent) !important;
}

/* generic post title hover consistency */
.ebn-card-link:hover .ebn-entry-title,
.ebn-thumb-row__link:hover .ebn-thumb-row__title,
.ebn-archive-row__link:hover .ebn-archive-row__title,
.ebn-post-nav__item a:hover {
  color: var(--ebn-accent) !important;
}

/* 4) PREMIUM TOOLBAR + LIKE/VIEW/SHARE */
.ebn-post-toolbar {
  gap: 16px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%) !important;
  border: 1px solid rgba(196,0,24,.08) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.05) !important;
}

.ebn-post-toolbar__left,
.ebn-post-toolbar__right {
  gap: 10px !important;
}

.ebn-like-button,
.ebn-view-count--inline,
.ebn-share-button {
  min-height: 42px !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ebn-border) !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  font-size: 13px !important;
  font-weight: 800 !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

/* Like button special */
.ebn-like-button {
  position: relative;
  padding-left: 12px !important;
}

.ebn-like-button__icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(196,0,24,.08);
  color: var(--ebn-accent);
  font-size: 14px !important;
}

.ebn-like-button:hover,
.ebn-share-button:hover,
.ebn-view-count--inline:hover {
  transform: translateY(-1px);
  border-color: rgba(196,0,24,.22) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

.ebn-like-button.is-liked {
  background: rgba(196,0,24,.06) !important;
  border-color: rgba(196,0,24,.18) !important;
}

.ebn-view-count--inline {
  color: #374151 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ebn-view-count--inline::before {
  content: "👁";
  font-size: 14px;
  line-height: 1;
}

/* Share buttons specific hover */
.ebn-share-button:hover {
  color: var(--ebn-accent) !important;
  background: rgba(196,0,24,.04) !important;
}

/* Mobile toolbar wrap */
@media (max-width: 991px) {
  .ebn-post-toolbar {
    padding: 12px !important;
  }

  .ebn-post-toolbar__left,
  .ebn-post-toolbar__right {
    width: 100%;
  }

  .ebn-post-toolbar__right {
    justify-content: flex-start;
  }
}

/* Footer developer line same font size */
.ebn-footer-bottom {
  font-size: 14px !important;
}

.ebn-footer-bottom a {
  font-size: 14px !important;
  font-weight: 600;
}

/* =========================================================
   NEW CATEGORY UI PACK
   ========================================================= */

/* আইন-আদালত */
.ebn-law-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 12px;
}
.ebn-law-layout__list {
  display: grid;
  gap: 10px;
}
.ebn-law-brief {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--ebn-border);
}
.ebn-law-brief:last-child {
  border-bottom: 0;
}
.ebn-law-brief__badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(153,27,27,.08);
  color: #991b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.ebn-law-brief__title {
  display: block;
  font-weight: 900;
  line-height: 1.4;
}
.ebn-law-brief__meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ebn-muted);
}

/* প্রবাস */
.ebn-probash-layout__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.ebn-probash-card {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 8px;
  padding: 10px;
}

/* বিনোদন */
.ebn-binodon-layout__lead {
  margin-bottom: 12px;
}
.ebn-binodon-layout__leadmedia {
  position: relative;
}
.ebn-binodon-layout__leadmedia::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 8px rgba(255,255,255,.06);
}
.ebn-binodon-layout__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.ebn-binodon-card {
  background: #fff;
  border: 1px solid var(--ebn-border);
  border-radius: 8px;
  padding: 10px;
}

/* Responsive */
@media (max-width: 991px) {
  .ebn-law-layout,
  .ebn-probash-layout__top,
  .ebn-binodon-layout__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HEADER MENU CREATIVE GLASS / HOVER PATCH
   ========================================================= */

.ebn-main-nav a {
  position: relative;
  padding: 7px 12px !important;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.ebn-main-nav a::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.ebn-main-nav a:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 8px 18px rgba(0,0,0,.08);
  color: #fff !important;
}

.ebn-main-nav a:hover::after {
  opacity: 1;
  animation: ebnMenuFlash .65s ease;
}

@keyframes ebnMenuFlash {
  from { left: -40%; }
  to { left: 130%; }
}

/* New category hover variants */
.ebn-cat-ain-adalat a:hover .ebn-entry-title,
.ebn-cat-ain-adalat a:hover .ebn-thumb-row__title {
  color: #991b1b !important;
}

.ebn-cat-probash a:hover .ebn-entry-title,
.ebn-cat-probash a:hover .ebn-thumb-row__title {
  color: #2563eb !important;
}

.ebn-cat-binodon a:hover .ebn-entry-title,
.ebn-cat-binodon a:hover .ebn-thumb-row__title {
  color: #db2777 !important;
}

/* =========================================================
   MENU HOVER EFFECT CONTAINMENT FIX
   Flash/jilik stays inside each individual menu item only
   ========================================================= */

.ebn-main-nav a {
  position: relative;
  overflow: hidden !important;   /* keep effect inside */
  isolation: isolate;            /* prevents bleed into neighbours */
}

/* use before for flash, fully clipped by button shape */
.ebn-main-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.28),
    transparent
  );
  transform: skewX(-22deg);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.ebn-main-nav a:hover::before {
  opacity: 1;
  animation: ebnMenuFlashInside .55s ease;
}

@keyframes ebnMenuFlashInside {
  from { left: -45%; }
  to   { left: 110%; }
}

/* keep text above effect */
.ebn-main-nav a {
  z-index: 1;
}

/* =========================================================
   HOME ICON RESTORE FIX
   - restore icon
   - make only home icon shape circular
   - keep other menu items unchanged
   ========================================================= */

/* Override generic menu-pill styling for home icon only */
.ebn-nav-home {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  flex: 0 0 40px !important;

  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(255,255,255,.12) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) !important;

  overflow: hidden !important;
  isolation: isolate;
  line-height: 0 !important;
}

/* Keep home icon SVG fully visible */
.ebn-nav-home svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  margin: 0 !important;
  color: #fff !important;
  stroke: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 2;
}

/* Home icon hover: keep premium but circular */
.ebn-nav-home:hover {
  background: rgba(255,255,255,.18) !important;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.08) !important;
}

/* Keep flash effect inside circle only */
.ebn-nav-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.28),
    transparent
  );
  transform: skewX(-22deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.ebn-nav-home:hover::before {
  opacity: 1;
  animation: ebnMenuFlashInside .55s ease;
}

/* Make sure generic menu link after-line doesn't distort home icon */
.ebn-nav-home::after {
  display: none !important;
}

/* =========================================================
   MENU BASELINE ALIGN FIX
   Home icon and menu items should sit on same visual line
   ========================================================= */

.ebn-nav-wrap {
  align-items: center !important;
}

.ebn-nav-menu,
.ebn-nav-menu ul,
.ebn-primary-menu {
  display: flex !important;
  align-items: center !important;
}

.ebn-primary-menu li {
  display: flex;
  align-items: center;
}

.ebn-main-nav a {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* Keep home icon on same optical center line */
.ebn-nav-home {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   MOBILE NAV: keep home icon left aligned with menu list
   ========================================================= */
@media (max-width: 991px) {
  .ebn-nav-wrap {
    align-items: flex-start !important;
  }

  .ebn-nav-home {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .ebn-nav-menu,
  .ebn-primary-menu,
  .ebn-nav-menu ul {
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

/* =========================================================
   FINAL DESKTOP NAV OVERFLOW FIX
   - keep nav inside container
   - no horizontal scrollbar
   - desktop + mobile safe
   - disable optional sidebar floatdock completely
   ========================================================= */

/* 1) Emergency overflow protection */
html,
body {
  overflow-x: hidden;
}

/* 2) Disable optional floating sidebar dock completely (you skipped it) */
.ebn-sidebar-floatdock,
.ebn-sidebar-dock-sentinel {
  display: none !important;
}

/* 3) Desktop nav: fit inside container */
@media (min-width: 992px) {
  .ebn-main-nav-inner {
    overflow: hidden !important;
  }

  .ebn-nav-wrap {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  .ebn-nav-home {
    flex: 0 0 auto !important;
  }

  .ebn-nav-menu {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 54px) !important;
  }

  .ebn-primary-menu {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ebn-primary-menu li {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .ebn-main-nav a {
    font-size: 13px !important;
    padding: 6px 10px !important;
    min-height: 34px !important;
    white-space: nowrap !important;
  }
}

/* 4) Mobile nav unchanged: icon + menu left aligned */
@media (max-width: 991px) {
  .ebn-nav-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .ebn-nav-home {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .ebn-nav-menu,
  .ebn-primary-menu,
  .ebn-nav-menu ul {
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

/* =========================================================
   992px–1050px RANGE FIX
   Goal:
   - menu stays one line
   - hero right cards stop squeezing
   - video section becomes stacked like mobile
   - titles slightly smaller for cleaner fit
   ========================================================= */

@media (min-width: 992px) and (max-width: 1050px) {

  /* ---------------------------------
     1) NAV stays one line (no 2 rows)
     --------------------------------- */
  .ebn-main-nav-inner {
    overflow: hidden !important;
  }

  .ebn-nav-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .ebn-nav-home {
    flex: 0 0 auto !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .ebn-nav-home svg {
    width: 16px !important;
    height: 16px !important;
  }

  .ebn-nav-menu {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 44px) !important;
  }

  .ebn-primary-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .ebn-primary-menu li {
    flex: 0 0 auto !important;
  }

  .ebn-main-nav a {
    font-size: 12px !important;
    padding: 5px 8px !important;
    min-height: 32px !important;
    line-height: 1 !important;
  }

  /* ---------------------------------
     2) HERO right side cards stop breaking
     --------------------------------- */
  .ebn-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) !important;
    gap: 10px !important;
  }

  .ebn-hero-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .ebn-compact-card,
  .ebn-featured-card,
  .ebn-cat-grid-card {
    padding: 10px !important;
  }

  .ebn-hero-secondary-title,
  .ebn-compact-card .ebn-entry-title--small {
    font-size: 12px !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
  }

  .ebn-compact-card .ebn-entry-meta {
    font-size: 10px !important;
    margin-top: 4px !important;
  }

  .ebn-compact-card__media img {
    aspect-ratio: 16 / 10 !important;
  }

  /* ---------------------------------
     3) VIDEO section becomes stacked (like mobile)
     --------------------------------- */
  .ebn-video-hub__grid,
  .ebn-video-playlist {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ebn-video-hub__list,
  .ebn-video-playlist__scroll {
    max-height: 320px !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    padding-top: 8px !important;
  }

  .ebn-video-hub__link,
  .ebn-playlist-row a {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .ebn-video-hub__title,
  .ebn-playlist-row__title {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  .ebn-video-hub__meta,
  .ebn-playlist-row__meta {
    font-size: 10px !important;
  }

  /* ---------------------------------
     4) Slightly reduce homepage title scale in this range
     --------------------------------- */
  .ebn-home-block .ebn-entry-title {
    font-size: 18px !important;
    line-height: 1.22 !important;
  }

  .ebn-home-block .ebn-entry-title--small,
  .ebn-home-block .ebn-thumb-row__title,
  .ebn-home-block .ebn-rajniti-lock__title,
  .ebn-home-block .ebn-video-hub__title {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  .ebn-home-block .ebn-entry-meta,
  .ebn-home-block .ebn-thumb-row__meta,
  .ebn-home-block .ebn-rajniti-lock__meta {
    font-size: 10px !important;
  }

  /* ---------------------------------
     5) Slightly tighter overall spacing
     --------------------------------- */
  .ebn-layout {
    gap: 14px !important;
  }

  .ebn-panel,
  .widget {
    padding: 10px !important;
  }
}

/* =========================================================
   FINAL NAV CENTER + STICKY FIX
   Desktop = home icon + menu centered
   Mobile = left aligned
   Sticky menu stays at top
   ========================================================= */

/* -------------------------
   1) STICKY TOP MENU
   ------------------------- */
.ebn-sticky-shell {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: #fff !important;
}

/* admin bar offset */
body.admin-bar .ebn-sticky-shell {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar .ebn-sticky-shell {
    top: 46px !important;
  }
}

/* header collapses on scroll, nav remains visible */
.ebn-site-header {
  max-height: 120px;
  overflow: hidden;
  opacity: 1;
  transition: max-height .24s ease, opacity .24s ease;
}
.ebn-sticky-shell.is-scrolled .ebn-site-header {
  max-height: 0 !important;
  opacity: 0 !important;
}

.ebn-main-nav {
  position: relative !important;
  top: auto !important;
  z-index: 1001 !important;
  box-shadow: none;
}
.ebn-sticky-shell.is-scrolled .ebn-main-nav {
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* -------------------------
   2) DESKTOP: CENTER HOME + MENU
   ------------------------- */
@media (min-width: 992px) {
  .ebn-main-nav-inner {
    display: flex !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .ebn-nav-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
  }

  .ebn-nav-home {
    flex: 0 0 auto !important;
    align-self: center !important;
  }

  .ebn-nav-menu {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ebn-primary-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  .ebn-primary-menu li {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }

  .ebn-main-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    line-height: 1 !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }
}

/* -------------------------
   3) MOBILE: KEEP LEFT ALIGNED
   ------------------------- */
@media (max-width: 991px) {
  .ebn-nav-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .ebn-nav-home {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .ebn-nav-menu,
  .ebn-primary-menu,
  .ebn-nav-menu ul {
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

/* =========================================================
   TRUE "ONLY MENU STICKY" FIX
   Logo/search scroll away normally
   Only red nav stays sticky at top
   ========================================================= */

/* 1) Make wrapper/header normal again */
.ebn-sticky-shell {
  position: static !important;
  top: auto !important;
  background: transparent !important;
  overflow: visible !important;
  box-shadow: none !important;
}

.ebn-site-header {
  position: static !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  transition: none !important;
}

/* 2) Kill old collapse-on-scroll rule completely */
.ebn-sticky-shell.is-scrolled .ebn-site-header {
  max-height: none !important;
  opacity: 1 !important;
}

/* 3) Make ONLY nav sticky */
.ebn-main-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  overflow: visible !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* 4) WP admin bar offset */
body.admin-bar .ebn-main-nav {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar .ebn-main-nav {
    top: 46px !important;
  }
}

/* 5) Ensure parent containers don't block sticky */
.ebn-main-nav-inner,
.ebn-sticky-shell,
.ebn-site-header-row {
  overflow: visible !important;
}

/* 6) Desktop nav centered */
@media (min-width: 992px) {
  .ebn-main-nav-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .ebn-nav-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
  }

  .ebn-nav-home {
    flex: 0 0 auto !important;
    align-self: center !important;
  }

  .ebn-nav-menu {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ebn-primary-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  .ebn-primary-menu li {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }

  .ebn-main-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    line-height: 1 !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }
}

/* 7) Mobile keeps left layout */
@media (max-width: 991px) {
  .ebn-nav-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .ebn-nav-home {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .ebn-nav-menu,
  .ebn-primary-menu,
  .ebn-nav-menu ul {
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

/* =========================================================
   PERMANENT STICKY NAV SYSTEM
   Desktop center, mobile left, only nav sticky
   ========================================================= */

/* Header normal scroll */
.ebn-site-header {
  position: static !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  transition: none !important;
}

/* Only nav sticky */
.ebn-main-nav--sticky {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: var(--ebn-accent) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* admin bar offset */
body.admin-bar .ebn-main-nav--sticky {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar .ebn-main-nav--sticky {
    top: 46px !important;
  }
}

/* make sure no parent breaks sticky */
.ebn-main-nav--sticky,
.ebn-main-nav-inner {
  overflow: visible !important;
}

/* =========================
   DESKTOP: center home + menu
   ========================= */
@media (min-width: 992px) {
  .ebn-main-nav-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .ebn-nav-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
  }

  .ebn-nav-home {
    flex: 0 0 auto !important;
    align-self: center !important;
  }

  .ebn-nav-menu {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ebn-primary-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  .ebn-primary-menu li {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }

  .ebn-main-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    line-height: 1 !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }
}

/* =========================
   MOBILE: left aligned
   ========================= */
@media (max-width: 991px) {
  .ebn-nav-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .ebn-nav-home {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .ebn-nav-menu,
  .ebn-primary-menu,
  .ebn-nav-menu ul {
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

/* =========================================================
   JS-BASED FIXED NAV FINAL PATCH
   - only nav fixed
   - header scrolls away
   - desktop center
   - mobile left
   ========================================================= */

/* spacer inserted by JS */
.ebn-nav-spacer {
  height: 0;
  transition: height .2s ease;
}

/* header normal scroll */
.ebn-site-header {
  position: static !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  transition: none !important;
}

/* nav normal until fixed */
.ebn-main-nav--sticky {
  position: relative !important;
  top: auto !important;
  z-index: 1000 !important;
  background: var(--ebn-accent) !important;
  width: 100%;
}

/* fixed state from JS */
.ebn-main-nav--sticky.is-fixed {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  width: 100% !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* admin bar offset */
body.admin-bar .ebn-main-nav--sticky.is-fixed {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar .ebn-main-nav--sticky.is-fixed {
    top: 46px !important;
  }
}

/* Keep inner width aligned to site container */
.ebn-main-nav--sticky.is-fixed .ebn-main-nav-inner {
  width: min(100% - 28px, 1180px) !important;
  margin-inline: auto !important;
}

/* DESKTOP center */
@media (min-width: 992px) {
  .ebn-main-nav-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .ebn-nav-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
  }

  .ebn-nav-home {
    flex: 0 0 auto !important;
    align-self: center !important;
  }

  .ebn-nav-menu {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ebn-primary-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  .ebn-primary-menu li {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }

  .ebn-main-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    line-height: 1 !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }
}

/* MOBILE left */
@media (max-width: 991px) {
  .ebn-nav-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .ebn-nav-home {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .ebn-nav-menu,
  .ebn-primary-menu,
  .ebn-nav-menu ul {
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

/* =========================================================
   EBN INFO PAGES (About / Contact / Privacy)
   ========================================================= */

.ebn-info-shell .ebn-container {
  width: min(100% - 28px, 1000px);
}

.ebn-info-main {
  width: 100%;
}

.ebn-info-page {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid var(--ebn-border) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.05) !important;
}

.ebn-info-page__hero {
  position: relative;
  padding: 28px 24px 22px;
  background:
    radial-gradient(circle at top right, rgba(196,0,24,.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--ebn-border);
}

.ebn-info-page__hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--ebn-info-accent, var(--ebn-accent));
}

.ebn-info-page__hero-inner {
  max-width: 760px;
}

.ebn-info-page__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(196,0,24,.08);
  color: var(--ebn-info-accent, var(--ebn-accent));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.ebn-info-page__title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: #111827;
}

.ebn-info-page__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
}

.ebn-info-page__content {
  padding: 26px 24px 30px;
  font-size: 17px;
  line-height: 1.95;
  color: #111827;
}

.ebn-info-page__content > *:first-child {
  margin-top: 0;
}

.ebn-info-page__content h1,
.ebn-info-page__content h2,
.ebn-info-page__content h3,
.ebn-info-page__content h4 {
  position: relative;
  margin: 1.6em 0 .75em;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.ebn-info-page__content h2,
.ebn-info-page__content h3 {
  padding-left: 16px;
}

.ebn-info-page__content h2::before,
.ebn-info-page__content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: var(--ebn-info-accent, var(--ebn-accent));
}

.ebn-info-page__content p {
  margin: 0 0 1.15em;
}

.ebn-info-page__content strong {
  font-weight: 700;
}

.ebn-info-page__content ul,
.ebn-info-page__content ol {
  margin: 0 0 1.25em 1.2em;
  padding: 0;
}

.ebn-info-page__content li {
  margin-bottom: .55em;
}

.ebn-info-page__content a {
  color: var(--ebn-info-accent, var(--ebn-accent));
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ebn-info-page__content a:hover {
  opacity: .85;
}

/* Tables */
.ebn-info-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0 1.5em;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ebn-border);
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
}

.ebn-info-page__content table th,
.ebn-info-page__content table td {
  border-bottom: 1px solid var(--ebn-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.ebn-info-page__content table tr:last-child td {
  border-bottom: 0;
}

.ebn-info-page__content table th {
  background: rgba(196,0,24,.06);
  color: #111827;
  font-weight: 700;
}

/* Blockquotes / notes */
.ebn-info-page__content blockquote {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-left: 4px solid var(--ebn-info-accent, var(--ebn-accent));
  background: #fafafa;
  color: #374151;
  border-radius: 8px;
}

/* Contact form block styling */
.ebn-info-page__content .wpcf7,
.ebn-info-page__content .wpforms-container {
  margin-top: 1.5em;
  padding: 18px;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  background: #fafafa;
}

.ebn-info-page__content input[type="text"],
.ebn-info-page__content input[type="email"],
.ebn-info-page__content input[type="url"],
.ebn-info-page__content input[type="tel"],
.ebn-info-page__content textarea,
.ebn-info-page__content select {
  width: 100%;
  border: 1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  margin-bottom: 12px;
  background: #fff;
}

.ebn-info-page__content input[type="submit"],
.ebn-info-page__content button,
.ebn-info-page__content .wpforms-submit {
  border: 0;
  border-radius: 999px;
  background: var(--ebn-info-accent, var(--ebn-accent));
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.ebn-info-page__content input[type="submit"]:hover,
.ebn-info-page__content button:hover,
.ebn-info-page__content .wpforms-submit:hover {
  transform: translateY(-1px);
  filter: brightness(.96);
}

/* Mobile-first */
@media (max-width: 991px) {
  .ebn-info-shell .ebn-container {
    width: min(100% - 20px, 1000px);
  }

  .ebn-info-page__hero {
    padding: 22px 18px 18px;
  }

  .ebn-info-page__title {
    font-size: 26px;
  }

  .ebn-info-page__lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .ebn-info-page__content {
    padding: 20px 18px 24px;
    font-size: 16px;
    line-height: 1.85;
  }

  .ebn-info-page__content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================================================
   EBN INFO PAGES (About / Contact / Privacy)
   ========================================================= */

.ebn-info-shell .ebn-container {
  width: min(100% - 28px, 1000px);
}

.ebn-info-main {
  width: 100%;
}

.ebn-info-page {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid var(--ebn-border) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.05) !important;
}

.ebn-info-page__hero {
  position: relative;
  padding: 28px 24px 22px;
  background:
    radial-gradient(circle at top right, rgba(196,0,24,.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--ebn-border);
}

.ebn-info-page__hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--ebn-info-accent, var(--ebn-accent));
}

.ebn-info-page__hero-inner {
  max-width: 760px;
}

.ebn-info-page__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(196,0,24,.08);
  color: var(--ebn-info-accent, var(--ebn-accent));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.ebn-info-page__title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: #111827;
}

.ebn-info-page__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
}

.ebn-info-page__content {
  padding: 26px 24px 30px;
  font-size: 17px;
  line-height: 1.95;
  color: #111827;
}

.ebn-info-page__content > *:first-child {
  margin-top: 0;
}

.ebn-info-page__content h1,
.ebn-info-page__content h2,
.ebn-info-page__content h3,
.ebn-info-page__content h4 {
  position: relative;
  margin: 1.6em 0 .75em;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.ebn-info-page__content h2,
.ebn-info-page__content h3 {
  padding-left: 16px;
}

.ebn-info-page__content h2::before,
.ebn-info-page__content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: var(--ebn-info-accent, var(--ebn-accent));
}

.ebn-info-page__content p {
  margin: 0 0 1.15em;
}

.ebn-info-page__content strong {
  font-weight: 700;
}

.ebn-info-page__content ul,
.ebn-info-page__content ol {
  margin: 0 0 1.25em 1.2em;
  padding: 0;
}

.ebn-info-page__content li {
  margin-bottom: .55em;
}

.ebn-info-page__content a {
  color: var(--ebn-info-accent, var(--ebn-accent));
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ebn-info-page__content a:hover {
  opacity: .85;
}

/* Tables */
.ebn-info-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0 1.5em;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ebn-border);
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
}

.ebn-info-page__content table th,
.ebn-info-page__content table td {
  border-bottom: 1px solid var(--ebn-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.ebn-info-page__content table tr:last-child td {
  border-bottom: 0;
}

.ebn-info-page__content table th {
  background: rgba(196,0,24,.06);
  color: #111827;
  font-weight: 700;
}

/* Blockquotes / notes */
.ebn-info-page__content blockquote {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-left: 4px solid var(--ebn-info-accent, var(--ebn-accent));
  background: #fafafa;
  color: #374151;
  border-radius: 8px;
}

/* Contact form block styling */
.ebn-info-page__content .wpcf7,
.ebn-info-page__content .wpforms-container {
  margin-top: 1.5em;
  padding: 18px;
  border: 1px solid var(--ebn-border);
  border-radius: 12px;
  background: #fafafa;
}

.ebn-info-page__content input[type="text"],
.ebn-info-page__content input[type="email"],
.ebn-info-page__content input[type="url"],
.ebn-info-page__content input[type="tel"],
.ebn-info-page__content textarea,
.ebn-info-page__content select {
  width: 100%;
  border: 1px solid var(--ebn-border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  margin-bottom: 12px;
  background: #fff;
}

.ebn-info-page__content input[type="submit"],
.ebn-info-page__content button,
.ebn-info-page__content .wpforms-submit {
  border: 0;
  border-radius: 999px;
  background: var(--ebn-info-accent, var(--ebn-accent));
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.ebn-info-page__content input[type="submit"]:hover,
.ebn-info-page__content button:hover,
.ebn-info-page__content .wpforms-submit:hover {
  transform: translateY(-1px);
  filter: brightness(.96);
}

/* Mobile-first */
@media (max-width: 991px) {
  .ebn-info-shell .ebn-container {
    width: min(100% - 20px, 1000px);
  }

  .ebn-info-page__hero {
    padding: 22px 18px 18px;
  }

  .ebn-info-page__title {
    font-size: 26px;
  }

  .ebn-info-page__lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .ebn-info-page__content {
    padding: 20px 18px 24px;
    font-size: 16px;
    line-height: 1.85;
  }

  .ebn-info-page__content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
