/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;700&display=swap');

/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  height: 100%;
  font-size: 16px;
}

@media (max-width: 768px) {
  html, body {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 13px;
  }
}

/* ===== Eighth Section: 3D Coverflow Blog Carousel (Pure CSS) ===== */

.eighth-section {
  width: 95vw;
  max-width: 1200px;
  margin: 48px auto 56px auto;
  min-height: clamp(380px, 65vw, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 5% 95%, transparent);
}

.coverflow-carousel {
  width: 100%;
  height: clamp(380px, 65vw, 760px);
  display: flex;
  align-items: center;
}

.coverflow-gallery {
  list-style-type: none;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 40em;
  padding: 0;
  margin: 0;
}

.coverflow-card {
  width: clamp(280px, 50vw, 600px);
  height: auto;
  position: absolute;
  transform-style: preserve-3d;
  left: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(20,20,30,0.13);
  overflow: hidden;
  animation: coverflowSlide 15s linear infinite, coverflowScale 15s ease-in-out infinite;
  animation-delay: calc(15s * ((var(--timer) - 1) / var(--num-cards) - 1));
  transition: transform 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
}

.coverflow-card img {
  width: 100%;
  height: clamp(140px, 24vw, 280px);
  object-fit: cover;
  flex-shrink: 0;
  -webkit-box-reflect: below 0px linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.2));
}

.coverflow-content {
  padding: clamp(8px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(4px, 1vw, 10px);
  flex: 0 0 auto;
  min-height: 0;
}

.coverflow-card .coverflow-title {
  font-size: clamp(0.9rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #b00;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coverflow-card .coverflow-author {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 16px);
  font-size: clamp(0.7rem, 2.8vw, 1.9rem);
  color: #444;
}

.coverflow-card .coverflow-author img {
  width: clamp(32px, 6vw, 64px);
  height: clamp(32px, 6vw, 64px);
  border-radius: 50%;
  object-fit: cover;
  -webkit-box-reflect: none;
}

.coverflow-card .coverflow-views {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #888;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
}

@keyframes coverflowSlide {
  0% {
    left: 100%;
  }
  50% {
    left: calc(50% - clamp(140px, 25vw, 300px));
  }
  100% {
    left: calc(-1 * clamp(280px, 50vw, 600px));
  }
}

@keyframes coverflowScale {
  0%, 25%, 75%, 100% {
    transform: scale(0.5);
    z-index: 0;
    filter: grayscale(0);
  }
  50% {
    transform: scale(1);
    z-index: 10;
    filter: grayscale(0);
  }
}
/* ===== Blank Section 1 ===== */
.blank-section-1 {
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 25 / 11;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(20,20,30,0.12);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Blank Section 2 ===== */
.blank-section-2 {
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 25 / 11;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(20,20,30,0.12);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Third Section Layout ===== */
.third-section {
  width: 90vw;
  max-width: 800px;
  margin: clamp(12px, 5vw, 40px) auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(7.2px, 3vw, 24px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(20,20,30,0.12);
  padding: clamp(9.6px, 4vw, 32px);
}
.third-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: clamp(48px, 15vw, 120px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}

.third-col {
  flex: 1 1 50%;
  padding: clamp(7.2px, 3vw, 24px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.third-col.code {
  flex: 0 0 45%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.third-col.code img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.third-col.text {
  flex: 1 1 55%;
  background: #fff;
  padding: 0 2% 0 2%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.third-col pre {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: inherit;
  color: inherit;
}
.third-col code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.third-title {
  font-size: clamp(0.75rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: clamp(3.6px, 1.2vw, 10px);
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.third-author {
  display: flex;
  align-items: center;
  gap: clamp(3.6px, 1.2vw, 10px);
  margin-bottom: 0;
}
.third-author img {
  width: clamp(24px, 4vw, 40px);
  height: clamp(24px, 4vw, 40px);
  border-radius: 50%;
  object-fit: cover;
}
.third-author span {
  font-weight: 500;
  color: #444;
  font-size: clamp(0.7rem, 2.5vw, 1.3rem);
}
.third-meta {
  display: flex;
  align-items: center;
  gap: clamp(4.8px, 1.5vw, 12px);
  font-size: clamp(0.65rem, 2.2vw, 1.2rem);
  color: #888;
}
.third-meta i {
  margin-right: clamp(1.2px, 0.5vw, 4px);
  color: #888;
}
.third-meta span {
  color: #888;
}
/* ===================== NAVBAR ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  width: 100%;
}

.navbar-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  background: var(--card, #fff);
  padding: 0 18px;
  box-shadow: 0 6px 18px rgba(20,20,30,0.08);
}

.navbar-logo {
  flex: 0 0 auto;
}

.navbar-logo img {
  height: 42px;
  display: block;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar-search {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 2px 6px 2px 12px;
  border: 1px solid #eee;
  height: 24px;
}

.navbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
  width: 140px;
  font-family: inherit;
  border-radius: 999px;
  padding: 4px 0;
}

.search-btn {
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 999px;
  margin-left: 6px;
}

.search-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.navbar-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  gap: 5px;
  margin-left: 10px;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent, #e53935);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Navbar Menu Dropdown ===== */
.navbar-menu {
  position: absolute;
  top: 56px;
  right: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px 0 0 8px;
  min-width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Custom scrollbar for navbar menu */
.navbar-menu::-webkit-scrollbar {
  width: 6px;
}

.navbar-menu::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.navbar-menu::-webkit-scrollbar-thumb {
  background: #e53935;
  border-radius: 3px;
}

.navbar-menu::-webkit-scrollbar-thumb:hover {
  background: #c62828;
}

.navbar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  transition: all 0.3s ease;
}

.navbar-menu a:hover {
  background: #f5f5f5;
  color: #e53935;
}

.navbar-menu a i {
  width: 20px;
  color: #e53935;
  font-size: 1.1rem;
}

.menu-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 8px 0;
}

.menu-auth {
  font-weight: 600;
}

.menu-auth:hover {
  background: #fff5f5;
}

@media (max-width: 600px) {
  .navbar-simple {
    height: 48px;
    padding: 0 8px;
  }
  .navbar-logo img {
    height: 26px;
  }
  .navbar-search input {
    width: 100px;
    font-size: 0.95rem;
  }
  .navbar-hamburger {
    width: 28px;
    height: 28px;
  }
  .navbar-hamburger span {
    width: 20px;
    height: 3px;
  }
}

/* ===================== CAROUSEL ===================== */
.carousel-container {
  position: relative;
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 25 / 9;
  overflow: hidden;
  margin: 16px auto 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(20,20,30,0.12);
  background: linear-gradient(120deg, #222 80%, #333 100%);
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.carousel-content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  padding: clamp(16px, 3vw, 48px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0) 100%);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  z-index: 2;
  user-select: none;
}

.carousel-title {
  color: #fff;
  font-size: clamp(0.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.5em;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  user-select: none;
}

.carousel-author {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(0.6em, 2.5vw, 1.5em);
  margin-top: 0.4em;
  user-select: none;
}

.author-img {
  width: clamp(32px, 4vw, 64px);
  height: clamp(32px, 4vw, 64px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  justify-self: center;
}

.carousel-author .author-name {
  font-size: clamp(0.7rem, 2.5vw, 1.6rem);
  color: #fff;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  line-height: 1.2;
  justify-self: start;
}

.carousel-views {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(0.6em, 2.5vw, 1.5em);
  margin-top: 0.3em;
  font-size: clamp(0.65rem, 2.2vw, 1.4rem);
  color: #fff;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.carousel-views i {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2rem);
  width: clamp(32px, 4vw, 64px);
  justify-self: center;
}

.carousel-btn {
  color: #fff;
  border: none;
  font-size: clamp(1.5rem, 3vw, 2em);
  padding: 0.2em 0.5em;
  cursor: pointer;
  z-index: 3;
  border-radius: 0.5em;
  background: rgba(30,30,30,0.5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}

.carousel-btn.prev { left: 1vw; }
.carousel-btn.next { right: 1vw; }

.carousel-btn:hover {
  background: rgba(30,30,30,0.8);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.carousel-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(10px, 2vw, 18px);
	display: flex;
	justify-content: center;
	gap: clamp(8px, 2vw, 14px);
	z-index: 10;
	pointer-events: auto;
}

.carousel-dot {
	width: clamp(10px, 3vw, 16px);
	height: clamp(10px, 3vw, 16px);
	border-radius: 50%;
	background: #fff;
	border: 2px solid #fff;
	opacity: 0.7;
	transition: background 0.2s, opacity 0.2s, transform 0.2s, border 0.2s;
	cursor: pointer;
	outline: none;
	box-shadow: 0 2px 8px 0 rgba(124,58,237,0.08);
}

.carousel-dot.active {
  background: #ffe600;
  opacity: 1;
  border-color: #ffe600;
  transform: scale(1.25);
  box-shadow: 0 4px 16px rgba(236,72,153,0.13);
}

/* ===================== SECOND CAROUSEL ===================== */
.carousel2-container {
  position: relative;
  width: 90vw;
  max-width: 800px;
  overflow: hidden;
  margin: 16px auto 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(20,20,30,0.12);
  background: #fff;
  display: flex;
  align-items: center;
  height: auto;
  min-height: 0;
  padding: 4px;
}

.carousel2-track {
  display: flex;
  height: auto;
  width: 100%;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel2-slide {
  position: relative;
  min-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  padding: 0 2px;
  /* box-shadow: 0 2px 12px rgba(0,0,0,0.08); */
}

.carousel2-top {
  height: auto;
  min-height: 160px;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 14px);
  position: relative;
  padding: 4px;
}

.carousel2-img {
  width: 100%;
  height: auto;
  object-fit: fill;
  border-radius: 16px;
  background: #eee;
  display: block;
}

.carousel2-bottom {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4px, 1vw, 10px);
  gap: 4%;
  overflow: auto;
  max-height: none;
  user-select: none;
}

.carousel2-author {
  display: flex;
  align-items: center;
  gap: clamp(0.6em, 2.5vw, 1.5em);
  font-size: clamp(0.7rem, 2.5vw, 1.6rem);
  margin-bottom: 8px;
  user-select: none;
}

.carousel2-author-img {
  width: clamp(32px, 4vw, 64px);
  height: clamp(32px, 4vw, 64px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.carousel2-title {
  font-size: clamp(0.7rem, 2.8vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  user-select: none;
}

.carousel2-meta {
  font-size: clamp(0.65rem, 2.2vw, 1.4rem);
  color: #888;
  margin-bottom: clamp(6px, 1.2vw, 10px);
  user-select: none;
}

.carousel2-social {
  display: flex;
  gap: clamp(8px, 2.5vw, 20px);
  margin-top: clamp(6px, 1.2vw, 10px);
  justify-content: flex-end;
}

.carousel2-social a {
  width: clamp(36px, 5vw, 56px);
  height: clamp(36px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: clamp(18px, 2.5vw, 28px);
}

.carousel2-social a:nth-child(1) {
  background: #1877f2; /* Facebook blue */
}

.carousel2-social a:nth-child(2) {
  background: #000000; /* X/Twitter black */
}

.carousel2-social a:nth-child(3) {
  background: #25d366; /* WhatsApp green */
}

.carousel2-social a:nth-child(4) {
  background: #0088cc; /* Telegram blue */
}

.carousel2-social a:nth-child(5) {
  background: #0084ff; /* Messenger blue */
}

.carousel2-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel2-social a i {
  font-size: inherit;
}

.carousel2-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(10px, 2vw, 18px);
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  z-index: 10;
  pointer-events: auto;
}

.carousel2-dot {
  width: clamp(10px, 2vw, 16px);
  height: clamp(10px, 2vw, 16px);
  border-radius: 50%;
  background: #ccc;
  border: none;
  opacity: 0.7;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
  cursor: pointer;
  outline: none;
}

.carousel2-dot.active {
  background: #ffe600;
  opacity: 1;
  transform: scale(1.25);
}

/* ===== Fourth Section Layout ===== */


.fourth-section {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 32px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.fourth-section::-webkit-scrollbar {
  height: 8px;
}

.fourth-section::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.fourth-section::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.fourth-section::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.fourth-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 280px;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.fourth-col h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 12px;
}

.fourth-col p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #555;
}

/* Fourth section title (JS uses .fourth-title div) */
.fourth-title {
  font-weight: 700;
  font-size: clamp(0.5rem, 2.5vw, 1.5rem);
  line-height: 1.3;
  margin: 12px 0 8px 0;
  text-align: center;
  color: #222;
  /* multi-line clamp to 2 lines with ellipsis */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Fourth section author name */
.fourth-author-name {
  font-size: clamp(0.4rem, 1.8vw, 1.1rem);
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}

/* Fourth section meta row (author + views) */
.fourth-meta-row {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 12px);
}

/* Fourth section author image */
.fourth-author-img {
  width: clamp(9px, 2.4vw, 26px);
  height: clamp(9px, 2.4vw, 26px);
  border-radius: 50%;
  object-fit: cover;
}

/* Fourth section views container */
.fourth-views {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 8px);
  color: #888;
}

/* Eye icon and count scale */
.fourth-views .fa-eye {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #888;
}
.fourth-views-count {
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  color: #888;
}

/* ===== Fifth Section: 4 Rows Video + Document ===== */
.fifth-section {
  width: 90vw;
  max-width: 1100px;
  margin: clamp(24px, 5vw, 40px) auto;
  background: #fff;
  border-radius: clamp(9.6px, 2vw, 16px);
  box-shadow: 0 8px 32px rgba(20,20,30,0.12);
  padding: clamp(19.2px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(19.2px, 4vw, 32px);
}

.video-row {
  display: flex;
  flex-direction: row;
  gap: clamp(14.4px, 3vw, 24px);
  align-items: flex-start;
  padding-bottom: clamp(19.2px, 4vw, 32px);
  border-bottom: 1px solid #eee;
}

.video-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.video-document {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: clamp(7.2px, 1.5vw, 12px);
}

.video-doc-title {
  font-family: 'Noto Serif Bengali', 'Noto Serif', serif;
  font-size: clamp(0.85rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: #222;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-social-icons {
  display: flex;
  gap: clamp(6px, 1.25vw, 10px);
  margin-top: clamp(4.8px, 1vw, 8px);
  flex-wrap: nowrap;
}

.video-social-icon {
  width: clamp(21.6px, 4.5vw, 36px);
  height: clamp(21.6px, 4.5vw, 36px);
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(0.85rem, 1.25vw, 1rem);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.video-social-icon:nth-child(1) {
  background: #1877f2; /* Facebook blue */
}

.video-social-icon:nth-child(2) {
  background: #000000; /* X/Twitter black */
}

.video-social-icon:nth-child(3) {
  background: #25d366; /* WhatsApp green */
}

.video-social-icon:nth-child(4) {
  background: #0088cc; /* Telegram blue */
}

.video-social-icon:nth-child(5) {
  background: #0084ff; /* Messenger blue */
}

.video-social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-content {
  flex: 1 1 60%;
  border-radius: clamp(9.6px, 2vw, 16px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Sixth Section: Archive Box ===== */
.archive-section {
  width: 90vw;
  max-width: 800px;
  margin: 32px auto 48px auto;
}

.archive-box {
  background: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20,20,30,0.08);
  overflow: hidden;
}

.archive-header {
  padding: 14px 16px;
  background: #000;
  border-bottom: none;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #fff;
  text-align: center;
}

.archive-list {
  max-height: 600px;
  overflow-y: auto;
}

/* Custom scrollbar for archive list */
.archive-list::-webkit-scrollbar {
  width: 16px;
}

.archive-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.archive-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.archive-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* For Firefox */
.archive-list {
  scrollbar-width: thick;
  scrollbar-color: #888 #f1f1f1;
}

.archive-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f2f2f6;
}
.archive-item:last-child { border-bottom: none; }

.archive-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.archive-text {
  flex: 1 1 auto;
  min-width: 0; /* required for text-overflow to work in flex */
  color: #333;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Seventh Section: Dual Blog Cards Carousel ===== */
.seventh-section {
  width: 100%;
  max-width: 1200px;
  margin: 48px auto 56px auto;
  position: relative;
  padding: 0 clamp(30px, 6vw, 60px);
  box-sizing: border-box;
}

.seventh-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
}

.seventh-track-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  touch-action: pan-y;
  user-select: none;
  border-radius: 16px;
}

.seventh-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.seventh-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
}

.seventh-blog {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
}

.seventh-blog.top {
  border-radius: 16px 16px 0 0;
}

.seventh-blog.bottom {
  border-radius: 0 0 16px 16px;
}

.seventh-card {
  box-shadow: 0 4px 12px rgba(20, 20, 30, 0.15);
  border-radius: 16px;
}

.seventh-blog img {
  width: 100%;
  height: auto;
  aspect-ratio: 32 / 20;
  object-fit: fill;
  display: block;
  border-radius: 0;
}

.seventh-blog.top img {
  border-radius: 16px 16px 0 0;
}

.seventh-blog.bottom img {
  border-radius: 0 0 16px 16px;
}

.seventh-blog-title {
  position: absolute;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
}

.seventh-blog.top .seventh-blog-title {
  bottom: 0;
}

.seventh-blog.bottom .seventh-blog-title {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

.seventh-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 1);
  border: none;
  color: rgb(0, 0, 0);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.seventh-btn:focus {
  outline: none;
}

/* .seventh-btn:hover {
  background: #b00;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
} */

.seventh-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.seventh-btn.prev {
  left: 0;
}

.seventh-btn.next {
  right: 0;
}

/* Responsive adjustments for seventh section */
@media (max-width: 600px) {
  .seventh-btn {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

/* ===== Tabs Section ===== */
.tabs-section {
  width: 95vw;
  max-width: 1200px;
  margin: 48px auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(20,20,30,0.12);
}

.tabs-header {
  display: flex;
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 16px;
}

.tab-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  background: #fff;
  color: #000;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-btn:first-child {
  border-top-left-radius: 16px;
}

.tab-btn:last-child {
  border-top-right-radius: 16px;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn.tab-dark {
  background: #fff;
  color: #000;
}

.tab-btn.tab-orange {
  background: #fff;
  color: #000;
}

.tab-btn:hover {
  opacity: 0.9;
}

.tab-btn.active {
  background: #e53935 !important;
  color: #fff;
  border-radius: 16px;
}

.tab-btn i {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.tabs-content {
  background: #f8f8f8;
  min-height: 400px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tabs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
}

.tab-card {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.3s ease;
  cursor: pointer;
  border-radius: 16px;
  margin: 8px;
}

.tab-card:last-child {
  border-bottom: none;
}

.tab-card:hover {
  background: #f5f5f5;
}

.tab-card-image {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 16px;
  overflow: hidden;
}

.tab-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tab-card-title {
  flex: 1;
  font-size: clamp(1.2rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .tabs-section {
    width: 100%;
    margin: 32px 0;
    border-radius: 0;
  }

  .tab-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
    gap: 6px;
  }

  .tab-btn i {
    font-size: 1rem;
  }

  .tab-card {
    gap: 12px;
    padding: 12px 16px;
  }

  .tab-card-image {
    width: 100px;
    height: 75px;
  }

  .tab-card-title {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* ===== Footer Section ===== */
.footer-section {
  background: #ffffff;
  padding: 40px 20px 20px;
  margin: 80px 0 0 0;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(20,20,30,0.12);
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.footer-category-btn {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0;
  color: #333;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  font-family: 'Noto Serif Bengali', serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-category-btn:hover {
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.footer-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-notification {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(160, 160, 160, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.footer-notification:hover {
  background: rgba(160, 160, 160, 0.5);
}

.footer-notification i {
  font-size: 1.2rem;
  color: #666;
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  border: 2px solid #d4d4e8;
}

.footer-subscribe-btn {
  background: linear-gradient(135deg, #ff7b9c 0%, #ff8aaa 100%);
  border: none;
  border-radius: 22px;
  padding: 11px 26px;
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 123, 156, 0.3);
  flex-shrink: 0;
}

.footer-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 123, 156, 0.4);
}

.footer-subscribe-btn i {
  font-size: 0.85rem;
}

.footer-social-icons {
  display: flex;
  gap: 8px;
}

.footer-social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(160, 160, 160, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-social-icons a:hover {
  background: rgba(160, 160, 160, 0.5);
  transform: translateY(-1px);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  margin-top: 4px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #333;
  text-decoration: underline;
}

.footer-divider {
  color: rgba(0, 0, 0, 0.25);
}

.footer-bottom-section {
  background: rgba(70, 75, 110, 1);
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.footer-logo-container {
  flex-shrink: 0;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-copyright {
  flex: 1;
  text-align: center;
}

.bengali-copyright {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  margin: 0 0 2px 0;
  color: #fff;
  font-family: 'Noto Serif Bengali', serif;
}

.powered-by {
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-section {
    padding: 30px 16px 16px;
  }

  .footer-category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .footer-category-btn {
    padding: 0;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    aspect-ratio: 1;
  }

  .footer-action-row {
    gap: 10px;
  }

  .footer-notification {
    width: 38px;
    height: 38px;
  }

  .footer-notification i {
    font-size: 1rem;
  }

  .footer-subscribe-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .footer-social-icons {
    gap: 6px;
  }

  .footer-social-icons a {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .footer-bottom-section {
    
    
    gap: 12px;
  }

  .footer-logo {
    width: 56px;
    height: 56px;
  }

  .footer-links {
    font-size: 0.8rem;
  }
}

/* ===== Semi Ninth Section: Author Spotlight ===== */
.semi-ninth-section {
  width: 90vw;
  max-width: 1200px;
  margin: 32px auto 0 auto;
}

.author-spotlight {
  display: grid;
  gap: 16px;
  /* Default: 4x1 (stacked vertically) */
  grid-template-columns: 1fr;
}

/* At medium widths: 2x2 grid */
@media (min-width: 560px) {
  .author-spotlight {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* At large widths: 1x4 single row */
@media (min-width: 1024px) {
  .author-spotlight {
    grid-template-columns: repeat(4, 1fr);
  }
}

.author-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(20,20,30,0.08);
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #f2f2f2;
  flex: 0 0 auto;
}

.author-item .author-name {
  font-weight: 700;
  color: #000;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}