/**
 * DAS TECH SOLUTIONS - BENGALI NEWS & BLOG CMS
 * Main Stylesheet: Inspiration from Aaj Tak Bangla & TV9 Bangla
 */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --primary-red: #c8102e;
  --primary-dark-red: #9b0015;
  --accent-gold: #ffb800;
  --accent-orange: #ff6f00;
  --dark-header: #121418;
  --dark-surface: #1e2229;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #777777;
  --bg-light: #f4f5f7;
  --bg-white: #ffffff;
  --border-light: #e2e4e8;
  --border-color: #d1d5db;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --font-bengali: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
}

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

body {
  font-family: var(--font-bengali);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   TOP BAR (Date, Time, Weather, Social Links)
   ========================================================================== */
.top-bar {
  background-color: var(--dark-header);
  color: #c9d1d9;
  font-size: 13.5px;
  border-bottom: 1px solid #2d333b;
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  fill: var(--accent-gold);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #21262d;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-red);
  color: #fff;
  transform: translateY(-2px);
}

.social-links a svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.admin-portal-link {
  background-color: #262c36;
  color: #e6edf3;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #30363d;
}

.admin-portal-link:hover {
  background-color: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

/* ==========================================================================
   MAIN BRAND HEADER
   ========================================================================== */
.main-header {
  background-color: var(--bg-white);
  padding: 16px 0;
  border-bottom: 2px solid var(--border-light);
}

.main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-svg {
  width: 52px;
  height: 52px;
}

.brand-text h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-red);
  letter-spacing: -0.5px;
}

.brand-text .sub-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-center-ad {
  flex: 1;
  max-width: 650px;
  margin: 0 15px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-form {
  position: relative;
  width: 240px;
}

.header-search-form input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background-color: var(--bg-light);
  transition: all var(--transition-fast);
}

.header-search-form input:focus {
  background-color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.header-search-form button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-form button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ==========================================================================
   MAIN CATEGORY NAVIGATION BAR
   ========================================================================== */
.main-nav {
  background: linear-gradient(90deg, #b71c1c 0%, #c8102e 100%);
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link-item {
  color: #ffffff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  display: block;
  position: relative;
  transition: background-color var(--transition-fast);
}

.nav-link-item:hover, .nav-link-item.active {
  background-color: rgba(0, 0, 0, 0.22);
  color: var(--accent-gold);
}

.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 10px;
  cursor: pointer;
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */
.breaking-ticker {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.breaking-inner {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
}

.breaking-badge {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #ffffff;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 184, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); }
}

.breaking-marquee-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.breaking-marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

.breaking-marquee-track:hover {
  animation-play-state: paused;
}

.breaking-item {
  display: inline-flex;
  align-items: center;
  margin-right: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.breaking-item:hover {
  color: var(--primary-red);
}

.breaking-item::before {
  content: '✦';
  color: var(--primary-red);
  margin-right: 8px;
  font-size: 13px;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   HOMEPAGE SECTION HEADERS & LABELS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 45px;
  height: 3px;
  background-color: var(--primary-red);
}

.section-view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-view-all:hover {
  text-decoration: underline;
}

/* ==========================================================================
   HOMEPAGE LAYOUT TEMPLATES (10 DISTINCT TEMPLATES)
   ========================================================================== */
.news-section {
  margin-bottom: 35px;
}

/* Layout 1: Hero Featured Layout */
.hero-featured-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.hero-main-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
  box-shadow: var(--shadow-md);
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.hero-main-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-main-card:hover img {
  transform: scale(1.04);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.92) 100%);
  padding: 24px;
  width: 100%;
  color: #ffffff;
}

.hero-overlay h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-overlay h2 a:hover {
  color: var(--accent-gold);
}

.hero-overlay p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-side-item {
  display: flex;
  gap: 12px;
  background-color: var(--bg-white);
  padding: 10px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.hero-side-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-side-thumb {
  width: 110px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-side-info h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Layout 2: Two Column Grid */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Layout 3: Three Column Grid */
.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Layout 4: Four Column Grid */
.four-column-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Standard News Card */
.news-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #2d333b;
  overflow: hidden;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-red);
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}

.live-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff0000;
  color: #fff;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.38;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}

.card-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Layout 5: Horizontal News Carousel */
.horizontal-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.horizontal-carousel .news-card {
  min-width: 280px;
  max-width: 280px;
  scroll-snap-align: start;
}

/* Layout 6: Compact News List */
.compact-news-list {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.compact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.compact-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-red);
  opacity: 0.6;
  width: 24px;
  text-align: center;
}

.compact-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.compact-thumb {
  width: 75px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
}

/* Layout 7: Featured Image with Side Articles */
.featured-side-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* Layout 9: Latest News Feed */
.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-item {
  display: flex;
  gap: 16px;
  background-color: var(--bg-white);
  padding: 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.feed-item:hover {
  transform: translateX(4px);
}

.feed-thumb {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.feed-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.feed-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

/* Layout 10: Advertisement Section */
.ad-slot-container {
  margin: 25px 0;
  padding: 12px;
  background-color: #f0f2f5;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.ad-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #888888;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.ad-slot-container img {
  margin: 0 auto;
  border-radius: 4px;
}

/* ==========================================================================
   HOMEPAGE TWO-COLUMN LAYOUT (Main Content + Sidebar)
   ========================================================================== */
.home-layout-wrapper {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 28px;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-red);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--dark-header);
  color: #c9d1d9;
  padding-top: 45px;
  margin-top: 50px;
  border-top: 4px solid var(--primary-red);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 35px;
}

.footer-brand h2 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #8b949e;
  margin-bottom: 15px;
}

.footer-col h3 {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: #8b949e;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  background-color: #0d1117;
  padding: 20px 0;
  font-size: 13.5px;
  color: #8b949e;
  border-top: 1px solid #21262d;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.footer-bottom-links a {
  color: #8b949e;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle .arrow-down {
  font-size: 11px;
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .dropdown-toggle .arrow-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  padding: 8px 0;
  display: none;
  z-index: 1000;
  border: 1px solid var(--border-light);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 18px;
  color: #1e2229;
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover, .dropdown-item.active {
  background-color: #fee2e2;
  color: var(--primary-red);
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 20px 0;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.page-link:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background-color: #fff5f5;
}

.page-link.active {
  background-color: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.page-link.prev-link, .page-link.next-link {
  font-size: 14px;
}

/* Live Search Suggestions Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  margin-top: 4px;
  z-index: 1100;
  overflow: hidden;
  display: none;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f3f5;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color var(--transition-fast);
}

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

.suggestion-item:hover {
  background-color: #f8fafc;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #fee2e2;
  color: var(--primary-red);
  font-weight: 600;
  margin-left: 10px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark-red);
  transform: translateY(-3px);
}


/* ==========================================================================
   HOMEPAGE BUILDER 15 ADVANCED SECTION LAYOUTS & STYLES (PHASE 4)
   ========================================================================== */

/* Section Background Variations */
.news-section.sec-bg-default {
  background-color: transparent;
}

.news-section.sec-bg-gray {
  background-color: #f8fafc;
  padding: 24px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.news-section.sec-bg-accent-light {
  background-color: #fef2f2;
  padding: 24px 20px;
  border-radius: 10px;
  border: 1px solid #fecaca;
}

.news-section.sec-bg-transparent {
  background: transparent;
}

/* Section Heading Variations */
.section-header.heading-red-border .section-title {
  border-left: 4px solid var(--primary-red);
  padding-left: 10px;
}
.section-header.heading-red-border .section-title::after {
  display: none;
}

.section-header.heading-badge .section-title {
  background: var(--primary-red);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 18px;
}
.section-header.heading-badge .section-title::after {
  display: none;
}

.section-header.heading-minimal {
  border-bottom: 1px solid #e5e7eb;
}
.section-header.heading-minimal .section-title {
  font-size: 20px;
  letter-spacing: 0.5px;
}
.section-header.heading-minimal .section-title::after {
  display: none;
}

.section-header.heading-center {
  justify-content: center;
  text-align: center;
  border-bottom: 2px solid var(--primary-red);
}
.section-header.heading-center .section-title {
  justify-content: center;
}
.section-header.heading-center .section-view-all {
  display: none;
}

/* Visibility Control */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Layout 2: Large Featured Article */
.large-featured-layout {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.large-featured-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 440px;
  overflow: hidden;
  background: #111;
}

.large-featured-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.large-featured-layout:hover .large-featured-thumb-wrap img {
  transform: scale(1.03);
}

.large-featured-content {
  padding: 24px 28px;
}

.large-featured-content h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.large-featured-content h2 a:hover {
  color: var(--primary-red);
}

.large-featured-content p {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Layout 6: Horizontal Carousel with Arrow Navigation */
.carousel-wrapper {
  position: relative;
}

.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  z-index: 10;
  transition: all 0.15s ease;
}

.carousel-nav-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.carousel-nav-btn.prev { left: -14px; }
.carousel-nav-btn.next { right: -14px; }

/* Layout 8: Image Left Text Right (Split Row) */
.image-left-text-right-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-card-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.split-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.split-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.split-card-body {
  padding: 16px 20px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.split-card-title a:hover {
  color: var(--primary-red);
}

.split-card-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Layout 10: Mixed News Layout */
.mixed-news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.mixed-news-lead {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.mixed-news-lead img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.mixed-news-lead .body {
  padding: 18px;
}

.mixed-news-lead h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.mixed-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mixed-side-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.mixed-side-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.mixed-side-info h4 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Layout 12: Latest Blog Section */
.latest-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #fdba74;
}

.blog-card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-badge {
  align-self: flex-start;
  background: #ea580c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #1e293b;
}

.blog-card-title a:hover {
  color: #ea580c;
}

.blog-author-byline {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.blog-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Layout 13: Popular Articles List */
.popular-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.popular-article-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.popular-ranking-digit {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1;
  min-width: 30px;
  text-align: center;
}

.popular-item-content {
  flex: 1;
}

.popular-item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.popular-item-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 12px;
}

/* Layout 14: Category News Section */
.category-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
