/* Prothom Alo homepage — unified section layout */

.home-sr-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.home-section {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px 28px;
  border-bottom: 1px solid #e8e8e8;
  box-sizing: border-box;
}

.home-section--no-border { border-bottom: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-header h2,
.section-header h2 a {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0;
  text-decoration: none;
}

.section-header .arrow,
.palo-arrow { color: #d0021b; font-size: 18px; }

.home-ad-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ad + hero zone — hero sits directly under the leaderboard */
.home-top-zone {
  position: static;
  float: none;
  clear: both;
  width: 100%;
}

.home-top-zone .home-ad-wrap {
  margin-bottom: 0;
}

.home-top-zone .home-ad-wrap .nk-ad-slot {
  margin-top: 12px;
  margin-bottom: 0;
}

.home-top-zone .home-ad-wrap .palo-top-ad,
.home-top-zone .home-ad-wrap .palo-ad-live,
.home-top-zone .home-ad-wrap .palo-ad-live ins.adsbygoogle {
  max-height: 100px;
  overflow: hidden;
}

/* ========== Prothom Alo hero (25% | 50% | 25%) ========== */
.pa-hero {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 16px auto 28px;
  padding: 0 20px 24px;
  align-items: start;
  border-bottom: 1px solid #e8e8e8;
  position: static;
  float: none;
  clear: both;
  box-sizing: border-box;
}

.pa-hero-col { min-width: 0; }

/* Side columns — news rows with thumbnails */
.pa-hero-side-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.pa-hero-side-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.pa-hero-side-body { flex: 1; min-width: 0; }
.pa-hero-side-title {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.55;
  display: block;
}
.pa-hero-side-title:hover { color: #d0021b; }
.pa-hero-side-time {
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 4px;
  font-family: var(--font-meta);
}
.pa-hero-side-thumb-link {
  flex-shrink: 0;
  display: block;
}
.pa-hero-side-thumb {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

/* CENTER — featured card */
.pa-hero-featured {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pa-hero-featured-link {
  display: block;
  position: relative;
  text-decoration: none;
}
.pa-hero-featured-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.pa-hero-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  padding: 60px 18px 18px;
}
.pa-hero-featured-title {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.5;
  margin: 0;
}
.pa-hero-featured-time {
  font-size: 13px;
  color: #ccc;
  display: block;
  margin-top: 6px;
  font-family: var(--font-meta);
}

/* CENTER — duo cards (image top, text below) */
.pa-hero-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pa-hero-duo-img-link {
  display: block;
  text-decoration: none;
}
.pa-hero-duo-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.pa-hero-duo-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.5;
  display: block;
  margin-top: 8px;
}
.pa-hero-duo-title:hover { color: #d0021b; }
.pa-hero-duo-time {
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 4px;
  font-family: var(--font-meta);
}

@media (max-width: 1024px) {
  .pa-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 768px) {
  .pa-hero-duo { grid-template-columns: 1fr; }
  .pa-hero-featured-img { height: 260px; }
}

/* Mid-page leaderboard (hero → trending strip) */
.home-mid-ad-leaderboard {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
  max-height: 100px;
  overflow: hidden;
  text-align: center;
}
.home-mid-ad-leaderboard .adsbygoogle,
.home-mid-ad-leaderboard ins.adsbygoogle {
  max-height: 90px !important;
  overflow: hidden;
}

/* Trending tabs + খেলা (compact 2-col, no duplicate featured) */
.pa-trending-strip {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px 24px;
  align-items: start;
  border-bottom: 1px solid #e8e8e8;
  box-sizing: border-box;
}
.pa-trending-strip--compact {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pa-trending-strip-left,
.pa-trending-strip-center,
.pa-trending-strip-right { min-width: 0; }

.pa-trending-strip-featured-img {
  height: 340px;
}
.pa-trending-strip-featured-title {
  font-size: 24px;
}
.pa-trending-strip-duo {
  gap: 12px;
}
.pa-trending-strip-duo-img {
  height: 130px;
}

.pa-hero-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 16px;
}
.pa-hero-tabs button {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  border: none;
  background: none;
  color: #777;
  cursor: pointer;
  margin-bottom: -2px;
}
.pa-hero-tabs button.active {
  color: #d0021b;
  border-bottom: 3px solid #d0021b;
}

.pa-hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pa-hero-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.pa-hero-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.pa-hero-rank {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 700;
  color: #ddd;
  line-height: 1;
  flex-shrink: 0;
  min-width: 20px;
}
.pa-hero-list a {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.55;
}
.pa-hero-list a:hover { color: #d0021b; }

.pa-hero-sports-head {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.pa-hero-sports-dot {
  color: #1a6fd4;
  font-size: 12px;
  line-height: 1;
}
.pa-hero-sports-label {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 700;
  color: #d0021b;
  text-decoration: none;
}
.pa-hero-sports-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.pa-hero-sports-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.pa-hero-sports-body { flex: 1; min-width: 0; }
.pa-hero-sports-title {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.55;
  display: block;
}
.pa-hero-sports-title:hover { color: #d0021b; }
.pa-hero-sports-time {
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 4px;
  font-family: var(--font-meta);
}
.pa-hero-sports-thumb-link {
  flex-shrink: 0;
  display: block;
}
.pa-hero-sports-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

@media (max-width: 1024px) {
  .pa-trending-strip,
  .pa-trending-strip--compact {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Legacy hero aliases — keep other sections unaffected */
.h-card {
  display: block;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.h-card > a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.h-card--reverse > a {
  grid-template-columns: 1fr 120px;
}
.h-card--reverse > a img {
  order: 2;
}
.h-card img {
  width: 120px;
  height: 85px;
  max-width: 120px;
  max-height: 85px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
  display: block;
  background: #f0f0f0;
}
.h-card h4 {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.55;
  margin: 0 0 6px;
}
.h-card .meta { font-size: 12px; color: #999; font-family: var(--font-meta); }

.v-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.v-card > a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.v-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #ececec;
  margin-bottom: 10px;
}
.v-card-media img,
.v-card > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.v-card > a > img {
  aspect-ratio: 16 / 10;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
  background: #ececec;
}
.v-card img.img-placeholder,
.v-card-media img.img-placeholder {
  object-fit: contain !important;
  background: #f3f3f3;
  padding: 14%;
  box-sizing: border-box;
}
.v-card h3,
.v-card h4 {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 700;
  color: #111;
  line-height: 1.45;
  margin: 0 0 8px;
}
.v-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 8px;
}
.v-card .meta { font-size: 12px; color: #999; font-family: var(--font-meta); }

.red-label {
  color: #d0021b;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Bangladesh — premium 2-col (lead | stack) */
.pa-bd-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}
.pa-bangladesh-lead-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.pa-bangladesh-lead-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: #f3f3f3;
}
.pa-bangladesh-lead-title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  color: #111;
  line-height: 1.45;
  margin: 14px 0 8px;
}
.pa-bangladesh-lead-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 8px;
}
.pa-bangladesh-row-item {
  margin: 0;
}
.pa-bangladesh-row-item + .pa-bangladesh-row-item {
  margin-top: 0;
}
.pa-bangladesh-row-link {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 14px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.pa-bangladesh-row-item:first-child .pa-bangladesh-row-link {
  padding-top: 0;
}
.pa-bangladesh-row-item:last-child .pa-bangladesh-row-link {
  border-bottom: none;
  padding-bottom: 0;
}
.pa-bangladesh-row-title {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 700;
  color: #111;
  line-height: 1.5;
  margin: 0 0 6px;
}
.pa-bangladesh-row-link:hover .pa-bangladesh-row-title {
  color: #d0021b;
}
.pa-bangladesh-row-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  background: #f3f3f3;
}
.pa-bangladesh-time {
  font-size: 12px;
  color: #999;
  font-family: var(--font-meta);
}
.pa-area-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #eef5fa;
  padding: 10px 14px;
  margin-bottom: 20px;
  width: 100%;
}
.pa-area-filter .pa-area-label {
  font-weight: 700;
  font-size: 14px;
  color: #d0021b;
}
.pa-area-filter select {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 13px;
}
.pa-area-search {
  background: #00509d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 2px;
  font-family: var(--font-body);
  cursor: pointer;
  margin-left: auto;
}

/* World / Business split */
.pa-split-lead-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}
.palo-world-grid--solo {
  grid-template-columns: 1fr;
}

/* Entertainment 3-col — keep in sync with main.css; no h-card/v-card */
.pa-ent-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.pa-ent-grid .palo-ent-item-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pa-ent-grid .palo-ent-thumb {
  width: 96px !important;
  height: 72px !important;
  max-width: 96px;
  max-height: 72px;
  flex: 0 0 96px;
  object-fit: cover !important;
  margin: 0 !important;
}
.pa-ent-grid .palo-ent-lead-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Opinion */
.opinion-featured,
.palo-opinion-full-featured a {
  display: block;
  background: #1a1a2e;
  padding: 24px;
  border-radius: 4px;
  min-height: 280px;
  text-decoration: none;
}
.opinion-featured .label,
.palo-op-badge {
  background: #d0021b;
  color: #fff;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 12px;
}
.opinion-featured h3,
.palo-opinion-full-featured h3 {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 12px;
}
.opinion-featured p,
.palo-opinion-full-featured p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.7;
}
.pa-opinion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pa-opinion-list-item a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  align-items: start;
}
.pa-opinion-list-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Ros-aloo + Hal fashion */
.pa-dual-branded {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pa-branded-col-head {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}
.pa-branded-col--ros .pa-branded-col-head { color: #e65100; }
.pa-branded-col--fashion .pa-branded-col-head { color: #c2185b; }
.pa-branded-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.pa-branded-feature .v-card img { height: 200px; }

/* Photo slideshow */
.pa-photo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.palo-photo-main { position: relative; }
.palo-photo-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 3px;
}
.palo-photo-nav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.palo-photo-nav button {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  cursor: pointer;
}
.palo-photo-slide { display: none; }
.palo-photo-slide.active { display: block; }
.palo-photo-slide img { width: 100%; height: 360px; object-fit: cover; border-radius: 4px; }
.palo-photo-slide h3 {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 0;
}

/* Video horizontal scroll */
.pa-video-scroll-wrap { position: relative; }
.pa-video-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.pa-video-scroll .video-card {
  flex: 0 0 280px;
  min-width: 280px;
}
.video-card { position: relative; border-radius: 4px; overflow: hidden; }
.video-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.video-card .play-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d0021b;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.video-card-body { padding: 10px 0; }
.video-card-body h4 {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.5;
}
.pa-video-nav {
  position: absolute;
  top: 80px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 4px;
  box-sizing: border-box;
}
.pa-video-nav button {
  pointer-events: auto;
  background: #fff;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
.tag-cloud a,
.palo-tag {
  font-family: var(--font-body);
  font-size: 14px;
  color: #444;
  background: #f5f5f5;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-cloud a:hover,
.palo-tag:hover { background: #d0021b; color: #fff; }

/* Mini section column */
.pa-mini-col-head {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}
.pa-mini-col-head a { color: #111; text-decoration: none; }
.pa-mini-text-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.pa-mini-text-item a {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.55;
  text-decoration: none;
}
.pa-mini-text-item a:hover { color: #d0021b; }

/* Right news sidebar (hero) */
.right-news-dot { background: #0573e6; }

@media (max-width: 1024px) {
  .trending-row { grid-template-columns: 1fr; }
  .pa-bd-grid,
  .pa-split-lead-grid,
  .pa-ent-grid,
  .pa-opinion-grid,
  .pa-dual-branded,
  .pa-photo-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-4,
  .grid-2x2,
  .pa-featured-secondary,
  .pa-branded-feature { grid-template-columns: 1fr; }
  .h-card { grid-template-columns: 90px 1fr; }
  .h-card img { width: 90px; height: 65px; }
}
